joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400459a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400459e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140045a29
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140045a82
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140045a40
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140045ac3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14005446b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14005446c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140045a90
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400468c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004690a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004690a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004690a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004690a
cmp dword [rcx + 0x84], 0xe
jbe 0x14004690a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004690c
xor al, al
add rsp, 0x28
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400af520]
mov dword [rax], 1
mov rax, qword [0x1400af530]
mov dword [rax], 1
mov rax, qword [0x1400af540]
mov dword [rax], 1
mov rax, qword [0x1400af4c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001fe10
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14008aa20
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x14001fed5
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b922
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001feb6
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001fea8
test rsi, rsi
je 0x14009b922
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001fe68
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14001ff04
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001ff20
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x14001ffdd
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b928
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14001ffbe
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x14001ffb0
test rsi, rsi
je 0x14009b928
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x14001ff70
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140049ab0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400c0328]
mov rsi, rcx
test rbx, rbx
je 0x140049b30
mov rax, qword [0x1400af650]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140049b20
mov rdx, qword [0x1400c0568]
test rdx, rdx
je 0x140049c28
mov rcx, rbx
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python311.dll_PyNumber_InPlaceAdd]
jmp 0x140049b01
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.14001fe10
test rax, rax
je 0x140049c48
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b9c8
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x140049bce
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140049bc0
test rbx, rbx
je 0x14009b9c8
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140049b80
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x1f8]
call fcn.140049960
mov rbx, rax
mov qword [0x1400c0328], rbx
jmp 0x140049ad2
lea rcx, [0x1400abbc0]
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov qword [0x1400c0568], rax
mov rdx, rax
jmp 0x140049af2
mov rbx, qword [0x1400c0340]
test rbx, rbx
jne 0x140049c16
cmp byte [0x1400c0562], 0
je 0x140049c86
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c0360]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [0x1400c0340], rax
mov rbx, rax
test rax, rax
je 0x140049c92
add qword [rax], 1
jmp 0x140049c16
mov ecx, 1
call fcn.140020a30
jmp 0x140049c5d
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
Function at 0x14004b3e0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14001fe10
test rax, rax
je 0x14004b538
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b9e6
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14004b496
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14004b488
test rbx, rbx
je 0x14009b9e6
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14004b448
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python311.dll__PyRuntime]
mov rcx, qword [0x1400c0ca0]
mov rsi, qword [rax + 0x1f8]
mov rax, qword [0x1400af650]
mov rbx, qword [rax + 0x1c0]
test rcx, rcx
je 0x14004b588
mov rdx, rbx
call fcn.1400065b0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003d500
sub qword [rbx], 1
jne 0x14004b521
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c0338]
lea rsi, [0x1400c0338]
test bl, bl
je 0x14004b558
mov rax, qword [0x1400c0340]
lea rsi, [0x1400c0340]
test rax, rax
jne 0x14004b521
cmp byte [0x1400c0562], 0
je 0x14004b5b2
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c0360]
call qword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14004b5bc
add qword [rax], 1
jmp 0x14004b521
mov rcx, qword [0x1400c0c18]
mov rdi, qword [rax + 0x1b0]
test rcx, rcx
je 0x14004b5c7
mov rdx, rdi
call fcn.1400065b0
mov qword [0x1400c0ca0], rax
mov rcx, rax
jmp 0x14004b4ee
movzx ecx, bl
call fcn.140020a30
jmp 0x14004b566
call qword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a6f13]
call qword [sym.imp.python311.dll_PyImport_ImportModule]
mov qword [0x1400c0c18], rax
mov rcx, rax
test rax, rax
je 0x14009b9e6
jmp 0x14004b59b
Function at 0x140080df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c0321], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140080e98
lea rdx, [0x1400ab2ea]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140080f00
mov rbx, qword [0x1400c01c0]
jmp 0x140080e35
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140080e30
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140080e87
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.1400701d0
mov r8, rax
cmp rdi, rbx
jne 0x140080e70
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400c01c0], rax
mov ebx, dword [rax]
mov qword [0x1400c01c0], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c01c0], rdx
call fcn.14007ff20
cmp eax, ebx
jne 0x140080f68
mov byte [0x1400c0321], 1
jmp 0x140080e10
cmp byte [0x1400c0320], 0
jne 0x140080e27
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x1400c0ec8], rax
call rbx
mov qword [0x1400c0ec0], rax
call rbx
mov qword [0x1400c0eb8], rax
call rbx
mov qword [0x1400c0eb0], rax
call rbx
mov qword [0x1400c0ea8], rax
call rbx
mov qword [0x1400c0ea0], rax
call rbx
mov qword [0x1400c0e98], rax
call rbx
mov byte [0x1400c0320], 1
mov qword [0x1400c0e90], rax
jmp 0x140080e27
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140089700
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14009ae80
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14009ae80
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14008a3d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c1388]
test eax, eax
je 0x14008a46a
lea rax, [0x1400c1360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c1390]
mov qword [rbp - 8], rax
jmp 0x14008a44e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14008a442
cmp qword [rbp - 0x10], 0
je 0x14008a442
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14008a408
lea rax, [0x1400c1360]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008a46b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008a570
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14008a598
mov eax, 0
jmp 0x14008a5e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14008a5c1
mov eax, 0
jmp 0x14008a5e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14008a5e1
mov eax, 0
jmp 0x14008a5e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008a5ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14008a66a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008a661
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14008a661
mov rax, qword [rbp - 8]
jmp 0x14008a67f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14008a634
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x190
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18007d090]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, r8
mov rdi, rcx
mov qword [rsp + 0x38], r8
mov rbx, qword [rsp + 0x1e0]
mov qword [rsp + 0x40], rbx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180002fad
mov rcx, rsi
call fcn.180005cc0
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x180002fa6
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.18000a260
xor edi, edi
jmp 0x1800030e9
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180002f85
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor edi, edi
test r14, r14
je 0x1800030c8
test eax, eax
je 0x1800030c8
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], rdi
mov byte [rsp + 0x48], dil
mov r8d, eax
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.180009990
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.180032250
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.180006ba0
nop
cmp qword [rsp + 0xf8], rdi
je 0x180003092
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.180007750
lea rcx, [rsp + 0x78]
call fcn.18000a6c0
test rax, rax
jne 0x180003092
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r9, [rsp + 0x70]
add rcx, r9
mov eax, dword [rcx + 0x10]
or eax, 2
mov edx, eax
or edx, 4
cmp qword [rcx + 0x48], rdi
cmovne edx, eax
xor r8d, r8d
call fcn.180002a50
nop
lea rcx, [rsp + 0x118]
call fcn.180006b20
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.1800138b0
nop
lea rcx, [rsp + 0x48]
call fcn.180005cc0
nop
mov rcx, rsi
call fcn.180005cc0
nop
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x1800030e9
inc r8
mov rdx, qword [rbx]
mov rcx, rbx
call fcn.18000a260
mov qword [rbx + 0x18], 7
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rdi
jb 0x1800030ff
mov rbx, qword [rbx]
mov word [rbx], di
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.18002f320
add rsp, 0x190
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180041b9c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180041c0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180041c0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180041c0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180041c0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180041c0b
cmp dword [rcx + 0x84], 0xe
jbe 0x180041c0b
cmp dword [rcx + 0xf8], 0
je 0x180041c0b
mov ecx, ebx
call fcn.180041cbc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180041a98
nop
cmp dword [rbp + 0x20], 0
je 0x180041c59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180041c64
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180041b9c

Function at 0x1800479b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800479c6
mov al, 1
jmp 0x180047a26
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800479d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180047a24
mov ecx, dword [rcx + 0x18]
nop
call fcn.180052e68
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180047a24
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180047a24
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180047a24
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180047a26
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180048fbc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18002fe40
sub rsp, rax
mov rax, qword [0x18007d090]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180044748
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18004900b
mov rax, rbp
jmp 0x180049113
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x80290]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180048bf8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x80290]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18004910f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004910f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180048bf8
test rax, rax
js 0x18004910f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18004910f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180049101
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180049101
cmp byte [rcx], 0xd
jne 0x1800490e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800490f6
cmp byte [rcx + 1], 0xa
jne 0x1800490f6
inc rcx
jmp 0x1800490f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x7db80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800490c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180049113
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18002f320
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret