joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800060a4
Capabilities:
Resolve function by parsing pe exports

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 r13
push r14
push r15
sub rsp, 0x40
mov r13, rdx
mov rdi, rcx
xor ebx, ebx
test rcx, rcx
jne 0x1800060d5
xor eax, eax
jmp 0x180006174
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbx
movsxd rax, dword [rcx + 0x3c]
mov ecx, dword [rax + rcx + 0x88]
add rcx, rdi
mov r12d, dword [rcx + 0x1c]
add r12, rdi
mov r15d, dword [rcx + 0x20]
add r15, rdi
mov qword [rsp + 0x28], r15
mov r14d, dword [rcx + 0x24]
add r14, rdi
mov qword [rsp + 0x30], r14
test rdx, 0xffffffffffff0000
jne 0x18000611d
movzx eax, dx
sub eax, dword [rcx + 0x10]
jmp 0x180006146
mov esi, dword [rcx + 0x18]
mov dword [rsp + 0x20], esi
mov eax, esi
dec esi
mov dword [rsp + 0x20], esi
test eax, eax
je 0x180006168
mov ecx, dword [r15]
add rcx, rdi
mov rdx, r13
call fcn.1800148f0
test eax, eax
jne 0x180006154
movzx eax, word [r14]
mov ebx, dword [r12 + rax*4]
add rbx, rdi
mov qword [rsp + 0x38], rbx
jmp 0x180006168
add r15, 4
mov qword [rsp + 0x28], r15
add r14, 2
mov qword [rsp + 0x30], r14
jmp 0x180006124
jmp 0x180006171
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret

Function at 0x1800062d8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, edx
mov rbx, rcx
and qword [rax - 0x18], 0
and dword [rax + 8], 0
and dword [rax + 0x20], 0
test rcx, rcx
je 0x180006373
test edx, edx
je 0x180006373
mov rdx, r8
call fcn.18000619c
test eax, eax
je 0x180006368
mov esi, eax
add rsi, rbx
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180006368
call rsi
test rax, rax
je 0x180006352
lea r8, [rsp + 0x20]
mov edx, 6
xor ecx, ecx
call rax
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x20]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsp + 0x20]
jmp 0x180006371
jmp 0x180006375
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180006560
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
je 0x180006581
mov r10d, r8d
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + rcx]
xor byte [rdx], al
inc rdx
dec r10
jne 0x18000656b
ret
Function at 0x180006c10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [0x180030ad0], 0
mov rbx, rcx
jne 0x180006c36
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x180030ad0], rax
mov rcx, rbx
call fcn.1800098a8
cmp dword [rbx + 8], 0xa2a1de0
mov edi, eax
je 0x180006c79
cmp dword [rbx + 8], 0x56a2b5f0
je 0x180006c70
cmp dword [rbx + 8], 0xea320efe
jne 0x180006c63
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x180006cd0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov r13, rdx
mov r15, rcx
lea r8d, [r9 - 4]
lea rdx, [rdi + 4]
xor ebx, ebx
and qword [rbp - 0x10], rbx
mov rcx, rdi
call fcn.180006560
lea edx, [rbx + 0x48]
lea ecx, [rbx + 1]
call fcn.180013b5c
mov rsi, rax
test rax, rax
jne 0x180006d21
lea ebx, [rax + 8]
jmp 0x180006e5a
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa0]
test rcx, rcx
je 0x180006e08
cmp dword [rcx + 0x14], ebx
je 0x180006e08
test eax, eax
je 0x180006e08
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa0]
lea r9, [rbp - 0x10]
sub eax, 0x18
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x58], eax
mov rcx, qword [rcx + 8]
lea r12, [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x180006d89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180006e4e
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rbp + 0x50]
lea edx, [r9 + 4]
mov dword [rbp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180006d7c
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rdi + 0x20]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180006d7c
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180006d7c
mov edx, dword [rbp + 0x58]
lea rcx, [rdi + 0x20]
mov r8, r12
mov r9d, edx
call fcn.180014ff0
mov ecx, dword [rbp + 0x58]
add ecx, 8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rdi + 0x18], eax
mov ecx, dword [rdi + 0x18]
mov dword [rsi + 0x18], ecx
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x1c], eax
call qword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
mov ecx, eax
mov dword [rsi + 0x28], eax
mov r14d, eax
call fcn.180013344
mov qword [rsi + 0x20], rax
test rax, rax
jne 0x180006e38
lea ebx, [rax + 8]
jmp 0x180006e52
lea r8, [rdi + 0x20]
mov r9, r14
mov rdx, r14
mov rcx, rax
call fcn.180014f68
mov qword [r13], rsi
test ebx, ebx
je 0x180006e5a
mov rcx, rsi
call fcn.180004220
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180006e69
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007c9c
Capabilities:
Link function at runtime on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov ebp, reloc.WS2_32.dll_ntohl
mov r14, r9
lea ecx, [rbp + 0x2a]
mov r15, r8
mov esi, edx
call fcn.180013344
mov rbx, rax
test rax, rax
je 0x180007e20
lea r8d, [rbp + 0x2a]
xor edx, edx
mov rcx, rax
call fcn.180013ca0
mov qword [rbx], rdi
lea edx, [rbp - 0xc]
mov rcx, rdi
test esi, esi
je 0x180007d27
call fcn.1800060a4
mov rcx, qword [rbx]
lea edx, [rbp - 0xb]
mov qword [rbx + 8], rax
call fcn.1800060a4
mov rcx, qword [rbx]
lea edx, [rbp - 9]
mov qword [rbx + 0x10], rax
call fcn.1800060a4
mov rcx, qword [rbx]
lea edx, [rbp - 0xa]
mov qword [rbx + 0x18], rax
call fcn.1800060a4
jmp 0x180007d63
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 3
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 5
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
mov edx, 4
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8, qword [rbx + 8]
mov qword [rbx + 0x20], rax
test r8, r8
je 0x180007dce
mov rax, qword [rsp + 0x60]
mov rdx, r15
mov qword [rbx + 0x30], rax
mov rcx, qword [0x18002e5e0]
call r8
mov rcx, qword [0x180030aa0]
mov qword [rbx + 0x28], rcx
mov ebp, eax
test eax, eax
jne 0x180007dc6
cmp qword [rbx + 0x18], 0
je 0x180007db5
mov rdi, qword [rbx + 0x30]
jmp 0x180007db0
mov ecx, dword [rdi]
call qword [rbx + 0x18]
mov rdi, qword [rdi + 0xb8]
test rdi, rdi
jne 0x180007da4
mov rcx, qword [0x180030ae0]
mov rdx, rbx
call fcn.180005e50
jmp 0x180007dce
mov rcx, rbx
call fcn.180013304
test r14, r14
je 0x180007e20
mov rdi, qword [rbx + 0x28]
jmp 0x180007e1a
mov r8d, dword [rdi]
mov edx, 0x2000b
mov rcx, r14
call fcn.18000440c
mov rax, qword [0x180030ae0]
mov rsi, qword [rax]
jmp 0x180007e0e
mov rax, qword [rsi + 0x10]
cmp rax, rbx
je 0x180007e0b
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x180007e0b
mov ecx, dword [rdi]
call rdx
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180007df5
mov rdi, qword [rdi + 0xb8]
cmp rdi, qword [rbx + 0x30]
jne 0x180007dd9
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180008238
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov edi, r8d
mov r14, rdx
mov qword [rax - 0x28], rbx
mov dword [rax - 0x30], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x38], 1
mov esi, ebx
mov dword [rax + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x18000828e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800082c4
test edi, edi
je 0x1800082bb
mov edx, esi
lea r9, [rsp + 0x78]
mov r8d, edi
mov rcx, rbp
add rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800082bb
add esi, dword [rsp + 0x78]
sub edi, dword [rsp + 0x78]
jne 0x180008292
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x18000836c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [rsp + 0x98]
mov ebx, dword [rsp + 0x90]
lea rdi, [r11 - 0x18]
test rax, rax
mov rsi, r9
mov rbp, r8
cmovne rdi, rax
mov r14, rcx
mov qword [r11 - 0x38], rdi
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x48], r9
mov r9, r8
mov r8, rdx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x180008496
and qword [rsp + 0x98], 0
cmp dword [0x180030af0], 0
mov rax, qword [0x180030ae8]
jne 0x180008425
test rax, rax
jne 0x18000841b
lea rcx, [0x1800236bc]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RtlCreateUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180030ae8], rax
mov dword [0x180030af0], 1
test rax, rax
je 0x18000848b
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x98]
shr ebx, 2
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbp
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
and ebx, 1
xor r9d, r9d
mov r8d, ebx
xor edx, edx
mov rcx, r14
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x180008496
test rdi, rdi
je 0x180008496
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rdi], eax
jmp 0x180008496
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x98]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180008f5c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x101c8]
xor ebx, ebx
mov ebp, r8d
mov r15, rdx
mov esi, ebx
call fcn.18000cc88
test ebp, ebp
je 0x180008fe8
lea r14, [rdi + 0x20]
mov rcx, qword [rdi + 0x190]
mov r8d, ebp
xor r9d, r9d
mov rdx, r15
sub r8d, esi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rdi + 0x190]
lea r8, [rsp + 0x60]
mov r9d, 1
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x180008fe0
add esi, dword [rsp + 0x60]
cmp esi, ebp
jb 0x180008f95
jmp 0x180008fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rdi + 0x101c8]
call fcn.18000cca8
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x18000974c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
xor ebx, ebx
lea r8, [rsp + 0x70]
lea edx, [rbx + 1]
lea rcx, str.SeSecurityPrivilege
call fcn.18000967c
test eax, eax
jne 0x1800097e3
xor eax, eax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.1800094d0
lea rax, [rsp + 0x40]
lea rcx, [rdi + 0x40]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov edx, 0x40000003
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x190], rax
cmp dword [rsp + 0x70], ebx
jne 0x1800097e3
lea r8, [rsp + 0x70]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.18000967c
cmp qword [rdi + 0x190], 0xffffffffffffffff
jne 0x180009835
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
lea rcx, [rdi + 0x40]
mov r9d, 0xff
xor r8d, r8d
mov edx, 0x40000003
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x190], rax
cmp rax, 0xffffffffffffffff
jne 0x180009835
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000988d
xor r9d, r9d
xor ecx, ecx
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18000982b
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x18000982b
mov rcx, qword [rdi + 0x18]
lea rax, [0x180008ed8]
lea r9, [0x180008b90]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.1800085e4
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x18000a0e8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov rdi, r9
mov esi, r8d
mov rbp, rdx
mov r14, rcx
mov dword [rax + 0x18], ebx
mov dword [r9], ebx
test r8d, r8d
je 0x18000a15d
mov r15d, 0x10000
mov edx, dword [rdi]
mov rcx, qword [r14 + 8]
mov r8d, esi
sub r8d, edx
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rbx
cmp r8d, r15d
cmova r8d, r15d
add rdx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000a155
mov eax, dword [rsp + 0x60]
add dword [rdi], eax
cmp dword [rdi], esi
jb 0x18000a11f
jmp 0x18000a15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x18000a180
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor eax, eax
xor ebx, ebx
mov r14, rcx
mov qword [rbp - 0x1f], rax
mov qword [rbp - 0x17], rax
mov qword [rbp - 0xf], rax
mov dword [rbp - 7], eax
mov word [rbp - 3], ax
mov byte [rbp - 1], al
mov rax, qword [rcx + 8]
mov rcx, qword [rcx + 0x28]
mov byte [rbp - 0x20], bl
mov r13, qword [rax + 0x60]
mov r15, rdx
lea edi, [rbx + 1]
xor esi, esi
call fcn.18000cc88
movsxd rdi, edi
test rdi, rdi
je 0x18000a21f
mov rcx, qword [r13 + 8]
and qword [rsp + 0x20], rsi
mov r8d, 0x20
mov eax, ebx
lea rdx, [rbp - 0x20]
lea r9, [rbp + 0x30]
add rdx, rax
sub r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000a20f
add ebx, dword [rbp + 0x30]
cmp ebx, 0x20
jne 0x18000a1d5
xor edi, edi
jmp 0x18000a1d2
mov ecx, 0x490
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000a33e
cmp ebx, 0x20
jne 0x18000a33e
cmp byte [rbp - 0x1d], sil
jne 0x18000a272
mov edi, dword [rbp - 0x20]
add edi, 0xffffffe4
movsxd rcx, edi
call fcn.180013344
lea r9, [rbp + 0x30]
mov r8d, edi
mov rdx, rax
mov rcx, r13
mov rbx, rax
call fcn.18000a0e8
mov rcx, rbx
call fcn.180013304
cmp edi, dword [rbp + 0x30]
jne 0x18000a33e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
and qword [r15], rsi
jmp 0x18000a33e
lea rdx, [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov r8d, 0x1c
call fcn.180006560
mov rcx, qword [r14 + 0x20]
add rcx, 0x20
call fcn.180006588
test eax, eax
je 0x18000a2ad
mov rcx, qword [r14 + 0x20]
lea rdx, [rbp - 0x1c]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.180013410
mov ecx, dword [rbp - 8]
call qword [sym.imp.WS2_32.dll_ntohl]
lea ebx, [rax - 8]
lea edi, [rbx + 0x20]
mov ecx, edi
call fcn.180013344
mov rsi, rax
test rax, rax
jne 0x18000a2d3
lea ecx, [rax + 8]
jmp 0x18000a214
lea rdx, [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov r8d, 0x1c
call fcn.180006560
mov eax, 0x20
lea r8, [rbp - 0x20]
mov r9d, eax
mov edx, eax
mov rcx, rsi
call fcn.180014f68
lea rdx, [rsi + 0x20]
lea r9, [rbp + 0x30]
mov r8d, ebx
mov rcx, r13
call fcn.18000a0e8
cmp dword [rbp + 0x30], ebx
je 0x18000a31b
mov ecx, eax
jmp 0x18000a214
mov r9d, edi
mov r8, rsi
mov rdx, r15
mov rcx, r14
call fcn.180006cd0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180013304
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x18000a353
mov rcx, rsi
call fcn.180013304
mov rcx, qword [r14 + 0x28]
call fcn.18000cca8
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x18000a580
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rsi, rdx
lea r8, [rax + 0x18]
lea rcx, str.SeSecurityPrivilege
mov edx, 1
call fcn.18000967c
test eax, eax
jne 0x18000a62d
and dword [rsp + 0x40], eax
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.1800094d0
lea rax, [rsp + 0x40]
xor r8d, r8d
mov r9d, 0xff
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea edx, [r8 + 3]
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x80], 0
jne 0x18000a627
lea r8, [rsp + 0x80]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.18000967c
cmp rbx, 0xffffffffffffffff
jne 0x18000a673
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
xor r8d, r8d
lea edx, [r8 + 3]
mov r9d, 0xff
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
jne 0x18000a673
or rax, 0xffffffffffffffff
jmp 0x18000a6ba
call fcn.180006504
mov edi, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000a6b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x18000a6b7
mov ecx, 1
call fcn.1800064a8
call fcn.180006504
sub eax, edi
cmp eax, dword [rsi + 4]
jb 0x18000a67a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000a66d
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000ab34
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov esi, r9d
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
call fcn.180006504
mov ebp, eax
call fcn.180006504
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000ab97
mov ecx, dword [rsp + 0x60]
call fcn.1800064a8
call fcn.180006504
sub eax, ebp
cmp eax, esi
jb 0x18000ab5f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x18000abb8
Capabilities:
Initialize winsock library
Resolve dns

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, 0x1e0
mov rbx, qword [rsp + 0x230]
mov r15, rcx
mov ebp, r8d
movzx r14d, dx
xor r13d, r13d
lea rcx, [rsp + 0x42]
mov r8d, 0x196
xor edx, edx
mov esi, r9d
mov qword [rbx], r13
mov word [rsp + 0x40], r13w
call fcn.180013ca0
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000ac26
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000aca2
mov edx, 1
lea r12d, [rdx + 1]
lea r8d, [rdx + 5]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, r15
mov rdi, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, r14w
mov dword [rsp + 0x34], eax
mov word [rsp + 0x30], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r12 + 0xe]
lea rdx, [rsp + 0x30]
mov r9d, ebp
mov rcx, rdi
mov word [rsp + 0x32], ax
mov dword [rsp + 0x20], esi
call fcn.18000ab34
test eax, eax
jne 0x18000aca2
mov qword [rbx], rdi
lea r11, [rsp + 0x1e0]
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 0x18000accc
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov r12, qword [rbp + 0x148]
mov rsi, rcx
mov rdi, rdx
xor ebx, ebx
lea rcx, [rsp + 0x52]
xor edx, edx
mov r8d, 0x196
mov r13d, r9d
mov qword [r12], rbx
mov word [rsp + 0x50], bx
call fcn.180013ca0
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000ad42
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x18000ae22
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], ebx
lea r8d, [rdx + 0x2c]
call fcn.180013ca0
mov r14d, reloc.WS2_32.dll_socket
lea r9, [rbp + 0x148]
lea r15d, [r14 - 0x16]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x2c], 6
mov dword [rsp + 0x28], r15d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18000ad37
lea r8d, [r14 - 0x11]
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18000ad37
mov r14d, ebx
call fcn.180006504
mov r15d, eax
call fcn.180006504
mov rdi, qword [rbp + 0x148]
jmp 0x18000adea
mov rax, qword [rdi + 0x20]
mov ecx, dword [rbp + 0x130]
mov dword [rax + 0x18], ecx
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
mov r14d, eax
cmp eax, 0xffffffff
jne 0x18000ae43
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x18000adc0
mov ecx, dword [rbp + 0x140]
call fcn.1800064a8
call fcn.180006504
sub eax, r15d
cmp eax, r13d
jb 0x18000adb2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, r14d
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, ebx
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov qword [r12], rsi
jmp 0x18000ae13