joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180020860
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x30], 0x1c
mov rdi, rcx
mov qword [r11 - 0x30], rax
mov rcx, qword [rcx + 0x158]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x180020a6e
movzx eax, byte [rdi + 0x179]
test al, al
jne 0x180020a6e
mov qword [r11 + 0x10], rbx
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov qword [r11 + 0x18], rsi
call qword [sym.imp.WS2_32.dll_accept]
xor bl, bl
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18002098c
cmp dword [rsp + 0x30], 0
jle 0x18002098c
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x180020924
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.180029280
mov r8, rax
lea rdx, str.Failed_to_set_nonblocking_mode_on_incoming_connection_socket:__s_n
mov rcx, rdi
call fcn.180029dd0
jmp 0x180020926
mov bl, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x180020949
lea rdx, str.Failed_to_set_noninheritable_mode_on_incoming_connection_socket._n
mov rcx, rdi
call fcn.180029dd0
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov byte [rsp + 0x28], bl
mov rdx, rsi
mov rcx, rdi
mov byte [rsp + 0x20], 0
call fcn.18001f4d0
mov eax, 1
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18002b180
add rsp, 0x60
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2726
je 0x180020a67
cmp eax, 0x2746
je 0x180020a67
cmp eax, 0x2733
je 0x1800209ca
mov ecx, eax
call fcn.180029280
mov r8, rax
lea rdx, str.Error_accepting_connection:__s_n
mov rcx, rdi
call fcn.180029dd0
cmp rsi, 0xffffffffffffffff
je 0x1800209ff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1800209ff
mov rcx, qword [0x180092bb0]
lea r9, [0x180087848]
mov r8d, 0xb83
lea rdx, [0x180087af0]
call qword [0x180092bc8]
int3
cmp ebx, 0x2728
je 0x180020a0f
cmp ebx, 0x2747
jne 0x180020a67
cmp dword [rdi + 0x180], 0
jne 0x180020a30
lea rdx, str.Hit_process_or_system_resource_limit_at_FIRST_connection._This_is_really_bad_as_there_is_no_sane_way_to_proceed._Will_try_busy_waiting_for_system_resources_to_become_magically_available._n
mov rcx, rdi
call fcn.180029dd0
xor eax, eax
jmp 0x18002096c
lea rcx, [rdi + 0x130]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x130]
mov byte [rdi + 0x17a], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [rdi + 0x180]
lea rdx, str.Hit_process_or_system_resource_limit_at__u_connections__temporarily_suspending_accept__._Consider_setting_a_lower_MHD_OPTION_CONNECTION_LIMIT._n
mov rcx, rdi
call fcn.180029dd0
xor eax, eax
jmp 0x18002096c
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18002b180
add rsp, 0x60
pop rdi
ret
Function at 0x180020eb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push r12
push r13
push r14
sub rsp, 0x50
mov r14, rcx
mov byte [rcx + 0x17c], 0
mov rcx, qword [rcx + 0x168]
mov r13, r9
mov r12, rdx
cmp rcx, 0xffffffffffffffff
je 0x180020f0d
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x180020f0d
nop dword [rax + rax]
mov rcx, qword [r14 + 0x168]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x180020ef0
mov rcx, qword [r14 + 0x158]
cmp rcx, 0xffffffffffffffff
je 0x180020f3b
movzx eax, byte [r14 + 0x179]
test al, al
jne 0x180020f3b
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x180020f3b
mov rcx, r14
call fcn.180020860
mov eax, dword [r14 + 0x194]
and eax, 4
test al, al
jne 0x180020ffc
mov qword [rsp + 0x78], rbx
mov rbx, qword [r14 + 0x18]
test rbx, rbx
je 0x180020ff7
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
nop dword [rax + rax]
mov r15, qword [rbx + 0x118]
mov rbp, qword [rbx + 8]
cmp r15, 0xffffffffffffffff
je 0x180020fd6
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r14
mov rcx, r15
test eax, eax
setne sil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r12
mov rcx, r15
test eax, eax
setne dil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
movzx r9d, sil
movzx r8d, dil
test eax, eax
mov rcx, rbx
setne dl
call fcn.18001ec40
mov rbx, rbp
test rbp, rbp
jne 0x180020f80
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rcx, r14
call fcn.180020a90
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
ret
Function at 0x180021890
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
or ebp, 0xffffffff
xor r14d, r14d
mov qword [r11 - 0x40], rax
mov rbx, rcx
mov qword [r11 - 0x38], rax
mov rcx, qword [rcx + 0x158]
or esi, ebp
mov qword [r11 - 0x30], rax
mov edi, r14d
mov qword [r11 - 0x28], rax
mov r15d, 0x300
cmp rcx, 0xffffffffffffffff
je 0x180021904
movzx eax, byte [rbx + 0x179]
test al, al
jne 0x180021904
mov qword [r11 - 0x40], rcx
lea edi, [r14 + 1]
mov dword [r11 - 0x38], r15d
mov ebp, r14d
mov rcx, qword [rbx + 0x168]
cmp rcx, 0xffffffffffffffff
je 0x180021924
mov eax, edi
mov esi, edi
add rax, rax
inc edi
mov qword [rsp + rax*8 + 0x28], rcx
mov dword [rsp + rax*8 + 0x30], r15d
test dword [rbx + 0x194], 0x2000
je 0x180021938
mov rcx, rbx
call fcn.180020300
test edi, edi
je 0x1800219ea
or r8d, 0xffffffff
lea rcx, [rsp + 0x28]
mov edx, edi
call qword [sym.imp.WS2_32.dll_WSAPoll]
test eax, eax
jns 0x180021983
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1800219ea
mov ecx, eax
call fcn.180029280
mov r8, rax
lea rdx, [0x180088340]
mov rcx, rbx
call fcn.180029dd0
xor eax, eax
jmp 0x1800219ef
cmp esi, 0xffffffff
je 0x1800219bd
movsxd rax, esi
add rax, rax
movzx ecx, word [rsp + rax*8 + 0x32]
and cx, r15w
cmp r14w, cx
je 0x1800219bd
nop dword [rax]
mov rcx, qword [rbx + 0x168]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1800219a0
movzx eax, byte [rbx + 0x178]
test al, al
jne 0x18002197f
cmp ebp, 0xffffffff
je 0x1800219ea
movsxd rax, ebp
add rax, rax
movzx ecx, word [rsp + rax*8 + 0x32]
and cx, r15w
cmp r14w, cx
je 0x1800219ea
mov rcx, rbx
call fcn.180020860
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002b180
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x180023980
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [0x180092bc8]
lea rcx, [0x18001e780]
test rax, rax
lea rdx, [rsp + 0x20]
cmove rax, rcx
mov ecx, 0x202
mov qword [0x180092bc8], rax
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1800239eb
mov rcx, qword [0x180092bb0]
lea r9, str.Failed_to_initialize_winsock_n
mov r8d, 0x1a68
lea rdx, [0x18008adb0]
call qword [0x180092bc8]
int3
movzx eax, word [rsp + 0x20]
mov dword [0x180092b7c], 1
cmp al, 2
je 0x180023a28
shr ax, 8
cmp al, 2
je 0x180023a28
mov rcx, qword [0x180092bb0]
lea r9, str.Winsock_version_2.2_is_not_available_n
mov r8d, 0x1a6b
lea rdx, str.C:UsersJohnDesktopChicken_binlibmicrohttpd_0.9.57w32VS2015...._srcmicrohttpddaemon.c
call qword [0x180092bc8]
int3
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xor ecx, ecx
mov qword [0x1800930d8], rax
call fcn.180033bb4
mov qword [0x1800930e0], rax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18002b180
add rsp, 0x1d8
ret

Function at 0x180024000
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x40], 1
test rcx, rcx
je 0x180024045
mov rcx, qword [rcx + 0x118]
lea r9, [rsp + 0x40]
mov edx, 6
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
test eax, eax
sete cl
and ecx, 1
mov eax, ecx
add rsp, 0x38
ret
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x18008b4f0]
lea rax, [0x18008b138]
mov r9d, 0x234
lea rdx, [0x18008b1b8]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3

Function at 0x180024090
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x40], ebx
test rcx, rcx
je 0x1800240d2
mov rcx, qword [rcx + 0x118]
lea r9, [rsp + 0x40]
lea edx, [rbx + 6]
mov dword [rsp + 0x20], 4
lea r8d, [rbx + 1]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete bl
and ebx, 1
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
lea r8, [0x18008b560]
lea rax, str.NULL___connection
mov r9d, 0x286
lea rdx, [0x18008b268]
mov qword [rsp + 0x20], rax
call fcn.180008b10
mov ecx, 2
call fcn.1800333cc
mov rcx, rax
call fcn.18003392c
call fcn.180035304
int3
Function at 0x180029b10
Capabilities:
Create udp socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, reloc.WS2_32.dll_socket
mov dword [rsp + 0x28], 0x80
test ecx, ecx
mov dword [rsp + 0x20], 0
mov edi, 2
cmovne edi, eax
xor r9d, r9d
lea edx, [rax - 0x16]
mov ecx, edi
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180029b88
xor r8d, r8d
lea edx, [rax + 2]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180029b78
or rax, rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor r8d, r8d
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18002a220
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
mov rsi, r9
mov ecx, 0x18
mov rdi, r8
mov rbp, rdx
call fcn.1800300a4
mov rbx, rax
test rax, rax
je 0x18002a2b8
mov qword [rax], rsi
mov rax, qword [rsp + 0x60]
mov qword [rbx + 8], rax
mov eax, 0xffffffff
mov qword [rbx + 0x10], rbp
cmp rdi, rax
jbe 0x18002a289
call fcn.180035640
mov rcx, rbx
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18002fdc4
xor eax, eax
jmp 0x18002a2c1
xor eax, eax
lea r8, [0x18002a1d0]
mov qword [rsp + 0x28], rax
mov r9, rbx
mov edx, edi
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.1800354a8
mov qword [r14], rax
cmp rax, 0xffffffffffffffff
jne 0x18002a2bc
mov rcx, rbx
call fcn.18002fdc4
xor eax, eax
jmp 0x18002a2c1
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x18002ba38
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18002bac9
movsxd rax, dword [0x18000003c]
lea rdx, [0x180000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x18002bac9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18002bac9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x18002baad
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18002baa7
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18002baaf
add rdx, 0x28
jmp 0x18002ba8c
xor edx, edx
test rdx, rdx
jne 0x18002bab8
xor al, al
jmp 0x18002bacf
test dword [rdx + 0x24], 0x80000000
je 0x18002bac5
xor al, al
jmp 0x18002bacf
mov al, 1
jmp 0x18002bacf
xor al, al
jmp 0x18002bacf
add rsp, 0x18
ret

Function at 0x180035e5c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180035e7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800355d0
or eax, 0xffffffff
jmp 0x180035e7e
xor eax, eax
add rsp, 0x28
ret
Function at 0x18003d174
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18003d014
call fcn.180035640
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.18002ffd8
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18003cffc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18003cffc
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18003d046
lock or dword [rax + 0x14], 0x10
jmp 0x18003cffc
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18003d063
mov rcx, qword [rbp + 0x10]
call fcn.180041e0c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18003b328
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800363b4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18003d0ba
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18003cffc
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18003d126
mov rcx, qword [rbp + 0x10]
call fcn.18003b328
cmp eax, 0xffffffff
je 0x18003d10d
mov rcx, qword [rbp + 0x10]
call fcn.18003b328
cmp eax, 0xfffffffe
je 0x18003d10d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18003b328
movsxd rdi, eax
lea rsi, [0x180092110]
mov rcx, rbx
sar rdi, 6
call fcn.18003b328
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18003d114
lea rax, [0x180084560]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18003d126
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18003d15c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18003d158
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18003d158
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18003cfff
jmp 0x18003cfcc
Function at 0x1800457f0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov rdi, rcx
lea rbx, [rcx + 0xc8]
lea rcx, [rbx + 0x100]
xor edx, edx
lea r8d, [rdx + 0x50]
call fcn.18002f5e0
xor ebp, ebp
mov dword [rbx + 0x150], ebp
mov qword [rbx + 0x158], rbp
mov qword [rbx + 0x160], rbp
mov qword [rbx + 0x168], rbp
mov qword [rbx + 0x170], rbp
mov byte [rbx + 0x178], bpl
mov qword [rbx + 0x180], rbp
mov qword [rbx + 0x188], rbp
mov qword [rbx + 0x190], rbp
xor edx, edx
mov r8d, 0x100
mov rcx, rbx
call fcn.18002f5e0
nop
mov rax, qword [0x1800928a0]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 0xc0], ecx
lea eax, [rcx + rcx*2]
movsxd rcx, eax
mov eax, 8
mul rcx
mov rsi, rax
mov rax, 0xffffffffffffffff
cmovo rsi, rax
mov rcx, rsi
call fcn.18002b1f0
mov rbx, rax
test rax, rax
je 0x1800458ca
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.18002f5e0
jmp 0x1800458cd
mov rbx, rbp
mov qword [rdi + 0x98], rbx
xor eax, eax
mov qword [rdi + 0xa8], rax
mov qword [rdi + 0xb0], rax
mov qword [rdi + 0xb8], rax
xor edx, edx
mov r8d, 0x80
lea rcx, [rdi + 0x11]
call fcn.18002f5e0
mov rax, qword [0x1800928a0]
mov rdx, qword [rax + 0x10]
lea rcx, [rdi + 0x11]
test rdx, rdx
je 0x18004591d
mov r8d, 0x7f
call fcn.18002fc60
jmp 0x180045928
mov edx, 0x7f
call qword [sym.imp.WS2_32.dll_gethostname]
mov rcx, rdi
call fcn.180045100
nop
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18004c380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x2150]
mov eax, 0x2250
call fcn.180043b00
sub rsp, rax
mov rax, qword [0x180084088]
xor rax, rsp
mov qword [rbp + 0x2140], rax
mov rcx, qword [0x180092cf8]
lea r12, [0x180092d00]
xor ebx, ebx
mov rsi, r8
mov r15, rdx
test rcx, rcx
jne 0x18004c3e5
call fcn.18000f730
test eax, eax
je 0x18004c3db
mov ecx, ebx
jmp 0x18004c3e5
mov qword [0x180092cf8], r12
mov rcx, r12
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov r8, r15
call fcn.180017270
mov r14d, eax
test eax, eax
jns 0x18004c42c
mov ecx, eax
call fcn.18000dba0
mov ecx, 2
mov rbx, rax
call fcn.1800333cc
mov rcx, rax
lea rdx, str.unable_to_open__s:__s_n
mov r9, rbx
mov r8, r15
call fcn.180008b10
xor al, al
jmp 0x18004c597
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x2280], rdi
call fcn.180017180
lea rdx, [0x180072d74]
mov ecx, r14d
call fcn.1800392d4
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
mov r9, rax
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x40], 0x2000
mov qword [rsp + 0x50], rcx
mov edx, 1
lea rcx, [rbp + 0x140]
mov qword [rsp + 0x48], rbx
mov r8d, 0x2000
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x68], bl
mov qword [rsp + 0x60], rbx
call fcn.180034f20
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rdx
lea rcx, [rdx - 1]
add rcx, rax
mov qword [rsp + 0x48], rcx
cmp rax, qword [rsp + 0x40]
jae 0x18004c4cf
mov byte [rax + rdx], bl
inc qword [rsp + 0x48]
mov byte [rsp + 0x68], 1
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.180008c90
mov rdi, qword [0x180092cf8]
test rdi, rdi
jne 0x18004c500
call fcn.18000f730
test eax, eax
je 0x18004c4f6
mov rdi, rbx
jmp 0x18004c500
mov qword [0x180092cf8], r12
mov rdi, r12
call fcn.18000f970
xor edx, edx
mov dword [rsp + 0x78], 6
xorps xmm0, xmm0
mov qword [rbp - 0x50], rbx
lea rcx, [rbp + 0xc8]
mov qword [rbp - 0x18], rdi
mov dword [rbp + 0xb8], ebx
lea r8d, [rdx + 0x70]
mov dword [rbp - 0x20], 2
mov qword [rbp - 8], rbx
movdqa xmmword [rbp], xmm0
mov qword [rbp - 0x10], rbx
call fcn.18002f5e0
lea rcx, [rbp + 0x90]
mov dword [rbp + 0xc0], r14d
call fcn.180016d30
lea rcx, [rsp + 0x70]
call fcn.180017180
mov ecx, dword [rsi + 0x50]
mov rdi, qword [rsp + 0x2280]
test ecx, ecx
je 0x18004c58f
call fcn.180005560
mov r8d, dword [rsi + 0x58]
lea rcx, str._s:_d:__s_n
mov r9, rax
mov rdx, r15
call fcn.180008b60
xor al, al
jmp 0x18004c597
cmp word [rsi + 0xe], 3
sete al
mov rcx, qword [rbp + 0x2140]
xor rcx, rsp
call fcn.18002b180
mov rbx, qword [rsp + 0x2298]
add rsp, 0x2250
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
Function at 0x18004f9b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x18004fa70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18004f9d3

Function at 0x18004f9f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x18004fa70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18004fa13

Function at 0x18004fa30
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x18004fa70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18004fa53

Function at 0x18004fce0
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
xor edi, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x18004fe19
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], edi
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x18004fd49
mov edx, r9d
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rbx, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x18004fe19
xor eax, eax
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x18004fe06
mov rdx, qword [rbx]
lea rax, str.SeLockMemoryPrivilege
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rax
mov r9d, 1
mov dword [rbp - 0x40], 0x2c002a
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x18004fdfc
mov rcx, qword [0x180092878]
lea r8, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea edx, [rax + 2]
call fcn.180046f00
mov edi, 1
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret