joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
adc edi, edi
adc ecx, dword [rsi]
or eax, 0x7080dff
call qword [rdi + rcx]
or al, 0xff
or al, 7
add eax, 0xd0e13ff
dec dword [rdi]
or cl, byte [rcx]
or edi, edi
adc byte [rdx], cl
or edi, edi
adc eax, 0x10ff100f
or edi, edi
adc byte [rdx], cl
or edi, edi
adc eax, 0x10ff100f
or cl, byte [rbx]
call qword [rsi]
adc byte [rcx], dl
call qword [rcx]
or ecx, dword [rdi + rdi*8]
adc byte [rdx], cl
or edi, edi
or eax, 0x11ff0807
or bh, bh
adc dword [rbx], ecx
or al, 0xff
or bh, bh
adc dword [rbx], ecx
or al, 0xff
adc al, 0xe
ud0
adc cl, byte [0x14b14f5da]
or bh, bh
adc dword [rbx + rcx], ecx
call qword [rcx]
or al, 0xb
dec dword [rdi]
or cl, byte [rcx]
or edi, edi
invalid
or cl, byte [rcx]
dec dword [rdi]
or cl, byte [rcx]
call qword [rax]
or ecx, dword [rdx]
call qword [rax]
or ecx, dword [rdx]
or bh, bh
or eax, 0xfff0708
or edi, edi
invalid
or bh, bh
or eax, 0xfff0708
or cl, byte [rcx]
call qword [rcx]
or al, 0xb
or edi, edi
adc dword [rbx + rcx], ecx
dec dword [rsi]
or dword [rax], ecx
call qword [rax]
or ecx, dword [rdx]
call qword [rax]
or ecx, dword [rdx]
dec dword [rdi]
or cl, byte [rcx]
call qword [rcx]
adc dword [rbx + rcx], ecx
adc dword [rbx + rcx], ecx
call qword [rax]
or ecx, dword [rdx]
dec dword [rsi]
or dword [rax], ecx
or bh, bh
invalid
or dword [rax], ecx
call qword [rax]
or ecx, dword [rdx]
dec dword [rsi]
or dword [rax], ecx
dec dword [0x15002fe2d]
or cl, byte [rcx]
call qword [rax]
or ecx, dword [rdx]
call qword [rax]
or ecx, dword [rdx]
dec dword [rsi]
or dword [rax], ecx
dec dword [rsi]
or dword [rax], ecx
call qword [rcx]
or al, 0xc
call qword [rax]
or cl, byte [rbx]
dec dword [rdi]
or dword [rdx], ecx
dec dword [rdi]
or dword [rdx], ecx
call qword [rax]
or cl, byte [rbx]
dec dword [rdi]
or dword [rdx], ecx
call qword [rcx]
or ecx, dword [rdi + rdi*8]
adc byte [rbx], cl
or bh, bh
invalid
invalid
Function at 0x1400025cb
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x1400025ec
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.14001cf80

Function at 0x140005489
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.14001d540]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.14001cf80
push r13
push r12
sub rsp, 0x38
cmp qword [0x1400330f0], 0
jne 0x1400054e8
add rsp, 0x38
pop r12
pop r13
jmp 0x140005489
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005415
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400330f0]
test r12, r12
je 0x14000551b
test byte [r12 + 7], 0x40
jne 0x14000551b
mov rcx, r12
call fcn.1400036d2
lea rcx, [0x14001e300]
call fcn.1400180f0
cmp byte [rax], 0
je 0x140005555
mov byte [rax], 0
lea rcx, [0x14001e200]
call fcn.1400180f0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140003c66
add rsp, 0x38
pop r12
pop r13
ret

Function at 0x1400054cc
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.14001d540]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.14001cf80
push r13
push r12
sub rsp, 0x38
cmp qword [0x1400330f0], 0
jne 0x1400054e8
add rsp, 0x38
pop r12
pop r13
jmp 0x140005489
lea r13, [rsp + 0x20]
mov rdx, rcx
mov rcx, r13
call fcn.140005415
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x1400330f0]
test r12, r12
je 0x14000551b
test byte [r12 + 7], 0x40
jne 0x14000551b
mov rcx, r12
call fcn.1400036d2
lea rcx, [0x14001e300]
call fcn.1400180f0
cmp byte [rax], 0
je 0x140005555
mov byte [rax], 0
lea rcx, [0x14001e200]
call fcn.1400180f0
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x38
pop r12
pop r13
jmp fcn.140003c66
add rsp, 0x38
pop r12
pop r13
ret
Function at 0x140005bbd
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
xor r12d, r12d
lea rbp, [0x14001e300]
mov rsi, rcx
mov rbx, rdx
lea rdi, [rsp + 0x20]
lea rcx, [0x1400330c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp r12, rbx
jl 0x140005c41
mov rbx, qword [fcn.14001d540]
mov ecx, 1
call rbx
mov r8d, 1
mov edx, 1
lea rcx, [0x14001f2bb]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbx
mov rcx, rax
call fcn.14001cf80
lea rcx, [0x1400330c0]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test r12, r12
jns 0x140005c5e
lea rdx, [rbx - 1]
mov rcx, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.140004ee3
mov r13, r12
mov ecx, 1
call qword [fcn.14001d540]
shl r13, 4
xor r8d, r8d
mov rdx, rdi
add r13, rsi
mov rcx, rax
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x20], xmm0
call fcn.140005a9b
mov rcx, rbp
call fcn.1400180f0
cmp byte [rax], 0
jne 0x140005cb3
add r12, 1
jno 0x140005beb
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400037ea
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140017190
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14001d540
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14001d540
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140017200
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140033b34]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400173b0
mov rax, qword [0x140033b38]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14001724c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400172d7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140017230
mov rcx, r12
call fcn.140017cb0
mov rbp, rax
test rax, rax
je 0x14001740d
mov rax, qword [0x140033b38]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140017de0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140033b38]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400173f2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400172d0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140017360
add dword [0x140033b34], 1
cmp ebx, 8
jae 0x140017308
test bl, 4
jne 0x1400173c0
test ebx, ebx
je 0x1400172f9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400173e0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400172f9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14001733a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140033b38]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400172d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140017190
xor edi, edi
jmp 0x140017257
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400172f9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400172f9
mov rax, qword [0x140033b38]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140017190
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140017190
nop
nop dword [rax]
Function at 0x140017920
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140033ba0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140033b80]
test rbx, rbx
je 0x140017974
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14001796b
test r12, r12
je 0x14001796b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140017950
lea rcx, [0x140033ba0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140017cb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14002e1b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140017d29
mov rcx, r10
call fcn.140017b80
test eax, eax
je 0x140017d29
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140017d26
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x140017d1d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140017d29
add r8, 0x28
cmp r8, r9
jne 0x140017d08
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140018090
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x140033c20], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x140033c28], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x1400180e0
lea rdx, [0x140017fa0]
mov dword [0x140033c18], eax
call fcn.14001d780
test eax, eax
jne 0x1400180e8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400180d7
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400180f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x14002e120]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x140018130
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x140018198
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1400181b0
mov r13d, dword [0x140033c18]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x140018228
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x140018270
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x140018119
mov rcx, r12
call fcn.140017ff0
mov qword [r13 + rsi*8 + 8], rax
jmp 0x140018119
call fcn.140017ff0
mov qword [r12 + 0x10], rax
jmp 0x140018119
mov r10d, dword [r13]
test r10d, r10d
je 0x1400182d2
mov r9d, dword [0x14001e5f0]
test r9d, r9d
je 0x140018300
lock add dword [0x140033c20], 1
jne 0x140018334
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x1400182e0
mov eax, dword [r13]
test eax, eax
je 0x140018139
mov eax, 0xffffffff
lock xadd dword [0x140033c20], eax
sub eax, 1
js 0x140018139
mov rcx, qword [0x140033c28]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x140018139
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x14001835b
mov qword [rax], rbx
mov ecx, dword [0x140033c18]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x140018177
call rdi
jmp 0x140018177
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x14001835b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sub.msvcrt.dll_memset
jmp 0x140018249
call fcn.140018090
mov dword [0x14001e5f0], 1
mov edx, dword [r13]
test edx, edx
jne 0x1400181cd
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x140018139
mov rax, qword [0x140033c10]
lea rsi, [rax + 1]
mov qword [0x140033c10], rsi
mov qword [r12 + 0x10], rsi
jmp 0x1400181e9
lock add dword [0x14001e5f4], 1
je 0x1400182b7
mov r8d, dword [0x14001e5f0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x14001e5f0]
test r8d, r8d
jne 0x1400182c6
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x140018328
jmp 0x1400182c6
mov rcx, qword [0x140033c28]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400181db
lock sub dword [0x140033c20], 1
jmp 0x1400181db
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x140018380
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x14001838a
mov qword [rcx + 8], r8
test r9, r9
je 0x140018394
cmp qword [rcx], rdx
je 0x140018398
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x140001574
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x1400015e9
mov ecx, 2
mov rax, qword [fcn.14000f2f0]
call rax
mov rcx, rax
mov eax, dword [rbp - 4]
mov r8d, eax
lea rax, str.Error_opening_registry_key:__ld_n
mov rdx, rax
call fcn.140001493
jmp 0x1400016af
mov rax, qword [rbp - 0x10]
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x20]
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140001681
mov ecx, 2
mov rax, qword [fcn.14000f2f0]
call rax
mov rcx, rax
mov eax, dword [rbp - 4]
mov r8d, eax
lea rax, str.Error_querying_registry_key_class:__ld_n
mov rdx, rax
call fcn.140001493
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r8, rdx
mov rdx, rax
lea rax, str._s:__s_n
mov rcx, rax
call fcn.1400014d6
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x70
pop rbp
ret

Function at 0x140001c60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14000f2f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14000f2f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400150a4]
mov rbx, rcx
test esi, esi
jle 0x140001e00
mov rax, qword [0x1400150a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001d1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001da5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001d00
mov rcx, rbx
call fcn.140002740
mov rdi, rax
test rax, rax
je 0x140001e22
mov rax, qword [0x1400150a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002880
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400150a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001db0
add dword [0x1400150a4], 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 [0x1400150a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001c60
nop dword [rax]
xor esi, esi
jmp 0x140001d28
mov rax, qword [0x1400150a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001c60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001c60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400023b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140015100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400150e0]
test rbx, rbx
je 0x14000240c
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 0x140002403
test eax, eax
jne 0x140002403
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400023e8
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 0x140002740
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140011c40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002760
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002768
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002760
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400027b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002760
add rax, 0x28
cmp rax, r9
jne 0x1400027a0
xor eax, eax
ret

Function at 0x1400027c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140011c40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400027df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400027e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400027df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140011c40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000289f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400028a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1ca3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1ca31df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1ca3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1ca306f
add dl, dl
jne 0x1ca3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1ca30f6
xor eax, eax
add dl, dl
jne 0x1ca30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1ca31ad
add dl, dl
jne 0x1ca30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ca30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ca30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ca30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1ca30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1ca307e
mov eax, 1
add dl, dl
jne 0x1ca3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ca3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1ca30fb
sub eax, ebx
mov ebx, 1
jne 0x1ca314c
mov ecx, 1
add dl, dl
jne 0x1ca312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ca313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1ca3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1ca307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1ca3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ca3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1ca315d
cmp eax, 0x7d00
jae 0x1ca319b
cmp eax, 0x500
jb 0x1ca3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1ca307e
cmp eax, 0x7f
ja 0x1ca319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1ca307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1ca31d2
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 0x1ca307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20