joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180012140
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 0x18001217a
mov rax, 0xffffffffffffffff
jmp 0x180012211
mov rcx, qword [rsp + 0x60]
call sub.WS2_32.dll_gethostbyname
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18001219a
mov rax, 0xffffffffffffffff
jmp 0x180012211
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 0x18001220c
mov rcx, qword [rsp + 0x20]
call sub.WS2_32.dll_closesocket
mov rax, 0xffffffffffffffff
jmp 0x180012211
mov rax, qword [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1800132fc
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 0x180013320
jmp 0x1800133d0
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 [0x1800633b8], 0xffffffffffffffff
mov qword [0x1800633b0], 0xffffffffffffffff
mov qword [0x1800633c0], 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 [0x1800633b0], rax
cmp qword [0x1800633b0], 0
jne 0x1800133bb
jmp 0x1800133d0
xor edx, edx
lea rcx, [0x1800134c0]
call fcn.18003df0c
mov qword [0x1800633c0], rax
add rsp, 0x148
pop rdi
pop rsi
ret
Function at 0x180013c5c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [0x18006efb0], 0
je 0x180013d44
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x24], 0
jne 0x180013d44
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 [0x18006efb0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x180013cf7
mov eax, 1
jmp 0x180013dc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180013d1d
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x180013d1d
mov rcx, qword [rsp + 0x70]
call fcn.1800141ac
jmp 0x180013dc6
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 0x180013dc6
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 0x180013dc1
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 0x180013dc6
mov eax, 1
add rsp, 0x68
ret

Function at 0x18001403c
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 0x1800140e8
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call fcn.18000c71c
test eax, eax
je 0x1800140e8
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.180013c5c
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x18]
call fcn.180013dcc
test eax, eax
jne 0x1800140ce
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 0x1800140f2
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov rcx, qword [rax + 8]
call fcn.18003d298
mov eax, dword [rsp + 0x20]
jmp 0x1800140f2
mov rcx, qword [rsp + 0x50]
call fcn.180013c5c
add rsp, 0x48
ret
Function at 0x1800140f8
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 [0x18006efc8]
mov rdx, qword [0x18006efb8]
mov rcx, qword [0x18006efc0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180014188
mov eax, 1
jmp 0x1800141a5
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 0x1800141ac
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.1800415c0
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.1800120b4
test eax, eax
jne 0x18001424d
mov rax, qword [rsp + 0x1080]
mov edx, dword [rax + 8]
mov ecx, 7
call fcn.18000f68c
xor eax, eax
jmp 0x1800143b1
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 0x180014289
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.18003e798
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 [0x18006efb0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
mov dword [rsp + 0x50], eax
call fcn.18003e770
cmp dword [rsp + 0x50], 0
je 0x18001430b
mov eax, 1
jmp 0x1800143b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180014346
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180014346
cmp dword [0x18006efd8], 1
jne 0x180014346
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x1080]
call fcn.1800140f8
jmp 0x1800143b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180014391
mov rax, qword [rsp + 0x1080]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
cmp rax, 0x70
jne 0x180014391
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180014391
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 0x1800143b1
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 0x1800143bc
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.18001b0e0
mov qword [rsp + 0x60], rax
mov edx, 0x4000
mov rcx, qword [rsp + 0x60]
call fcn.18001b450
mov qword [rsp + 0x70], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001b450
mov qword [rsp + 0x78], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001b450
mov qword [rsp + 0x88], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001b450
mov qword [rsp + 0x90], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.18001b450
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.1800120b4
mov r8d, 0x400
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x138]
call fcn.1800120b4
mov r8d, 0x400
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x140]
call fcn.1800120b4
mov r8d, 0x400
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x130]
call fcn.1800120b4
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 0x18001458e
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 0x180014610
mov dword [rsp + 0x68], 1
jmp 0x180014650
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.18001b250
mov eax, dword [rsp + 0x68]
add rsp, 0x120
pop rdi
ret
Function at 0x180014ab8
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 [0x18006ac58], 0
jne 0x180014af6
mov ecx, 0x80004
call fcn.18003ffe4
mov qword [0x18006ac58], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x24], eax
mov rax, qword [0x18006ac58]
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 0x180014b2b
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x180014b37
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x180014bbc
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [0x18006ac58]
lea rcx, [rdx + rcx + 4]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rdx + 8]
mov r8d, eax
mov edx, 1
call fcn.180041830
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x180014b81
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
jmp 0x180014bbc
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 0x180014b37
mov eax, dword [rsp + 0x28]
add eax, 4
mov r8d, 8
mov edx, eax
mov rcx, qword [0x18006ac58]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.180014a68
add rsp, 0x38
ret

Function at 0x180014bec
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.18001b0e0
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001b450
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001b450
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.18001b280
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18001b578
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18001b578
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x180014c97
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.18001b250
add rsp, 0x58
ret
Function at 0x180014d24
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.18001b280
mov edx, 0x80
lea rcx, [rsp + 0x28]
call fcn.18000d374
lea rcx, [rsp + 0x40]
call fcn.18001b2c4
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, [0x180063408]
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 0x180015148
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.18001b0e0
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001b450
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.18001b450
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.18001b280
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18001b578
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.18001b578
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1800151f0
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.18001b250
add rsp, 0x58
ret

Function at 0x180015274
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 0x1800152a7
xor eax, eax
jmp 0x1800152e3
mov eax, dword [rsp + 0x20]
inc eax
cmp eax, dword [rsp + 0x50]
jb 0x1800152b7
xor eax, eax
jmp 0x1800152e3
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 0x1800152ec
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 0x180015312
mov dword [rsp + 0x20], 1
jmp 0x18001531a
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180015d2c
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.18003e7b4
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.18003b198
test eax, eax
jne 0x180015e38
mov ecx, dword [rsp + 0x190]
call fcn.18003e7f0
jmp 0x180015f1d
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.18001748c
cmp dword [rsp + 0x148], 0
jbe 0x180015ea8
mov edx, dword [rsp + 0x148]
mov rcx, qword [rsp + 0x50]
call fcn.180018de4
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0xe8], rax
jne 0x180015ec3
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
jmp 0x180015ecc
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.180018e60
mov ecx, dword [rsp + 0x190]
call fcn.18003e7f0
add rsp, 0x128
pop rdi
pop rsi
ret
Function at 0x180017968
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, [0x18006750c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x1800674f8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180017a57
xor eax, eax
jmp 0x180017be0
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.180017860
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180017a8b
xor eax, eax
jmp 0x180017be0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x180017aab
xor eax, eax
jmp 0x180017be0
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x180017ac8
xor eax, eax
jmp 0x180017be0
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x8c], eax
je 0x180017ade
jmp 0x180017b31
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x1fffff
call fcn.18003d024
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180017b01
jmp 0x180017b31
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.18003c5fc
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180017ac8
cmp qword [rsp + 0x38], 0
je 0x180017b59
mov rcx, qword [rsp + 0x38]
call fcn.18003c5fc
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.18003d170
test eax, eax
je 0x180017b9a
cmp qword [rsp + 0x48], 0x20
je 0x180017b9e
xor eax, eax
jmp 0x180017be0
cmp dword [rsp + 0x70], 0
jne 0x180017bdb
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.18003da08
xor eax, eax
jmp 0x180017be0
mov eax, 1
add rsp, 0xa0
pop rdi
ret