joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018d70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5fb0], 0
lea rbx, [rcx + 0x5fb8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140018e17
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x140018dca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001b590
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003cc0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5fb0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fc0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140057058]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140018e1f
mov rcx, rbx
call fcn.140003cc0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140019140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140057060]
xor ebp, ebp
cmp byte [rbx + 0x5f08], bpl
jne 0x14001921f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140019218
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003580
mov rsi, rax
test rax, rax
je 0x140019218
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x1400191a4
mov rcx, rax
call fcn.140019370
mov r8, qword [0x140057060]
test r8, r8
je 0x14001920f
movsx rdx, word [r8 + 0x6078]
lea rcx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140019204
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rcx, [r8 + 0x607c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f08], 1
movss xmm0, dword [rbx + 0x5f0c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x1400192ae
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f0c], xmm0
jb 0x1400192ae
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x1400192a1
mov rax, qword [0x140057060]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f0c], ebp
call fcn.1400195d0
lea rdx, [0x1400495e4]
mov rcx, rdi
mov rsi, rax
call fcn.140003490
mov rdi, rax
test rax, rax
je 0x1400192a8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x1400192a8
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f0c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400192d0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140057060]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140019333
mov qword [rsp], rbx
lea rbx, [0x140049ab0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140019313
cmp byte [r8], r9b
jne 0x140019313
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140019300
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f20]
not eax
mov r8, qword [r10 + 0x5f28]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001935f
cmp dword [r8 + 8], eax
je 0x140019366
add r8, 0x48
cmp r8, rcx
jne 0x140019350
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14002e8f0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140056040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140057060]
mov rbp, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002eb0e
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002eb0e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140057060]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14002e9c4
movsx rdx, word [r8 + 0x6078]
lea rax, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14002e9b9
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rax, [rax*8 + 0x607c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6070]
test rdi, rdi
je 0x14002e9e1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14002e9e4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x14002ea27
mov rsi, qword [r8 + 0x90]
jmp 0x14002ea2a
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002ea55
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140057060]
mov rcx, qword [rax + 0x4ae0]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x60], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002eace
inc rbx
cmp rbx, 5
jl 0x14002eab0
jmp 0x14002eafa
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x14002eb10
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140045d10
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x1400466fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140046746
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140046746
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140046746
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140046746
cmp dword [rcx + 0x84], 0xe
jbe 0x140046746
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140046748
xor al, al
add rsp, 0x28
ret
Function at 0x180001a50
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0x98], r14
mov rax, qword [0x180008098]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea rsi, [rsp + 0x20]
mov eax, dword [rsi]
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x180001b75
mov rdi, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
nop dword [rax + rax]
mov eax, dword [rbp + 0x3c]
mov r14d, eax
lea ebx, [rax - 1]
not rbx
and rbx, rsi
lea rsi, [rdi + 0x2000]
sub rbx, rax
cmp rbx, rsi
jb 0x180001b75
mov r8d, 0x30
lea rdx, [rbp + 8]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
je 0x180001b75
add rdi, qword [rbp + 0x20]
test dword [rbp + 0x28], 0x1000
je 0x180001aee
test dword [rbp + 0x2c], 0x100
je 0x180001b29
mov eax, 1
jmp 0x180001b77
mov rax, qword [rbp + 8]
cmp rbx, rax
jb 0x180001b75
cmp rax, rsi
mov r9d, 4
mov r8d, 0x1000
mov rdx, r14
cmovae rsi, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
lea r9, [rbp]
mov r8d, 0x104
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
nop dword [rax + rax]
jmp 0x180001b77
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.1800051b0
mov rbx, qword [rbp + 0x80]
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
mov r14, qword [rbp + 0x98]
lea rsp, [rbp + 0x70]
pop rbp
ret
Function at 0x180001ee0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180008098]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], 0
mov rdi, rcx
mov rcx, qword [rcx]
mov r9d, 0x2001f
and qword [rsp + 0x58], 0
xor r8d, r8d
and qword [rsp + 0x60], 0
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x180002001
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180001f6a
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x180002001
jmp 0x180001f98
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180001ee0
mov ebx, eax
test eax, eax
jne 0x180002001
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x180001f7e
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180001ff4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.180001e04
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180002017
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800051b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002044
Capabilities:
Access peb ldr_data

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, 0x20
mov rdi, rcx
mov r15, r8
add rcx, 0x10
mov r14, rdx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
xor ebx, ebx
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rbx + 0x10]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x1800021fd
or rbp, 0xffffffffffffffff
test r14, r14
jne 0x1800020b3
mov eax, ebx
jmp 0x1800020c0
mov rax, rbp
inc rax
cmp word [r14 + rax*2], bx
jne 0x1800020b6
lea ecx, [rax*2 + 2]
test r15, r15
jne 0x1800020d0
mov ebp, ebx
jmp 0x1800020da
inc rbp
cmp word [r15 + rbp*2], bx
jne 0x1800020d0
mov r12d, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsi], rax
lea eax, [rbp*2 + 2]
mov ecx, eax
mov ebp, eax
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov qword [rsi + 8], rax
cmp qword [rsi], rbx
je 0x1800021c0
test rax, rax
je 0x1800021c0
mov rcx, qword [rsi]
mov r8d, r12d
mov rdx, r14
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 8]
mov r8d, ebp
mov rdx, r15
call sub.msvcrt.dll_memcpy
mov eax, dword [rdi + 8]
mov ecx, dword [rdi + 0xc]
cmp eax, ecx
jne 0x1800021b1
lea eax, [rcx + rcx]
mov rcx, qword [rdi]
movsxd rdx, eax
shl rdx, 3
mov dword [rdi + 0xc], eax
call qword [sym.imp.msvcrt.dll_realloc]
nop dword [rax + rax]
test rax, rax
jne 0x1800021ab
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, dword [rdi + 0xc]
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0xc], eax
jmp 0x1800021fd
mov qword [rdi], rax
mov eax, dword [rdi + 8]
movsxd rcx, eax
mov rax, qword [rdi]
mov qword [rax + rcx*8], rsi
inc dword [rdi + 8]
jmp 0x180002202
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rsi + 8]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ebx, 0x8007000e
lea rcx, [rdi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800025a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp word [rdx], 0
mov r14, rdx
mov rdi, rcx
jne 0x1800025cd
mov rax, rcx
jmp 0x18000266e
movzx eax, word [rcx]
jmp 0x180002663
mov rbx, rdi
mov rsi, r14
test ax, ax
je 0x180002648
cmp word [rsi], 0
je 0x18000268a
movzx ecx, word [rbx]
movzx eax, word [rsi]
cmp ecx, eax
jne 0x180002648
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
sub rax, rsi
mov rcx, rbp
sub rcx, rbx
xor rax, rcx
test rax, 0xfffffffffffffffe
jne 0x180002648
jmp 0x18000263d
add rbx, 2
add rsi, 2
movzx ecx, word [rsi]
movzx eax, word [rbx]
cmp eax, ecx
je 0x180002642
cmp rbx, rbp
jb 0x18000262b
cmp word [rbx], 0
jne 0x1800025e0
cmp word [rsi], 0
je 0x18000268a
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rdi, rax
movzx eax, word [rax]
test ax, ax
jne 0x1800025d5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x18000266e
Function at 0x180002e28
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rbx
mov rbp, rdx
mov qword [r11 - 0x28], rbx
xor r9d, r9d
mov qword [r11 - 0x30], rbx
xor r8d, r8d
mov qword [r11 - 0x38], rbx
xor edx, edx
mov qword [r11 - 0x40], rax
mov rcx, rbp
mov qword [r11 - 0x48], rbx
mov qword [r11 - 0x50], rbx
mov qword [r11 - 0x58], rbx
mov dword [r11 + 8], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x180002f12
lea esi, [rbx + 1]
cmp dword [rsp + 0x80], esi
jne 0x180002f04
mov ecx, 0x2000
mov dword [rsp + 0x90], 0x1000
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x180002f12
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x90]
mov qword [rsp + 0x30], rbx
mov r8, rax
mov qword [rsp + 0x28], rbx
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
jne 0x180002eef
cmp word [rdi], bx
jne 0x180002ef1
mov esi, ebx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov eax, esi
jmp 0x180002f14
cmp dword [rsp + 0x80], ebx
seta bl
mov eax, ebx
jmp 0x180002f14
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1408158f0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140815a77
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 0x140815921
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140815907
add dl, dl
jne 0x14081592e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14081598e
xor eax, eax
add dl, dl
jne 0x14081593d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140815a45
add dl, dl
jne 0x14081594e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14081595b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140815968
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140815975
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140815982
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140815916
mov eax, 1
add dl, dl
jne 0x14081599e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408159ab
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140815993
sub eax, ebx
mov ebx, 1
jne 0x1408159e4
mov ecx, 1
add dl, dl
jne 0x1408159c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408159d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408159bb
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140815916
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140815a00
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140815a0d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408159f5
cmp eax, 0x7d00
jae 0x140815a33
cmp eax, 0x500
jb 0x140815a2e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140815916
cmp eax, 0x7f
ja 0x140815a36
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140815916
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140815a6a
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 0x140815916
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400020f8
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140061120], 0
je 0x14000211b
mov edx, 1
jmp 0x1400022e3
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax + 0x10]
xor eax, eax
mov rbx, qword [rcx + 0x30]
test rbx, rbx
je 0x14000217e
movsxd rdx, dword [rbx + 0x3c]
mov edx, dword [rbx + rdx + 0x88]
test edx, edx
je 0x140002176
lea rax, [rdx + rbx]
mov edx, dword [rax + 0xc]
add rdx, rbx
mov r8d, dword [rdx]
or r8d, 0x20202020
cmp r8d, 0x6c64746e
jne 0x140002176
mov edx, dword [rdx + 4]
or edx, 0x20202020
cmp edx, 0x6c642e6c
je 0x140002181
mov rcx, qword [rcx]
mov rdx, rbx
jmp 0x140002130
mov rbx, rdx
xor edx, edx
test rax, rax
je 0x1400022e3
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x140061128]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x1400021f4
call fcn.140002040
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x140002206
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x140002206
mov r10, rax
jmp 0x1400021b8
mov dword [0x140061120], esi
lea ebp, [rsi - 1]
lea r10, [0x140061128]
test ebp, ebp
je 0x14000226d
lea rdx, [0x140061120]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140002261
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x140002223
dec ebp
jmp 0x140002216
mov eax, dword [0x14006112c]
mov r13d, dword [0x14006113c]
xor edi, edi
lea r15, [0x14005c260]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x140002111
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14000228a
lea rdi, [0x140061120]
test r14d, r14d
je 0x140002111
add rdi, 0x10
cmp esi, ebp
je 0x140002111
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140002068
mov qword [rdi], rax
jmp 0x1400022bf
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400029d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, rcx
mov ecx, 0x800
call sub.msvcrt.dll_malloc
mov r8d, 0x800
mov rcx, rbx
mov rbp, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rcx, rbp
lea rdx, [0x14005d060]
call sub.msvcrt.dll_fopen
mov r12, qword [0x14005d560]
lea rdx, [rsp + 0x38]
mov rdi, rax
movsxd rax, dword [r12]
mov rcx, rdi
mov qword [rsp + 0x38], rax
call sub.msvcrt.dll_fsetpos
movsxd r8, dword [r12 + 4]
mov rcx, r8
mov qword [rsp + 0x28], r8
call sub.msvcrt.dll_malloc
mov r8, qword [rsp + 0x28]
mov r9, rdi
mov edx, 1
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_fread
mov rcx, rdi
mov rsi, rax
call sub.msvcrt.dll_fclose
mov edx, dword [r12 + 4]
movsxd r8, esi
xor r9d, r9d
lea rax, [rbx + r8]
mov ecx, edx
mov rdi, rax
sub ecx, esi
cmp edx, esi
lea rsi, [r12 + r8 + 0x18]
cmovl rcx, r9
lea r8, [r12 + 8]
rep movsb byte [rdi], byte [rsi]
mov rcx, rbx
call fcn.1400017ba
mov rcx, rbp
call sub.msvcrt.dll_free
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_free

Function at 0x140002d70
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.140003bc0
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.140003bc0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]