joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2c55114dd
Capabilities:
Create thread

Disassembly:
push rbp
mov eax, 0x2c8d0
call fcn.2c5512410
sub rsp, rax
lea rbp, [rsp + 0x80]
movabs rax, 0x5d79f5a6c813a131
movabs rdx, 0xf55df0b61c88a28d
mov qword [rbp + 0x2c820], rax
mov qword [rbp + 0x2c828], rdx
lea rax, [rbp - 0x40]
lea rdx, section..rdata
mov ecx, 0x2c860
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x2c84c], 0x2c860
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x2c860
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x2c840], rax
cmp qword [rbp + 0x2c840], 0
jne 0x2c5511574
mov eax, 0xffffffff
jmp 0x2c5511656
lea rcx, [rbp + 0x2c820]
mov edx, dword [rbp + 0x2c84c]
lea rax, [rbp - 0x40]
mov r9d, 0x10
mov r8, rcx
mov rcx, rax
call sym.DestroyingAE_char__unsigned_long__char__unsigned_long_
lea rdx, [rbp - 0x40]
mov rax, qword [rbp + 0x2c840]
mov r8d, 0x2c860
mov rcx, rax
call sym.memmove
lea rdx, [rbp - 0x44]
mov rax, qword [rbp + 0x2c840]
mov r9, rdx
mov r8d, 0x20
mov edx, 0x2c860
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
sete al
test al, al
je 0x2c55115e4
mov eax, 0xfffffffe
jmp 0x2c5511656
mov rax, qword [rbp + 0x2c840]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x2c838], rax
cmp qword [rbp + 0x2c838], 0
jne 0x2c5511630
mov eax, 0xfffffffd
jmp 0x2c5511656
mov rax, qword [rbp + 0x2c838]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0x2c840]
call rax
mov eax, 0
add rsp, 0x2c8d0
pop rbp
ret

Function at 0x2c5511850
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 0x2c55118c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2c5543064]
mov rbx, rcx
test esi, esi
jle 0x2c55119f0
mov rax, qword [0x2c5543068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2c551190b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2c5511995
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2c55118f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x2c5511a12
mov rax, qword [0x2c5543068]
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 [0x2c5543068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c55119f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2c551198e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2c55119a0
add dword [0x2c5543064], 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 [0x2c5543068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c551198e
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 0x2c5511918
mov rax, qword [0x2c5543068]
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 0x2c5511d90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2c55430a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c5543080]
test rbx, rbx
je 0x2c5511dec
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 0x2c5511de3
test eax, eax
jne 0x2c5511de3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c5511dc8
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 0x2c5512000
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x2c5512018
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x2c5512020
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x2c5512030
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 0x2c551207d
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 0x2c5512074
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x2c551207f
add rax, 0x28
cmp rax, r9
jne 0x2c5512060
xor eax, eax
ret

Function at 0x2c5512080
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x2c5512110
mov rdx, qword [0x2c5540a70]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x2c55120fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x2c55120fe
cmp word [rax + 0x18], 0x20b
jne 0x2c55120fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x2c5512110
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x2c55120e9
add rbx, 0x28
cmp rbx, rdi
je 0x2c5512110
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x2c55120e0
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 0x2c5512120
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x2c55121a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2c5540a70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2c55121bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2c55121c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2c55121bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2c55121e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x2c5540a70]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x2c5512200
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x2c5512208
ret
cmp word [rdx + 0x18], 0x20b
jne 0x2c5512200
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x2c5512250
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x2c5512247
test rcx, rcx
je 0x2c5512200
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x2c5512238
xor eax, eax
ret
Function at 0x2c5512260
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x2c5540a70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2c55122c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2c55122c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2c55122c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x2c55122c0
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 0x2c5512314
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x2c5512320
add rdx, 0x28
cmp rdx, r9
jne 0x2c5512300
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x2c5540a70]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x2c5512352
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x2c5512360
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2c5512352
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x2c5512352
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x2c5512352
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 0x2c55123b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x2c55123c8
add rdx, 0x28
cmp r10, rdx
jne 0x2c55123a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x2c55123d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x2c55123e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x2c55123be
test ecx, ecx
jg 0x2c55123d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x10007ed0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x28
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x10007f04
cmp dword [rcx + 0xa8], 0
jne 0x10007f04
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1000a000
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.10007e80
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
add rsp, 0x28
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x10011bf4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x10011c4e
call fcn.1000a000
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x10011c4e
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x10011c70
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.10011674
test rdi, rdi
mov esi, eax
je 0x10011c6e
test rbx, rbx
je 0x10011c6e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100124bc
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x100124f2
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x100125a9
call fcn.10008040
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x10012511
mov ecx, 0x80004005
call fcn.100011d0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x118]
mov rdx, rsi
mov rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x50]
mov rcx, rdi
call fcn.1002c420
test eax, eax
je 0x1001257c
cmp eax, 0xc
je 0x10012576
cmp eax, 0x16
je 0x10012570
cmp eax, 0x22
je 0x10012570
cmp eax, 0x50
je 0x1001257c
call fcn.1000830c
int3
call fcn.1000830c
int3
call fcn.100082c4
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x100125a7
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1002d917
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1006bbe0]
jne 0x100297fa
rol rcx, 0x10
test cx, 0xffff
jne 0x100297f6
repz ret
ror rcx, 0x10
jmp 0x1002d870
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10071530]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x10071628]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1002d8f5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x10071530]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1002d917
mov rax, qword [rsp + 0x88]
mov qword [0x10071628], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100715c8], rax
mov rax, qword [0x10071628]
mov qword [0x100714a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100715b0], rax
mov dword [0x10071490], 0xc0000409
mov dword [0x10071494], 1
mov rax, qword [0x1006bbe0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1006bbe8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x10071528], eax
mov ecx, 1
call fcn.1003a4c0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10058d80]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x10071528], 0
jne 0x1002d99e
mov ecx, 1
call fcn.1003a4c0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1003a580
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.1002da30
xor ebx, ebx
cmp qword [0x10072290], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x1003a6b1
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x1003a5e3
xor eax, eax
jmp 0x1003a791
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1003a5dc
mov rcx, rax
call fcn.1002d9c0
lea rdx, [0x10059ed0]
mov rcx, rbp
mov qword [0x10072290], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002d9c0
lea rdx, [0x10059eb8]
mov rcx, rbp
mov qword [0x10072298], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002d9c0
lea rcx, [rsp + 0x30]
mov qword [0x100722a0], rax
call fcn.1002b230
test eax, eax
je 0x1003a667
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1002e770
cmp dword [rsp + 0x30], 2
jne 0x1003a6b1
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002d9c0
test rax, rax
mov qword [0x100722b0], rax
je 0x1003a6b1
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1002d9c0
mov qword [0x100722a8], rax
mov rcx, qword [0x100722a8]
cmp rcx, rsi
je 0x1003a743
cmp qword [0x100722b0], rsi
je 0x1003a743
call fcn.1002da90
call rax
test rax, rax
mov rbp, rax
je 0x1003a70e
mov rcx, qword [0x100722b0]
call fcn.1002da90
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x1003a70e
test byte [rsp + 0x48], 1
jne 0x1003a743
lea rcx, [rsp + 0x34]
call fcn.1002b280
test eax, eax
je 0x1003a730
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1002e770
cmp dword [rsp + 0x34], 4
jb 0x1003a73d
bts edi, 0x15
jmp 0x1003a777
bts edi, 0x12
jmp 0x1003a777
mov rcx, qword [0x10072298]
cmp rcx, rsi
je 0x1003a777
call fcn.1002da90
call rax
test rax, rax
mov rbx, rax
je 0x1003a777
mov rcx, qword [0x100722a0]
cmp rcx, rsi
je 0x1003a777
call fcn.1002da90
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x10072290]
call fcn.1002da90
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004aca00]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004aca10]
mov dword [rax], 1
mov rax, qword [0x004aca20]
mov dword [rax], 1
mov rax, qword [0x004ac9f0]
mov dword [rax], 1
mov rax, qword [0x004ac870]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004ac9e0]
mov dword [0x004cc008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x004ac920]
mov qword [rdx], rax
mov rdx, qword [0x004ac910]
mov qword [rdx], rax
mov rax, qword [0x004ac9a0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004abf60]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401e57
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
lea rcx, [0x004a3012]
call sym.system
mov eax, dword [0x004cc050]
cmp eax, 2
jne 0x401eda
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a3016]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
mov dword [0x004cc044], 0x1869f
mov dword [0x004cc088], 0x1869f
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, [0x004a301b]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x41]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov edx, dword [0x004cc088]
mov eax, dword [0x004cc044]
mov r8d, edx
mov edx, eax
lea rcx, [0x004a302b]
call sym.printf_char_const__::_
jmp 0x401f9a
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x401fa1
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
lea rcx, [0x004a3012]
call sym.system
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a303d]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov eax, dword [0x004cc0a8]
test eax, eax
jne 0x40201b
mov rax, qword [sym.imp.msvcrt.dll__getch]
call rax
mov byte [rbp - 0x41], al
mov dword [0x004cc284], 1
lea rax, [rbp - 0x42]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x42]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, str.Bad_End__1_n
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x42]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [sym.imp.msvcrt.dll__getch]
call rax
mov byte [rbp - 0x41], al
mov eax, dword [0x004cc090]
add eax, 1
mov dword [0x004cc090], eax
mov eax, 0
jmp 0x4020e7
add rsp, 0x48
pop rbx
pop rbp
ret

Function at 0x4020ee
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
mov dword [0x004cc288], 1
lea rcx, [0x004a3012]
call sym.system
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a3057]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov eax, dword [0x004cc0a8]
test eax, eax
jne 0x402172
mov rax, qword [sym.imp.msvcrt.dll__getch]
call rax
mov byte [rbp - 0x41], al
lea rax, [rbp - 0x42]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x42]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, str.Bad_End___2_n
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x42]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov rax, qword [sym.imp.msvcrt.dll__getch]
call rax
mov byte [rbp - 0x41], al
mov eax, dword [0x004cc090]
add eax, 1
mov dword [0x004cc090], eax
mov eax, 0
jmp 0x402234
add rsp, 0x48
pop rbx
pop rbp
ret