joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011523
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14001b960
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x140033040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14003b0f6]
call fcn.140011a91
nop
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call fcn.14001151e
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x14001b9e0
lea rdx, str.Failed_to_take_a_snapshot_of_processes._n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140011587
nop
xor eax, eax
jmp 0x14001ba3c
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140011681
test eax, eax
je 0x14001ba2e
mov rcx, qword [rbp + 0x440]
call fcn.14001138e
mov rdx, rax
lea rcx, [rbp + 0x7c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x14001ba1d
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x14001ba2e
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140011915
test eax, eax
jne 0x14001b9f8
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002c460]
call fcn.1400118a7
mov rax, rdi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.14001153c
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret

Function at 0x1400115f5
Capabilities:
Terminate process

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

Function at 0x140011753
Capabilities:
Parse pe header

Disassembly:
jmp 0x140024290
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400242b0
xor al, al
jmp 0x140024331
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400242c3
xor al, al
jmp 0x140024331
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400242ed
xor al, al
jmp 0x140024331
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140024301
xor al, al
jmp 0x140024331
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140024313
xor al, al
jmp 0x140024331
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002432f
xor al, al
jmp 0x140024331
mov al, 1
add rsp, 0x38
ret
Function at 0x140021b80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011af0
movzx eax, al
test eax, eax
jne 0x140021ba0
mov ecx, 7
call fcn.1400118b6
nop
mov byte [rsp + 0x20], 0
call fcn.14001190b
mov byte [rsp + 0x21], al
cmp dword [0x140033b88], 1
jne 0x140021bc4
mov ecx, 7
call fcn.1400118b6
nop
jmp 0x140021c1c
cmp dword [0x140033b88], 0
jne 0x140021c17
mov dword [0x140033b88], 1
lea rdx, [0x14002b660]
lea rcx, [0x14002b330]
call fcn.140011519
test eax, eax
je 0x140021bf8
mov eax, 0xff
jmp 0x140021d21
lea rdx, [0x14002b220]
lea rcx, [section..rdata]
call fcn.1400118f2
mov dword [0x140033b88], 2
jmp 0x140021c1c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001189d
call fcn.14001178a
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140021c79
mov rcx, qword [rsp + 0x30]
call fcn.140011424
movzx eax, al
test eax, eax
je 0x140021c79
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14003c020]
nop
call fcn.1400117fd
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140021cad
mov rcx, qword [rsp + 0x38]
call fcn.140011424
movzx eax, al
test eax, eax
je 0x140021cad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011a55
nop
call fcn.140021dd0
mov dword [rsp + 0x28], eax
call fcn.140011753
movzx eax, al
test eax, eax
jne 0x140021ccc
mov ecx, dword [rsp + 0x28]
call fcn.1400110d2
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140021cdb
call fcn.140011a78
nop
xor edx, edx
mov cl, 1
call fcn.1400113d4
mov eax, dword [rsp + 0x28]
jmp 0x140021d21
add rsp, 0x68
ret
Function at 0x140001460
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14001cb40], rbx
je 0x1400014ac
cmp rax, rbx
jne 0x14000149f
mov ebx, 1
mov esi, ebx
jmp 0x1400014b1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001484
mov ebx, 1
mov eax, dword [0x14001cb48]
cmp eax, ebx
jne 0x1400014c7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140001536
mov eax, dword [0x14001cb48]
test eax, eax
jne 0x140001530
mov dword [0x14001cb48], ebx
lea r15, [0x140016d60]
lea rdi, [0x140016d48]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001522
test eax, eax
jne 0x140001526
cmp qword [rdi], 0
je 0x140001517
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [vtable.H_MA8HI.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400014ee
test eax, eax
je 0x140001536
mov eax, 0xff
jmp 0x14000161c
mov dword [0x14001c304], ebx
mov eax, dword [0x14001cb48]
cmp eax, ebx
jne 0x14000155d
lea rdx, [0x140016d40]
lea rcx, [0x140016ce8]
call sub.msvcrt.dll__initterm
mov dword [0x14001cb48], 2
test esi, esi
jne 0x14000156a
xor eax, eax
xchg qword [0x14001cb40], rax
cmp qword [0x14001cb60], 0
je 0x1400015a8
lea rcx, [0x14001cb60]
call fcn.140001b10
test eax, eax
je 0x1400015a8
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001cb60]
mov r9, qword [vtable.H_MA8HI.0]
call r9
mov r8, qword [0x14001c318]
mov rdx, qword [0x14001c310]
mov ecx, dword [0x14001c308]
call fcn.140004da8
mov dword [0x14001c300], eax
cmp dword [0x14001c320], 0
jne 0x1400015d8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001c304], 0
jne 0x1400015ed
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001c300]
jmp 0x14000161c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140001ba4
add rsp, 0x28
jmp 0x140001460

Function at 0x1400019fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001a48
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001a40
cmp dword [rcx + 0x3c], edx
jl 0x140001a40
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001a40
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001a48
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001b70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001b98
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001b98
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400025fc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
lea r8, [rcx + 0x18]
xorps xmm0, xmm0
lea r9, str.TLoad64BitDllsMgr
mov rdi, rcx
movups xmmword [r8], xmm0
mov rsi, rdx
mov ecx, 0x20
movups xmmword [r8 + 0x10], xmm0
sub r9, r8
lea rax, [rcx + 0x7fffffde]
test rax, rax
je 0x14000264d
mov al, byte [r9 + r8]
test al, al
je 0x14000264d
mov byte [r8], al
inc r8
sub rcx, 1
jne 0x14000262d
test rcx, rcx
mov dword [rsp + 0x50], 4
lea rax, [r8 - 1]
xorps xmm0, xmm0
cmovne rax, r8
lea rbx, [rdi + 0x40]
and qword [rsp + 0x58], 0
lea r8, [rsp + 0x58]
lea rdx, str.SystemCurrentControlSetControlPrint
mov rcx, 0xffffffff80000002
mov byte [rax], 0
lea rax, [0x140015440]
and dword [rdi + 8], 0
and dword [rdi + 0x3c], 0
and dword [rdi + 0x44], 0
mov qword [rdi], rax
lea rax, [0x140015438]
mov qword [rdi + 0x10], rax
movups xmmword [rdi + 0x48], xmm0
mov dword [rbx], 0x1d4c0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140002730
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.SplWOW64TimeOutSeconds
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400026f7
imul eax, dword [rbx], 0x3e8
jmp 0x14000272e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.SplWOW64TimeOut
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002730
imul eax, dword [rbx], 0xea60
mov dword [rbx], eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002746
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [rax + rax]
lea rcx, [rdi + 0x58]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop dword [rax + rax]
lea rcx, [rdi + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
nop dword [rax + rax]
lea rdx, [rdi + 0x38]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
nop dword [rax + rax]
mov rcx, rdi
call fcn.14000d9c0
test rsi, rsi
je 0x140002796
and dword [rsi], 0
mov rbx, qword [rsp + 0x60]
mov rax, rdi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400034c8
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x20
and qword [rax + 8], 0
mov rdi, r8
mov rsi, rdx
test rdx, rdx
je 0x1400035e2
test r8, r8
je 0x1400035e2
mov ebp, 0x104
lea r9, [rax + 8]
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14000352e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
jmp 0x1400035e7
mov rdx, rsi
mov rcx, rdi
mov ebx, 0x7b
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14000354d
xor ebx, ebx
jmp 0x1400035c9
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400035e7
mov rdx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x1400035e7
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x140003591
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x1400035c3
sub ebp, eax
lea r8, [0x140017be0]
mov eax, eax
mov r9, rsi
mov edx, ebp
lea rcx, [rdi + rax*2]
call fcn.140004974
xor ebx, ebx
test eax, eax
jns 0x1400035c5
mov ecx, eax
movzx ebx, ax
and ecx, 0x1fff0000
cmp ecx, 0x70000
je 0x1400035c5
mov ebx, eax
test ebx, ebx
jne 0x1400035e7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1400035e7
jmp 0x14000351b
mov ebx, 0x57
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140004218
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
and dword [rax + 0x18], 0
lea rax, [rax + 0x18]
mov esi, edx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r8, [0x140003aa0]
mov r14, rcx
mov r9, rcx
xor edx, edx
xor ecx, ecx
xor bpl, bpl
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000440b
cmp esi, 0x2000
ja 0x1400043ab
call fcn.140011350
test eax, eax
js 0x14000437d
mov rcx, qword [0x14001c048]
lea rbx, [0x14001c048]
cmp rcx, rbx
je 0x1400042b2
test byte [rcx + 0x1c], 2
je 0x1400042b2
mov rcx, qword [rcx + 0x10]
lea r8, [0x140017c80]
mov edx, 0xa
call fcn.140004af4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
nop dword [rax + rax]
test eax, eax
js 0x140004351
mov bpl, 1
call fcn.1400040b8
test eax, eax
js 0x140004351
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x20], rax
lea r9, [0x140017c20]
lea rcx, [0x140017108]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
nop dword [rax + rax]
test eax, eax
js 0x14000432e
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
movabs r10, 0x8c45af813654d170
mov rax, qword [rax + 0x18]
mov edx, 1
mov r8d, edx
call qword [vtable.H_MA8HI.0]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400043ab
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
jmp 0x1400043ab
mov rcx, qword [0x14001c048]
cmp rcx, rbx
je 0x1400043ab
test byte [rcx + 0x1c], 1
je 0x1400043ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x140017c80]
mov edx, 0xb
mov r9d, eax
call fcn.140004b84
jmp 0x1400043ab
mov rcx, qword [0x14001c048]
lea rbx, [0x14001c048]
cmp rcx, rbx
je 0x1400043ab
test byte [rcx + 0x1c], 1
je 0x1400043ab
mov rcx, qword [rcx + 0x10]
lea r8, [0x140017c80]
mov edx, 0xc
call fcn.140004af4
mov edx, esi
mov rcx, r14
call fcn.140004438
mov ebx, eax
test eax, eax
jne 0x1400043cd
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test bpl, bpl
je 0x140004419
mov rax, qword [0x14001c8d0]
test rax, rax
je 0x1400043fd
movabs r10, 0xd43837ae10dbc970
call qword [vtable.H_MA8HI.0]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
nop dword [rax + rax]
jmp 0x140004419
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14000fd34
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
mov ebp, edx
mov rsi, rcx
xor ebx, ebx
xor edx, edx
xor ecx, ecx
mov dword [rax + 0x18], ebx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000fe54
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14000e1c0]
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebp
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
test rax, rax
je 0x14000fe04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
cmp qword [rsi + 0x40], rbx
jne 0x14000fe43
mov r9d, dword [rsp + 0x40]
mov ebx, r9d
mov rcx, qword [0x14001c048]
lea rax, [0x14001c048]
cmp rcx, rax
je 0x14000fe43
test byte [rcx + 0x1c], 1
je 0x14000fe43
mov edx, 0xb
jmp 0x14000fe33
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14001c048]
lea rax, [0x14001c048]
cmp rcx, rax
je 0x14000fe43
test byte [rcx + 0x1c], 1
je 0x14000fe43
mov edx, 0xc
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140018670]
call fcn.14000cbac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14000fe93
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14001c048]
lea rax, [0x14001c048]
cmp rcx, rax
je 0x14000fe93
test byte [rcx + 0x1c], 1
je 0x14000fe93
mov rcx, qword [rcx + 0x10]
lea r8, [0x140018670]
mov edx, 0xd
mov r9d, ebx
call fcn.14000cbac
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140013ea4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
jne 0x140013ed8
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x140013f37
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x140013f37
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x140013f29
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x140013f50
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rbx, [0x140000000]
add r8, rbx
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x140013fce
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x140013fce
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rcx, rax
mov r10d, dword [r9 + rbx + 0xc]
xor edx, edx
test r11d, r11d
je 0x140013fce
mov r9d, dword [rcx + 0xc]
cmp r10d, r9d
jb 0x140013fc3
mov r8d, dword [rcx + 8]
lea eax, [r9 + r8]
cmp r10d, eax
jb 0x140013fea
inc edx
add rcx, 0x28
cmp edx, r11d
jb 0x140013fad
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdi, r9
add rdi, rbx
je 0x140013fce
cmp dword [0x14001cb68], 0
jne 0x140014022
cmp dword [rcx + 0x24], 0
mov dword [0x14001cb68], 1
jl 0x140014012
mov ecx, 0x19
int 0x29
mov rdx, r8
mov rcx, rdi
mov rbx, r8
call fcn.140013ea4
jmp 0x140014025
mov rbx, r8
mov r9, rsi
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
test eax, eax
jne 0x140013fd4
lea ecx, [rax + 0x19]
int 0x29
jmp 0x140013fd4
Function at 0x1400048f0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140349080]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140004943
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x140004957
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14010e890
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
mov r9d, reloc.WS2_32.dll_recv
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x4c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14000493d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14010e890
add rsp, 0x68
ret
Function at 0x140008fa0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov byte [0x1419f85c8], 1
mov ecx, 0xfa0
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [rbx]
xor ecx, ecx
mov byte [0x1419f85c8], 0
mov byte [rax + 0x67], 0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400093f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x140009585
cmp rcx, rbp
je 0x140009585
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x14000948c
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x1400095ac
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400094a3
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x1400094a3
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400094b6
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x140009503
mov r8d, eax
cmp eax, 0x800
jae 0x1400094d0
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x140009503
cmp eax, 0x10000
jae 0x1400094ea
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x140009503
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x140009585
add qword [rsi], 2
test dil, dil
jne 0x140009524
cmp r10d, 3
jae 0x140009530
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x14000955e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x140009540
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x140009585
cmp qword [rbx], rbp
jne 0x14000944d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x14000958f