joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011c890
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
sub rsp, 0x28
mov ebx, dword [rcx + 0x14]
mov rsi, rcx
call fcn.14011c5c0
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14011c5c0
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
je 0x14011ca1b
xor eax, eax
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r14
cmp ebx, 2
mov qword [rsp + 0x20], r15
lea r14, [rsp + 0x40]
setne al
lea r15, [rsp + 0x40]
add r14, rax
xor rax, 1
add r15, rax
movzx edi, byte [r14]
movzx eax, byte [r15]
shl edi, 8
or edi, eax
lea eax, [rdi - 0xdc00]
cmp eax, 0x3ff
ja 0x14011c925
lea rcx, [rsi + 0x18]
mov edx, 0xfffd
call fcn.14011c660
jmp 0x14011ca0c
lea eax, [rdi - 0xd800]
mov qword [rsp + 0x48], rbp
cmp eax, 0x3ff
ja 0x14011c9f9
mov rcx, rsi
call fcn.14011c5c0
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14011c5c0
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
lea rbp, [rsi + 0x18]
test al, al
je 0x14011c9d9
nop
movzx eax, byte [r15]
movzx ebx, byte [r14]
shl ebx, 8
or ebx, eax
lea eax, [rbx - 0xdc00]
cmp eax, 0x3ff
jbe 0x14011c9e0
lea rbp, [rsi + 0x18]
mov edx, 0xfffd
mov rcx, rbp
call fcn.14011c660
lea eax, [rbx - 0xd800]
cmp eax, 0x7ff
ja 0x14011c9fd
mov rcx, rsi
mov edi, ebx
call fcn.14011c5c0
mov rcx, rsi
mov byte [rsp + 0x40], al
call fcn.14011c5c0
mov rdx, qword [rsi]
mov byte [rsp + 0x41], al
mov rax, qword [rdx]
movsxd rcx, dword [rax + 4]
add rcx, rdx
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
test al, al
jne 0x14011c970
mov edx, 0xfffd
jmp 0x14011c9ff
and edi, 0x3ff
and ebx, 0x3ff
shl edi, 0xa
or edi, ebx
add edi, 0x10000
jmp 0x14011c9fd
lea rbp, [rsi + 0x18]
mov edx, edi
mov rcx, rbp
call fcn.14011c660
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x140124bdc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140124c16
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140124c1b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140124c64
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140136350]
cmp byte [rcx + rax], 0
je 0x140124c64
dec r8
sub rdx, 1
jne 0x140124c4a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140126564
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401265ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401265ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401265ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401265ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1401265ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401265b0
xor al, al
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov edx, 0x5c
mov rbx, rcx
call fcn.180014034
test rax, rax
je 0x180001023
lea rbx, [rax + 1]
xor ecx, ecx
mov edx, 0x198
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x180031720], rax
test rax, rax
je 0x1800010d3
mov rcx, rax
call fcn.180001444
mov rcx, qword [0x180031720]
mov r9d, 0xff
lea edx, [r9 + 1]
mov r8, rbx
call fcn.180013f78
mov rcx, qword [0x180031720]
call fcn.180013ed0
mov rcx, qword [0x180031720]
inc eax
mov dword [rcx + 0x100], eax
mov rax, qword [0x180031720]
mov dword [rax + 0x108], edi
mov rcx, qword [0x180031720]
call fcn.1800017bc
mov rcx, qword [0x180031720]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, qword [0x180031720]
mov rbx, rax
call fcn.180001684
mov rcx, qword [0x180031720]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000137c
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 rsi, r9
mov rdi, rdx
mov r8, rdx
mov r9d, 5
or rcx, 0xffffffffffffffff
mov rdx, rbx
mov qword [r11 - 0x48], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, edi
lea rdx, [rsp + 0x30]
sub eax, ebx
mov r8d, gethostbyname
mov rcx, rdi
sub eax, 5
mov byte [rbx + 5], 0xe9
mov dword [rbx + 6], eax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x54]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
sub esi, edi
lea r9, [rsp + 0x78]
sub esi, 5
mov byte [rdi], 0xe9
mov dword [rdi + 1], esi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
or rcx, 0xffffffffffffffff
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 0x180001444
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, [0x1800236b0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1800015c0
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 + 0x13c]
lea r9, [0x180001318]
mov rdx, rdi
mov rcx, r13
mov r8, rbx
mov r12, rax
call fcn.18000137c
mov qword [r13 + 0x188], rbx
lea rbx, [r13 + 0x11e]
lea r9, [0x1800011dc]
mov r8, rbx
mov rdx, rsi
mov rcx, r13
call fcn.18000137c
mov qword [r13 + 0x170], rbx
lea rbx, [r13 + 0x128]
lea r9, [0x18000125c]
mov r8, rbx
mov rdx, rbp
mov rcx, r13
call fcn.18000137c
mov qword [r13 + 0x178], rbx
lea rbx, [r13 + 0x132]
lea r9, [0x1800012e8]
mov r8, rbx
mov rdx, r14
mov rcx, r13
call fcn.18000137c
mov qword [r13 + 0x180], rbx
lea rbx, [r13 + 0x114]
lea r9, [0x180001170]
mov r8, rbx
mov rdx, r15
mov rcx, r13
call fcn.18000137c
mov qword [r13 + 0x168], rbx
lea rbx, [r13 + 0x146]
lea r9, [0x180001358]
mov r8, rbx
mov rdx, r12
mov rcx, r13
call fcn.18000137c
mov qword [r13 + 0x190], 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 0x1800015e4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov ebx, edx
mov rdi, r8
lea rdx, [rsp + 0x30]
mov ecx, ebx
mov r8d, gethostbyname
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x54]
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, ebx
lea rax, [rsp + 0x88]
or rbx, 0xffffffffffffffff
mov r9d, 5
mov r8, rdi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180001684
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, str.ntdll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x180001797
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 + 0x13c]
mov edx, ebx
mov rcx, r13
mov r15, rax
call fcn.1800015e4
lea r8, [r13 + 0x11e]
mov edx, edi
mov rcx, r13
call fcn.1800015e4
lea r8, [r13 + 0x128]
mov edx, esi
mov rcx, r13
call fcn.1800015e4
lea r8, [r13 + 0x132]
mov edx, ebp
mov rcx, r13
call fcn.1800015e4
lea r8, [r13 + 0x114]
mov edx, r14d
mov rcx, r13
call fcn.1800015e4
lea r8, [r13 + 0x146]
mov edx, r15d
mov rcx, r13
call fcn.1800015e4
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 0x1800017bc
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 edx, dword [rcx + 0x108]
mov rdi, rcx
mov esi, 0x40
mov eax, dword [rdx + 0x3c]
mov ebp, 0x3000
mov r9d, esi
add eax, edx
mov r8d, ebp
mov edx, dword [rax + 0x50]
mov rcx, qword [rax + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r14d, r14d
mov dword [rdi + 0x10c], eax
test eax, eax
jne 0x18000181d
mov edx, dword [rbx + 0x50]
mov r9d, esi
mov r8d, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [rdi + 0x10c], eax
mov eax, dword [rbx + 0x50]
lea rcx, str.ntdll
mov dword [rdi + 0x110], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtLockVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or r15, 0xffffffffffffffff
test rax, rax
je 0x180001871
mov ecx, dword [rdi + 0x10c]
lea r9d, [r15 + 2]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rcx
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 r8d, dword [rdi + 0x108]
mov edx, dword [rdi + 0x10c]
mov rcx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 0x14]
mov ebp, r14d
cmp r14w, word [rbx + 6]
jae 0x1800018dd
lea rsi, [rbx + 0x2c]
add rsi, rax
mov eax, dword [rdi + 0x108]
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
mov r9d, dword [rsi - 4]
add r8, rax
mov eax, dword [rdi + 0x10c]
mov rcx, r15
add rdx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc ebp
lea rsi, [rsi + 0x28]
cmp ebp, eax
jl 0x1800018a5
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800018f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180002184
cmp dword [rbx + 8], 0xa2a1de0
mov edi, eax
je 0x18000193d
cmp dword [rbx + 8], 0x56a2b5f0
je 0x180001934
cmp dword [rbx + 8], 0xea320efe
jne 0x180001927
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 0x180001ad0
Capabilities:
Link function at runtime on windows
Link many functions at runtime

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 rsi, rcx
mov ebp, reloc.WS2_32.dll_ntohl
mov r14, r9
lea ecx, [rbp + 0x42]
mov rdi, r8
mov r15d, edx
call fcn.1800141b8
mov rbx, rax
test rax, rax
je 0x180001cb0
lea r8d, [rbp + 0x42]
xor edx, edx
mov rcx, rax
call fcn.180014830
mov qword [rbx], rsi
lea rdx, str.InitServerExtension
mov rcx, rsi
test r15d, r15d
je 0x180001b80
call fcn.180013b40
mov rcx, qword [rbx]
lea rdx, str.DeinitServerExtension
mov qword [rbx + 8], rax
call fcn.180013b40
mov rcx, qword [rbx]
lea rdx, str.GetExtensionName
mov qword [rbx + 0x10], rax
call fcn.180013b40
mov rcx, qword [rbx]
lea rdx, str.CommandAdded
mov qword [rbx + 0x18], rax
call fcn.180013b40
mov rcx, qword [rbx]
lea rdx, str.StagelessInit
mov qword [rbx + 0x20], rax
call fcn.180013b40
jmp 0x180001bd6
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.DeinitServerExtension
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.GetExtensionName
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.CommandAdded
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.StagelessInit
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x28], rax
test rdi, rdi
je 0x180001be9
mov rax, qword [0x180031730]
mov qword [rdi], rax
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x180001c5d
mov rax, qword [rsp + 0x60]
mov rcx, rdi
mov qword [rbx + 0x38], rax
call rdx
mov rcx, qword [0x180031770]
mov ebp, eax
mov qword [rbx + 0x30], rcx
test eax, eax
jne 0x180001c55
cmp qword [rbx + 0x20], 0
je 0x180001c30
mov rdi, qword [rbx + 0x38]
jmp 0x180001c2b
mov rcx, qword [rdi]
call qword [rbx + 0x20]
mov rdi, qword [rdi + 0xb8]
test rdi, rdi
jne 0x180001c1e
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x180001c44
lea rcx, [rbx + 0x40]
mov edx, reloc.WS2_32.dll_recv
call rax
mov rcx, qword [0x180031728]
mov rdx, rbx
call fcn.1800079fc
jmp 0x180001c5d
mov rcx, rbx
call fcn.180014178
test r14, r14
je 0x180001cb0
mov rdi, qword [rbx + 0x30]
jmp 0x180001caa
mov r8, qword [rdi]
mov edx, 0x10001
mov rcx, r14
call sym.metsrv.dll_packet_add_tlv_string
mov rax, qword [0x180031728]
mov rsi, qword [rax]
jmp 0x180001c9e
mov rax, qword [rsi + 0x10]
cmp rax, rbx
je 0x180001c9b
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x180001c9b
mov rcx, qword [rdi]
call rdx
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001c84
mov rdi, qword [rdi + 0xb8]
cmp rdi, qword [rbx + 0x38]
jne 0x180001c68
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 0x1800029b4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp ecx, 0xa2a1de0
je 0x1800029eb
cmp ecx, 0x56a2b5f0
je 0x1800029e2
cmp ecx, 0xea320efe
jne 0x1800029d8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov eax, 1
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x1800034e8
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.180009590
test ebp, ebp
je 0x180003574
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 0x18000356c
add esi, dword [rsp + 0x60]
cmp esi, ebp
jb 0x180003521
jmp 0x180003574
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rdi + 0x101c8]
call fcn.1800095b0
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 0x180003cd8
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.180003c08
test eax, eax
jne 0x180003d6f
xor eax, eax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.180003a5c
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 0x180003d6f
lea r8, [rsp + 0x70]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.180003c08
cmp qword [rdi + 0x190], 0xffffffffffffffff
jne 0x180003dc1
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 0x180003dc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180003e19
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 0x180003db7
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 0x180003db7
mov rcx, qword [rdi + 0x18]
lea rax, [0x180003464]
lea r9, [0x180003114]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call sym.metsrv.dll_scheduler_insert_waitable
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x180003ed4
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 0x180003f49
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 0x180003f41
mov eax, dword [rsp + 0x60]
add dword [rdi], eax
cmp dword [rdi], esi
jb 0x180003f0b
jmp 0x180003f49
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 0x180003f6c
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 + 0x10]
mov rcx, qword [rcx + 0x30]
mov byte [rbp - 0x20], bl
mov r13, qword [rax + 0x60]
mov r15, rdx
lea edi, [rbx + 1]
xor esi, esi
call fcn.180009590
movsxd rdi, edi
test rdi, rdi
je 0x18000400b
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 0x180003ffb
add ebx, dword [rbp + 0x30]
cmp ebx, 0x20
jne 0x180003fc1
xor edi, edi
jmp 0x180003fbe
mov ecx, 0x490
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18000412a
cmp ebx, 0x20
jne 0x18000412a
cmp byte [rbp - 0x1d], sil
jne 0x18000405e
mov edi, dword [rbp - 0x20]
add edi, 0xffffffe4
movsxd rcx, edi
call fcn.1800141b8
lea r9, [rbp + 0x30]
mov r8d, edi
mov rdx, rax
mov rcx, r13
mov rbx, rax
call fcn.180003ed4
mov rcx, rbx
call fcn.180014178
cmp edi, dword [rbp + 0x30]
jne 0x18000412a
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
and qword [r15], rsi
jmp 0x18000412a
lea rdx, [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov r8d, 0x1c
call fcn.180009fe0
mov rcx, qword [r14 + 0x28]
add rcx, 0x20
call fcn.18000a008
test eax, eax
je 0x180004099
mov rcx, qword [r14 + 0x28]
lea rdx, [rbp - 0x1c]
mov r8d, reloc.WS2_32.dll_recv
add rcx, 0x20
call fcn.1800142b0
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.1800141b8
mov rsi, rax
test rax, rax
jne 0x1800040bf
lea ecx, [rax + 8]
jmp 0x180004000
lea rdx, [rbp - 0x1c]
lea rcx, [rbp - 0x20]
mov r8d, 0x1c
call fcn.180009fe0
mov eax, 0x20
lea r8, [rbp - 0x20]
mov r9d, eax
mov edx, eax
mov rcx, rsi
call fcn.1800150c8
lea rdx, [rsi + 0x20]
lea r9, [rbp + 0x30]
mov r8d, ebx
mov rcx, r13
call fcn.180003ed4
cmp dword [rbp + 0x30], ebx
je 0x180004107
mov ecx, eax
jmp 0x180004000
mov r9d, edi
mov r8, rsi
mov rdx, r15
mov rcx, r14
call fcn.18000a114
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rsi
call fcn.180014178
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test rsi, rsi
je 0x18000413f
mov rcx, rsi
call fcn.180014178
mov rcx, qword [r14 + 0x30]
call fcn.1800095b0
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