joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005030
Capabilities:
Log keystrokes
Manipulate console buffer

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov ecx, dword [rcx + 0x58]
btr ecx, 0xc
mov eax, ecx
sub dword [rbx + 0x7c], 1
mov dword [rbx + 0x58], ecx
jne 0x14000507b
test cl, 1
jne 0x14000507b
test cl, 4
je 0x14000507b
and eax, 0xfffffffb
mov dword [rbx + 0x58], eax
test al, 8
je 0x14000507b
mov rax, qword [rbx + 8]
dec dword [rax + 8]
mov eax, dword [rbx + 0x58]
mov qword [rsp + 0xb0], rsi
mov qword [rsp + 0x88], rdi
bt eax, 0x10
jae 0x140005224
bt eax, 0x19
jae 0x1400050e3
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov eax, select
mov word [rsp + 0x60], ax
lea r8d, [rax - 0xf]
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
test eax, eax
jne 0x140005224
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005226
bt eax, 0x15
jb 0x140005224
mov rcx, qword [0x1401b5f70]
mov edx, 0xffffffff
xor edi, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140005130
mov eax, 2
xchg dword [0x1401b5f50], eax
cmp eax, 1
je 0x140005137
mov rcx, qword [0x1401b5f70]
lea edx, [rdi + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x14000521d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0xa8], rbp
lea rcx, str.conout_
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov qword [rsp + 0x80], r14
lea r8d, [r9 + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000519a
lea rdx, [0x1401b5f58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x14000519a
lock or dword [0x1401b5f54], 1
mov esi, 1
mov dword [rsp + 0x50], 0xd0001
mov r14d, reloc.WS2_32.dll_listen
mov word [rsp + 0x48], si
mov ecx, r14d
mov dword [rsp + 0x4c], esi
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x44]
mov r8d, esi
mov word [rsp + 0x54], ax
lea rdx, [rsp + 0x48]
mov word [rsp + 0x56], r14w
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov r14, qword [rsp + 0x80]
test eax, eax
jne 0x1400051fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbp, 0xffffffffffffffff
je 0x14000520d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0xa8]
test edi, edi
je 0x14000521d
mov eax, edi
jmp 0x140005226
or dword [rbx + 0x58], 0x200000
xor eax, eax
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f3170
add rsp, 0x90
pop rbx
ret
Function at 0x1400052a0
Capabilities:
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0xb8]
mov esi, r9d
movzx ebp, r8b
mov edi, edx
mov rbx, rcx
cmp dword [r14], 0
je 0x1400052de
mov eax, 0xffffffff
jmp 0x140005407
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov qword [rsp + 0x50], r15
movzx r15d, byte [rsp + 0xb0]
mov rcx, qword [rbx + 0x110]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140005313
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
movsx eax, word [rsp + 0x34]
mov edx, edi
movsx r8d, word [rsp + 0x38]
movsx r11d, word [rsp + 0x28]
sub r8d, eax
mov eax, dword [0x14012a64c]
inc r8d
movsx r9d, word [rsp + 0x2e]
mov dword [0x14012a660], r11d
mov dword [0x14012a650], r8d
cmp eax, 0xffffffff
jne 0x140005350
mov eax, r9d
jmp 0x14000535d
mov ecx, r9d
sub ecx, r8d
inc ecx
cmp eax, ecx
cmovl eax, ecx
movsx r10d, word [rsp + 0x2a]
lea ecx, [r8 + rax]
cmp ecx, r10d
jle 0x140005372
mov eax, r10d
sub eax, r8d
test eax, eax
lea ecx, [r9 + rsi]
cmovs eax, r12d
mov dword [0x14012a64c], eax
test r15b, r15b
jne 0x14000538a
lea ecx, [rax + rsi]
cmp ecx, eax
jge 0x140005392
mov ecx, eax
jmp 0x14000539f
lea r9d, [r8 + rax]
cmp ecx, r9d
jl 0x14000539f
lea ecx, [r9 - 1]
test bpl, bpl
je 0x1400053ab
movsx edx, word [rsp + 0x2c]
add edx, edi
test edx, edx
jns 0x1400053b4
mov edx, r12d
jmp 0x1400053bd
cmp edx, r11d
jl 0x1400053bd
lea edx, [r11 - 1]
mov word [rsp + 0x22], cx
mov rcx, qword [rbx + 0x110]
mov word [rsp + 0x20], dx
mov edx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x1400053fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x1400052f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14], eax
mov eax, 0xffffffff
jmp 0x1400053fd
xor eax, eax
mov r12, qword [rsp + 0x58]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400f3170
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008670
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov eax, dword [rcx + 0x150]
mov dword [rsp + 0xb0], eax
mov eax, dword [rdx]
and al, 3
cmp al, 1
jne 0x1400086d2
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.140016510
movsxd rdx, eax
mov qword [rdi + 0x88], rdx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp byte [rdx + 4], 0
je 0x1400086ec
mov dword [rcx + 0x14c], 1
mov ecx, 1
jmp 0x14000889b
mov rcx, qword [rcx + 0x180]
cmp rcx, 0xffffffffffffffff
jne 0x1400086fd
mov rcx, qword [rdx + 0x18]
mov r15, qword [rdx + 0x10]
xor r13d, r13d
cmp rcx, r15
jl 0x140008720
mov qword [rdi + 0x88], r13
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov r8, r13
mov eax, dword [rdi + 0x170]
test eax, eax
je 0x14000874f
mov rdx, qword [rdi + 0x178]
mov r9d, eax
nop word [rax + rax]
mov eax, dword [rdx]
add r8, rax
lea rdx, [rdx + 0x10]
sub r9, 1
jne 0x140008740
sub r15, rcx
cmp r8, r15
cmovl r15, r8
test r15, r15
je 0x140008709
lea rbx, [r15 + rcx]
mov r8d, dword [0x1401b5f78]
mov rax, rcx
cqo
idiv r8
mov rax, rdx
mov qword [rsp + 0x50], rdx
sub rcx, rdx
add rax, r15
mov r8, rcx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov edx, 4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdx, rax
mov qword [rsp + 0xb8], rax
test rax, rax
jne 0x1400087c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
jmp 0x14000889b
mov r14, r13
mov r12d, r13d
cmp r12d, dword [rdi + 0x170]
jae 0x14000884d
cmp r14, r15
jae 0x14000884d
mov dword [rsp + 0x30], r13d
mov ecx, r12d
shl rcx, 4
add rcx, qword [rdi + 0x178]
mov esi, dword [rcx]
mov rax, r15
sub rax, r14
cmp rsi, rax
cmovae rsi, rax
add rdx, r14
add rdx, qword [rsp + 0x50]
mov r8, rsi
mov rcx, qword [rcx + 8]
call sub.VCRUNTIME140.dll_memcpy
nop
add r14, rsi
inc r12d
mov rdx, qword [rsp + 0xb8]
jmp 0x1400087c6
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400087ad
cmp qword [rdi + 0x180], 0xffffffffffffffff
jne 0x140008880
mov rdx, qword [rsp + 0xa8]
mov qword [rdx + 0x18], rbx
mov ecx, dword [rsp + 0xb0]
call fcn.1400077f0
mov qword [rdi + 0x88], r15
cmp r15, 0xffffffffffffffff
jne 0x1400088aa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___doserrno]
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.140016510
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400088c0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov esi, dword [rcx + 0x150]
mov rdi, rcx
mov rbp, qword [rcx + 0x180]
cmp esi, 0xffffffff
jne 0x140008900
mov qword [rcx + 0x88], 0xfffffffffffff00d
mov dword [rcx + 0x14c], 6
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov ecx, esi
call fcn.1400076e0
test eax, eax
je 0x140008928
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140008670
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0xc0], rbx
mov ecx, esi
mov qword [rsp + 0x80], r13
xor ebx, ebx
mov r13d, ebx
mov qword [rsp + 0x70], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140008974
lea ecx, [rbx + 6]
mov dword [rdi + 0x14c], 6
call fcn.140016510
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x140008a89
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x78], r14
cmp rbp, 0xffffffffffffffff
je 0x1400089c6
xor eax, eax
lea r8, [rsp + 0xb8]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r12, [rsp + 0x30]
lea r9d, [rax + 1]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400089c9
mov r13d, 1
jmp 0x1400089c9
mov r12, rbx
mov esi, ebx
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x1400089e7
mov eax, esi
add rax, rbp
mov dword [rsp + 0x40], eax
shr rax, 0x20
mov dword [rsp + 0x44], eax
mov rax, qword [rdi + 0x178]
lea r9, [rsp + 0xb0]
mov ecx, ebx
add rcx, rcx
mov qword [rsp + 0x20], r12
mov r8d, dword [rax + rcx*8]
mov rdx, qword [rax + rcx*8 + 8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [rsp + 0xb0]
inc ebx
mov r14d, eax
test eax, eax
je 0x140008a2a
cmp ebx, dword [rdi + 0x170]
jb 0x1400089d0
mov r12, qword [rsp + 0x88]
test r13d, r13d
je 0x140008a4e
mov rdx, qword [rsp + 0xb8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test r14d, r14d
mov r14, qword [rsp + 0x78]
jne 0x140008a80
test esi, esi
jne 0x140008a80
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x140008a80
mov ecx, eax
mov dword [rdi + 0x14c], eax
call fcn.140016510
movsxd rcx, eax
mov qword [rdi + 0x88], rcx
jmp 0x140008a89
mov eax, esi
mov qword [rdi + 0x88], rax
mov r13, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009790
Capabilities:
Check if file exists
Get file attributes

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, qword [rcx + 0x150]
mov rbp, rcx
mov rcx, rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400097d3
mov rax, 0xfffffffffffff02c
mov r8d, 0x10b
jmp 0x1400098d8
mov ecx, 0x290
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x1400098cb
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400097f1
test rbx, rbx
jne 0x140009809
lea r14, [0x140111930]
jmp 0x140009828
movzx eax, word [rdi + rbx*2 - 2]
cmp ax, 0x5c
je 0x140009821
lea r14, str._s
cmp ax, 0x2f
jne 0x140009828
lea r14, [0x140111938]
lea rcx, [rbx*2 + 8]
test rcx, rcx
je 0x1400098cb
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x1400098cb
lea rdx, [rbx + 3]
mov r9, rdi
mov r8, r14
mov rcx, rax
call fcn.140007680
lea rdx, [rsi + 0x38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi + 0x30], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, r15
mov ebx, dword [rax]
call qword [0x14012a640]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
cmp qword [rsi + 0x30], 0xffffffffffffffff
jne 0x1400098ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400098ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov r8d, eax
call fcn.140016510
cdqe
jmp 0x1400098d8
mov dword [rsi + 0x288], 0
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], rsi
jmp 0x140009922
mov r8d, ntohs
mov rax, 0xfffffffffffff027
mov dword [rbp + 0x14c], r8d
mov qword [rbp + 0x88], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, rsi
mov ebx, dword [rax]
call qword [0x14012a640]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
xor ecx, ecx
mov ebx, dword [rax]
call qword [0x14012a640]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], ebx
mov qword [rbp + 0x90], 0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000ba70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r8
mov r15, rdx
mov r14, rcx
test rcx, rcx
jne 0x14000baac
xor esi, esi
test rdx, rdx
je 0x14000ba97
mov qword [rdx], rsi
mov qword [r8], rsi
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x14000bac0
mov rbx, rdi
nop dword [rax]
test rbx, rbx
je 0x14000bae9
movzx eax, word [rcx + rbx*2 - 2]
dec rbx
cmp ax, 0x5c
je 0x14000bae9
cmp ax, 0x2f
jne 0x14000bad0
mov qword [rsp + 0x48], rbp
test rbx, rbx
jne 0x14000bb47
test r15, r15
je 0x14000bb36
mov ecx, 0x20a
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [r15], rax
test rax, rax
je 0x14000bbe8
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x14000bb36
mov rcx, qword [r15]
call fcn.140001da0
xor esi, esi
lea eax, [rbx - 1]
mov qword [r15], rsi
jmp 0x14000bbc9
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsdup
mov qword [r12], rax
jmp 0x14000bbc7
xor esi, esi
test r15, r15
je 0x14000bb86
lea rcx, [rbx*2 + 4]
test rcx, rcx
je 0x14000bb63
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x14000bb66
mov rax, rsi
mov qword [r15], rax
test rax, rax
je 0x14000bbe8
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rax, qword [r15]
mov word [rax + rbx*2 + 2], si
sub rdi, rbx
lea rbp, [rdi + rdi]
test rbp, rbp
je 0x14000bb9d
mov rcx, rbp
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
jmp 0x14000bba0
mov rax, rsi
mov qword [r12], rax
test rax, rax
je 0x14000bbe8
lea rdx, [r14 + 2]
mov rcx, rax
lea rdx, [rdx + rbx*2]
lea r8, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rax, qword [r12]
mov word [rax + rbp - 2], si
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
lea rdx, str.uv__malloc
mov ecx, ntohs
call fcn.140016450
int3
Function at 0x14000c8e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x14000ca5c
test rdx, rdx
je 0x14000ca5c
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edx, eax
test eax, eax
jne 0x14000c93f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016510
jmp 0x14000c9e6
cmp edx, 0x104
jbe 0x14000c951
mov eax, 0xfffff01a
jmp 0x14000c9e6
mov rax, rdx
mov qword [rsp + 0x280], rsi
add rax, rax
cmp rax, 0x208
jae 0x14000ca63
xor esi, esi
lea ecx, [rdx - 1]
add rcx, rcx
mov word [rsp + rax + 0x40], si
cmp word [rsp + rcx + 0x40], 0x5c
jne 0x14000c99f
cmp edx, 3
jne 0x14000c98d
cmp word [rsp + 0x42], 0x3a
je 0x14000c99f
cmp rcx, 0x208
jae 0x14000ca63
mov word [rsp + rcx + 0x40], si
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
mov dword [rsp + 0x28], esi
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14000ca41
mov ecx, dword [rbx]
cmp eax, ecx
jle 0x14000ca07
cdqe
mov qword [rbx], rax
mov eax, 0xfffff024
mov rsi, qword [rsp + 0x280]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400f3170
mov rbx, qword [rsp + 0x288]
add rsp, 0x260
pop rdi
ret
mov eax, 0x7fffffff
mov qword [rsp + 0x38], rsi
cmp qword [rbx], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov r9d, 0xffffffff
cmova ecx, eax
xor edx, edx
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14000ca50
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140016510
jmp 0x14000c9de
dec eax
movsxd rcx, eax
xor eax, eax
mov qword [rbx], rcx
jmp 0x14000c9de
mov eax, 0xfffff019
jmp 0x14000c9e6
call fcn.1400f3b04
int3

Function at 0x14000ca80
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x30]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400f3170
add rsp, 0x78
ret

Function at 0x14000cad0
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14012a5e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
mov rdx, 0xffffffffffffffff
test eax, eax
cmove rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400f3170
add rsp, 0x78
ret
Function at 0x14000e250
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x40]
lea r9, [rcx + 0x48]
mov r8, qword [r9]
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
xor ebx, ebx
mov qword [r9], rbx
call qword [sym.imp.WS2_32.dll_GetAddrInfoW]
cmp eax, 0x273f
jg 0x14000e2e8
je 0x14000e2d5
mov ecx, eax
test eax, eax
je 0x14000e359
sub ecx, 8
je 0x14000e2c2
sub ecx, 0x271e
je 0x14000e2af
cmp ecx, 0x16
jne 0x14000e304
mov ebx, 0xfffff43d
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff446
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff442
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff443
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, eax
sub ecx, 0x277d
je 0x14000e354
sub ecx, 0x37c
je 0x14000e341
sub ecx, 1
je 0x14000e32e
cmp ecx, 1
je 0x14000e31b
mov ecx, eax
call fcn.140016510
mov ebx, eax
mov dword [rdi + 0x58], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff444
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff447
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff440
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, 0xfffff43e
mov dword [rdi + 0x58], ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000ea40
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rdx
mov dword [rsp + 0x38], 0x3c
mov rcx, rbx
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14000ea8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x30], 0
je 0x14000eab6
mov edx, 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov rcx, rbx
lea r8d, [rdx - 3]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14000ea7f
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x14000eac0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
cmp qword [rdx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov rdi, r8
mov dword [rsp + 0x58], 1
mov rbx, rdx
mov rbp, rcx
je 0x14000eafc
mov eax, 0xfffff00e
jmp 0x14000ebff
lea r8, [rsp + 0x58]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14000eb1f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000ebff
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14000eb3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000ebff
mov rdx, qword [rbp + 0x38]
xor r9d, r9d
mov r8, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x14000eb63
cmp dword [rsp + 0x70], eax
je 0x14000eb33
or dword [rbx + 0x58], 0x80000
mov ecx, dword [0x14043f280]
cmp esi, 0x17
mov eax, dword [rbx + 0x58]
cmove ecx, dword [0x14043f27c]
bt eax, 0x13
jb 0x14000eb99
test ecx, ecx
jne 0x14000eb99
mov dl, 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileCompletionNotificationModes]
test eax, eax
je 0x14000eb33
or dword [rbx + 0x58], 0x20000
mov eax, dword [rbx + 0x58]
bt eax, 0x18
jae 0x14000ebd5
mov edx, 6
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
mov rcx, rdi
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14000ebd5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14000ebff
test dword [rbx + 0x58], 0x2000000
je 0x14000ebea
mov rdx, rdi
call fcn.14000ea40
test eax, eax
jne 0x14000ebff
mov qword [rbx + 0x110], rdi
cmp esi, 0x17
jne 0x14000ebfd
or dword [rbx + 0x58], 0x400000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000ef40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
cmp qword [rcx + 0x110], 0xffffffffffffffff
mov esi, r9d
mov r15d, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x14000efd8
test sil, 1
je 0x14000ef84
cmp word [rdx], 0x17
je 0x14000ef84
mov eax, 0x57
jmp 0x14000f03c
movzx ecx, word [rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14000efa8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000f03c
movzx r9d, word [rdi]
mov r8, rbp
mov rcx, qword [rbx + 8]
mov rdx, rbx
mov dword [rsp + 0x20], 0
call fcn.14000eac0
mov r14d, eax
test eax, eax
je 0x14000efd8
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, r14d
jmp 0x14000f03c
cmp word [rdi], 0x17
jne 0x14000f008
mov rcx, qword [rbx + 0x110]
lea r9, [rsp + 0x50]
mov edx, 0x29
mov dword [rsp + 0x20], 4
and esi, 1
mov dword [rsp + 0x50], esi
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx + 0x110]
mov r8d, r15d
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000f033
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2740
jne 0x14000f03c
mov dword [rbx + 0x118], eax
or dword [rbx + 0x58], 0x2000
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret