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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400fa490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400fa4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400dbd80
jmp 0x14000123c
mov rax, qword [0x1400fa4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400fa4a0]
mov dword [rax], 1
mov rax, qword [0x1400fa4e0]
mov rdx, rax
mov rax, qword [0x1400fa4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400fe024], 1
mov rax, qword [0x1400fa4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400fa4c0]
mov rdx, rax
mov rax, qword [0x1400fa4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400fa4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400fa490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400fa3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400fa3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400db008
mov rax, qword [0x1400fa520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400fa480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400da800
mov eax, dword [0x1400fe004]
lea rdx, [0x1400fe008]
mov ecx, eax
call fcn.14000147c
call fcn.1400da597
mov rax, qword [0x1400fa410]
mov rax, qword [rax]
mov rdx, qword [0x1400fe010]
mov qword [rax], rdx
mov rcx, qword [0x1400fe010]
mov rdx, qword [0x1400fe008]
mov eax, dword [0x1400fe004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x1400fe01c], eax
mov eax, dword [0x1400fe020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400fe01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400fe024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400fe01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400fa440]
mov dword [rax], 1
mov rax, qword [0x1400fa450]
mov dword [rax], 1
mov rax, qword [0x1400fa460]
mov dword [rax], 1
mov rax, qword [0x1400fa400]
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 0x1400da810
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400dbb70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400db4e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400fe168]
test eax, eax
je 0x1400db57a
lea rax, [0x1400fe140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400fe170]
mov qword [rbp - 8], rax
jmp 0x1400db55e
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 0x1400db552
cmp qword [rbp - 0x10], 0
je 0x1400db552
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 0x1400db518
lea rax, [0x1400fe140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400db57b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400db680
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 0x1400db6a8
mov eax, 0
jmp 0x1400db6f6
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 0x1400db6d1
mov eax, 0
jmp 0x1400db6f6
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 0x1400db6f1
mov eax, 0
jmp 0x1400db6f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400db6fc
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 0x1400db77a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400db771
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 0x1400db771
mov rax, qword [rbp - 8]
jmp 0x1400db78f
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 0x1400db744
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001510
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x590
mov rax, qword [0x1400256c0]
xor rax, rsp
mov qword [rsp + 0x580], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 0x130
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x68], 0
lea rax, [rsp + 0x6c]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x1400015ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateToolhelp32Snapshot_Failed_With_Error_:__d__n
call fcn.140001b30
jmp 0x140001725
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x1400015fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Process32First_Failed_With_Error_:__d__n
call fcn.140001b30
jmp 0x140001725
lea rax, [rsp + 0x6c]
test rax, rax
je 0x1400016a6
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], 0
mov edx, 0x208
lea rcx, [rsp + 0x170]
call fcn.140001a50
cmp dword [rsp + 0x30], 0x208
jae 0x1400016a6
jmp 0x140001647
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jae 0x14000166f
mov eax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0x6c]
mov ecx, eax
call fcn.1400062d0
mov ecx, dword [rsp + 0x20]
mov word [rsp + rcx*2 + 0x170], ax
jmp 0x14000163d
mov eax, dword [rsp + 0x20]
shl rax, 1
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp qword [rsp + 0x38], 0x410
jae 0x140001692
jmp 0x140001697
call fcn.140001d1c
xor eax, eax
mov rcx, qword [rsp + 0x38]
mov word [rsp + rcx + 0x170], ax
mov rdx, qword [rsp + 0x5a0]
lea rcx, [rsp + 0x170]
call fcn.1400062fc
test eax, eax
jne 0x14000170e
mov rax, qword [rsp + 0x5a8]
mov ecx, dword [rsp + 0x48]
mov dword [rax], ecx
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, qword [rsp + 0x5b0]
mov qword [rcx], rax
mov rax, qword [rsp + 0x5b0]
cmp qword [rax], 0
jne 0x14000170c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____OpenProcess_Failed_With_Error_:__d__n
call fcn.140001b30
jmp 0x140001725
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400015fa
cmp qword [rsp + 0x28], 0
je 0x140001738
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x5a8]
mov eax, dword [rax]
test rax, rax
je 0x140001755
mov rax, qword [rsp + 0x5b0]
cmp qword [rax], 0
jne 0x140001759
xor eax, eax
jmp 0x14000175e
mov eax, 1
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.140001f40
add rsp, 0x590
pop rdi
ret
Function at 0x140001780
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, 1
add rsp, 0x48
ret
Function at 0x140001830
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x78
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], 0
cmp dword [rsp + 0x80], 2
jge 0x1400018af
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rcx + rax]
lea rcx, str.____Usage_:___s___Process_Name___n
call fcn.140001b90
mov eax, 0xffffffff
jmp 0x140001a46
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rcx + rax]
lea rcx, str._i__Searching_For_Process_Id_Of___s__...
call fcn.140001b90
mov eax, 8
imul rax, rax, 1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + rax]
call fcn.140001510
test eax, eax
jne 0x14000190e
lea rcx, str.____Process_is_Not_Found__n
call fcn.140001b30
mov eax, 0xffffffff
jmp 0x140001a46
mov edx, dword [rsp + 0x40]
lea rcx, str.___Process_found_with_PID___d__...__n
call fcn.140001b30
lea rdx, [0x1400255a0]
lea rcx, str.___Press__Enter__To_Load___s__..._n
call fcn.140001b30
call fcn.14000ab50
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x60], rax
lea rdx, [0x1400255e8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov r8, qword [rsp + 0x48]
lea rdx, str.Beep
lea rcx, str.___Address_Of___s__:_0x_p__n
call fcn.140001b30
lea rcx, str.___Press__Enter__To_Write_Payload_...__n
call fcn.140001b30
call fcn.14000ab50
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x1400251f0]
lea r8, [0x1400251d0]
mov edx, 0x1d0
lea rcx, section..data
call fcn.140001450
mov eax, dword [rsp + 0x44]
mov r9d, eax
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call fcn.140001780
lea rcx, str.___Press__Enter__To_Run_The_Payload_..._n
call fcn.140001b30
call fcn.14000ab50
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140001a33
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___Press__Enter__To_Quit_...__n
call fcn.140001b30
call fcn.14000ab50
xor eax, eax
add rsp, 0x78
ret

Function at 0x140002684
Capabilities:
Parse pe header

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

Function at 0x14000b840
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b63c
Function at 0x140010b5c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140010be3
mov rsi, rbx
cmp word [rax], bp
je 0x140010ba2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140010b8c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140010b88
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000de74
mov rdi, rax
test rax, rax
je 0x140010bd0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140018b10
mov rbp, rdi
xor ecx, ecx
call fcn.14000d240
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140015058
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001506e
mov al, 1
jmp 0x1400150ce
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001507f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400150cc
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001141c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400150cc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400150cc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400150cc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400150ce
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400152cc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140026d90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140015323
cmp word [rdx], r13w
jne 0x140015323
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140015328
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001544d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001546e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140015361
mov rdx, r9
mov word [rbx], cx
jmp 0x140015388
cmp r9, r8
jae 0x140015398
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140015342
jmp 0x14001544d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140015442
cmp dword [rsp + 0x80], esi
je 0x140015442
lea r8, [0x140026d90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001541a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400153ea
mov word [rbx], r13w
jmp 0x14001544a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400153f7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001544a
cmp word [rsp + 0x70], r13w
jne 0x140015427
cmp rbx, r14
je 0x1400153e4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001682c
cmp word [rsp + 0x70], r13w
je 0x14001544d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140026d90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140015447
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001544d
Function at 0x140018360
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018388
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018388
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4140a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41422b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042ff00
xorps xmm15, xmm15
mov r14, qword [0x00585568]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414105
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414114
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414133
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414143
cmp rbx, 0x1000
jae 0x41410b
jmp 0x4141ad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414155
xor edx, edx
jmp 0x4141a4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042ff00
xorps xmm15, xmm15
mov r14, qword [0x00585568]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x414139
jmp 0x414128
call fcn.0045e920
xorps xmm15, xmm15
mov r14, qword [0x00585568]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00434300
lea rax, [0x004a359b]
mov ebx, 0x18
nop dword [rax]
call fcn.00434b80
mov rax, qword [rsp + 0x38]
call fcn.004348c0
lea rax, [0x004a38a2]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00434b80
mov rax, qword [rsp + 0x30]
call fcn.004348c0
call fcn.00434540
call fcn.00434360
lea rax, [0x004a547a]
mov ebx, 0x21
call fcn.00432960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b260
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004140a0
Function at 0x414260
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414486
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042ff80
xorps xmm15, xmm15
mov r14, qword [0x00585568]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4142d3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4142e2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414305
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414315
cmp rbx, 0x1000
jae 0x4142d9
nop
jmp 0x414398
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41432d
xor esi, esi
jmp 0x41438a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042ff80
xorps xmm15, xmm15
mov r14, qword [0x00585568]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x41430b
jmp 0x4142f6
call fcn.0045e920
xorps xmm15, xmm15
mov r14, qword [0x00585568]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414420
nop dword [rax + rax]
call fcn.00434300
lea rax, [0x004a38bb]
mov ebx, 0x19
call fcn.00434b80
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.004348c0
lea rax, [0x004a38a2]
mov ebx, 0x19
call fcn.00434b80
mov eax, dword [rsp + 0x34]
call fcn.004348c0
nop
call fcn.00434540
call fcn.00434360
lea rax, [0x004a0f78]
mov ebx, 0xd
call fcn.00432960
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4143c0
call fcn.00434300
lea rax, [0x004a38bb]
mov ebx, 0x19
call fcn.00434b80
mov rax, qword [rsp + 0x38]
call fcn.004348c0
lea rax, [0x004a38a2]
mov ebx, 0x19
call fcn.00434b80
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.004348c0
call fcn.00434540
call fcn.00434360
lea rax, [0x004a4d9a]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00432960
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b260
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00414260