joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040570
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x2c0
movss xmm1, dword [0x1400a6800]
movss dword [rsp + 0x30], xmm1
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140040607
mov dword [rsp + 0x80], 0x238
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140040607
nop dword [rax]
lea rdx, str.FiveM_b2699_GTAProcess.exe
lea rcx, [rsp + 0xac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140040600
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400405d0
jmp 0x140040607
mov edi, dword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.FiveM_b2699_GTAProcess.exe
mov ecx, edi
call fcn.14003cdd0
mov rsi, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x3c], 0x10c8
mov dword [rsp + 0x40], 0xcf0
mov ecx, 0xc
call fcn.140049b70
mov r14, rax
mov qword [rsp + 0x60], rax
lea rbx, [rax + 0xc]
mov qword [rsp + 0x70], rbx
mov r8d, 0xc
lea rdx, [rsp + 0x38]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x68], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 0
mov ecx, 0xc
call fcn.140049b70
mov qword [rsp + 0x48], rax
lea rdi, [rax + 0xc]
mov qword [rsp + 0x58], rdi
mov r8d, 0xc
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x50], rdi
lea r8, [rsp + 0x48]
lea rdx, [rsi + 0x26684d8]
mov rcx, rbp
call fcn.14003ce70
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r14, r14
je 0x14004072c
sub rbx, r14
and rbx, 0xfffffffffffffffc
cmp rbx, 0x1000
jb 0x140040721
add rbx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x140040744
mov r14, rcx
mov rdx, rbx
mov rcx, r14
call fcn.1400498b8
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140040750
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x2c0
movss xmm1, dword [0x1400a6800]
movss dword [rsp + 0x30], xmm1
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400407e7
mov dword [rsp + 0x80], 0x238
lea rdx, [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400407e7
nop dword [rax]
lea rdx, str.FiveM_GTAProcess.exe
lea rcx, [rsp + 0xac]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400407e0
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400407b0
jmp 0x1400407e7
mov edi, dword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.FiveM_GTAProcess.exe
mov ecx, edi
call fcn.14003cdd0
mov rsi, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
mov dword [rsp + 0x38], 8
mov dword [rsp + 0x3c], 0x10b8
mov dword [rsp + 0x40], 0x14c
mov ecx, 0xc
call fcn.140049b70
mov r14, rax
mov qword [rsp + 0x60], rax
lea rbx, [rax + 0xc]
mov qword [rsp + 0x70], rbx
mov r8d, 0xc
lea rdx, [rsp + 0x38]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x68], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 0
mov ecx, 0xc
call fcn.140049b70
mov qword [rsp + 0x48], rax
lea rdi, [rax + 0xc]
mov qword [rsp + 0x58], rdi
mov r8d, 0xc
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x50], rdi
lea r8, [rsp + 0x48]
lea rdx, [rsi + 0x247f840]
mov rcx, rbp
call fcn.14003ce70
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x30]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r14, r14
je 0x14004090c
sub rbx, r14
and rbx, 0xfffffffffffffffc
cmp rbx, 0x1000
jb 0x140040901
add rbx, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x140040924
mov r14, rcx
mov rdx, rbx
mov rcx, r14
call fcn.1400498b8
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140042000
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2b0
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140042081
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140042081
nop word [rax + rax]
lea rdx, str.FiveM_b2699_GTAProcess.exe
lea rcx, [rsp + 0x9c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14004207d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140042050
jmp 0x140042081
mov edi, dword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.FiveM_b2699_GTAProcess.exe
mov ecx, edi
call fcn.14003cdd0
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
lea rdi, [rbx + 0x26684d8]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x10c8
mov dword [rsp + 0x38], 0xcf4
mov ecx, 0xc
call fcn.140049b70
mov r14, rax
mov qword [rsp + 0x58], rax
lea rbp, [rax + 0xc]
mov qword [rsp + 0x68], rbp
mov r8d, 0xc
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], rbp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
mov ecx, 0xc
call fcn.140049b70
mov qword [rsp + 0x40], rax
lea rbx, [rax + 0xc]
mov qword [rsp + 0x50], rbx
mov r8d, 0xc
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.14003ce70
mov dword [rsp + 0x2d0], 0x447a0000
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x2d0]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r14, r14
je 0x1400421b7
sub rbp, r14
and rbp, 0xfffffffffffffffc
cmp rbp, 0x1000
jb 0x1400421ac
add rbp, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x1400421cf
mov r14, rcx
mov rdx, rbp
mov rcx, r14
call fcn.1400498b8
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400421e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x2b0
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140042261
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140042261
nop word [rax + rax]
lea rdx, str.FiveM_b2699_GTAProcess.exe
lea rcx, [rsp + 0x9c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14004225d
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140042230
jmp 0x140042261
mov edi, dword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.FiveM_b2699_GTAProcess.exe
mov ecx, edi
call fcn.14003cdd0
mov rbx, rax
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
lea rdi, [rbx + 0x26684d8]
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x10c8
mov dword [rsp + 0x38], 0xcf4
mov ecx, 0xc
call fcn.140049b70
mov r14, rax
mov qword [rsp + 0x58], rax
lea rbp, [rax + 0xc]
mov qword [rsp + 0x68], rbp
mov r8d, 0xc
lea rdx, [rsp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x60], rbp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
mov ecx, 0xc
call fcn.140049b70
mov qword [rsp + 0x40], rax
lea rbx, [rax + 0xc]
mov qword [rsp + 0x50], rbx
mov r8d, 0xc
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x48], rbx
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rsi
call fcn.14003ce70
mov dword [rsp + 0x2d0], 0x42c80000
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x2d0]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test r14, r14
je 0x140042397
sub rbp, r14
and rbp, 0xfffffffffffffffc
cmp rbp, 0x1000
jb 0x14004238c
add rbp, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x1400423af
mov r14, rcx
mov rdx, rbp
mov rcx, r14
call fcn.1400498b8
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14004a16c
Capabilities:
Parse pe header

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

Function at 0x14004a768
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14004a7a2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14004a7a7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14004a7f0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14004c820]
cmp byte [rcx + rax], 0
je 0x14004a7f0
dec r8
sub rdx, 1
jne 0x14004a7d6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001844
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 0x10], 0
mov rax, qword [0x1403f26b8]
test rax, rax
je 0x14000187a
mov rax, qword [0x1403f26b8]
mov rcx, rax
call sub.msvcrt.dll_free
mov qword [0x1403f26b8], 0
lea rax, str.HOME
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018b5
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c3729]
mov rcx, rax
call fcn.1400015a4
lea rax, str.LOCALAPPDATA
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400018f0
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c3729]
mov rcx, rax
call fcn.1400015a4
lea rax, str.USERPROFILE
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14000192b
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, str._s_Local_Settings_Application_Data_s
mov rcx, rax
call fcn.1400015a4
lea rax, str.COMMONPROGRAMFILES
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x140001966
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x10]
lea r9, str._.magic_magic.mgc
mov r8, rdx
lea rdx, [0x1402c3729]
mov rcx, rax
call fcn.1400015a4
lea rax, [rbp - 0x10]
mov edx, 0
mov rcx, rax
call fcn.140001683
mov rdx, qword [0x1403f26b0]
lea rax, [rbp - 0x10]
mov rcx, rax
call fcn.140001683
mov rax, qword [rbp - 0x10]
mov qword [0x1403f26b8], rax
mov rax, qword [0x1403f26b8]
add rsp, 0x30
pop rbp
ret

Function at 0x1400019a2
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
cmp qword [rbp + 0x10], 0
je 0x1400019be
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
lea rax, str.MAGIC
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [rbp + 0x10], rax
cmp qword [rbp + 0x10], 0
je 0x1400019de
mov rax, qword [rbp + 0x10]
jmp 0x1400019f2
cmp dword [rbp + 0x18], 0
jne 0x1400019eb
call fcn.140001844
jmp 0x1400019f2
lea rax, str._opt_mxe_usr_x86_64_w64_mingw32.static_share_misc_magic
add rsp, 0x20
pop rbp
ret
Function at 0x14000868c
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov dword [rbp - 4], 0xffffffff
mov edx, 0x30
mov ecx, 1
call sub.msvcrt.dll_calloc
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400086e9
mov edx, 0x30
mov rcx, qword [rbp + 0x20]
call fcn.14000cce0
jmp 0x1400088a3
mov rax, qword [rbp - 0x20]
mov dword [rax + 0x10], 0
mov rax, qword [rbp + 0x28]
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.140008e21
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14000889c
mov rax, qword [rbp - 0x10]
mov edx, 0x8000
mov rcx, rax
call sub.msvcrt.dll__open
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x14000889f
lea rdx, [rbp - 0x60]
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__fstat64]
call rax
cmp eax, 0xffffffff
jne 0x140008777
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov rdx, qword [rbp - 0x10]
mov r9, rdx
lea r8, [0x1402c5137]
mov edx, eax
mov rcx, qword [rbp + 0x20]
call fcn.14000cc45
jmp 0x1400088a3
mov rax, qword [rbp - 0x48]
cmp rax, 7
jle 0x14000878f
mov rbx, qword [rbp - 0x48]
call fcn.14000276b
cmp rbx, rax
jle 0x1400087cf
mov rax, qword [rbp - 0x48]
cmp rax, 7
jg 0x1400087a2
lea rax, str.small
jmp 0x1400087a9
lea rax, str.large
mov rdx, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9, rdx
lea r8, str.file___s_is_too__s
mov edx, 0
mov rcx, qword [rbp + 0x20]
call fcn.14000cc45
jmp 0x1400088a3
mov rax, qword [rbp - 0x48]
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x20]
mov dword [rax + 0x10], 1
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x20]
mov rax, qword [rax]
test rax, rax
jne 0x140008825
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.14000cce0
jmp 0x1400088a3
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
mov ecx, eax
mov rax, qword [rbp - 0x20]
mov rdx, qword [rax]
mov eax, dword [rbp - 4]
mov r8d, ecx
mov ecx, eax
call sub.msvcrt.dll__read_1
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 8]
cmp rdx, rax
je 0x14000885e
mov rcx, qword [rbp + 0x20]
call fcn.14000cd4b
jmp 0x1400088a3
mov eax, dword [rbp - 4]
mov ecx, eax
call sub.msvcrt.dll__close
mov dword [rbp - 4], 0xffffffff
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x20]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call fcn.1400088d9
test eax, eax
jne 0x1400088a2
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x20]
jmp 0x1400088cf
nop
jmp 0x1400088a3
nop
jmp 0x1400088a3
nop
cmp dword [rbp - 4], 0xffffffff
je 0x1400088b3
mov eax, dword [rbp - 4]
mov ecx, eax
call sub.msvcrt.dll__close
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.140002f0c
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x18]
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x140031730
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140031842
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14003181a
add rax, 1
cmp rax, 0x6b
je 0x140031837
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140031810
cmp edx, 0x6a
je 0x140031837
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14003182b

Function at 0x140031be0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1403f49c0]
mov rcx, rsi
call fcn.1400314a0
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.140030000
mov ebx, dword [0x1403f49c0]
test ebx, ebx
jne 0x140031c50
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140279218], eax
cmp eax, 0xffffffff
je 0x14022e7b6
mov dword [0x1403f49c0], 1
mov rcx, r13
call fcn.140030320
test r12, r12
je 0x140031c82
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.140031860
cmp ebx, 1
je 0x140031c31
mov ecx, 2
call qword [fcn.1400440e0]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rcx, r13
call fcn.140030320
test r12, r12
jne 0x140031c3e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop
Function at 0x140034be0
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.1400440e0
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.1400440e0
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 0x140034c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1403fd6f4]
mov r12, rcx
test ebx, ebx
jle 0x140034d80
mov rax, qword [0x1403fd6f8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140034c9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140034d25
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140034c80
mov rcx, r12
call fcn.1400356d0
mov rsi, rax
test rax, rax
je 0x140034da2
mov rax, qword [0x1403fd6f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140035800
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403fd6f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140034d87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140034d1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140034d30
add dword [0x1403fd6f4], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x1403fd6f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140034d1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140034be0
nop dword [rax]
xor ebx, ebx
jmp 0x140034ca8
mov rax, qword [0x1403fd6f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140034be0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140034be0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140035320
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x1403fd760]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403fd740]
test rbx, rbx
je 0x14003537c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140035373
test r12, r12
je 0x140035373
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140035358
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400356d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1403e7240]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400356f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400356f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400356f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140035745
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14003573c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400356f0
add rax, 0x28
cmp rax, r9
jne 0x140035728
xor eax, eax
ret

Function at 0x140035750
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403e7240]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140035770
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140035778
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140035770
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140035800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403e7240]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140035820
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140035828
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret