joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180010618
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.180015838
mov edx, 0x4000
mov rcx, rax
mov r14, rax
call fcn.180015950
mov edi, 0x400
mov rcx, r14
mov edx, edi
mov qword [rsp + 0x70], rax
call fcn.180015950
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x78], rax
call fcn.180015950
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x60], rax
call fcn.180015950
mov edx, edi
mov rcx, r14
mov qword [rsp + 0x68], rax
call fcn.180015950
lea r8d, [rsi + 0x68]
lea rcx, [rbp - 0x60]
xor edx, edx
mov rdi, rax
call fcn.18001aa50
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.180010800
mov rdx, qword [rsp + 0x60]
mov r8d, 0x400
mov rcx, r12
call fcn.180010800
mov rdx, qword [rsp + 0x68]
mov r8d, 0x400
mov rcx, rbx
call fcn.180010800
mov rbx, qword [rsp + 0x78]
mov r8d, 0x400
mov rdx, rbx
mov rcx, r13
call fcn.180010800
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, 0x400
cmp eax, ecx
jae 0x180010762
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 0x1800107d6
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.18000d4a0
mov rcx, r14
call fcn.1800158e8
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 0x180010874
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 [0x18003f040]
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 0x1800108be
mov rax, rbp
jmp 0x180010918
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x1800108b9
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001b0b0
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 0x180010915
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x1800108b9
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001b630
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180010f30
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 0x180010f61
xor eax, eax
jmp 0x180010fca
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 0x180010f5d
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 0x180010fdc
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 0x180011005
xor eax, eax
jmp 0x180011043
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x180011001
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x180011001
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 0x180011050
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 0x180011079
xor eax, eax
jmp 0x1800110bc
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 0x180011075
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x180011075
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 0x1800110c8
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 [0x18003f040]
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.18001aa50
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 0x1800111d4
mov r8d, 0x24
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x1800111d4
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1800111d4
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 0x1800111d4
mov r14d, 0x7530
cmp dword [rsp + 0x3c], 1
je 0x1800111fa
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, r14d
ja 0x1800111d4
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 0x18001118b
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18001b630
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 0x1800111d6

Function at 0x1800113c4
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
movsxd rax, r9d
sub r10, 4
cmp r10, rax
jbe 0x1800113d6
xor eax, eax
ret
mov r11, rcx
add rcx, 4
sub edx, 4
je 0x180011407
xor r9d, r9d
mov r10d, edx
sub rcx, r8
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + r11]
xor al, byte [rcx + r8]
mov byte [r8], al
inc r8
dec r10
jne 0x1800113eb
mov eax, edx
ret

Function at 0x18001140c
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 r14
sub rsp, 0x20
movsxd rsi, edx
movsxd rax, r9d
mov rbx, r8
add rsi, 4
mov edi, edx
mov rbp, rcx
mov r14, r8
cmp rsi, rax
jbe 0x180011443
xor eax, eax
jmp 0x180011476
call fcn.18000f67c
xor edx, edx
mov dword [rbx], eax
add rbx, 4
test edi, edi
je 0x180011474
sub rbp, rbx
mov rax, rdi
mov rcx, rdx
inc rdx
and ecx, 3
mov cl, byte [rcx + r14]
xor cl, byte [rbx + rbp]
mov byte [rbx], cl
inc rbx
dec rax
jne 0x18001145a
mov eax, esi
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
ret
Function at 0x180011494
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x60
mov rdi, rcx
mov rcx, qword [0x18004a7a0]
mov rsi, r9
mov rbp, r8
mov r15d, edx
test rcx, rcx
je 0x180011560
cmp dword [rsp + 0x98], 0
jne 0x180011560
mov r14d, dword [rsp + 0x90]
mov qword [rax - 0x18], r9
mov qword [rax - 0x20], r8
and qword [rax - 0x28], 0
and qword [rax - 0x30], 0
mov dword [rax - 0x38], r14d
mov dword [rax - 0x40], 1
and qword [rax - 0x48], 0
xor r9d, r9d
mov r8, rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x1800115ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180011546
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x180011546
mov r9, rsi
mov r8, rbp
mov edx, r15d
mov rcx, rdi
mov dword [rsp + 0x20], r14d
call fcn.1800118e4
jmp 0x1800115b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x29
mov rdx, rdi
mov r8d, eax
call fcn.18000d5f8
xor eax, eax
jmp 0x1800115b0
mov eax, dword [rsp + 0x90]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1800115ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, gethostbyname
jmp 0x180011551
mov eax, 1
lea r11, [rsp + 0x60]
mov rbp, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret

Function at 0x180011788
Capabilities:
Resume thread
Terminate process

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, 0x50
mov edi, dword [rsp + 0x80]
mov rbx, r9
mov rbp, r8
mov r14d, edx
mov rsi, rcx
test dil, 4
jne 0x18001181c
lea rdx, [rax - 0x28]
call fcn.18000c71c
test eax, eax
je 0x18001181c
mov eax, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
or edi, 4
mov dword [rsp + 0x28], eax
mov r9, rbx
mov r8, rbp
mov edx, r14d
mov dword [rsp + 0x20], edi
call fcn.180011494
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov edi, eax
call fcn.1800115cc
test eax, eax
jne 0x18001180e
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18001183c
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
jmp 0x18001183c
mov eax, dword [rsp + 0x88]
mov r9, rbx
mov r8, rbp
mov dword [rsp + 0x28], eax
mov edx, r14d
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.180011494
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180011858
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rax, qword [rsp + 0x98]
mov rdx, qword [0x18004a7a8]
mov rbx, rcx
mov rcx, qword [0x18004a7b0]
mov qword [r11 - 0x18], rax
mov rax, qword [rsp + 0x90]
mov qword [r11 - 0x20], rax
mov eax, dword [rsp + 0xa0]
mov qword [r11 - 0x28], r9
and qword [r11 - 0x30], 0
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], r8
mov r8, qword [0x18004a7b8]
and qword [r11 - 0x48], 0
mov r9d, 2
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1800118c4
mov eax, 1
jmp 0x1800118dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, 0x45
mov r8d, eax
call fcn.18000d5f8
xor eax, eax
add rsp, 0x60
pop rbx
ret

Function at 0x1800118e4
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, 0x1060
call fcn.18001b670
sub rsp, rax
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rsi, rcx
mov r14, r8
mov ebp, edx
mov ebx, 0x7fe
lea rcx, [rsp + 0x52]
xor r12d, r12d
xor edx, edx
mov r8d, ebx
mov r15, r9
mov word [rsp + 0x50], r12w
call fcn.18001aa50
lea rcx, [rsp + 0x852]
mov r8d, ebx
xor edx, edx
mov word [rsp + 0x850], r12w
call fcn.18001aa50
mov edi, 0x400
lea rdx, [rsp + 0x50]
mov r8d, edi
mov rcx, rsi
mov ebx, r12d
mov qword [r14 + 0x10], r12
call fcn.180010800
test eax, eax
jne 0x180011980
lea ecx, [rax + 7]
mov edx, ebp
call fcn.18000d50c
jmp 0x180011a40
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
jae 0x1800119a6
lea rdx, [rsp + 0x850]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rbx, [rsp + 0x850]
mov edi, dword [rsp + 0x10c0]
mov rcx, qword [0x18004a7a0]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
xor r8d, r8d
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x50]
lea edx, [r8 + 2]
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x1800119e9
mov eax, 1
jmp 0x180011a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x180011a2a
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], r12
je 0x180011a2a
cmp dword [0x18004a7c8], 1
jne 0x180011a2a
mov dword [rsp + 0x30], edi
lea r8, [rsp + 0x50]
mov r9, rbx
mov edx, ebp
mov rcx, rsi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
call fcn.180011858
jmp 0x180011a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
mov ecx, 0x29
mov r8d, eax
call fcn.18000d5f8
xor eax, eax
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.18001b630
add rsp, 0x1060
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180011d78
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 0x180011d6a
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.18001bf60
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 [0x1800404b8], rsi
mov rdi, rcx
jne 0x180011db6
mov ecx, 0x80004
call fcn.18001a7a4
mov qword [0x1800404b8], rax
mov ecx, dword [rdi]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x1800404b8]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, r14d
cmova ebx, r14d
test ebx, ebx
je 0x180011dfe
mov r9, qword [rdi + 8]
mov eax, esi
mov r8d, ebx
add rax, 4
mov edx, 1
add rcx, rax
call fcn.18001c5c4
mov rcx, qword [0x1800404b8]
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x180011dd4
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 0x180011d30
Function at 0x1800123ec
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 0x18001241e
xor eax, eax
jmp 0x180012440
inc eax
cmp eax, edi
jae 0x18001241a
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18001aa50
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 0x180012458
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 0x1800125d8
Capabilities:
Allocate or change rwx memory

Disassembly:
lea rdx, [0x180012530]
lea rcx, [fcn.1800125c4]
jmp 0x1800125d8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x1800404c0], 0
mov rsi, rdx
mov rdi, rcx
jne 0x1800126c2
mov ecx, 0x29
sub edi, edx
call fcn.180019618
mov ebx, eax
call fcn.1800195f4
lea r9, [rsp + 0x40]
add rax, rbx
mov r8d, 4
mov edx, edi
mov rcx, rax
mov qword [0x1800404c0], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [0x1800404c0]
movsxd r8, edi
mov rdx, rsi
call fcn.18001b0b0
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1800404c0]
lea r9, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x18
call fcn.18001a7a4
mov qword [0x1800404c8], rax
call fcn.1800195f4
mov rcx, qword [0x1800404c8]
mov qword [rcx], rax
mov ecx, 0x2a
call fcn.18001966c
mov rcx, qword [0x1800404c8]
mov qword [rcx + 8], rax
call fcn.18001bea0
mov r8d, eax
mov eax, 0x81020409
imul r8d
mov rax, qword [0x1800404c8]
add edx, r8d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0xfe
sub r8d, edx
inc r8b
mov byte [rax + 0x10], r8b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180012c94
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov ecx, dword [rbp + 0x80]
mov r14, r9
mov r15d, r8d
mov esi, edx
call fcn.18001a2b4
mov edi, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, edi
call fcn.18001aa50
xor eax, eax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r12d, r12d
mov r9d, 0x100000
mov dword [rbp - 0x60], edi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x68], 0x18
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 + 0x80]
mov ecx, dword [rbp + 0x78]
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], r12w
mov qword [rbp - 0x10], r12
call fcn.180019914
test eax, eax
je 0x180012e1c
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x180012da5
mov ecx, dword [rbp + 0x80]
call fcn.18001a2e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rsp + 0x50]
lea ecx, [rdi + 0x21]
mov r8d, eax
call fcn.18000d518
jmp 0x180012e27
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x60]
mov r8d, dword [rsp + 0x50]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x58]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x50]
mov r9, r14
mov rdx, rdi
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], eax
call fcn.180013094
test esi, esi
je 0x180012df1
mov rcx, qword [rsp + 0x58]
mov edx, esi
call fcn.1800143cc
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
mov r9, qword [rbp + 0x68]
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.180014440
mov ecx, dword [rbp + 0x80]
call fcn.18001a2e4
lea r11, [rsp + 0x110]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800132f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
lea rax, [fcn.1800132f0]
mov rbp, rcx
lea r15, [0x1800132a4]
sub eax, r15d
xor r12d, r12d
mov rsi, r8
lea rcx, [rax + 0x20]
mov qword [rsp + 0x70], r12
lea edi, [rax + 0x20]
mov ebx, eax
call fcn.18001a7a4
mov rcx, qword [rsi]
mov qword [rax], rcx
mov rcx, qword [rsi + 8]
mov r8d, ebx
mov qword [rax + 8], rcx
mov rcx, qword [rsi + 0x10]
mov rdx, r15
mov qword [rax + 0x10], rcx
mov rcx, qword [rsi + 0x18]
mov r14, rax
mov qword [rax + 0x18], rcx
lea rcx, [rax + 0x20]
call fcn.18001b0b0
mov r9d, 0x3000
mov r8d, edi
xor edx, edx
mov rcx, rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x1800133b0
lea rax, [rsp + 0x70]
mov r9d, edi
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800133b0
cmp qword [rsp + 0x70], rdi
cmovne rbx, r12
mov rcx, r14
call fcn.18001a764
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1800133d4
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18003f040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea rcx, [rbp - 0x24]
lea r8d, [rdx + 0x18]
call fcn.18001aa50
xor eax, eax
lea rcx, str.ntdll
and qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
and dword [rbp - 0x30], 0
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x28], 0x1c
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
test rax, rax
je 0x180013566
mov edx, dword [rsi + 0x10]
mov rcx, qword [rsi]
lea r8, [rbp - 0x48]
call fcn.1800132f0
mov rbx, rax
test rax, rax
je 0x180013566
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x180013566
lea rdx, [rbp - 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180013566
mov eax, dword [rsi + 0x10]
cmp dword [rbp - 0x1c], eax
jne 0x1800134ee
mov r8d, dword [rbp - 0x20]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov r14, rax
test rax, rax
je 0x1800134ee
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbp - 0x28]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800134ae
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi]
lea rax, [rbp - 0x50]
mov edi, 0x20
lea r8, [rbp - 0x48]
mov rdx, rbx
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180013566
cmp qword [rbp - 0x50], rdi
jne 0x180013566
cmp dword [rbp - 0x30], 0
jne 0x18001358b
mov rcx, qword [rsi]
lea rax, [rbp - 0x50]
lea r8, [rbp - 0x48]
mov r9d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x30], 1
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18001b630
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
jmp 0x180013568