joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401aec
Capabilities:
Set console window title

Disassembly:
push rbp
sub rsp, 0x270
lea rbp, [rsp + 0x80]
call sym.__main
lea rcx, str.PG3D_Injector_by_Dari
mov rax, qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call rax
lea rax, [rbp + 0xc0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0xc0]
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 0x1e0]
mov edx, 0x5c
mov rcx, rax
call sym.strrchr
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x1d8], 0
je 0x401b6c
mov rax, qword [rbp + 0x1d8]
mov byte [rax], 0
mov rcx, qword [rbp + 0x1e0]
lea rax, [rbp - 0x50]
lea rdx, str.AsteroidPC.dll
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x50]
mov rcx, rax
call dbg.fileExists
test eax, eax
jne 0x401bd6
lea rcx, str.DLL_file_not_found.
call dbg.logError
lea rcx, str.Ensure_that_the_DLL_is_in_the_same_folder_as_the_injector.
call dbg.logInfo
mov ecx, 0xa
call dbg.countdown
mov eax, 1
jmp 0x401d02
lea rcx, str.Checking_if_Pixel_Gun_3D_is_already_running...
call dbg.logInfo
lea rcx, str.Pixel_Gun_3D.exe
call dbg.GetProcessID
mov dword [rbp + 0x1ec], eax
cmp dword [rbp + 0x1ec], 0
jne 0x401c43
lea rcx, str.Pixel_Gun_3D_not_found._Launching_the_game...
call dbg.logWarning
call dbg.launchGame
lea rcx, str.Waiting_for_Pixel_Gun_3D_to_start...
call dbg.logWarning
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rcx, str.Pixel_Gun_3D.exe
call dbg.GetProcessID
mov dword [rbp + 0x1ec], eax
cmp dword [rbp + 0x1ec], 0
je 0x401c0e
lea rcx, str.Pixel_Gun_3D_process_found_
call dbg.logInfo
mov eax, dword [rbp + 0x1ec]
mov r8d, eax
mov edx, 0
mov ecx, 0x1f0fff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0x1d0], rax
cmp qword [rbp + 0x1d0], 0
jne 0x401c99
lea rcx, str.Error_opening_Pixel_Gun_3D_process.
call dbg.logError
mov ecx, 0xa
call dbg.countdown
mov eax, 1
jmp 0x401d02
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0x1d0]
mov rdx, rax
call dbg.injectDLL
test eax, eax
jne 0x401ce0
lea rcx, str.DLL_injection_failed.
call dbg.logError
mov rax, qword [rbp + 0x1d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0xa
call dbg.countdown
mov eax, 1
jmp 0x401d02
mov rax, qword [rbp + 0x1d0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov ecx, 0xa
call dbg.countdown
mov eax, 0
add rsp, 0x270
pop rbp
ret
Function at 0x402230
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4023b8
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40227c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402305
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402260
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4023ed
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4023d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4022fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402360
add dword [0x00408624], 1
cmp edi, 8
jae 0x402333
test dil, 4
jne 0x4023a4
test edi, edi
je 0x402328
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4023bf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402328
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40234c
jmp 0x402328
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4022fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402328
xor esi, esi
jmp 0x402287
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402328
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402b40
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402b94
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402b8b
test rsi, rsi
je 0x402b8b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402b70
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402dd0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402de0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402df0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402e31
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402e28
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402e33
add rax, 0x28
cmp rax, r9
jne 0x402e14
xor eax, eax
ret

Function at 0x402ed0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004056a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402f3d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402f3d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402f3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402f34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402f3f
add rax, 0x28
cmp rax, r9
jne 0x402f20
xor eax, eax
add rsp, 0x28
ret

Function at 0x403040
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004056a0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403060
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403058
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4030bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4030b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4030c4
add rax, 0x28
cmp rax, r9
jne 0x4030a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4030e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004056a0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40314e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40314e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40314e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40314e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x403145
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403155
add rcx, 0x28
cmp rcx, rax
jne 0x403130
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403168
jmp 0x40314e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403176
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40314e
test r9d, r9d
jg 0x403160
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4036a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140002c20
Capabilities:
Enumerate process modules

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x490
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov qword [rsp + 0x38], 0
cmp dword [rsp + 0x4a0], 0
je 0x140002c5e
mov eax, dword [rsp + 0x4a0]
mov dword [rsp + 0x24], eax
jmp 0x140002c6a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x30], eax
xor edx, edx
mov ecx, 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140002d2e
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rsp + 0x40], 0x438
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x140002cc2
mov byte [rsp + 0x20], 1
jmp 0x140002cc7
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
jmp 0x140002cfa
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Module32NextW
test eax, eax
je 0x140002cec
mov byte [rsp + 0x21], 1
jmp 0x140002cf1
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
je 0x140002d23
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x68], eax
jne 0x140002d21
lea rcx, [rsp + 0x270]
call fcn.140001c50
mov qword [rsp + 0x38], rax
jmp 0x140002d23
jmp 0x140002cd2
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x490
pop rdi
ret

Function at 0x1400034f0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [rsp + 0x30], eax
lea r8, [rsp + 0x40]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x50], 1
mov eax, 0xc
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + rax + 0x54], rcx
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0x5c], 2
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x1c
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x88
ret
Function at 0x1400078f0
Capabilities:
Create thread
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x298], rax
mov qword [rsp + 0x30], 0
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x1400079ee
mov dword [rsp + 0x50], 0x238
lea rax, [rsp + 0x54]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400079cf
lea rdx, [0x140044390]
lea rcx, [rsp + 0x7c]
call fcn.1400225e0
test eax, eax
je 0x14000798b
lea rdx, [0x1400443e0]
lea rcx, [rsp + 0x7c]
call fcn.1400225e0
test eax, eax
jne 0x1400079bc
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400079bc
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x1400079cf
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140007961
cmp qword [rsp + 0x30], 0
je 0x1400079e2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400079f0
mov rax, qword [rsp + 0x2b0]
cmp qword [rax + 0x88], 0
je 0x140007a78
mov rax, qword [rsp + 0x2b0]
mov r9, qword [rax + 0x88]
lea r8, [0x140044420]
xor edx, edx
xor ecx, ecx
call fcn.140009310
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
inc eax
cdqe
mov rcx, rax
call fcn.14001b204
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 0x98], rcx
mov rax, qword [rsp + 0x2b0]
mov r8, qword [rax + 0x88]
lea rdx, [0x140044430]
mov rax, qword [rsp + 0x2b0]
mov rcx, qword [rax + 0x98]
call fcn.140009460
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x2b0]
lea r8, [0x1400090f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x2b0]
mov qword [rcx + 0x58], rax
mov rcx, qword [rsp + 0x298]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x2a0
pop rdi
ret
Function at 0x140008d30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x278], rax
xor edx, edx
mov ecx, 6
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140008dd6
mov dword [rsp + 0x30], 0x238
lea rax, [rsp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140008dcb
lea rdx, [0x140044440]
lea rcx, [rsp + 0x5c]
call fcn.1400225e0
test eax, eax
jne 0x140008db8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140008e04
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140008d94
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x290]
mov r8, qword [rax + 0x80]
lea rdx, [0x140044460]
mov rcx, qword [rsp + 0x290]
call fcn.140008320
xor al, al
jmp 0x140008e04
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x280
pop rdi
ret
Function at 0x140013c60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x190
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov dword [rsp + 0x44], 0
mov edx, 0x104
mov rcx, qword [rsp + 0x1a0]
call fcn.140015df0
mov r8, qword [rsp + 0x1a0]
lea rdx, str.Log:resFullName:__s_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov rax, qword [0x1400990b0]
mov rcx, qword [rax + 0x20]
call fcn.140022770
mov qword [rsp + 0x58], rax
mov rcx, qword [0x1400990b0]
mov rcx, qword [rcx]
call fcn.140022770
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x1a0]
call fcn.140022770
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x104
jb 0x140013d28
mov r8d, dword [rsp + 0x40]
lea rdx, str.Log:stack_overrun__length:_ulDestinationSize____d___n
mov rcx, qword [0x1400990b8]
call fcn.140008320
jmp 0x140013d40
mov r8d, dword [rsp + 0x40]
lea rdx, str.Log:ulDestinationSize:__d_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov rax, qword [0x1400990b0]
mov r8, qword [rax]
lea rdx, str.Log:resHandler__ResorceFileName:__s_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov rax, qword [0x1400990b0]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400990b0]
mov r9, qword [rax + 0x20]
mov r8, qword [rsp + 0x1a0]
lea rdx, str._hs_hs_hs
lea rcx, [rsp + 0x70]
call fcn.140009460
lea r8, [rsp + 0x70]
lea rdx, str.Log:Payload_File___hs_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1a0]
call fcn.14001c2b0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140013e6d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov rax, qword [0x1400990b0]
mov r8d, dword [rax + 0x18]
mov rax, qword [0x1400990b0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140013e62
mov rax, qword [0x1400990b0]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x4c], eax
jne 0x140013e62
mov dword [rsp + 0x44], 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x190
pop rdi
ret
Function at 0x140013e90
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0xac], 0x100
xor eax, eax
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov r9, qword [rsp + 0xf8]
mov r8, qword [rsp + 0xf0]
lea rdx, str.Log:Executing__s__s_n
mov rcx, qword [0x1400990b8]
call fcn.140008320
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jge 0x140013f61
mov eax, 0xffffffff
jmp 0x140013f65
mov eax, dword [rsp + 0x60]
add rsp, 0xe0
pop rdi
ret

Function at 0x1400140d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x140097e48]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
mov r9d, 0x40
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
call fcn.140014bd0
movzx eax, al
test eax, eax
je 0x14001421f
movzx eax, word [rsp + 0x50]
cmp eax, 0x5a4d
jne 0x14001421f
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, pe_nt_image_headers64
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x8c]
mov rcx, qword [rsp + 0x1c8]
add rcx, rax
mov rax, rcx
mov r9d, pe_nt_image_headers64
lea r8, [rsp + 0x90]
mov rdx, rax
mov rcx, qword [rsp + 0x1c0]
call fcn.140014bd0
movzx eax, al
test eax, eax
je 0x14001421f
cmp dword [rsp + 0x90], 0x4550
jne 0x14001421f
mov eax, dword [rsp + 0xe4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14001421f
mov eax, dword [rsp + 0x20]
mov ecx, eax
call fcn.14001b204
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x20]
mov r9d, eax
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
call fcn.140014bd0
movzx eax, al
test eax, eax
je 0x140014209
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
jmp 0x14001421f
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.14001b1fc
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14001b810
add rsp, 0x1b0
pop rdi
ret
Function at 0x140014360
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov dword [rsp], 0
mov eax, dword [rsp + 0x30]
and eax, 0x20000000
test eax, eax
je 0x1400143e7
mov eax, dword [rsp + 0x30]
and eax, 0x40000000
test eax, eax
je 0x1400143b8
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x1400143a0
mov dword [rsp + 4], 0x40
jmp 0x1400143a8
mov dword [rsp + 4], 0x20
mov eax, dword [rsp + 4]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x1400143e5
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x1400143cf
mov dword [rsp + 8], 0x80
jmp 0x1400143d7
mov dword [rsp + 8], 0x10
mov eax, dword [rsp + 8]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x140014450
mov eax, dword [rsp + 0x30]
and eax, 0x40000000
test eax, eax
je 0x140014423
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x14001440b
mov dword [rsp + 0xc], 4
jmp 0x140014413
mov dword [rsp + 0xc], 2
mov eax, dword [rsp + 0xc]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
jmp 0x140014450
mov eax, dword [rsp + 0x30]
and eax, 0x80000000
test eax, eax
je 0x14001443a
mov dword [rsp + 0x10], 8
jmp 0x140014442
mov dword [rsp + 0x10], 1
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp]
or ecx, eax
mov eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp + 0x30]
and eax, 0x4000000
test eax, eax
je 0x140014467
mov eax, dword [rsp]
bts eax, 9
mov dword [rsp], eax
mov eax, dword [rsp]
add rsp, 0x28
ret