joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180057794
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov r8, qword [0x180168dd0]
xor ebx, ebx
mov qword [rbp + 0x17], rbx
or rcx, 0xffffffffffffffff
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], 0xf
inc rcx
cmp byte [rdx + rcx], bl
jne 0x1800577c3
movabs rax, 0x7fffffffffffffff
sub rax, r8
cmp rax, rcx
jb 0x18005795f
cmp qword [0x180168dd8], 0x10
lea r9, [0x180168dc0]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x37]
cmovae r9, qword [0x180168dc0]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r8
call fcn.1800030a8
mov rcx, qword [rbp + 0x47]
mov edx, 4
mov rax, qword [rbp + 0x4f]
sub rax, rcx
cmp rax, rdx
jb 0x18005784c
cmp qword [rbp + 0x4f], 0x10
lea rax, [rcx + 4]
mov qword [rbp + 0x47], rax
lea rax, [rbp + 0x37]
cmovae rax, qword [rbp + 0x37]
mov dword [rax + rcx], 0x6766632e
mov byte [rax + rcx + 4], bl
lea rax, [rbp + 0x37]
jmp 0x180057861
lea r9, str..cfg
mov qword [rsp + 0x20], rdx
lea rcx, [rbp + 0x37]
call fcn.180001f54
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], rbx
mov byte [rax], bl
mov ebx, 0x1000
mov qword [rax + 0x18], 0xf
mov rdx, qword [rbp + 0x2f]
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm1
cmp rdx, 0x10
jb 0x1800578be
mov rcx, qword [rbp + 0x17]
inc rdx
mov rax, rcx
cmp rdx, rbx
jb 0x1800578b1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800578f4
call fcn.1800652bc
movups xmm0, xmmword [rbp - 9]
movups xmm1, xmmword [rbp + 7]
mov rdx, qword [rbp + 0x4f]
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm1
cmp rdx, 0x10
jb 0x180057900
mov rcx, qword [rbp + 0x37]
inc rdx
mov rax, rcx
cmp rdx, rbx
jb 0x1800578fb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800578fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800652bc
cmp qword [rbp + 0x2f], 0x10
lea rcx, [rbp + 0x17]
cmovae rcx, qword [rbp + 0x17]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x18005794e
mov rcx, qword [rbp + 0x17]
inc rdx
mov rax, rcx
cmp rdx, rbx
jb 0x180057949
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180057949
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800652bc
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rbp
ret
call fcn.180001894
int3
Function at 0x180060a38
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xb8
lea rcx, str.GameAssembly.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, str.UnityPlayer.dll
mov qword [0x1801a8d00], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.18003bb0c
call fcn.18003c3b0
call fcn.18003d3a8
jmp 0x180060a8d
lea rdx, [0x1801a8be8]
lea rcx, [0x180060be4]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x1801a8be8]
test rbx, rbx
je 0x180060a79
and qword [rbp + 0x6f], 0
lea rcx, [rbp - 9]
and qword [rbp + 0x7f], 0
xor edx, edx
and qword [rbp + 0x77], 0
mov dword [rbp + 0x67], 0xb000
lea r8d, [rdx + 0x48]
call sub.VCRUNTIME140.dll_memset
mov edx, 1
mov dword [rbp + 7], 0x1c
lea rax, [rbp + 0x77]
mov dword [rbp + 0x1f], edx
mov qword [rsp + 0x58], rax
xor r9d, r9d
and qword [rsp + 0x50], 0
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp + 0x6f]
mov dword [rbp + 0x1b], 0x20
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp - 9]
mov qword [rbp + 0x27], rbx
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x67]
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x13], edx
mov dword [rbp + 0x2f], edx
call qword [sym.imp.d3d11.dll_D3D11CreateDeviceAndSwapChain]
test eax, eax
jns 0x180060b50
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_create_D3D11_device_and_swap_chain
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x180060bd9
mov rax, qword [rbp + 0x6f]
mov rcx, qword [rbp + 0x77]
mov rbx, qword [rax]
mov rax, qword [rbx + 0x40]
mov qword [0x1801a8d40], rax
mov rax, qword [rbx + 0x68]
mov qword [0x1801a8d68], rax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x6f]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x1801a8be8]
lea r8, [0x18005fff8]
mov edx, 0xfffffffc
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov rcx, qword [rbx + 0x40]
lea r8, [0x18006018c]
lea rdx, [0x1801a8d40]
mov qword [0x1801a8ce0], rax
call fcn.180052c64
mov rcx, qword [rbx + 0x68]
lea r8, [0x180060104]
lea rdx, [0x1801a8d68]
call fcn.180052c64
add rsp, 0xb8
pop rbx
pop rbp
ret

Function at 0x180060c58
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x180060c65
xor al, al
jmp 0x180060c94
and qword [rsp + 0x28], 0
lea r8, [0x180060c34]
and dword [rsp + 0x20], 0
mov r9, rcx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180060c92
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret
Function at 0x180062738
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor edi, edi
mov r13, r8
mov rbx, rcx
test rcx, rcx
je 0x1800628e2
mov rax, qword gs:[0x58]
mov edx, dword [0x1801a8584]
mov ecx, 4
mov r12, qword [rax + rdx*8]
mov eax, dword [r12 + rcx]
cmp dword [0x1801a97dc], eax
jg 0x180062903
jmp 0x180062794
mov ecx, 4
mov rax, qword [0x1801a9278]
mov rbp, qword [rax + rbx]
test rbp, rbp
je 0x1800628e2
mov rax, qword [rbp + 0x28]
mov r14d, 1
cmp dword [rax + 0x10], r14d
jle 0x1800628e2
lea r15d, [r14 + 0x27]
mov rax, qword [rax + 0x18]
mov rsi, qword [r15 + rax]
test rsi, rsi
je 0x1800628c4
mov eax, dword [r12 + rcx]
cmp dword [0x1801a9728], eax
jg 0x18006293e
mov rax, qword [0x1801a94d8]
cmp byte [rax + rsi], dil
jne 0x1800628c4
mov r8, qword [rsi]
test r8, r8
je 0x1800628c4
mov r8, qword [r8 + 0x10]
or edx, 0xffffffff
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], dil
jne 0x180062809
test eax, eax
je 0x1800628c4
mov r9d, eax
movsx ecx, byte [r8]
mov eax, edx
xor rcx, rax
shr edx, 8
movzx eax, cl
inc r8
lea rcx, [0x1800f37c0]
xor edx, dword [rcx + rax*4]
sub r9, 1
jne 0x18006281d
not edx
cmp edx, 0x6a7b9164
jne 0x1800628c4
mov rcx, rsi
call fcn.18003e254
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18003dfd4
mov rcx, r13
mov rbx, rax
call fcn.18003e254
lea rdx, [rsp + 0x3c]
mov rcx, rax
call fcn.18003dfd4
movss xmm1, dword [rbx]
movss xmm2, dword [rbx + 4]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rsp + 0x20], xmm0
subss xmm2, dword [rsp + 0x24]
subss xmm1, dword [rsp + 0x20]
movss xmm0, dword [rbx + 8]
mov dword [rsp + 0x28], eax
subss xmm0, dword [rsp + 0x28]
mulss xmm2, xmm2
mulss xmm1, xmm1
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
comiss xmm2, dword [0x180157518]
jbe 0x1800628df
mov rax, qword [rbp + 0x28]
inc r14d
add r15, 8
cmp r14d, dword [rax + 0x10]
jge 0x1800628e2
mov ecx, 4
jmp 0x1800627c0
mov rdi, rsi
lea r11, [rsp + 0x50]
mov rax, rdi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x1801a97dc]
call fcn.180065450
cmp dword [0x1801a97dc], 0xffffffff
jne 0x18006278f
mov ecx, 0xae00109b
call fcn.18003af98
lea rcx, [0x1801a97dc]
mov qword [0x1801a9278], rax
call fcn.1800653f0
jmp 0x18006278f
lea rcx, [0x1801a9728]
call fcn.180065450
cmp dword [0x1801a9728], 0xffffffff
jne 0x1800627e1
mov ecx, 0x33f7a6a3
call fcn.18003af98
lea rcx, [0x1801a9728]
mov qword [0x1801a94d8], rax
call fcn.1800653f0
jmp 0x1800627e1
Function at 0x1800782a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [rcx + 8]
mov ebp, r8d
mov ecx, 0x3e80000
mov rbx, qword [rax + 0x2f0]
mov rax, qword [rdx + 0x80]
movzx edx, word [rdx + 0x68]
movzx edi, word [rax + 0x18]
mov eax, 0x40000
shl edi, 0x10
cmp edi, eax
cmovl edi, eax
shl edx, 0x10
call fcn.180066f30
mov dword [rsp + 0x24], eax
mov ecx, eax
cmp eax, 0x28f
jge 0x1800782f6
xor eax, eax
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x80], rsi
mov esi, dword [rbx + 0x28]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x3c]
mov qword [rsp + 0x40], r13
mov r13d, dword [rbx + 0x38]
mov dword [rsp + 0x88], eax
mov eax, dword [rbx + 0x2c]
mov qword [rsp + 0x38], r14
mov r14d, dword [rbx + 0x40]
mov dword [rsp + 0x70], eax
mov eax, dword [rbx + 0x34]
mov qword [rsp + 0x30], r15
mov r15d, dword [rbx + 0x30]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x20], r12d
test ebp, ebp
jg 0x18007834d
mov ebp, 0x4b0000
jmp 0x18007835b
shl ebp, 0x10
mov edx, ecx
mov ecx, ebp
call fcn.180069510
mov ebp, eax
bsr ecx, ebp
bsr eax, edi
shl r12d, 0x10
add eax, ecx
cmp eax, 0x2e
jl 0x180078371
mov eax, r12d
jmp 0x18007837a
mov edx, edi
mov ecx, ebp
call fcn.180069510
mov r9d, dword [rsp + 0x88]
mov ecx, r9d
shl ecx, 0x10
cmp eax, ecx
jge 0x180078396
shl esi, 0x10
mov ecx, esi
jmp 0x180078485
mov r8d, dword [rsp + 0x70]
mov edx, r8d
shl edx, 0x10
mov dword [rsp + 0x88], edx
cmp eax, edx
jge 0x1800783f4
mov ebx, r8d
mov edx, edi
sub ebx, r9d
call fcn.180066f30
mov ecx, ebp
sub ecx, eax
test ebx, ebx
je 0x1800783e4
sub r15d, esi
mov r8d, ebx
mov edx, r15d
call fcn.1800693e0
shl esi, 0x10
mov edx, edi
mov ecx, esi
mov ebx, eax
call fcn.180066f30
add ebx, eax
jmp 0x18007848e
mov esi, dword [rsp + 0x78]
mov ebx, esi
mov r8d, dword [rsp + 0x70]
shl ebx, 0x10
jmp 0x180078401
mov esi, dword [rsp + 0x78]
mov ebx, esi
shl ebx, 0x10
cmp eax, ebx
jge 0x180078440
mov ecx, dword [rsp + 0x88]
mov r12d, esi
mov edx, edi
sub r12d, r8d
call fcn.180066f30
mov ecx, ebp
sub ecx, eax
test r12d, r12d
je 0x180078445
sub r13d, r15d
mov r8d, r12d
mov edx, r13d
call fcn.1800693e0
shl r15d, 0x10
mov edx, edi
mov ecx, r15d
mov ebx, eax
call fcn.180066f30
add ebx, eax
jmp 0x18007848e
cmp eax, r12d
jge 0x18007847e
mov r15d, dword [rsp + 0x20]
mov edx, edi
mov ecx, ebx
call fcn.180066f30
sub ebp, eax
sub r15d, esi
je 0x18007847e
sub r14d, r13d
mov r8d, r15d
mov edx, r14d
mov ecx, ebp
call fcn.1800693e0
shl r13d, 0x10
mov edx, edi
mov ecx, r13d
mov ebx, eax
call fcn.180066f30
add ebx, eax
jmp 0x18007848e
shl r14d, 0x10
mov ecx, r14d
mov edx, edi
call fcn.180066f30
mov ebx, eax
mov edx, dword [rsp + 0x24]
mov ecx, ebx
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rbp
pop rbx
jmp fcn.180066f30
Function at 0x1800c44c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
sub rsp, 0x250
mov rax, qword [0x180165018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov eax, dword [rcx + 0x58]
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov ebp, r9d
mov eax, dword [rcx + 0x5c]
mov rsi, rcx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x290]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], r8d
mov dword [rsp + 0x30], r9d
mov qword [rsp + 0x278], rdi
nop dword [rax]
mov r10d, dword [rbx + 0x14]
mov eax, r10d
mov r14d, dword [rbx + 4]
cmp r10d, r14d
mov r9d, dword [rbx + 0xc]
cmovg eax, r14d
cmp r9d, eax
jl 0x1800c465c
cmp r10d, r14d
mov eax, r14d
cmovg eax, r10d
cmp r9d, eax
jg 0x1800c465c
cmp r10d, r14d
jne 0x1800c4560
sub rbx, 0x10
jmp 0x1800c46a4
mov edx, dword [rsi + 0x88]
xor r9d, r9d
cmp r10d, r14d
setge r9b
inc r9d
cmp edx, r9d
je 0x1800c45d2
mov eax, dword [rsi + 4]
mov ecx, eax
mov r8d, dword [rsi + 8]
neg ecx
cmp r10d, r14d
jge 0x1800c4594
dec eax
add eax, r10d
and eax, ecx
sub eax, r10d
jmp 0x1800c459c
and ecx, r10d
mov eax, r10d
sub eax, ecx
cmp eax, r8d
setge r11b
test edx, edx
je 0x1800c45bb
movzx edx, r11b
mov rcx, rsi
call fcn.1800c5670
test al, al
jne 0x1800c46b5
movzx r8d, r11b
mov edx, r9d
mov rcx, rsi
call fcn.1800c5ce0
test al, al
jne 0x1800c46b5
mov edx, dword [rsi + 0x64]
lea r9, [0x1800c6040]
mov ecx, dword [rsi + 0x60]
mov r8, rbx
cmp r10d, r14d
jge 0x1800c45fe
mov dword [rsp + 0x28], edx
mov edx, 2
mov dword [rsp + 0x20], ecx
mov rcx, rsi
call fcn.1800c4340
jmp 0x1800c4652
mov eax, dword [rbx + 4]
neg ecx
movzx edi, byte [rsi + 0x6a]
neg eax
mov dword [rbx + 4], eax
neg edx
mov eax, dword [rbx + 0xc]
neg eax
mov dword [rsp + 0x28], ecx
mov dword [rbx + 0xc], eax
mov rcx, rsi
mov eax, dword [rbx + 0x14]
neg eax
mov dword [rsp + 0x20], edx
mov edx, 2
mov dword [rbx + 0x14], eax
call fcn.1800c4340
test dil, dil
je 0x1800c464a
cmp byte [rsi + 0x6a], 0
jne 0x1800c464a
mov rdx, qword [rsi + 0x70]
mov ecx, dword [rdx + 0x20]
neg ecx
mov dword [rdx + 0x20], ecx
mov ecx, dword [rbx + 4]
neg ecx
mov dword [rbx + 4], ecx
test al, al
jne 0x1800c46b5
sub rbx, 0x10
jmp 0x1800c46a4
mov eax, dword [rbx + 8]
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x20], ecx
add ecx, eax
mov dword [rbx + 0x24], r10d
lea edx, [rax + rbp]
mov eax, ecx
sar eax, 1
mov dword [rbx + 0x18], eax
lea eax, [rcx + rdx]
sar eax, 2
lea ecx, [r10 + r9]
mov dword [rbx + 0x10], eax
mov eax, ecx
sar edx, 1
sar eax, 1
mov dword [rbx + 8], edx
lea edx, [r14 + r9]
mov dword [rbx + 0x1c], eax
lea eax, [rcx + rdx]
sar eax, 2
sar edx, 1
mov dword [rbx + 0x14], eax
mov dword [rbx + 0xc], edx
add rbx, 0x10
lea rax, [rsp + 0x30]
cmp rbx, rax
jb 0x1800c46b9
mov ebp, dword [rbx]
jmp 0x1800c4520
mov al, 1
jmp 0x1800c46c2
mov dword [rsi + 0x58], ebp
xor al, al
mov dword [rsi + 0x5c], r14d
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180065ce0
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r14
pop rsi
pop rbp
ret
Function at 0x1800caa10
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1800caa2c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800caa80
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800caba5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1800caba5
test rax, rax
je 0x1800caba5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1800caba5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1800cab1a
lea rax, [0x1800cac00]
jmp 0x1800cab73
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1800caba5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800cab93
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1800cab40
lea rax, [0x1800cabd0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1800cabba
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1800cc190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1800cc19b
xor eax, eax
ret
lea r11, [0x1800ee2f0]
not ecx
cmp r8d, 8
jb 0x1800cc271
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1800cc1c0
test r8d, r8d
je 0x1800cc29d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1800cc280
not ecx
mov eax, ecx
ret
Function at 0x140a75058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a751df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a75089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a7506f
add dl, dl
jne 0x140a75096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a750f6
xor eax, eax
add dl, dl
jne 0x140a750a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a751ad
add dl, dl
jne 0x140a750b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a750c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a750d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a750dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a750ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a7507e
mov eax, 1
add dl, dl
jne 0x140a75106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a75113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a750fb
sub eax, ebx
mov ebx, 1
jne 0x140a7514c
mov ecx, 1
add dl, dl
jne 0x140a7512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a7513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a75123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a7507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a75168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a75175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a7515d
cmp eax, 0x7d00
jae 0x140a7519b
cmp eax, 0x500
jb 0x140a75196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a7507e
cmp eax, 0x7f
ja 0x140a7519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a7507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a751d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a7507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000fef0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000ff00]
mov dword [rax], 1
mov rax, qword [0x14000ff10]
mov dword [rax], 1
mov rax, qword [0x14000fe70]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000fee0]
mov dword [0x14001300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000ffc0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000ffa0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000fe50]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140003690
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140013194]
mov rbx, rcx
test esi, esi
jle 0x1400037c0
mov rax, qword [0x140013198]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400036db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003765
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400036c0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400037e2
mov rax, qword [0x140013198]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140013198]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400037c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000375e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003770
add dword [0x140013194], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140013198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000375e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400036e8
mov rax, qword [0x140013198]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003d70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140013200]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400131e0]
test rbx, rbx
je 0x140003dcc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140003dc3
test eax, eax
jne 0x140003dc3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003da8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003fe0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003ff8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140004000
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret