joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400394a4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140030848
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140030848
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400395f4
cmp rax, 0xffffffffffffffff
je 0x1400395f4
xor edi, edi
test rbp, rbp
jle 0x14003959f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002cde4
mov rbx, rax
test rax, rax
jne 0x14003952c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140039595
mov edx, 0x8000
mov ecx, r14d
call fcn.14002b918
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400312c8
cmp eax, 0xffffffff
je 0x140039575
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003953c
mov edx, r15d
mov ecx, r14d
call fcn.14002b918
jmp 0x140039595
cmp byte [rsi + 0x38], dil
je 0x14003958c
cmp dword [rsi + 0x34], 5
jne 0x14003958c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
cmp byte [rsi + 0x30], dil
je 0x140039595
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002ce5c
jmp 0x140039608
jns 0x140039608
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140030848
cmp rax, 0xffffffffffffffff
jne 0x1400395c0
cmp byte [rsi + 0x30], dil
je 0x140039608
mov edi, dword [rsi + 0x2c]
jmp 0x140039608
mov ecx, r14d
call fcn.14003251c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140039608
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohs
jmp 0x140039608
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140039601
mov eax, dword [rsi + 0x2c]
jmp 0x140039606
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140030848
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14003a8b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003a8d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003a8d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011465
Capabilities:
Terminate process

Disassembly:
jmp 0x14001ea30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001157d
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001f560
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001f580
xor al, al
jmp 0x14001f601
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001f593
xor al, al
jmp 0x14001f601
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001f5bd
xor al, al
jmp 0x14001f601
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001f5d1
xor al, al
jmp 0x14001f601
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001f5e3
xor al, al
jmp 0x14001f601
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001f5ff
xor al, al
jmp 0x14001f601
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4da810
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4db212
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ff108]
test eax, eax
je 0x2fc4db2aa
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ff110]
mov qword [rbp - 8], rax
jmp 0x2fc4db28e
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 0x2fc4db282
cmp qword [rbp - 0x10], 0
je 0x2fc4db282
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 0x2fc4db248
lea rax, [0x2fc4ff0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4db2ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4db3b0
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 0x2fc4db3d8
mov eax, 0
jmp 0x2fc4db426
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 0x2fc4db401
mov eax, 0
jmp 0x2fc4db426
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 0x2fc4db421
mov eax, 0
jmp 0x2fc4db426
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4db42c
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 0x2fc4db4aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4db4a1
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 0x2fc4db4a1
mov rax, qword [rbp - 8]
jmp 0x2fc4db4bf
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 0x2fc4db474
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x4060b0
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov word [rsp + 0x60], 0
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x40], 0
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
lea rdx, [0x0040c7d0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x100
mov r9d, 0x22
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jl 0x40624f
mov rax, qword [rsp + 0x90]
lea rcx, [0x004062c0]
mov qword [rax + 0x70], rcx
mov rax, qword [rsp + 0x90]
lea rcx, [0x00406310]
mov qword [rax + 0x80], rcx
mov rax, qword [rsp + 0x90]
lea rcx, [0x00406360]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x90]
lea rcx, [0x004063b0]
mov qword [rax + 0x88], rcx
mov rax, qword [rsp + 0x90]
lea rcx, [0x00406400]
mov qword [rax + 0xe0], rcx
lea rdx, [0x0040c7a0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jl 0x4061f8
mov dword [rsp + 0x70], 1
jmp 0x406228
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
lea r9, [0x0040c790]
mov r8d, 0x68
lea rdx, [0x0040c780]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x70], 0
cmp dword [rsp + 0x70], 0
je 0x406244
mov rax, qword [rsp + 0x90]
lea rcx, [0x00406260]
mov qword [rax + 0x68], rcx
jmp 0x40624f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [rsp + 0x58]
add rsp, 0x80
pop rdi
ret
Function at 0x406700
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x4068ad
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x40687e
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x5e]
and eax, 0x400
cmp eax, 0x400
jne 0x4067a5
mov ecx, 0xffffffff
call fcn.004068c0
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
mov dword [rax], 0xffffffff
jmp 0x40687c
lea r9, [rsp + 0x30]
mov r8w, 0xa
mov dl, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x406812
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp rax, 0x48
jb 0x406812
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x40], 0
je 0x406812
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x44], 0
je 0x406812
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + 0x40]
call fcn.00404530
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rcx + 0x44]
mov dword [rax], ecx
jmp 0x40687c
lea r9, [rsp + 0x20]
mov r8w, 0xe
mov dl, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x406865
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x10]
and eax, 1
cmp eax, 1
jne 0x406865
mov ecx, 0xffffffff
call fcn.004068c0
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
mov dword [rax], 0xffffffff
jmp 0x40687c
mov rax, qword [rsp + 0x68]
mov qword [rax], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
jmp 0x4068ad
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x4068ad
mov r9, qword [rsp + 0x70]
mov r8w, 3
mov dl, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageDirectoryEntryToData]
mov rcx, qword [rsp + 0x68]
mov qword [rcx], rax
add rsp, 0x58
ret

Function at 0x406dc0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x406e4e
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x406e17
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x406e33
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x406e4e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x406f30
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x406f9a
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x10b
jne 0x406f7e
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x406f9a
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x406fb0
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x40710a
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], 0
jmp 0x40704d
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x2c], eax
jae 0x40710a
mov eax, dword [rsp + 0x2c]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x2c]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov ecx, dword [r8 + rcx + 8]
cmp dword [rdx + rax + 0x10], ecx
jbe 0x40709c
mov eax, dword [rsp + 0x2c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x44], eax
jmp 0x4070b1
mov eax, dword [rsp + 0x2c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 8]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0xc]
cmp dword [rsp + 0x28], eax
jb 0x407105
mov eax, dword [rsp + 0x2c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0xc]
add eax, dword [rsp + 0x40]
cmp dword [rsp + 0x28], eax
jae 0x407105
mov eax, dword [rsp + 0x2c]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x40710a
jmp 0x407043
mov rax, qword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x407490
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x60]
call fcn.00406f30
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x30], 0
je 0x407652
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x407524
mov dword [rsp + 0x44], 6
jmp 0x40752c
mov dword [rsp + 0x44], 1
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov r8d, dword [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x60]
call fcn.00405b10
mov dword [rsp + 0x20], 0
jmp 0x407562
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x407652
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], 0
je 0x40764d
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x28]
mov ecx, dword [r8 + rcx + 8]
cmp dword [rdx + rax + 0x10], ecx
jbe 0x4075c9
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x10]
mov dword [rsp + 0x48], eax
jmp 0x4075de
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 8]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x4075f9
mov dword [rsp + 0x4c], 6
jmp 0x407618
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.00407410
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + rcx + 0xc]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov r8d, dword [rsp + 0x40]
mov rdx, rax
call fcn.00405b10
jmp 0x407558
add rsp, 0x58
ret
Function at 0x408520
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov word [rsp + 0x50], 0
lea rax, [rsp + 0x52]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x38], 0
lea rax, [rsp + 0x3a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x4085a6
mov dword [rsp + 0x60], 1
jmp 0x4085d6
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x0040c8a0]
mov r8d, 0x3ee
lea rdx, [0x0040c870]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x60], 0
cmp dword [rsp + 0x60], 0
je 0x4086ce
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.00407c50
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x408605
mov dword [rsp + 0x64], 1
jmp 0x408635
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x0040c8a0]
mov r8d, 0x3f3
lea rdx, [0x0040c870]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
je 0x408653
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x6c]
dec ax
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x6c], ax
jmp 0x4086c3
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.00407d20
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x408677
mov dword [rsp + 0x68], 1
jmp 0x4086a7
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x0040c8a0]
mov r8d, 0x3fb
lea rdx, [0x0040c870]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x68], 0
cmp dword [rsp + 0x68], 0
je 0x4086c3
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 0x6c]
dec ax
mov rcx, qword [rsp + 0x48]
mov word [rcx + 0x6c], ax
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
add rsp, 0x70
pop rdi
ret
Function at 0x408770
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x50], 0
mov word [rsp + 0x58], 0
lea rax, [rsp + 0x5a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov word [rsp + 0x40], 0
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitAnsiString]
mov r8b, 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x4087ff
mov dword [rsp + 0x68], 1
jmp 0x40882f
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x0040c8c0]
mov r8d, 0x432
lea rdx, [0x0040c870]
lea rcx, [0x0040bf10]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x68], 0
cmp dword [rsp + 0x68], 0
je 0x4088c1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.00407c50
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x408879
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x6c]
inc ax
mov rcx, qword [rsp + 0x50]
mov word [rcx + 0x6c], ax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
jmp 0x4088b6
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.00407d20
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x4088b6
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x6c]
inc ax
mov rcx, qword [rsp + 0x50]
mov word [rcx + 0x6c], ax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov rax, qword [rsp + 0x38]
add rsp, 0x70
pop rdi
ret
Function at 0x4091c0
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x40936d
mov rcx, qword [rsp + 0x60]
call fcn.00409160
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x40936d
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x50]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.0040a880
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov r8, rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call fcn.0040a4e0
mov qword [rsp + 0x20], 0
jmp 0x40928e
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x38]
movzx eax, word [rax + 6]
cmp qword [rsp + 0x20], rax
jae 0x40931d
mov rax, qword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], 0
je 0x409318
mov rax, qword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x10]
mov rcx, qword [rsp + 0x20]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + rcx + 0x14]
mov rdx, qword [rsp + 0x60]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x20]
imul rdx, rdx, 0x28
mov r8, qword [rsp + 0x28]
mov edx, dword [r8 + rdx + 0xc]
mov r8, qword [rsp + 0x40]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x48], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x48]
mov rcx, rax
call fcn.0040a4e0
jmp 0x409281
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call fcn.00407310
mov rcx, qword [rsp + 0x40]
call fcn.00408eb0
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret