joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044dd0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400bd040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140044ea3
cmp byte [rcx + 0x71], 0
je 0x140044ea3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140044e9f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140044e64
sub eax, 1
je 0x140044e68
cmp eax, 2
jne 0x140044e9f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140046dc0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140044e96
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140044e9f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140044e4c
xor al, al
jmp 0x140044e4c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140046dc0
add rsp, 0x60
pop rbx
ret

Function at 0x1400479c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047a0a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140047a0a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140047a0a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140047a0a
cmp dword [rcx + 0x84], 0xe
jbe 0x140047a0a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140047a0c
xor al, al
add rsp, 0x28
ret
Function at 0x1400095b0
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x278
call fcn.14000ac94
mov dword [rsp + 0x20], 0
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x140009635
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000962a
lea rdx, str.explorer.exe
lea rcx, [rsp + 0x5c]
call fcn.140017b88
test eax, eax
jne 0x140009617
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x20], eax
jmp 0x14000962a
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400095f8
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x20]
add rsp, 0x278
ret

Function at 0x1400098fc
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0xc3550
call fcn.140010c20
sub rsp, rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10_7_4__AppleWebKit_537.13__KHTML__like_Gecko__Chrome_24.0.1290.1_Safari_537.13
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400099ce
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc3560]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400099ce
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0xc3500
rep stosb byte [rdi], al
lea r9, [rsp + 0x40]
mov r8d, 0xc3500
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400099ce
mov r8d, 0xc3500
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xc3568]
call fcn.140027380
xor eax, eax
jmp 0x1400099d3
mov rax, qword [rsp + 0x48]
add rsp, 0xc3550
pop rdi
ret
Function at 0x14000a9d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov byte [rsp], 0
mov dword [rsp + 4], 0
jmp 0x14000aa3c
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x14000aa7d
movsxd rax, dword [rsp + 4]
mov cl, byte [rsp + 4]
mov byte [rsp + rax + 0x20], cl
xor edx, edx
mov eax, dword [rsp + 4]
div dword [rsp + 0x248]
mov eax, edx
mov eax, eax
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x240]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 0x120], al
jmp 0x14000aa32
mov dword [rsp + 4], 0
jmp 0x14000aa91
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x14000aafc
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 4]
movzx ecx, byte [rsp + rcx + 0x120]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x14000aa87
mov dword [rsp + 0x10], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
mov byte [rsp], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 0xc], 0
jmp 0x14000ab34
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x238]
cmp dword [rsp + 0xc], eax
jae 0x14000ac0b
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 8]
movzx ecx, byte [rsp + rcx + 0x20]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
movsxd rax, dword [rsp + 0x10]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x230]
movzx ecx, byte [rdx + rcx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x230]
mov byte [rdx + rcx], al
jmp 0x14000ab2a
add rsp, 0x220
pop rdi
ret
Function at 0x14000db24
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1108
call fcn.140010c20
sub rsp, rax
lea r8, [rsp + 0x24]
mov edx, 0x1000
lea rcx, [rsp + 0x100]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x14000db50
xor eax, eax
jmp 0x14000dba4
mov eax, dword [rsp + 0x24]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x20]
lea r8, str.Current_process_count:__d
mov edx, 0x64
lea rcx, [rsp + 0x30]
call fcn.14000f77c
xor r9d, r9d
lea r8, str.Process_Count
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [rsp + 0x20], 0x28
jae 0x14000db9f
xor eax, eax
jmp 0x14000dba4
mov eax, 1
add rsp, 0x1108
ret

Function at 0x14000dbac
Capabilities:
Check for sandbox username or hostname
Get session user name

Disassembly:
sub rsp, 0x268
mov dword [rsp + 0x20], 0x101
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14000501c
xor r9d, r9d
lea r8, str.Current_Username
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea rdx, str.JohnDoe
lea rcx, [rsp + 0x30]
call fcn.140001618
movzx eax, al
test eax, eax
jne 0x14000dc51
lea rdx, str.HAL9TH
lea rcx, [rsp + 0x30]
call fcn.140001618
movzx eax, al
test eax, eax
jne 0x14000dc51
lea rdx, str.john
lea rcx, [rsp + 0x30]
call fcn.140001618
movzx eax, al
test eax, eax
jne 0x14000dc51
lea rdx, str.John
lea rcx, [rsp + 0x30]
call fcn.140001618
movzx eax, al
test eax, eax
je 0x14000dc6b
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x30]
call fcn.140006114
mov eax, dword [rsp + 0x24]
jmp 0x14000dc8d
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call fcn.140006114
mov eax, dword [rsp + 0x28]
jmp 0x14000dc8d
add rsp, 0x268
ret
Function at 0x140011364
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400113ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400113ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400113ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400113ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400113ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400113b0
xor al, al
add rsp, 0x28
ret

Function at 0x140018090
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140017efb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140017efb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140017efb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140017efb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140017efb
cmp dword [rcx + 0x84], 0xe
jbe 0x140017efb
cmp dword [rcx + 0xf8], 0
je 0x140017efb
mov ecx, ebx
call fcn.140017fac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140017d88
nop
cmp dword [rbp + 0x20], 0
je 0x140017f49
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140017f54
int3
xor r8d, r8d
xor edx, edx
jmp 0x140017e8c
Function at 0x1400207ec
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 0x14002081c
xor eax, eax
jmp 0x1400208df
mov rbp, rbx
cmp word [rax], si
je 0x140020841
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020828
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140020824
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.14002070c
movsxd r14, eax
test eax, eax
jne 0x14002087f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140020815
mov rcx, r14
call fcn.14001ced8
mov rdi, rax
test rax, rax
jne 0x140020898
xor ecx, ecx
call fcn.14001ce9c
jmp 0x140020874
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.14002070c
test eax, eax
jne 0x1400208c9
mov rcx, rdi
call fcn.14001ce9c
jmp 0x1400208d3
xor ecx, ecx
call fcn.14001ce9c
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 0x140025178
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.140017aac
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140025202
cmp byte [rbp - 0x21], r15b
je 0x1400251fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140025238
call fcn.14001e3ec
test eax, eax
jne 0x140025224
cmp byte [rbp - 0x21], r15b
je 0x14002521c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140025238
cmp byte [rbp - 0x21], r15b
je 0x140025235
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.14001f424
test eax, eax
jne 0x1400252d8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140017aac
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140025277
cmp byte [rbp - 0x21], r15b
je 0x1400252ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400252ac
call fcn.14001e3ec
test eax, eax
jne 0x140025298
cmp byte [rbp - 0x21], r15b
je 0x140025291
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400252ac
cmp byte [rbp - 0x21], r15b
je 0x1400252a9
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.14001f424
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400252d8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400252db
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400252e9
mov rcx, rdi
call fcn.14001ce9c
cmp byte [rbp + 0x3f], r15b
je 0x1400252f8
mov rcx, qword [rbp + 0x27]
call fcn.14001ce9c
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 0x140003ca0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140011240]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140004140
lea rcx, [rsp + 0x30]
call fcn.140004210
nop
lea rdi, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400017d0
mov r9, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
lea r8, [0x140004260]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140003d35
lea rcx, [rsp + 0x30]
call fcn.140004180
nop
lea rcx, [rsp + 0x30]
call fcn.1400041a0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000bc80
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140003ea0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140011240]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call fcn.140004140
lea rcx, [rsp + 0x30]
call fcn.140004460
nop
lea rdi, [rbx + 8]
lea rcx, [rsp + 0x30]
call fcn.1400017d0
mov r9, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
lea r8, [0x140004490]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x140003f35
lea rcx, [rsp + 0x30]
call fcn.140004150
nop
lea rcx, [rsp + 0x30]
call fcn.140004170
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000bc80
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x14000ad00
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x14000ad6f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x14000ad58
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x14000ad4c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x14000ad20
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x140011388]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ae30
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x14000ae70
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x140011b40]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x14000aeae
cmp rsi, r14
jb 0x14000aea6
cmp rsi, r15
jae 0x14000aea6
cmp qword [rsi + 8], 0
jne 0x14000b077
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14000ae91
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x14000af42
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x14000af39
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000af39
cmp dword [rsp + 0x70], 0x10000
je 0x14000afbb
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x14000af39
sub rbx, rbp
cmp rbx, r14
jae 0x14000af00
test rsi, rsi
jne 0x14000b020
cmp rdi, r15
ja 0x14000b05f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x14000b05f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b05f
cmp dword [rsp + 0x70], 0x10000
je 0x14000aff1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x14000af72
jmp 0x14000b05f
test rbx, rbx
je 0x14000af39
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000b020
cmp rbx, r14
jae 0x14000aee0
jmp 0x14000af42
test rdi, rdi
je 0x14000b05f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14000b020
cmp rdi, r15
jbe 0x14000af50
jmp 0x14000b05f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x14000b030
mov rax, qword [0x140011b40]
mov qword [rsi], rax
mov qword [0x140011b40], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x14000c944
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c98e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000c98e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000c98e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000c98e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000c98e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000c990
xor al, al
add rsp, 0x28
ret

Function at 0x14006c10e
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
rcr r9b, 0x90
xchg r8b, r9b
mov qword [rsp + 0x18], rbp
ror r9b, cl
btr r8w, 1
bsr rbp, rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
sub bpl, 0x39
mov eax, ecx
cmc
movsx ebx, ax
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
inc al
adc sil, 0x8d
bts ax, ax
mov esi, edx
movzx ecx, r13w
add rbx, qword [0x140011b50]
rcr dl, cl
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
xadd cl, dh
sar bpl, cl
and al, 1
movsx edi, r14w
cdq
movzx ecx, al
cwd
movsx dx, r9b
not bpl
lea rdi, [r8 - 5]
movsxd rdx, r15d
cmove rdi, r8
movzx r8d, r13w
mov r8d, 0x40
cwd
lea rbp, [rcx*2 + 5]
seto cl
mov rcx, rdi
movsx rdx, bp
movsxd rdx, r14d
mov rdx, rbp
jmp 0x14006c1b7
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jmp 0x14006c1c4
jne 0x14006c1d9
mov eax, 0xa
jmp 0x14006c1d4
jmp 0x14006c337
test esi, esi
jmp 0x14006c1e0
je 0x14006c228
mov byte [rdi], 0xe9
movsx rax, cx
neg al
movzx ax, r11b
mov eax, dword [rbx + 8]
stc
sub eax, edi
test bpl, dil
sub eax, 5
mov dword [rdi + 1], eax
stc
cmp ax, di
test byte [rbx + 0x20], 1
jmp 0x14006c210
je 0x14006c279
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x14006c223
jmp 0x14006c279
mov eax, dword [rbx + 0x18]
stc
cmp spl, al
test byte [rbx + 0x20], 1
jmp 0x14006c238
mov dword [rdi], eax
jmp 0x14006c23f
je 0x14006c26b
movzx eax, word [rbx + 0x1c]
jmp 0x14006c24e
mov word [rdi + 4], ax
bswap ax
movzx eax, byte [rbx + 0x1e]
jmp 0x14006c25e
mov byte [rdi + 6], al
jmp 0x14006c266
jmp 0x14006c279
movzx eax, byte [rbx + 0x1c]
movzx cx, bpl
xchg dl, dh
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
cdq
setge dl
movsx cx, r11b
lea r9, [rsp + 0x30]
setg dl
cdq
mov rdx, rbp
mov rcx, rdi
jmp 0x14006c29b
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
cmovo dx, r15w
mov dl, r15b
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
bts bp, r13w
rcr di, cl
shl sil, 2
add cl, cl
cmovnp edi, r9d
shrd di, r9w, 0x1a
not ebp
xor cl, byte [rbx + 0x20]
movsx ebp, r15w
and cl, 2
shr rbp, 0x1d
xchg dil, bpl
or di, r13w
xor cl, byte [rbx + 0x20]
ror dil, cl
dec di
xor sil, cl
movzx bp, cl
bts di, bp
test r14w, r10w
and sil, 4
cmovg rbp, rdx
jmp 0x14006c316
xor sil, cl
or dil, 0xb9
bswap di
add bpl, sil
mov byte [rbx + 0x20], sil
mov bpl, 0x10
xor dil, 0x12
bts si, sp
sub eax, eax
or bpl, r8b
mov rbx, qword [rsp + 0x38]
and bpl, r10b
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
neg edi
clc
rcl dil, 0xb9
add rsp, 0x20
pop rdi
jmp 0x14006c35a
ret