joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b33b0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x1400b33d9
mov rcx, qword [rsi]
jmp 0x1400b33e2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400b342b
mov dil, 1
test bl, bl
je 0x1400b3414
cmp byte [rsi + 8], 1
je 0x1400b3400
mov rcx, qword [rsi]
jmp 0x1400b3409
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140067af0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x1400b3442
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400b3445
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400b3458
xor edi, edi
jmp 0x1400b3414
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x1400b3471
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400b3474
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400b3414
Function at 0x1400b3490
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1400e1248]
mov al, byte [rax + 0xa]
test al, al
jne 0x1400b373d
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x1400d7a90]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.14002b370
cmp byte [r15 + 0x17], 0
js 0x1400b35c1
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.14004d3d0
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.1400b64f0
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x1400b35e3
lea rax, [rsp + 0x110]
jmp 0x1400b35eb
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140046d40
jmp 0x1400b3542
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x1400b3605
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400b369b
test bl, bl
je 0x1400b3693
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x9e
call fcn.14004d0f0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140051140
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.1400511c0
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.140024390
cmp byte [rsp + 0x107], 0
jns 0x1400b36bd
mov rcx, qword [rsp + 0xf0]
call fcn.1400666f4
cmp byte [rsp + 0x127], 0
jns 0x1400b36d4
mov rcx, qword [rsp + 0x110]
call fcn.1400666f4
mov qword [rsp + 0x40], 0xa
mov rax, qword [0x1400e1248]
mov al, byte [rax + 0xa]
test al, al
jne 0x1400b3719
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.140067af0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.1400437e0
jmp 0x1400b36eb
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.1400437e0
jmp 0x1400b34e3
Function at 0x1400b4490
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401087e0], 0
je 0x1400b44d6
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.140067af0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1401087e8]
test rdi, rdi
je 0x1400b4577
test byte [0x1400f9578], 1
je 0x1400b44b9
cmp byte [rdi + 0x17], 0
jns 0x1400b44f8
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401087e0], rax
inc rax
cmp rax, 1
ja 0x1400b44b9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140098ea0
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400b463b
xor esi, esi
jmp 0x1400b44b9
mov ecx, 0x18
call fcn.1400666b8
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140098ea0
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400d7a90]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.140043560
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1400b45e1
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
jne 0x1400b4607
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140046e40
mov qword [0x1401087e8], rdi
jmp 0x1400b44e6
add rax, rax
test rax, rax
je 0x1400b45e6
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400b460a
cmp rdx, 0xfffffffffffffffe
je 0x1400b45e6
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.140044370
jmp 0x1400b45e6
mov rcx, qword [0x1401087e8]
lea rdx, [rsp + 0x40]
call fcn.1400235c0
mov rcx, qword [0x1401087e8]
call fcn.1400b0eb0
cmp word [rax], 0x5c
je 0x1400b4677
mov rcx, qword [0x1401087e8]
lea rdx, [0x1400d9d6e]
mov r8d, 1
call fcn.140046e40
mov rcx, qword [0x1401087e8]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140046e40
mov rcx, qword [0x1401087e8]
cmp byte [rcx + 0x17], 0
jns 0x1400b46a0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401087e0], rax
inc rax
cmp rax, 1
ja 0x1400b44b9
mov qword [0x1401087e0], 0
jmp 0x1400b4570
Function at 0x1400c7570
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400c7583
cmp dword [0x14010ed90], ecx
jle 0x1400c758a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400c75d0
test edi, edi
je 0x1400c7583
cmp byte [rsi + rdi - 1], 0xa
je 0x1400c7583
lea rcx, str._nl_
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400c75d0

Function at 0x1400c75d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400f7040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400c7647
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x1400c7647
add rdi, rax
test ecx, ecx
jne 0x1400c760d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140067af0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000e960
Capabilities:
Query or enumerate registry value

Disassembly:
cmp rdx, 0x1000
jb 0x14000eaa1
push rbx
sub rsp, 0x40
movabs rax, 0xffff800000000000
mov rbx, rdx
test rax, rdx
jne 0x14000ea9c
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rdx], rdi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x14000ea97
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.Interface
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ea8c
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ea81
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ea76
cmp dword [rsp + 0x60], 1
jne 0x14000ea76
mov edx, dword [rsp + 0x58]
xor ecx, ecx
inc edx
shr edx, 1
inc edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rbx], rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000ea76
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x140001000
Capabilities:
Check os version
Parse pe header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0xa0
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
test rax, rax
je 0x140001176
cmp dword [rax + 0x118], 0xa
jne 0x140001176
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 0x20]
mov eax, 0x5a4d
mov rdi, qword [rcx]
mov rcx, qword [rdi + 0x20]
cmp word [rcx], ax
jne 0x140001176
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140001176
mov ebx, dword [rax + rcx + 0x88]
add rbx, rcx
je 0x140001176
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov rdx, rbx
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x18], rax
movabs rax, 0xf5bd373480a6b89b
mov qword [r11 - 0x80], rax
movups xmmword [r11 - 0x28], xmm0
call fcn.140001190
test eax, eax
je 0x140001176
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x50]
movabs rax, 0x64dc7db288c5015f
mov rdx, rbx
mov qword [rsp + 0x58], rax
call fcn.140001190
test eax, eax
je 0x140001176
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x68]
movabs rax, 0x68a3c2ba486f0741
mov rdx, rbx
mov qword [rsp + 0x70], rax
call fcn.140001190
test eax, eax
je 0x140001176
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x38]
movabs rax, 0x858bcb1046fb6a37
mov rdx, rbx
mov qword [rsp + 0x40], rax
call fcn.140001190
test eax, eax
je 0x140001176
mov rcx, qword [rdi + 0x20]
lea r8, [rsp + 0x80]
movabs rax, 0xc6a2fa174e551bcb
mov rdx, rbx
mov qword [rsp + 0x88], rax
call fcn.140001190
test eax, eax
je 0x140001176
lea rcx, [rsp + 0x20]
call fcn.140001410
xor eax, eax
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
mov rbx, qword [rsp + 0xb0]
mov eax, 1
add rsp, 0xa0
pop rdi
ret

Function at 0x140001f98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001fe2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001fe2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001fe2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001fe2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001fe2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fe4
xor al, al
add rsp, 0x28
ret
Function at 0x140001030
Capabilities:
Enumerate processes
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
nop dword [rax]
nop dword [rax + rax]
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
lea ebx, [rdi + 0x64]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x140001148
nop
lea rdx, str.aow_exe.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400010c4
mov eax, dword [rsp + 0x3c]
cmp eax, ebx
jle 0x1400010c4
mov edi, dword [rsp + 0x28]
mov ebx, eax
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400010a0
test edi, edi
je 0x140001148
jle 0x140001060
lea rcx, str.color_A
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._True_Game_Process_is_
call fcn.140001200
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, section..text
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x140001020]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rcx, [0x14000338c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140001060
lea rcx, str.color_4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str._No_Process_Found_Run_Game_First
call fcn.140001200
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x14000338c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140001060
Function at 0x2d65a1990
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x2d65a1a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2d65a7064]
mov rbx, rcx
test esi, esi
jle 0x2d65a1b30
mov rax, qword [0x2d65a7068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2d65a1a4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2d65a1ad5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2d65a1a30
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2d65a1b52
mov rax, qword [0x2d65a7068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2d65a7068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2d65a1b37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2d65a1ace
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2d65a1ae0
add dword [0x2d65a7064], 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 [0x2d65a7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2d65a1ace
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x2d65a1a58
mov rax, qword [0x2d65a7068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2d65a1ed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2d65a70a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2d65a7080]
test rbx, rbx
je 0x2d65a1f2c
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 0x2d65a1f23
test eax, eax
jne 0x2d65a1f23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2d65a1f08
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 0x2d65a2140
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2d65a2158
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2d65a2160
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x2d65a2170
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x2d65a21bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x2d65a21b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2d65a21bf
add rax, 0x28
cmp rax, r9
jne 0x2d65a21a0
xor eax, eax
ret

Function at 0x2d65a21c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2d65a2250
mov rdx, qword [0x2d65a4200]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2d65a223e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2d65a223e
cmp word [rax + 0x18], 0x20b
jne 0x2d65a223e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2d65a2250
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2d65a2229
add rbx, 0x28
cmp rbx, rdi
je 0x2d65a2250
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2d65a2220
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x2d65a2260
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2d65a22e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d65a4200]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2d65a22ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2d65a2308
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2d65a22ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x2d65a2320
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2d65a4200]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2d65a2340
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2d65a2348
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2d65a2340
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2d65a2390
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2d65a2387
test rcx, rcx
je 0x2d65a2340
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x2d65a2378
xor eax, eax
ret

Function at 0x2d65a23a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d65a4200]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2d65a23bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2d65a23c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x2d65a23e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2d65a4200]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2d65a2400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2d65a2408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2d65a2400
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2d65a2400
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x2d65a2454
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2d65a2460
add rdx, 0x28
cmp rdx, r9
jne 0x2d65a2440
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x2d65a2470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x2d65a4200]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2d65a2492
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2d65a24a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2d65a2492
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2d65a2492
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2d65a2492
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x2d65a24f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2d65a2508
add rdx, 0x28
cmp r10, rdx
jne 0x2d65a24e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2d65a2517
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2d65a2527
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2d65a24fe
test ecx, ecx
jg 0x2d65a2510
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret