joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000da20
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x18002b318]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, [rbp - 0x59]
xor edx, edx
mov r8d, 0xa0
call fcn.1800117a0
mov eax, 0x12
lea rcx, str.00000409
lea edx, [rax + 0x6e]
mov dword [rbp - 0x59], 1
mov word [rbp - 0x51], ax
mov dword [rbp - 0x31], 1
call qword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov rdi, rax
test rax, rax
je 0x18000db09
mov ecx, 0x64
mov rdx, rax
mov qword [rsp + 0xe0], rbx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
mov r8d, 0x28
lea rdx, [rbp - 0x59]
movups xmm1, xmmword [rbp - 0x21]
mov word [rbp - 0x29], ax
lea ecx, [r8 - 0x24]
movaps xmmword [rbp + 7], xmm1
movaps xmm1, xmmword [rbp - 0x49]
movups xmm0, xmmword [rbp - 0x31]
movups xmmword [rbp + 0x2f], xmm1
movaps xmmword [rbp - 9], xmm0
mov dword [rbp + 3], 2
movsd xmm0, qword [rbp - 0x11]
movsd qword [rbp + 0x17], xmm0
movaps xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp + 0x1f], xmm0
movsd xmm0, qword [rbp - 0x39]
mov dword [rbp + 0x2b], 2
movsd qword [rbp + 0x3f], xmm0
call qword [sym.imp.USER32.dll_SendInput]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.USER32.dll_UnloadKeyboardLayout]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800105e0
mov rdi, qword [rsp + 0xe8]
add rsp, 0xd0
pop rbp
ret

Function at 0x18000f850
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x18002cbc0]
test rcx, rcx
jne 0x18000f7a7
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x18000f7a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18000f7d2
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x18000f79c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x18002cbc0], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x18000f845
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18000f7f5
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x18002cbc0]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x18000f822
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x18000f845
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x18002cbc0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x18000f829
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x18000f72c
Function at 0x18001401f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18002b318]
jne 0x1800105fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1800105f6
repz ret
ror rcx, 0x10
jmp 0x180013f78
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18002cea0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18002cf98]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180013ffd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18002cea0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001401f
mov rax, qword [rsp + 0x88]
mov qword [0x18002cf98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18002cf38], rax
mov rax, qword [0x18002cf98]
mov qword [0x18002ce10], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18002cf20], rax
mov dword [0x18002ce00], 0xc0000409
mov dword [0x18002ce04], 1
mov rax, qword [0x18002b318]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18002b320]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18002ce98], eax
mov ecx, 1
call fcn.18001c80c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180022190]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18002ce98], 0
jne 0x1800140a6
mov ecx, 1
call fcn.18001c80c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18001c9a4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18002b318]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180014c5c
xor ebx, ebx
cmp qword [0x18002de40], rbx
mov rdi, rax
jne 0x18001cab7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18001cb8e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001cb8e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18002de40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18002de48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18002de50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18002de60], rax
test rax, rax
je 0x18001caae
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18002de58], rax
jmp 0x18001cabe
mov rax, qword [0x18002de58]
jmp 0x18001cac5
mov rax, qword [0x18002de58]
mov r11, qword [0x18002de60]
cmp rax, rdi
je 0x18001cb2c
cmp r11, rdi
je 0x18001cb2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18002de60]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18001cb2c
test rax, rax
je 0x18001cb2c
call rsi
test rax, rax
je 0x18001cb26
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18001cb26
test byte [rsp + 0x40], 1
jne 0x18001cb2c
bts ebp, 0x15
jmp 0x18001cb6c
mov rcx, qword [0x18002de48]
cmp rcx, rdi
je 0x18001cb6c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001cb6c
call rax
mov rbx, rax
test rax, rax
je 0x18001cb6c
mov rcx, qword [0x18002de50]
cmp rcx, rdi
je 0x18001cb6c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001cb6c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18002de40]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18001cb8e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18001cb90
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800105e0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001470
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov r10d, dword [0x140005004]
test r10d, r10d
je 0x14000155b
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov rax, qword [rax + 0x30]
movsxd rcx, dword [rax + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
mov edx, dword [rax + rcx + 0x18]
lea r8, [rax + 2]
lea r9, [0x140005004]
jmp 0x1400014cd
xor r10d, r10d
sub rdx, 1
jb 0x14000155b
test r10d, r10d
je 0x1400014c0
mov r11d, dword [rax + rcx + 0x20]
add r11, rax
mov esi, dword [r11 + rdx*4]
add rsi, r8
mov edi, r10d
mov r11, r9
nop word [rax + rax]
mov r14d, 0x811c9dc5
mov rbx, rsi
nop dword [rax]
mov ebp, r14d
movsx r15d, byte [rbx]
inc rbx
xor r14d, r15d
imul r14d, r14d, 0x1000193
test r15d, r15d
jne 0x140001500
cmp ebp, edi
je 0x140001530
mov edi, dword [r11 + 4]
add r11, 4
test edi, edi
jne 0x1400014f0
jmp 0x1400014c3
mov r10d, dword [rax + rcx + 0x1c]
mov esi, dword [rax + rcx + 0x24]
add r10, rax
add rsi, rax
movzx esi, word [rsi + rdx*2]
mov r10d, dword [r10 + rsi*4]
mov r10d, dword [rax + r10 + 4]
mov dword [r11], r10d
mov r10d, dword [0x140005004]
jmp 0x1400014c3
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140001700
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001798
call fcn.140001a40
cmp byte [rax + 2], 0
jne 0x140001798
test byte [rax + 0xbc], 0x70
jne 0x140001798
call fcn.140002000
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x140006508]
mov edx, dword [rax]
mov rax, qword [0x140006510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x140006500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.1400029f0
nop
add rsp, 0x20
pop rbp
jmp 0x140001700
Function at 0x1400017a0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x140001798
call fcn.140001a40
cmp byte [rax + 2], 0
jne 0x140001798
test byte [rax + 0xbc], 0x70
jne 0x140001798
call fcn.140002000
call fcn.140001470
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x140006508]
mov edx, dword [rax]
mov rax, qword [0x140006510]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x140006500]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.140001580
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.1400029f0
nop
add rsp, 0x20
pop rbp
jmp 0x140001700

Function at 0x140001a50
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x140002550
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400025ba
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400025ba
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [rdi + r13 + 6]
test ax, ax
je 0x14000265d
movsxd rcx, dword [rdi + 0x3c]
lea rbp, [rcx + rdi]
add rbp, 0x110
xor ebx, ebx
jmp 0x1400025f5
movzx eax, word [rdi + r13 + 6]
inc rbx
movzx ecx, ax
add rbp, 0x28
cmp rbx, rcx
jae 0x14000265d
cmp dword [rbp + 0x1c], 0
js 0x1400025e6
mov r14d, dword [rbp]
mov r15d, dword [rbp + 4]
lea r12, [rdi + r15]
add r15, rsi
mov rcx, r12
mov rdx, r15
mov r8, r14
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400025e0
mov rcx, r15
mov rdx, r14
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400025e0
mov rcx, r15
mov rdx, r12
mov r8, r14
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, r15
mov rdx, r14
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1400025e0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400026e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x1400028b4
mov r14, rdx
mov rbx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov r15d, dword [rcx + rbx + 0x88]
mov r13d, dword [r15 + rbx + 0x1c]
add r13, rbx
mov rax, rdx
shr rax, 0x10
test ax, ax
je 0x140002774
mov ebp, dword [rbx + r15 + 0x18]
test ebp, ebp
je 0x1400028b4
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r8
mov r12d, dword [rbx + r15 + 0x20]
mov esi, dword [rbx + r15 + 0x24]
add r12, rbx
add rsi, rbx
xor edi, edi
nop dword [rax + rax]
mov ecx, dword [r12]
add rcx, rbx
mov rdx, r14
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x14000278a
add r12, 4
add rsi, 2
dec ebp
jne 0x140002750
jmp 0x1400028bb
movzx eax, r14w
mov ecx, dword [rbx + r15 + 0x10]
sub rax, rcx
mov edi, dword [r13 + rax*4]
jmp 0x1400028b8
movzx eax, word [rsi]
mov edi, dword [r13 + rax*4]
cmp r15d, edi
ja 0x1400028b8
mov rax, qword [rsp + 0x38]
add r15d, dword [rbx + rax + 0x8c]
cmp edi, r15d
jae 0x1400028b8
add rdi, rbx
mov rcx, rdi
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov rbx, rax
inc rbx
mov rsi, rbx
sub rsi, rdi
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400028b4
mov r14, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, rdi
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov dword [r14 + rsi*2], 0x6c0064
mov word [r14 + rsi*2 + 4], 0x6c
lea rdx, [0x140006002]
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x140002842
lea rdx, str.ext_
mov r8d, 4
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x140002890
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, r14
call fcn.140001a70
test rax, rax
je 0x140002890
mov rsi, rax
mov rcx, r14
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x1400028b4
mov r14, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, rbx
mov r8, r14
call fcn.1400026e0
mov rdi, rax
mov rcx, r14
call sub.msvcrt.dll_free
jmp 0x1400028bb
xor edi, edi
jmp 0x1400028bb
add rdi, rbx
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002c00
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.140003a70
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.140003a70
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 0x140002c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002da0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002cbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002d45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ca0
mov rcx, rbx
call fcn.1400036e0
mov rdi, rax
test rax, rax
je 0x140002dc2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003820
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002da7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140002d3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002d50
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002d3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002c00
nop dword [rax]
xor esi, esi
jmp 0x140002cc8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002c00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002c00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400033ac
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 0x1400033a3
test eax, eax
jne 0x1400033a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003388
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 0x1400036e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000375d
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 0x140003754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003700
add rax, 0x28
cmp rax, r9
jne 0x140003740
xor eax, eax
ret

Function at 0x140003760
Capabilities:
Parse pe header

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

Function at 0x140003820
Capabilities:
Parse pe header

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

Disassembly:
call fcn.624441df
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 0x62444089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x6244406f
add dl, dl
jne 0x62444096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x624440f6
xor eax, eax
add dl, dl
jne 0x624440a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x624441ad
add dl, dl
jne 0x624440b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x624440c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x624440d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x624440dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x624440ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x6244407e
mov eax, 1
add dl, dl
jne 0x62444106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x62444113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x624440fb
sub eax, ebx
mov ebx, 1
jne 0x6244414c
mov ecx, 1
add dl, dl
jne 0x6244412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x6244413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x62444123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6244407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x62444168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x62444175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x6244415d
cmp eax, 0x7d00
jae 0x6244419b
cmp eax, 0x500
jb 0x62444196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6244407e
cmp eax, 0x7f
ja 0x6244419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x6244407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x624441d2
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 0x6244407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x403e80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x0042c098], 0
je 0x403f3b
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.00408bf0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x00427088]
call fcn.00408bf0
mov rcx, rsi
mov rdx, qword [0x00427088]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.00408bf0
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x403f50
xor rcx, rcx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret