joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800010b4
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov rdi, rcx
mov ebx, edx
lea rcx, [rax + 0x18]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov r9d, 1
xor edx, edx
mov dword [rax - 0x18], 0xf0000020
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180001116
lea r9d, [rax + 1]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rcx, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 0xf0000028
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18000113c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
je 0x18000112d
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000122c
Capabilities:
Encode data using xor

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, 0x30
mov rbp, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rdi, rdx
call fcn.180003ed8
test eax, eax
jne 0x18000134d
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001348
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001348
test cl, 3
jne 0x180001348
movsxd rax, dword [r9]
lea r12, [0x180041a90]
imul rax, rax, 0xb0
mov r10, qword [rax + r12 + 0x60]
test r10, r10
je 0x1800012c9
lea rax, [r9 + 0x88]
mov rdx, rdi
mov rcx, rbp
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x18000134d
test esi, esi
je 0x180001344
lea r14, [r9 + 8]
xor edx, edx
test ecx, ecx
jle 0x1800012f3
mov r8, rbp
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x1800012e0
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
mov rdx, rdi
mov rcx, r14
imul rax, rax, 0xb0
call qword [rax + r12 + 0x28]
test eax, eax
jne 0x18000134d
xor edx, edx
cmp dword [rbx + 4], edx
jle 0x180001336
mov r8, rdi
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
mov dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x180001323
movsxd rcx, dword [rbx + 4]
add rdi, rcx
add rbp, rcx
sub esi, ecx
jne 0x1800012d1
xor eax, eax
jmp 0x18000134d
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x18000136c
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x18003b580]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call fcn.180003ed8
test eax, eax
jne 0x18000148a
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001485
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001485
test cl, 3
jne 0x180001485
movsxd rax, dword [r9]
lea r15, [0x180041a90]
imul rax, rax, 0xb0
mov r10, qword [rax + r15 + 0x68]
test r10, r10
je 0x180001408
lea rax, [r9 + 0x88]
mov rdx, rbp
mov rcx, rdi
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x18000148a
test esi, esi
je 0x180001481
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
imul rax, rax, 0xb0
call qword [rax + r15 + gethostbyname]
test eax, eax
jne 0x18000148a
xor r8d, r8d
cmp dword [rbx + 4], r8d
jle 0x180001472
lea r9, [rsp + 0x30]
mov r10, rdi
mov r11, rbp
sub r9, rdi
sub r10, rbx
sub r11, rbx
lea rdx, [rbx + 8]
lea rax, [r10 + rdx]
add r8d, 4
mov ecx, dword [r9 + rax - 8]
mov eax, dword [rax - 8]
xor ecx, dword [rdx]
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov dword [r11 + rdx - 0xc], ecx
cmp r8d, dword [rbx + 4]
jl 0x18000144f
movsxd rax, dword [rbx + 4]
add rdi, rax
add rbp, rax
sub esi, dword [rbx + 4]
jne 0x18000140c
xor eax, eax
jmp 0x18000148a
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180020820
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800037d8
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x180003f54
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [rcx + 0x70]
mov r13, r8
mov r15, rdx
call fcn.180003f00
test eax, eax
jne 0x1800040c6
movsxd rdi, dword [rsi + 0x70]
lea rbx, [0x180043090]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.1800182cc
mov ecx, r12d
mov r14, rax
call fcn.1800182cc
mov rbp, rax
test r14, r14
je 0x1800040b4
test rax, rax
je 0x1800040ac
mov rdx, rax
mov rcx, rsi
call qword [rdi + rbx + 0x68]
mov ebx, eax
test eax, eax
jne 0x18000408c
lea r9, [0x180043090]
xor r8d, r8d
cmp dword [rdi + r9 + 0x10], r8d
jbe 0x180004007
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rdi + r9 + 0x10]
jb 0x180003feb
mov rcx, rsi
call qword [rdi + r9 + 0x58]
mov ebx, eax
test eax, eax
jne 0x18000408c
lea rax, [0x180043090]
mov rdx, r14
mov rcx, rsi
mov r8d, dword [rdi + rax + 0x10]
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x18000408c
lea rax, [0x180043090]
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x18000408c
lea rax, [0x180043090]
mov rdx, r14
mov rcx, rsi
call qword [rdi + rax + 0x68]
mov ebx, eax
test eax, eax
jne 0x18000408c
xor ecx, ecx
test r12d, r12d
je 0x180004086
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x180004086
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x18000406f
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rsi + 0xe8]
call fcn.18001828c
mov rcx, rbp
call fcn.18001828c
mov rcx, r14
call fcn.18001828c
mov eax, ebx
jmp 0x1800040c6
mov rcx, r14
call fcn.18001828c
test rbp, rbp
je 0x1800040c1
mov rcx, rbp
call fcn.18001828c
mov eax, reloc.WS2_32.dll_listen
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800040e4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
movsxd rbp, edx
mov edi, r9d
mov ecx, ebp
mov r13, r8
call fcn.180003f00
test eax, eax
jne 0x180004251
mov rbx, rbp
lea rax, [0x180043090]
mov dword [rsi + 0x70], ebp
shl rbx, 7
mov r15d, dword [rbx + rax + 0xc]
test r9d, r9d
jne 0x18000413f
lea eax, [r9 + 3]
jmp 0x180004251
mov r12d, dword [rbx + rax + 0x10]
mov ecx, r12d
call fcn.1800182cc
mov r14, rax
test rax, rax
jne 0x18000415d
lea eax, [r14 + 0xd]
jmp 0x180004251
mov rcx, r12
call fcn.1800182cc
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x180004179
lea edi, [rax + 0xd]
jmp 0x180004247
lea r12, [0x180043090]
mov rdx, r13
mov ecx, dword [rbx + r12 + 0x10]
cmp edi, ecx
jbe 0x1800041ca
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x30]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov ecx, ebp
mov r8d, edi
call fcn.1800016a0
mov edi, eax
test eax, eax
jne 0x18000423b
mov eax, dword [rbx + r12 + 0x10]
cmp r15d, eax
jae 0x1800041f1
mov rcx, r15
sub eax, r15d
add rcx, qword [rsi + 0xe8]
jmp 0x1800041ea
mov r8, rdi
mov rcx, rax
call fcn.1800188c0
mov eax, dword [rbx + r12 + 0x10]
cmp edi, eax
jae 0x1800041f1
mov rcx, qword [rsi + 0xe8]
sub eax, edi
add rcx, rdi
mov edx, eax
call fcn.180003ec0
xor r8d, r8d
cmp dword [rbx + r12 + 0x10], r8d
jbe 0x180004217
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x36
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rbx + r12 + 0x10]
jb 0x1800041fb
mov rcx, rsi
call qword [rbx + r12 + 0x58]
mov edi, eax
test eax, eax
jne 0x18000423b
mov r8d, dword [rbx + r12 + 0x10]
mov rdx, r14
mov rcx, rsi
call qword [rbx + r12 + 0x60]
mov edi, eax
test eax, eax
je 0x180004247
mov rcx, qword [rsi + 0xe8]
call fcn.18001828c
mov rcx, r14
call fcn.18001828c
mov eax, edi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000d59c
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.18000d5f4
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x18000d5e4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000d5e4
cmp word [rax + 0x10], 2
jne 0x18000d5e4
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000d5e4
mov eax, dword [rcx]
jmp 0x18000d5e6
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000d5f4
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x18003c478], 1
je 0x18000d68a
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000d692
mov ecx, socket
mov dword [0x18003c478], 1
call fcn.180016fdc
mov ecx, reloc.WS2_32.dll_send
mov dword [0x18003c47c], eax
call fcn.180016fdc
mov ecx, 0x3d
mov dword [0x18003c480], eax
call fcn.180017010
mov ecx, 0x3e
mov qword [0x180044ee8], rax
call fcn.180017010
mov ecx, 0x3f
mov qword [0x180044ee0], rax
call fcn.180017010
mov ecx, 0x42
mov qword [0x180044ed8], rax
call fcn.180017010
mov qword [0x180044ed0], rax
add rsp, 0x1c8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.1800194d8
int3

Function at 0x18000db60
Capabilities:
Create pipe

Disassembly:
sub rsp, 0x48
mov ecx, reloc.WS2_32.dll_ntohs
call fcn.180017010
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov edx, 3
mov rcx, rax
mov eax, 0x100000
mov dword [rsp + 0x28], eax
lea r8d, [rdx + 3]
mov r9d, 0xff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp rax, 0xffffffffffffffff
jne 0x18000dbba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, reloc.WS2_32.dll_socket
mov edx, eax
call fcn.18000d4a0
xor eax, eax
jmp 0x18000dbd0
mov qword [0x18003c4f0], rax
mov dword [reloc.WS2_32.dll_accept], 2
mov eax, 1
add rsp, 0x48
ret

Function at 0x18000dbf4
Capabilities:
Connect pipe

Disassembly:
sub rsp, 0xa8
mov rcx, qword [0x18003c4f0]
call fcn.18000ff68
test eax, eax
jne 0x18000dc32
mov rcx, qword [0x18003c4f0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000dc32
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
je 0x18000dc0b
mov rdx, qword [0x18003c4f0]
lea rcx, [rsp + 0x60]
call fcn.18000da30
mov rdx, rax
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rax + 0x20]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rax + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rdx + 0x38]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x58], rax
call fcn.18000d6e8
add rsp, 0xa8
ret
Function at 0x18000e5e4
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rdi, rcx
mov ebx, edx
mov esi, 0x68
lea rcx, [rbp - 0x19]
xor edx, edx
mov r8d, esi
call fcn.180018580
xor eax, eax
mov dword [rbp - 0x19], esi
lea r8, [rbp - 0x59]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x61]
xor esi, esi
mov r9d, 0x100000
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 0x18
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x19]
mov edx, ebx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
mov dword [rbp + 0x23], 0x101
mov word [rbp + 0x27], si
mov qword [rbp + 0x37], rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.1800146b0
test eax, eax
je 0x18000e6cd
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
movups xmm0, xmmword [rbp - 0x79]
movsd xmm1, qword [rbp - 0x69]
lea rcx, [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
call fcn.180011fb8
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x18000e75c
Capabilities:
Connect socket
Resolve dns

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, 0x30
xor r8d, r8d
mov esi, edx
mov rdi, rcx
lea r14d, [r8 + 2]
lea edx, [r8 + 1]
mov ecx, r14d
call sub.WS2_32.dll_socket
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x18000e79e
mov rax, rbp
jmp 0x18000e7f8
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x18000e799
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.1800188c0
movzx ecx, si
mov word [rsp + 0x20], r14w
call sub.WS2_32.dll_htons
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov word [rsp + 0x22], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x18000e7f5
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x18000e799
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x18000ef04
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x18000ef71
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c500
test eax, eax
je 0x18000ef71
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.18000ec5c
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.18000ed60
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x18000ef63
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18000ef79
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
jmp 0x18000ef79
mov rcx, rbx
call fcn.18000ec5c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18000ef84
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov r9d, 2
mov qword [r11 - 0x18], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 - 0x20], rax
mov eax, dword [rcx + 0x20]
mov rcx, qword [0x1800407e0]
mov qword [r11 - 0x28], r8
and qword [r11 - 0x30], 0
mov r8, qword [0x1800407e8]
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], rdx
mov rdx, qword [0x1800407d8]
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x18000efe4
mov eax, 1
jmp 0x18000effc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.18000d58c
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x18000f180
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.180013218
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.180013368
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.180013368
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.180013368
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.180013368
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.180013368
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.180018580
xor eax, eax
mov dword [rsp + 0x80], r14d
mov r14, qword [rsp + 0x148]
lea rcx, [rsp + 0x80]
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x68]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rsp + 0xbc], 0x101
mov word [rsp + 0xc0], ax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x90], rax
call fcn.18000e6e8
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000e6e8
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000e6e8
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000e6e8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x18000f2ed
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov eax, dword [rsp + 0x140]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
xor edi, edi
or eax, 0x8000400
lea rcx, [rsp + 0x80]
lea ebx, [rdi + 1]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x18000f36f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._s_as__s_s:__d
lea ecx, [rdi + 0x35]
mov dword [rsp + 0x28], eax
mov r9, r13
mov r8, r15
mov qword [rsp + 0x20], r12
call fcn.18000d454
mov ebx, edi
mov rcx, rbp
call fcn.180013300
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000f6b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x18000f6a2
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
mov dword [rsp + 0x30], eax
call rdi
mov rcx, qword [rbx + 8]
call fcn.180019578
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
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, 0x20
xor esi, esi
mov r14d, r8d
mov rbp, rdx
cmp qword [0x18003c508], rsi
mov rbx, rcx
jne 0x18000f6ee
mov ecx, 0x80004
call fcn.1800182cc
mov qword [0x18003c508], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x18003c508]
mov dword [rcx], eax
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x18000f740
mov rax, qword [0x18003c508]
mov r9, qword [rbx + 8]
mov ecx, esi
add rax, 4
mov r8d, edi
mov edx, 1
add rcx, rax
call fcn.180019dc0
test eax, eax
je 0x18000f73c
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x18000f70c
jmp 0x18000f740
and dword [rbx + 4], 0
mov rcx, qword [0x18003c508]
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x18000f668
Function at 0x18000fd30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
jne 0x18000fd62
xor eax, eax
jmp 0x18000fd84
inc eax
cmp eax, edi
jae 0x18000fd5e
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.180018580
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000fd9c
Capabilities:
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
and eax, 1
add rsp, 0x28
ret

Function at 0x1800100ec
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x18003c510], 0
mov rsi, rdx
mov rdi, rcx
jne 0x18000fef1
mov ecx, 0x29
sub edi, edx
call fcn.180016fdc
mov ebx, eax
call fcn.180016fb8
lea r9, [rsp + 0x40]
add rax, rbx
mov r8d, 4
mov edx, edi
mov rcx, rax
mov qword [0x18003c510], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [0x18003c510]
movsxd r8, edi
mov rdx, rsi
call fcn.1800188c0
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x18003c510]
lea r9, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x20
call fcn.1800182cc
mov qword [0x18003c518], rax
call fcn.180016fb8
mov rcx, qword [0x18003c518]
mov qword [rcx], rax
mov ecx, 0x2a
call fcn.180017010
mov rcx, qword [0x18003c518]
xor r8d, r8d
mov qword [rcx + 8], rax
mov rcx, qword [0x18003c518]
lea edx, [r8 + 0xd]
add rcx, 0x10
call fcn.180001148
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rdx, [0x18000ffd0]
lea rcx, [fcn.1800100ec]
jmp 0x18000fe24
Function at 0x180010508
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov ecx, dword [rbp + 0x70]
mov rsi, r9
mov r14d, r8d
mov edi, edx
call fcn.180017cb4
mov r15d, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, r15d
call fcn.180018580
xor eax, eax
mov dword [rbp - 0x60], r15d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r15d, r15d
mov r9d, 0x100000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rsp + 0x60]
mov edx, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r15w
mov qword [rbp - 0x10], r15
call fcn.1800172b8
test eax, eax
je 0x18001064a
lea ecx, [r15 + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x40]
lea rcx, [rsp + 0x40]
mov r9, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.180010b24
test edi, edi
je 0x18001061f
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.180011cd4
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
mov r9, qword [rbp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
call fcn.180011d48
mov ecx, dword [rbp + 0x70]
call fcn.180017ce4
lea r11, [rsp + 0x110]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret