joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400281f8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140028228
xor eax, eax
jmp 0x1400282eb
mov rbp, rbx
cmp word [rax], si
je 0x14002824d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140028234
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140028230
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140026944
movsxd r14, eax
test eax, eax
jne 0x14002828b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140028221
mov rcx, r14
call fcn.14002186c
mov rdi, rax
test rax, rax
jne 0x1400282a4
xor ecx, ecx
call fcn.140020628
jmp 0x140028280
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140026944
test eax, eax
jne 0x1400282d5
mov rcx, rdi
call fcn.140020628
jmp 0x1400282df
xor ecx, ecx
call fcn.140020628
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002b260
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400209dc
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002b301
cmp ebx, dword [rsp + 0x30]
je 0x14002b2fa
test esi, esi
je 0x14002b2fa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002b2d5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002b2e2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002b2bf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002b2e6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002b303
mov eax, 1
jmp 0x14002b303
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002cedc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001cb84
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002cf66
cmp byte [rbp - 0x21], r15b
je 0x14002cf61
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002cf9c
call fcn.14002105c
test eax, eax
jne 0x14002cf88
cmp byte [rbp - 0x21], r15b
je 0x14002cf80
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002cf9c
cmp byte [rbp - 0x21], r15b
je 0x14002cf99
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001cf60
test eax, eax
jne 0x14002d03c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001cb84
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002cfdb
cmp byte [rbp - 0x21], r15b
je 0x14002d010
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002d010
call fcn.14002105c
test eax, eax
jne 0x14002cffc
cmp byte [rbp - 0x21], r15b
je 0x14002cff5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002d010
cmp byte [rbp - 0x21], r15b
je 0x14002d00d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001cf60
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002d03c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002d03f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002d04d
mov rcx, rdi
call fcn.140020628
cmp byte [rbp + 0x3f], r15b
je 0x14002d05c
mov rcx, qword [rbp + 0x27]
call fcn.140020628
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14002e090
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002e0b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002e0b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001a06c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r9
mov rsi, r8
mov rdi, rcx
call fcn.14001a914
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x14001a0a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14001a12d
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14001a0dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
mov ebx, eax
call fcn.14001a144
mov eax, ebx
jmp 0x14001a12d
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14001a0c3
mov rcx, qword [rdi + 0x28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov dword [rdi + 0x18], eax
test eax, eax
je 0x14001a0c3
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x14001a0c3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001af98
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140033880], eax
call fcn.14001b6d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140033880], 0
jne case.default.0x14001afee
mov ecx, 1
call fcn.14001b6d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
and eax, edi
fdiv dword [rcx - 0x13]
sbb al, 0x5f
pop rdi
std
xor dword [rax + 0xbd96826], 0xffffff8d
jno 0x140051eb5
or ecx, dword [rbp - 0xfb9038f]
cmp al, 0xff
invalid
invalid
Function at 0x40e4f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [0x0040d150]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d138]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413068], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413060], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413058], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d198]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413050], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d1b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413048], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d1dc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413040], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d1e4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413038], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d1ec]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413030], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d1f4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413028], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d1fc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413020], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d204]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413018], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d20c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413010], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d214]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
mov qword [0x00413008], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x0040d21c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [section..data], rax
add rsp, 0x20
pop rbx
ret
Function at 0x40e948
Capabilities:
Resolve function by parsing pe exports

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
movsxd rax, dword [rcx + 0x3c]
xor r12d, r12d
mov rbx, rcx
mov edi, r12d
cmp dword [rax + rcx + 0x8c], r12d
je 0x40e9d3
mov esi, dword [rax + rcx + 0x88]
mov ebp, r12d
add rsi, rcx
mov r14d, dword [rsi + 0x1c]
mov r15d, dword [rsi + 0x20]
add r14, rcx
add r15, rcx
cmp dword [rsi + 0x14], r12d
jbe 0x40e9d3
mov eax, ebp
lea rdx, [0x0040d6c8]
mov ecx, dword [r15 + rax*4]
add rcx, rbx
call qword [0x00413028]
test eax, eax
je 0x40e9c0
inc ebp
cmp ebp, dword [rsi + 0x14]
jb 0x40e99d
jmp 0x40e9d3
mov ecx, dword [rsi + 0x24]
mov edx, ebp
add rcx, rbx
movzx eax, word [rcx + rdx*2]
mov edi, dword [r14 + rax*4]
add rdi, rbx
call fcn.0040fbcc
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
sub eax, dword [0x00413080]
mov rsi, qword [rsp + 0x50]
cmp eax, 0x7fff
cmova rdi, r12
mov rax, rdi
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x40f6c4
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rdi, rcx
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rbp - 0x7c], 6
jb 0x40f702
mov eax, 2
jmp 0x40f7d9
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor ebx, ebx
xor ecx, ecx
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40f79f
mov ecx, dword [rsp + 0x78]
mov rax, qword [rsp + 0x20]
xor edx, edx
div rcx
test rdx, rdx
jne 0x40f76f
cmp qword [rsp + 0x38], 0x1000
jne 0x40f76f
cmp dword [rsp + 0x40], 0x1000
jne 0x40f76f
cmp dword [rsp + 0x48], 0x20000
jne 0x40f76f
cmp dword [rsp + 0x44], 4
jne 0x40f76f
movabs rax, 0x74636a6e696d7678
cmp qword [rbx], rax
je 0x40f786
add rbx, qword [rsp + 0x38]
cmp rbx, 0x7fff0000
jae 0x40f6f8
mov rcx, rbx
jmp 0x40f711
mov r8d, 0x20
mov rdx, rbx
mov rcx, rdi
call qword [0x00413040]
mov eax, 1
jmp 0x40f7d9
lea rdx, [0x0040d3b0]
call fcn.0040e804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
call fcn.0040e760
lea rdx, [0x0040d3c4]
call fcn.0040e804
mov r8d, 0x10
mov edx, ebx
call fcn.0040e760
xor eax, eax
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x40f7f4
Capabilities:
Accept command line arguments
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [0x0040d2d8]
mov rcx, rax
call qword [0x00413010]
xor r13d, r13d
mov rdi, rax
test rax, rax
je 0x40f859
lea r14d, [r13 + 0x20]
add rdi, 0x2a
mov edx, r14d
mov rcx, rdi
call qword [0x00413008]
test rax, rax
jne 0x40f878
lea rdx, [0x0040d308]
call fcn.0040e804
xor al, al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
sub rax, rdi
sar rax, 1
cmp rax, 2
jae 0x40f89b
lea rdx, [0x0040d320]
call fcn.0040e804
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
jmp 0x40f854
lea rsi, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rsi + 2]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
test rax, rax
jne 0x40f8c5
lea rdx, [0x0040d338]
jmp 0x40f854
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [0x00413040]
xor edx, edx
mov r8, r15
lea ecx, [rdx + 4]
mov word [rsi + r15], r13w
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r12, rax
test rax, rax
jne 0x40f913
lea rdx, [0x0040d350]
call fcn.0040e804
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0xa
mov edx, eax
call fcn.0040e760
jmp 0x40f859
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
jne 0x40f93c
lea rdx, [0x0040d368]
jmp 0x40f8f6
mov r8, r14
mov rdx, rax
mov rcx, rbp
call qword [0x00413040]
call fcn.0040fae0
mov rsi, rax
test rax, rax
je 0x40f859
mov eax, dword [rdi + 0x20]
lea rdx, [rbp + 0x18]
mov rcx, rsi
mov dword [rsp + 0x68], eax
call fcn.0040fa50
test al, al
je 0x40f859
lea rdx, [rsp + 0x68]
mov rcx, rsi
call fcn.0040fa50
test al, al
je 0x40f859
movsxd rcx, dword [rbp + 0x18]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 2]
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x40f9b9
lea rdx, [0x0040d380]
jmp 0x40f8f6
mov eax, dword [rdi + 0x24]
lea rbx, [rdi + 0x28]
lea rbp, [rbx + rax*4]
jmp 0x40f9df
mov edx, dword [rbx]
mov rcx, rsi
add rdx, r14
call fcn.0040fa50
test al, al
je 0x40f859
add rbx, 4
cmp rbx, rbp
jne 0x40f9c6
movsxd rbx, dword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40fa02
lea rdx, [0x0040d398]
jmp 0x40f8f6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x40f85b
Function at 0x40fb88
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x448
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x434], eax
mov word [rsp + 0x20], ax
call fcn.0040e6e0
lea rdx, [rsp + 0x20]
lea rcx, [0x0040d280]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x448
ret

Function at 0x40fbcc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x4eb8bff8
jmp 0x403254
dec rcx
jmp 0x4038c5
jne 0x403254
jmp 0x403983
jmp 0x40491e
jmp 0x404953
xor rcx, rcx
mov rdx, 0x727f
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call fcn.00404973
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add rsp, 0x20
pop rbx
xor rcx, rcx
jmp 0x401f7b
Function at 0x140009080
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov r9, r8
mov r13, rcx
mov rax, qword [rdx]
mov qword [rbp + 0x27], rax
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [r9]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r14, rax
mov r8, qword [r13 + 0x18]
mov rdx, qword [r13 + 0x10]
mov rcx, qword [r13 + 8]
mov qword [rbp - 9], rcx
mov qword [rbp - 1], rdx
mov qword [rbp + 7], r8
lea rax, [rbp + 0x27]
mov qword [rbp + 0xf], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_5e517a76b376603e21568473d4e648d1___bool__struct__IMAGE_SECTION_HEADER____ptr64__unsigned_long_long_unsigned___int64__.0
mov qword [rbp - 0x49], rax
movaps xmm0, xmmword [rbp - 9]
movups xmmword [rbp - 0x41], xmm0
movaps xmm1, xmmword [rbp + 7]
movups xmmword [rbp - 0x31], xmm1
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x11], rcx
lea rax, [rbp - 0x49]
mov qword [rbp + 0x17], rax
test r14, r14
jne 0x14000911d
xor edx, edx
lea rcx, [rbp - 0x49]
call qword [method.std::_Func_impl_no_alloc_class__lambda_ad59c4bbcded02fe5c0cba9ad4ff02de___void__void____ptr64__void____ptr64____cdecl___void____ptr64__char_const____ptr64__.virtual_32]
xor esi, esi
jmp 0x14000918c
movsxd rdi, dword [r14 + 0x3c]
add rdi, r14
movzx eax, word [rdi + 0x14]
lea r15, [rdi + 0x18]
add r15, rax
xor esi, esi
mov ebx, esi
cmp si, word [rdi + 6]
jae 0x140009177
nop dword [rax]
mov qword [rbp + 0x2f], r14
mov eax, ebx
lea rdx, [rax + rax*4]
lea rax, [r15 + rdx*8]
mov qword [rbp + 0x1f], rax
test rcx, rcx
je 0x1400091bd
mov rax, qword [rcx]
lea r8, [rbp + 0x2f]
lea rdx, [rbp + 0x1f]
call qword [rax + 0x10]
test al, al
je 0x1400091b7
inc ebx
movzx eax, word [rdi + 6]
mov rcx, qword [rbp - 0x11]
cmp ebx, eax
jb 0x140009140
test rcx, rcx
je 0x140009190
lea rdx, [rbp - 0x49]
cmp rcx, rdx
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x11], rsi
mov rax, qword [r13 + 0x18]
cmp qword [rax], 0
sete al
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x11]
jmp 0x140009177
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
int3

Function at 0x1400092de
Capabilities:
Execute syscall

Disassembly:
push r10
pushfq
mov r10, rcx
push qword [0x140012020]
lea rax, [0x14000932a]
push rax
push qword [0x140012028]
push qword [0x140012018]
push qword [0x140012030]
push qword [0x140012028]
lea rax, [0x1400092a0]
push rax
push qword [0x140012018]
push qword [0x140012038]
pushfq
pop rax
or rax, 0x40000
push rax
popfq
syscall
popfq
pop r10
ret
Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0x314e0
call fcn.140002680
sub rsp, rax
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x20]
lea rdx, str.92__
mov ecx, 0x3145d
mov r8, rcx
mov rcx, rax
call sym.memcpy
movabs rax, 0x5341734973696874
movabs rdx, 0x4679654b74657263
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
movabs rax, 0x6e6974736554726f
movabs rdx, 0x65736f7072755067
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
mov word [rbp - 0x30], 0x73
mov dword [rbp + 0x31454], 0x3145d
mov dword [rbp + 0x31450], 0x22
mov dword [rbp + 0x3145c], 0
mov dword [rbp + 0x31458], 0
jmp 0x140001540
mov eax, dword [rbp + 0x31450]
lea edx, [rax - 1]
mov eax, dword [rbp + 0x3145c]
cmp edx, eax
jne 0x140001506
mov dword [rbp + 0x3145c], 0
mov eax, dword [rbp + 0x31458]
cdqe
movzx eax, byte [rbp + rax - 0x20]
mov edx, eax
mov eax, dword [rbp + 0x3145c]
cdqe
movzx eax, byte [rbp + rax - 0x50]
xor eax, edx
mov edx, eax
mov eax, dword [rbp + 0x31458]
cdqe
mov byte [rbp + rax - 0x20], dl
add dword [rbp + 0x3145c], 1
add dword [rbp + 0x31458], 1
mov eax, dword [rbp + 0x31458]
cmp eax, dword [rbp + 0x31454]
jb 0x1400014e9
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x3145d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x31448], rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp + 0x31448]
mov r8d, 0x3145d
mov rcx, rax
call sym.memmove
mov rax, qword [rbp + 0x31448]
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 + 0x31440], rax
mov rax, qword [rbp + 0x31440]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
nop
add rsp, 0x314e0
pop rbp
ret

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400380a4]
mov rbx, rcx
test esi, esi
jle 0x140001a80
mov rax, qword [0x1400380a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000199b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001980
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001aa2
mov rax, qword [0x1400380a8]
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 [0x1400380a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a30
add dword [0x1400380a4], 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 [0x1400380a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a1e
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 0x1400019a8
mov rax, qword [0x1400380a8]
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 0x140002010
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140038100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400380e0]
test rbx, rbx
je 0x14000206c
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 eax, eax
jne 0x140002063
test rsi, rsi
je 0x140002063
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002048
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 0x140002280
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002298
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret