joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019bb0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140030760], rbx
je 0x140019c17
cmp rax, rbx
jne 0x140019c0a
mov ebx, 1
mov esi, ebx
jmp 0x140019c1c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140019bef
mov ebx, 1
mov eax, dword [0x140030768]
cmp eax, ebx
jne 0x140019c34
mov edi, 0x1f
mov ecx, edi
call fcn.1400c2000
jmp 0x140019ca0
mov eax, dword [0x140030768]
test eax, eax
jne 0x140019c95
mov dword [0x140030768], ebx
lea r15, [0x14001f6c8]
lea rdi, [0x14001f6b0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019c87
test eax, eax
jne 0x140019c8b
cmp qword [rdi], r14
je 0x140019c7c
mov rax, qword [rdi]
mov rcx, qword [0x14001f610]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140019c5e
test eax, eax
je 0x140019c9b
mov eax, 0xff
jmp 0x140019df6
mov dword [0x14002fff0], ebx
mov edi, 0x1f
mov eax, dword [0x140030768]
cmp eax, ebx
jne 0x140019cc7
lea rdx, [0x14001f6a8]
lea rcx, [0x14001f618]
call sub.msvcrt.dll__initterm
mov dword [0x140030768], 2
test esi, esi
jne 0x140019cd5
mov rax, r14
xchg qword [0x140030760], rax
cmp qword [0x140030780], r14
je 0x140019d08
lea rcx, [0x140030780]
call fcn.14001a280
test eax, eax
je 0x140019d08
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030780]
mov r9, qword [0x14001f610]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140019d21
mov eax, 0xff
jmp 0x140019df6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019da7
test ax, ax
je 0x140019d3c
test edx, edx
jne 0x140019da7
sub ax, bx
cmp ax, di
ja 0x140019d52
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140019d3c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003fe0
mov dword [0x14002ffec], eax
cmp dword [0x140030010], r14d
jne 0x140019d90
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002fff0], r14d
jne 0x140019da5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002ffec]
jmp 0x140019df6
cmp ax, 0x22
jne 0x140019dbb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140019d2a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14001a314
add rsp, 0x28
jmp 0x140019bb0
Function at 0x14001a17c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001a1c8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001a1c0
cmp dword [rcx + 0x3c], edx
jl 0x14001a1c0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001a1c0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001a1c8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000100c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, dword [0x140006498]
mov rdi, rcx
mov r8, rcx
mov rcx, qword [0x140006490]
call fcn.140001270
mov edx, eax
mov eax, 0xffffffff
cmp rdx, rax
jne 0x140001044
or eax, 0xffffffff
jmp 0x1400010a0
mov r10, qword [0x140006490]
or ebx, 0xffffffff
mov esi, dword [0x140006498]
add r10, rdx
xor ecx, ecx
mov r8, r10
movsxd r9, ecx
lea rax, [r9 + rdx]
cmp rax, rsi
jae 0x14000108f
mov r11b, byte [r8]
lea eax, [r11 + 0x3e]
cmp al, 1
jbe 0x14000108f
cmp r11b, 0xb8
je 0x140001085
inc ecx
inc r8
cmp ecx, 0x20
jl 0x14000105c
jmp 0x14000108f
mov ebx, dword [r9 + r10 + 1]
cmp ebx, 0xffffffff
jne 0x14000109e
mov rdx, rdi
lea rcx, [0x140003200]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400010b0
Capabilities:
Get file attributes
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140006450]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x1400030c0]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x140001118
mov eax, 0xc0000001
jmp 0x140001250
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x140001240
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov qword [rbp + 0x47], rax
lea rdx, [rbp - 0x19]
movups xmmword [rbp + 0x37], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140001226
mov edx, dword [rbp + 0x3f]
lea rcx, [0x140003100]
mov dword [0x140006498], edx
call sub.ntoskrnl.exe_DbgPrint
mov edx, dword [0x140006498]
mov cl, 1
call fcn.1400029d4
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x21]
and dword [rbp - 0x1d], 0
xor r9d, r9d
and dword [rbp - 0x21], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x140006498]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [0x140006490], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140001234
mov rcx, qword [0x140006490]
call fcn.140002a24
mov edx, ebx
lea rcx, [0x140003130]
jmp 0x14000122f
mov edx, eax
lea rcx, [0x140003170]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x14000124e
mov edx, eax
lea rcx, [0x1400031c0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140002a40
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
Function at 0x140001270
Capabilities:
Parse pe header
Print debug messages
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, 0x5a4d
mov r14d, edx
mov rsi, rcx
cmp word [rcx], ax
je 0x1400012ad
lea rcx, [0x140003230]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x140001430
movsxd rdi, dword [rcx + 0x3c]
add rdi, rsi
cmp dword [rdi], 0x4550
je 0x1400012c5
lea rcx, [0x140003260]
jmp 0x1400012a0
mov edx, 0x20b
mov eax, 0x88
cmp word [rdi + 0x18], dx
mov r8d, r14d
lea ecx, [rax - 0x10]
cmovne eax, ecx
mov ecx, dword [rax + rdi]
mov edx, ecx
mov eax, dword [rax + rdi + 4]
mov dword [rsp + 0x88], ecx
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140001448
or ebx, 0xffffffff
cmp eax, ebx
jne 0x14000130b
lea rcx, [0x140003290]
jmp 0x140001429
mov r13d, eax
mov r8d, r14d
add r13, rsi
mov rcx, rdi
mov edx, dword [r13 + 0x1c]
call fcn.140001448
mov edx, dword [r13 + 0x24]
mov r8d, r14d
mov rcx, rdi
mov r15d, eax
call fcn.140001448
mov edx, dword [r13 + 0x20]
mov r8d, r14d
mov rcx, rdi
mov ebp, eax
call fcn.140001448
cmp r15d, ebx
je 0x140001422
cmp ebp, ebx
je 0x140001422
cmp eax, ebx
je 0x140001422
and dword [rsp + 0x70], 0
lea rcx, [rsi + r15]
mov r12d, eax
lea r15, [rsi + rbp]
mov eax, dword [r13 + 0x18]
add r12, rsi
mov r13, qword [rsp + 0x80]
mov ebp, ebx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x24], eax
test eax, eax
je 0x14000140f
mov edx, dword [r12]
mov r8d, r14d
mov rcx, rdi
call fcn.140001448
cmp eax, ebx
je 0x1400013e4
mov rdx, qword [rsp + 0x28]
mov ecx, eax
movzx eax, word [r15]
add rcx, rsi
mov edx, dword [rdx + rax*4]
mov eax, dword [rsp + 0x88]
cmp edx, eax
jb 0x1400013c5
add eax, dword [rsp + 0x20]
cmp edx, eax
jb 0x1400013e4
mov r9, r13
sub r9, rcx
movzx eax, byte [rcx]
movzx r8d, byte [rcx + r9]
sub eax, r8d
jne 0x1400013e0
inc rcx
test r8d, r8d
jne 0x1400013cb
test eax, eax
je 0x1400013fe
mov eax, dword [rsp + 0x70]
add r12, 4
inc eax
add r15, 2
mov dword [rsp + 0x70], eax
cmp eax, dword [rsp + 0x24]
jae 0x14000140f
jmp 0x14000138e
mov r8d, r14d
mov rcx, rdi
call fcn.140001448
mov ebp, eax
cmp eax, ebx
jne 0x14000141e
mov rdx, r13
lea rcx, [0x140003300]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebp
jmp 0x140001430
lea rcx, [0x1400032c0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001448
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx r9d, word [rcx + 0x14]
xor r10d, r10d
movzx r11d, word [rcx + 6]
add r9, 0x18
add r9, rcx
mov ebx, r8d
test r11d, r11d
je 0x140001489
mov r8d, dword [r9 + 0xc]
cmp r8d, edx
ja 0x14000147d
mov ecx, dword [r9 + 8]
add ecx, r8d
cmp ecx, edx
ja 0x140001492
add r9, 0x28
inc r10d
cmp r10d, r11d
jl 0x140001469
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
sub eax, r8d
add edx, eax
or eax, 0xffffffff
cmp edx, ebx
cmovb eax, edx
jmp 0x14000148c
Function at 0x1400014a8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.140001524
mov rbx, rax
test rax, rax
jne 0x1400014d7
lea rcx, [0x140003340]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140001514
mov rdi, qword [rax]
test rdi, rdi
jne 0x1400014e8
lea rcx, [0x140003370]
jmp 0x1400014ce
mov rcx, rsi
call fcn.14000100c
cmp eax, 0xffffffff
je 0x1400014d3
mov ecx, eax
cmp rcx, qword [rbx + 0x10]
jb 0x140001506
lea rcx, [0x1400033a0]
jmp 0x1400014ce
mov rax, qword [rbx]
mov eax, dword [rax + rcx*4]
sar eax, 4
cdqe
add rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000264c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
lea r9, [rax + 0x10]
and dword [rax + 0x10], esi
lea rdx, [rax + 0x10]
mov rax, qword [0x140006578]
mov rdi, rcx
xor r8d, r8d
lea ecx, [rsi + 0xb]
call qword [0x140004128]
mov eax, dword [rsp + 0x48]
test eax, eax
jne 0x140002697
lea rcx, [0x140003a10]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x140002715
lea edx, [rax + rax]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
test rax, rax
jne 0x1400026b3
lea rcx, [0x140003a50]
jmp 0x14000268e
mov eax, dword [rsp + 0x48]
xor edx, edx
mov rcx, rbx
lea r8d, [rax + rax]
call fcn.140002ec0
mov eax, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov ecx, 0xb
lea r8d, [rax + rax]
mov rax, qword [0x140006578]
call qword [0x140004128]
test eax, eax
js 0x1400026fb
mov rsi, qword [rbx + 0x18]
test rdi, rdi
je 0x140002707
mov eax, dword [rbx + 0x20]
mov dword [rdi], eax
jmp 0x140002707
lea rcx, [0x140003a80]
call sub.ntoskrnl.exe_DbgPrint
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007f20
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x1400b6720]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x140007f3c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x140007f4a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140007f55
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140007f60
bts eax, 4
shr ecx, 1
test cl, 1
je 0x140007f6b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140007f76
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140007f81
bts eax, 1
test cl, 2
je 0x140007f8a
bts eax, 0
shl eax, 0x18
lea ecx, [rax + rax]
mov edx, ecx
xor edx, 0x4c11db7
test eax, eax
cmovns edx, ecx
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [rcx + rcx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
test edx, edx
cmovns r8d, eax
xor ecx, ecx
lea edx, [rcx + 0x1e]
test r8b, 1
je 0x140008021
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x14000802d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x140008015
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140007f30
mov dword [0x1400b6710], 1
ret
Function at 0x14000ae70
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp dword [r8 + 0x38], 1
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rbp, rcx
je 0x14000ae9f
xor eax, eax
jmp 0x14000b057
mov ecx, dword [r9 + 0x10]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_ntohl]
mov esi, eax
lea rax, [rsi - 1]
cmp rax, 0xfe
ja 0x14000b018
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x14000b018
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x14000b018
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x14000b018
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x14000b018
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.14000b070
cmp rsi, qword [rbx + 0x48]
jae 0x14000af25
mov qword [rbx + 0x48], rsi
movzx ecx, word [rdi + 4]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 0x18], ax
movzx eax, byte [rdi + 6]
mov byte [rbx + 0x21], al
movzx eax, byte [rdi + 7]
mov byte [rbx + 0x20], al
mov ecx, dword [rdi + 8]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, 0x240
mov esi, 0x1000
cmp eax, ecx
jb 0x14000af5f
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x14000af6d
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x14000af86
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x14000af94
mov dword [rbx + 0xd4], esi
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x50], eax
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbx + 0x54], eax
mov rcx, rbx
mov dword [rbp + 0x24], 1
test r14, r14
je 0x14000afe0
call fcn.140008590
mov dword [rbx + 0x38], 5
mov dword [r14], 1
mov qword [r14 + 8], rbx
mov eax, dword [rbx + 0x1c8]
mov dword [r14 + 0x14], eax
xor eax, eax
jmp 0x14000b052
xor edi, edi
cmp dword [rbx + 0x38], 1
sete dil
add edi, 3
call fcn.1400085c0
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], edi
jne 0x14000b014
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140007d40
mov dword [rbx + 0x140], 1
xor eax, eax
jmp 0x14000b052
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x1c8], edi
call fcn.1400085c0
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], edi
jne 0x14000b04d
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140007d40
mov dword [rbx + 0x140], 1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000bf30
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x1400b35f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000bf75
cmp word [rax + 0x10], 2
jne 0x14000bf75
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x14000c029
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x48], rdi
mov ebp, esi
mov qword [rsp + 0x40], r15
mov edi, esi
mov dword [rsp + 0x28], 0
lea r15d, [rsi + 0x2e]
nop
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x14000bfe3
mov r8d, 0xa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp eax, 0xff
ja 0x14000c00b
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14000c00b
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14000c00b
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14000c00b
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x14000bfa0
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x14000c010
mov esi, 0xffffffff
mov r15, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x14000c050
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400b35f8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14000c0b9
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x14000c0b3
shr ax, 8
cmp al, 1
jne 0x14000c0b3
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x1d8
ret

Function at 0x14000c1b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400b35f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14000c1f8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x40
pop rbx
ret
Function at 0x14000c230
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400b35f8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r11, r9
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
mov rbx, rdx
lea r9, [rsp + 0x54]
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
mov r10, r8
mov qword [rsp + 0x38], rdx
test rbx, rbx
mov dword [rsp + 0x50], edx
mov r8d, r11d
cmove r9, rdx
cmove rax, rdx
mov qword [rsp + 0x30], r9
mov rdx, r10
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x14000c2be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x14000c2ba
cmp eax, 0x13
jne 0x14000c2c8
xor eax, eax
jmp 0x14000c2ed
test dword [rsp + 0x50], 0x8000
je 0x14000c2cf
mov eax, 0xffffffff
jmp 0x14000c2ed
test rbx, rbx
je 0x14000c2e9
mov eax, dword [rsp + 0x64]
movzx ecx, word [rsp + 0x62]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbx + 4], ax
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x80
pop rbx
ret

Function at 0x14000c310
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400b35f8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
je 0x14000c362
movzx ecx, word [rdx + 4]
mov eax, 2
mov word [rsp + 0x58], ax
mov qword [rsp + 0x60], r14
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
mov eax, dword [rbx]
mov dword [rsp + 0x5c], eax
mov qword [rsp + 0x40], r14
mov rax, rbx
neg rax
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x58]
mov r8d, ebp
sbb r9d, r9d
mov rdx, rsi
and r9d, 0x10
mov rcx, rdi
mov dword [rsp + 0x30], r9d
test rbx, rbx
lea r9, [rsp + 0x50]
cmove rax, r14
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x14000c3be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x14000c3c2
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000c3e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400b35f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
dec edx
mov dword [rsp + 0x30], r8d
mov r9d, 0xffffffff
cmp edx, 8
ja case.0x14000c41e.8
movsxd rax, edx
lea r10, [0x140000000]
mov edx, dword [r10 + rax*4 + 0xc4c4]
add rdx, r10
jmp rdx
mov dword [rsp + 0x38], r8d
mov edx, 0x8004667e
lea r8, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
jmp 0x14000c4a1
mov edx, 0xffff
mov r8d, 0x20
jmp 0x14000c48e
mov edx, 0xffff
mov r8d, 4
jmp 0x14000c48e
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x14000c48e
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x14000c48e
mov edx, 0xffff
mov r8d, 0x1006
jmp 0x14000c48e
mov edx, 0xffff
mov r8d, 0x1005
jmp 0x14000c48e
mov edx, 6
lea r8d, [rdx - 5]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r9d, eax
xor eax, eax
cmp r9d, 0xffffffff
setne al
dec eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x58
ret

Function at 0x14000c4f0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1400b35f8]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov dword [rsp + 0x250], 0
mov eax, 0x10624dd3
mov dword [rsp + 0x40], 0
mul r8d
mov rdi, rcx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub r8d, eax
imul eax, r8d, 0x3e8
mov dword [rsp + 0x34], eax
mov eax, dword [rbx]
test al, 1
je 0x14000c55e
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
test al, 2
je 0x14000c575
mov qword [rsp + 0x258], rdi
mov dword [rsp + 0x250], 1
lea rax, [rsp + 0x30]
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x250]
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x14000c5a2
mov eax, 0xffffffff
jmp 0x14000c5d9
mov dword [rbx], 0
test eax, eax
je 0x14000c5d7
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000c5c0
or dword [rbx], 1
lea rdx, [rsp + 0x250]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000c5d7
or dword [rbx], 2
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14007fac0
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret