joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140028900
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x490
mov rax, qword [0x14007a8d0]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov ebp, r9d
mov rdi, r8
mov rbx, rcx
test rdx, rdx
je 0x140028b53
test r8, r8
je 0x140028b53
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r8 + rax*2], 0
jne 0x140028940
cmp rax, 0x104
ja 0x140028b53
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140028960
cmp rax, 0x100
ja 0x140028b53
mov eax, dword [rsp + 0x4d0]
mov r8, rdx
add rcx, 0xc
mov dword [rcx - 8], eax
mov edx, pe_nt_image_headers64
mov qword [rsp + 0x488], rsi
call fcn.14003d4e8
test byte [rbx + 4], 2
je 0x140028b2d
lea rax, [rsp + 0x48]
lea rdx, str.SOFTWAREApple_Computer__Inc.iPod
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x480], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r14d, r14d
test eax, eax
jne 0x140028a6e
lea rax, [rsp + 0x50]
lea r8, [rbx + 0xc]
lea edx, [r14 + 1]
or r9d, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x260]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140028ad2
cmp dword [rsp + 0x44], 1
jne 0x140028ad2
cmp dword [rsp + 0x40], r14d
jbe 0x140028ad2
lea rcx, [rbx + 0x10e]
lea r8, [rsp + 0x260]
mov edx, 0x104
call fcn.140041398
jmp 0x140028ad2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbx + 0x10e]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbx + 0x10e]
mov edx, 0x5c
call fcn.14004130c
test rax, rax
je 0x140028aa6
mov word [rax], r14w
lea r8, [0x1400613e8]
lea rcx, [rbx + 0x10e]
mov edx, 0x104
call fcn.140041284
lea rcx, [rbx + 0x10e]
mov r8, rdi
mov edx, 0x104
call fcn.140041284
test ebp, ebp
je 0x140028ade
mov rcx, rbx
call fcn.140027870
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0x10e]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, qword [rsp + 0x480]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140028b2d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 0x318], 1
lea rcx, [rbx + 0x320]
mov edx, 0x40000
call fcn.140029380
mov rsi, qword [rsp + 0x488]
mov dword [rbx], 1
mov eax, 1
jmp 0x140028b56
or eax, 0xffffffff
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14003eed0
add rsp, 0x490
pop rdi
pop rbp
pop rbx
ret
Function at 0x140028b80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x7a8]
sub rsp, 0x8a8
mov rax, qword [0x14007a8d0]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov rsi, r8
mov ebx, edx
mov rdi, rcx
test r8, r8
jne 0x140028bbf
test r9, r9
je 0x140028da0
cmp dword [rcx], 0
je 0x140028da0
mov qword [rsp + 0x8a0], r14
mov byte [rbp - 0x70], 0
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0x70]
mov edx, 0x1e
mov r14d, eax
call fcn.140041648
dec ebx
je 0x140028c23
dec ebx
je 0x140028c1a
sub ebx, 2
je 0x140028c11
cmp ebx, 4
jne 0x140028c39
lea r8, str.TRACE
jmp 0x140028c2a
lea r8, str.INFO
jmp 0x140028c2a
lea r8, str.ERROR
jmp 0x140028c2a
lea r8, str.ASSERT
lea rcx, [rsp + 0x50]
mov edx, 0x1e
call fcn.14003d4e8
mov rax, qword [rbp + 0x7e8]
test rax, rax
je 0x140028c51
cmp byte [rax], 0
je 0x140028c51
mov ecx, 1
jmp 0x140028c53
xor ecx, ecx
test rsi, rsi
jne 0x140028c95
lea rcx, [rsp + 0x50]
lea rax, [rdi + 0xc]
lea r9, str.__s:_0x_X__s__s_
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x70]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x70]
mov edx, 0x800
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call fcn.14003f430
jmp 0x140028cee
test ecx, ecx
lea rdx, [0x14006148c]
lea rcx, [rdi + 0xc]
lea rax, [0x140056122]
lea r9, str.__s:_0x_X__s__s___s_s
cmovne rax, rdx
or r8, 0xffffffffffffffff
mov edx, 0x800
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x70]
call fcn.14003f430
mov r14, qword [rsp + 0x8a0]
lea rax, [rbp - 0x70]
or rcx, 0xffffffffffffffff
nop
inc rcx
cmp byte [rax + rcx], 0
jne 0x140028d00
mov r9, qword [rbp + 0x7e8]
mov eax, 0x7fe
lea r8, [rbp + 0x7f0]
sub eax, ecx
mov qword [rsp + 0x20], r8
or r8, 0xffffffffffffffff
movsxd rdx, eax
movsxd rax, ecx
lea rcx, [rbp - 0x70]
add rcx, rax
call fcn.14003e1bc
lea r8, [0x1400614a8]
lea rcx, [rbp - 0x70]
mov edx, 0x800
call fcn.14003d54c
lea rcx, [rdi + 0x398]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [rdi + 4], 2
je 0x140028d6d
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.140028dc0
test byte [rdi + 4], 4
je 0x140028d7d
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test byte [rdi + 4], 8
je 0x140028d93
lea rcx, [rdi + 0x320]
lea rdx, [rbp - 0x70]
call fcn.140029410
lea rcx, [rdi + 0x398]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.14003eed0
add rsp, 0x8a8
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140028dc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
lea rsi, [rcx + 0x398]
mov rbx, rcx
mov rdi, rdx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x10e]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
mov rbx, rax
cmp rcx, 0xfffffffffffffffd
ja 0x140028e76
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdi + r8], 0
jne case.default.0x140028e88
lea r9, [rsp + 0x50]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140029150
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
mov rax, qword [0x14007e1b0]
test rax, rax
jne 0x140027997
mov ecx, 0x3c0
call fcn.14003cde0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002798b
mov rcx, rax
call fcn.140027800
nop
mov qword [0x14007e1b0], rax
test rax, rax
je 0x1400279b4
test byte [rax + 4], 8
je 0x1400279b4
lea rcx, [rax + 0x320]
xor r8d, r8d
mov rdx, rbx
add rsp, 0x30
pop rbx
jmp 0x140029150
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14d, r8d
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r15d, r15d
mov rcx, rdi
mov dword [rsp + 0x60], r15d
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [rdi + 0x68]
mov rcx, rdi
sub rbx, qword [rdi + 0x60]
sar rbx, 4
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
je 0x140029278
mov qword [rsp + 0x30], r15
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9d, [r15 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rbx, qword [rdi + 0x60]
cmp rbx, qword [rdi + 0x68]
je 0x140029244
nop
movups xmm2, xmmword [rbx]
mov rdx, qword [rdi + 0x28]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], r15
movq rcx, xmm2
add rdx, rcx
movdqa xmm1, xmm2
psrldq xmm1, 8
movq r8, xmm1
sub r8d, ecx
mov rcx, rbp
inc r8d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140029231
mov eax, dword [rsp + 0x60]
add rsi, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add rbx, 0x10
cmp rbx, qword [rdi + 0x68]
jne 0x1400291f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
je 0x140029278
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x60]
mov rcx, rdi
mov qword [rdi + 0x68], rax
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x48], r15
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rax, rsi
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14002c6e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
lea rdx, str.SOFTWAREApple_Computer__Inc.iTunes_
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c783
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rbx
xor ebx, ebx
lea rdx, str.DisableTerminationOnHeapCorruption
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
test eax, eax
setne bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
je 0x14002c783
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
test eax, eax
jne 0x14002c783
lea rdx, str...CommonWindowsWinUtils.cpp
lea rcx, str.heapSetInfoResult
xor r9d, r9d
mov r8d, 0x12c
call fcn.140027a80
add rsp, 0x38
ret

Function at 0x14002ded0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, r9
lea rax, [rsp + 0x38]
mov rsi, r8
lea r9d, [rbx + 1]
xor r8d, r8d
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002dfc5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dfba
cmp dword [rsp + 0x34], 1
jne 0x14002dfba
mov eax, dword [rsp + 0x30]
cmp eax, 6
jb 0x14002dfba
mov edx, eax
xor ecx, ecx
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14002dfb5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dfac
mov eax, dword [rsp + 0x30]
shr eax, 1
dec eax
cmp word [rdi + rax*2], bx
jne 0x14002dfac
mov rcx, rdi
call fcn.140041804
mov ebx, 1
mov word [r14], ax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop r14
ret
Function at 0x14002e9f0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x28
xor r12d, r12d
mov rdi, rcx
movzx esi, r12w
movzx ebx, r12w
mov ebp, r12d
test rcx, rcx
je 0x14002ead3
lea rdx, [rsp + 0x60]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov r14d, eax
test eax, eax
je 0x14002eaef
mov ecx, r14d
mov eax, 4
mov qword [rsp + 0x20], r15
shr rcx, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14003cc90
mov edx, dword [rsp + 0x60]
mov r8d, r14d
mov r9, rax
mov rcx, rdi
mov r15, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea edi, [r12 + 1]
test eax, eax
je 0x14002eaa5
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [0x140062de8]
mov rcx, r15
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14002eaa5
mov rax, qword [rsp + 0x70]
mov ebp, edi
movzx ebx, word [rax + 0x10]
movzx esi, word [rax + 0x12]
mov eax, 0xff
and bx, ax
mov rcx, r15
call fcn.14003d32c
mov r15, qword [rsp + 0x20]
test ebp, ebp
je 0x14002eaef
cmp si, 0xc
jne 0x14002eac1
cmp bx, di
je 0x14002eac4
mov edi, r12d
mov eax, edi
add rsp, 0x28
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str...CommonUtilsiPodResourceUtilities.cpp
lea rcx, str.filePath___NULL__major___NULL__decimal___NULL__dot___NULL__build___NULL
xor r9d, r9d
mov r8d, 0x19f
call fcn.140027a80
lea rdx, str...CommonUtilsiPodResourceUtilities.cpp
lea rcx, [0x140062dec]
xor r9d, r9d
mov r8d, 0x1ca
call fcn.140027a80
xor eax, eax
add rsp, 0x28
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00405440]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00405450]
mov dword [rax], 1
mov rax, qword [0x00405460]
mov dword [rax], 1
mov rax, qword [0x00405430]
mov dword [rax], 1
mov rax, qword [0x004052f0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00405420]
mov dword [0x00408008], 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 [0x00405380]
mov qword [rdx], rax
mov rdx, qword [0x00405370]
mov qword [rdx], rax
mov rax, qword [0x004053e0]
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 [0x004052a0]
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 0x401d40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00408054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x401e5a
mov rax, qword [0x00408058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x401d8e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x401e40
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401d72
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401e92
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00408058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00408058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401e75
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401e39
sub eax, 0x40
and eax, 0xffffffbf
je 0x401e39
mov r9, rbp
add r9, qword [0x00408058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401e61
add dword [0x00408054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x401d9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00408058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402a70
Capabilities:
Parse pe header

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

Function at 0x402a90
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 0x402ad1
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 0x402ac8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402ad3
add rax, 0x28
cmp rax, r9
jne 0x402ab4
xor eax, eax
repz ret

Function at 0x402b80
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x004052f0]
cmp word [rbx], 0x5a4d
je 0x402ba0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b94
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402df0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004089c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004089a0]
test rbx, rbx
je 0x402e44
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 0x402e3b
test rsi, rsi
je 0x402e3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402e20
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004089c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push rsp
push qword [rax - 0x4e00ab77]
mov dl, byte [rdi + rdi*8 - 0x4e]
mov dl, byte [rdi + rdi*8 - 0x4e]
mov dl, byte [rdi + rdi*8 - 0x4f]
mov dl, byte [rdi + rdi*8 - 0x4f]
mov dl, byte [rbx - 1]
push rbx
push qword [rax - 0x4f00ac76]
mov dl, byte [rbx - 1]
scasd eax, dword [rdi]
push rbx
push qword [rax - 0x4f00ac76]
mov dl, byte [rbx - 1]
scasd eax, dword [rdi]
mov dl, byte [rbx - 1]
scasb al, byte [rdi]
mov dl, byte [rbx - 1]
lodsb al, byte [rsi]
mov dl, byte [rbx - 1]
stosd dword [rdi], eax
mov dl, byte [rdx - 1]
stosd dword [rdi], eax
mov dl, byte [rdx - 1]
push rdx
jmp [rbp - 0x5100ad75]
mov dl, byte [rdx - 1]
scasd eax, dword [rdi]
mov byte [rdx - 1], dl
scasd eax, dword [rdi]
xchg byte [rdi + rdi*8 - 0x50], dl
test dword [rdi + rdi*8 - 0x4e], edx
mov dl, 0x86
push rdx
invalid
mov eax, 0xbfff528b
nop
pop rax
invalid
push rdx
jmp [rbp - 0x5100ad75]
mov dl, 0x86
push rdx
invalid
cli
and byte [rdi + 0x3b], 0xff
jg 0x14003f748
cmp edi, edi
jle 0x14003f74b
cmp bh, bh
jge 0x14003f74e
cmp bh, bh
jnp 0x14003f751
invalid
push qword ss:[rbp + 0x62]
push qword ss:[rcx + riz*2 + 0x36]
push qword [rax + riz*2 + 0x35]
push qword [rax + riz*2 + 0x35]
push qword [rdx + 0x5f]
xor eax, 0x345d70ff
jo 0x14003f767
xor al, 0xff
jo 0x14003f76a
jo 0x14003f767
xor al, 0xff
jo 0x14003f76a
xor edi, edi
outsd dx, dword [rsi]
pop rbx
xor al, 0xff
outsb dx, byte [rsi]
pop rcx
xor edi, edi
insd dword [rdi], dx
pop rcx
xor al, 0xff
imul ebx, dword [rax + 0x33], 0xffffffff
push 0x66ff3054
push rbx
invalid
invalid
jmp qword [rax + 0x4e]
sub eax, 0x2b4c5dff
call [rcx + 0x4b]
sub bh, bh
sub r15, rdi
pop rcx
sub dil, r15b
pop rcx
sub al, 0xff
pop rcx
sub al, 0xff
pop rcx
sub dil, r15b
pop rcx
sub rdi, rdi
pop rcx
sub r15, rdi
call [rcx + 0x49]
sub edi, edi
pop rbx
sub al, 0xff
pop rcx
sub rdi, rdi
push rbx
call qword es:[rax + 0x43]
and al, 0xff
and al, 0xff
and al, 0xff
push rcx
call qword es:[rdx + 0x46]
invalid
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.140193000
add rsp, 0x28
jmp 0x140008188