joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180011940
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
xor r8d, r8d
mov edx, 1
mov ecx, 2
call sub.WS2_32.dll_socket
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x18001197a
mov rax, 0xffffffffffffffff
jmp 0x180011a11
mov rcx, qword [rsp + 0x60]
call sub.WS2_32.dll_gethostbyname
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18001199a
mov rax, 0xffffffffffffffff
jmp 0x180011a11
mov rax, qword [rsp + 0x28]
movsx rax, word [rax + 0x12]
mov ecx, 8
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + 0x18]
lea r8, [rsp + 0x34]
mov rdi, r8
mov rsi, qword [rdx + rcx]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov eax, 2
mov word [rsp + 0x30], ax
movzx ecx, word [rsp + 0x68]
call sub.WS2_32.dll_htons
mov word [rsp + 0x32], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_connect
test eax, eax
je 0x180011a0c
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x180011a11
mov rax, qword [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x180012afc
Capabilities:
Create pipe

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x148
cmp dword [rsp + 0x168], 0x100
jl 0x180012b20
jmp 0x180012bd0
movsxd rax, dword [rsp + 0x168]
lea rcx, [rsp + 0x40]
mov rdi, rcx
mov rsi, qword [rsp + 0x160]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
movsxd rax, dword [rsp + 0x168]
mov byte [rsp + rax + 0x40], 0
mov qword [0x1800623a8], 0xffffffffffffffff
mov qword [0x1800623a0], 0xffffffffffffffff
mov qword [0x1800623b0], 0xffffffffffffffff
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 2
mov r8d, 4
mov edx, 3
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x1800623a0], rax
cmp qword [0x1800623a0], 0
jne 0x180012bbb
jmp 0x180012bd0
xor edx, edx
lea rcx, [0x180012cc0]
call fcn.18003d774
mov qword [0x1800623b0], rax
add rsp, 0x148
pop rdi
pop rsi
ret
Function at 0x18001345c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [0x18006df90], 0
je 0x180013544
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x24], 0
jne 0x180013544
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rsp + 0x70]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x18006df90]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x1800134f7
mov eax, 1
jmp 0x1800135c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x18001351d
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x18001351d
mov rcx, qword [rsp + 0x70]
call fcn.1800139ac
jmp 0x1800135c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, 0x29
call fcn.18000f7f8
xor eax, eax
jmp 0x1800135c6
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1800135c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, gethostbyname
call fcn.18000f7f8
xor eax, eax
jmp 0x1800135c6
mov eax, 1
add rsp, 0x68
ret

Function at 0x18001383c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
and eax, 4
cmp eax, 4
je 0x1800138e8
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.18000c71c
test eax, eax
je 0x1800138e8
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x20]
or eax, 4
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x20], eax
mov rcx, qword [rsp + 0x50]
call fcn.18001345c
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x18]
call fcn.1800135cc
test eax, eax
jne 0x1800138ce
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x1800138f2
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
call fcn.18003cb00
mov eax, dword [rsp + 0x20]
jmp 0x1800138f2
mov rcx, qword [rsp + 0x50]
call fcn.18001345c
add rsp, 0x48
ret
Function at 0x1800138f8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [0x18006dfa8]
mov rdx, qword [0x18006df98]
mov rcx, qword [0x18006dfa0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180013988
mov eax, 1
jmp 0x1800139a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, 0x45
call fcn.18000f7f8
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800139ac
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1070
call fcn.180040a60
sub rsp, rax
xor eax, eax
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x72]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x870], ax
lea rax, [rsp + 0x872]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x1080]
mov rax, qword [rax + 0x10]
mov qword [rax + 0x10], 0
mov r8d, 0x400
lea rdx, [rsp + 0x70]
mov rax, qword [rsp + 0x1080]
mov rcx, qword [rax]
call fcn.1800118b4
test eax, eax
jne 0x180013a4d
mov rax, qword [rsp + 0x1080]
mov edx, dword [rax + 8]
mov ecx, 7
call fcn.18000f68c
xor eax, eax
jmp 0x180013bb1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0x400
jae 0x180013a89
lea rdx, [rsp + 0x870]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x870]
mov qword [rsp + 0x58], rax
call fcn.18003e000
mov rax, qword [rsp + 0x1080]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1080]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x1080]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x70]
xor r8d, r8d
mov edx, 2
mov rcx, qword [0x18006df90]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov dword [rsp + 0x50], eax
call fcn.18003dfd8
cmp dword [rsp + 0x50], 0
je 0x180013b0b
mov eax, 1
jmp 0x180013bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180013b46
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180013b46
cmp dword [0x18006dfb8], 1
jne 0x180013b46
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1080]
call fcn.1800138f8
jmp 0x180013bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180013b91
mov rax, qword [rsp + 0x1080]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
cmp rax, 0x70
jne 0x180013b91
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180013b91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1080]
mov rdx, qword [rax]
mov ecx, 0x4a
call fcn.18000f7f8
xor eax, eax
jmp 0x180013bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1080]
mov rdx, qword [rax]
mov ecx, 0x29
call fcn.18000f7f8
xor eax, eax
add rsp, 0x1070
pop rdi
ret
Function at 0x180013bbc
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov qword [rsp + 0x80], 0
mov ecx, 0xa000
call fcn.18001a8e0
mov qword [rsp + 0x60], rax
mov edx, 0x4000
mov rcx, qword [rsp + 0x60]
call fcn.18001ac50
mov qword [rsp + 0x70], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001ac50
mov qword [rsp + 0x78], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001ac50
mov qword [rsp + 0x88], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001ac50
mov qword [rsp + 0x90], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001ac50
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xb0], WSAGetLastError
mov rdi, qword [rsp + 0x158]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xec], 0x101
xor eax, eax
mov word [rsp + 0xf0], ax
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0xc0], 0
mov r8d, 0x4000
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x148]
call fcn.1800118b4
mov r8d, 0x400
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x138]
call fcn.1800118b4
mov r8d, 0x400
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x140]
call fcn.1800118b4
mov r8d, 0x400
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x130]
call fcn.1800118b4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x400
jae 0x180013d8e
mov rdx, qword [rsp + 0x98]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x150]
or eax, 0x8000400
mov rcx, qword [rsp + 0x158]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 1
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180013e10
mov dword [rsp + 0x68], 1
jmp 0x180013e50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x130]
mov r8, qword [rsp + 0x148]
lea rdx, str._s_as__s_s:__d
mov ecx, 0x35
call fcn.18000f620
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call fcn.18001aa50
mov eax, dword [rsp + 0x68]
add rsp, 0x120
pop rdi
ret
Function at 0x1800142b8
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
cmp qword [0x180069c30], 0
jne 0x1800142f6
mov ecx, 0x80004
call fcn.18003f844
mov qword [0x180069c30], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x24], eax
mov rax, qword [0x180069c30]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
cmp dword [rax + 4], ecx
jbe 0x18001432b
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x180014337
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x1800143bc
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [0x180069c30]
lea rcx, [rdx + rcx + 4]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rdx + 8]
mov r8d, eax
mov edx, 1
call fcn.180040cd0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x180014381
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
jmp 0x1800143bc
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 4]
sub eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
jmp 0x180014337
mov eax, dword [rsp + 0x28]
add eax, 4
mov r8d, 8
mov edx, eax
mov rcx, qword [0x180069c30]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.180014268
add rsp, 0x38
ret

Function at 0x1800143ec
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.18001a8e0
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001ac50
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001ac50
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.18001aa80
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18001ad78
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18001ad78
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x180014497
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_listen
call fcn.18000f68c
mov rcx, qword [rsp + 0x20]
call fcn.18001aa50
add rsp, 0x58
ret
Function at 0x180014524
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.18001aa80
mov edx, 0x80
lea rcx, [rsp + 0x28]
call fcn.18000d374
lea rcx, [rsp + 0x40]
call fcn.18001aac4
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.18000d3ac
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x1800623f8]
lea rcx, [rsp + 0x28]
call fcn.18000d4dc
lea rcx, [rsp + 0x28]
call fcn.18000d4cc
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x28]
call fcn.18000d600
mov r8d, reloc.WS2_32.dll_shutdown
mov ecx, dword [rsp + 0x24]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.18000d338
add rsp, 0x68
ret
Function at 0x180014948
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.18001a8e0
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001ac50
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001ac50
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.18001aa80
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18001ad78
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18001ad78
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1800149f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.18000f68c
mov rcx, qword [rsp + 0x20]
call fcn.18001aa50
add rsp, 0x58
ret

Function at 0x180014a74
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180014aa7
xor eax, eax
jmp 0x180014ae3
mov eax, dword [rsp + 0x20]
inc eax
cmp eax, dword [rsp + 0x50]
jb 0x180014ab7
xor eax, eax
jmp 0x180014ae3
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x28]
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add rsp, 0x30
pop rdi
ret

Function at 0x180014aec
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x180014b12
mov dword [rsp + 0x20], 1
jmp 0x180014b1a
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18001552c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x128
mov ecx, dword [rsp + 0x190]
call fcn.18003e01c
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x90], WSAGetLastError
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x70], 0x18
mov dword [rsp + 0x80], 1
mov r9d, 0x100000
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xcc], 0x101
xor eax, eax
mov word [rsp + 0xd0], ax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe0], 0
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x90]
mov edx, dword [rsp + 0x190]
mov ecx, dword [rsp + 0x188]
call fcn.18003aa00
test eax, eax
jne 0x180015638
mov ecx, dword [rsp + 0x190]
call fcn.18003e058
jmp 0x18001571d
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x158]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180016c8c
cmp dword [rsp + 0x148], 0
jbe 0x1800156a8
mov edx, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x50]
call fcn.1800185e4
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0xe8], rax
jne 0x1800156c3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
jmp 0x1800156cc
mov qword [rsp + 0x48], 0xffffffffffffffff
lea rax, [rsp + 0x100]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov edx, dword [rsp + 0x140]
lea rcx, [rsp + 0x100]
call fcn.180018660
mov ecx, dword [rsp + 0x190]
call fcn.18003e058
add rsp, 0x128
pop rdi
pop rsi
ret
Function at 0x180017168
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x84]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0x1c
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
lea rcx, [0x1800664fc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1800664e8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180017257
xor eax, eax
jmp 0x1800173e0
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0xb0]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.180017060
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x18001728b
xor eax, eax
jmp 0x1800173e0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1800172ab
xor eax, eax
jmp 0x1800173e0
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1800172c8
xor eax, eax
jmp 0x1800173e0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x8c], eax
je 0x1800172de
jmp 0x180017331
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x1fffff
call fcn.18003c88c
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180017301
jmp 0x180017331
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.18003be64
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800172c8
cmp qword [rsp + 0x38], 0
je 0x180017359
mov rcx, qword [rsp + 0x38]
call fcn.18003be64
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.18003c9d8
test eax, eax
je 0x18001739a
cmp qword [rsp + 0x48], 0x20
je 0x18001739e
xor eax, eax
jmp 0x1800173e0
cmp dword [rsp + 0x70], 0
jne 0x1800173db
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.18003d270
xor eax, eax
jmp 0x1800173e0
mov eax, 1
add rsp, 0xa0
pop rdi
ret