joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d73e02a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbp
mov rbp, rsp
mov rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x2d73e0374
jb 0x2d73e03d3
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.2d73e0180
aeskeygenassist xmm1, xmm0, 1
call fcn.2d73e01a0
aeskeygenassist xmm1, xmm2, 2
call fcn.2d73e0180
aeskeygenassist xmm1, xmm0, 2
call fcn.2d73e01a0
aeskeygenassist xmm1, xmm2, 4
call fcn.2d73e0180
aeskeygenassist xmm1, xmm0, 4
call fcn.2d73e01a0
aeskeygenassist xmm1, xmm2, 8
call fcn.2d73e0180
aeskeygenassist xmm1, xmm0, 8
call fcn.2d73e01a0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.2d73e0180
aeskeygenassist xmm1, xmm0, 0x10
call fcn.2d73e01a0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.2d73e0180
aeskeygenassist xmm1, xmm0, 0x20
call fcn.2d73e01a0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.2d73e0180
jmp 0x2d73e0441
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.2d73e00e0
aeskeygenassist xmm1, xmm2, 2
call fcn.2d73e0140
aeskeygenassist xmm1, xmm2, 4
call fcn.2d73e00e0
aeskeygenassist xmm1, xmm2, 8
call fcn.2d73e0140
aeskeygenassist xmm1, xmm2, 0x10
call fcn.2d73e00e0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.2d73e0140
aeskeygenassist xmm1, xmm2, 0x40
call fcn.2d73e00e0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.2d73e0140
jmp 0x2d73e0441
aeskeygenassist xmm1, xmm0, 1
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 2
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 4
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 8
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 0x40
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 0x80
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.2d73e00a0
aeskeygenassist xmm1, xmm0, 0x36
call fcn.2d73e00a0
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x2d73e044e
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
pop rbp
ret

Function at 0x2d73e21a0
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
mov rcx, qword [rsp + 0x10]
mov rdx, rsp
add rdx, 0x48
mov qword [rdx], 0
mov r8, qword [rsp + 0x2b]
mov r9, rsp
add r9, 0x28
add rsp, 8
mov r10, rcx
syscall
sub rsp, 8
ret
Function at 0x2d73e21e0
Capabilities:
Execute syscall

Disassembly:
xor rax, rax
mov ax, word [rsp + 8]
push rcx
mov rcx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rdi, qword gs:[0x30]
mov dword [rdi + 0x68], 0
sub rsp, 0x80
cmp ecx, 4
jle 0x2d73e2220
cmp ecx, 0x10
jle 0x2d73e2216
int 3
mov rdi, rsp
cld
rep movsq qword [rdi], qword [rsi]
mov rsi, rsp
sub rsp, 8
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r9, qword [rsi + 0x18]
movq xmm0, rcx
movq xmm1, rdx
movq xmm2, r8
movq xmm3, r9
mov r10, rcx
syscall
add rsp, 0x88
pop rcx
mov dword [rsp + 0x28], eax
ret

Function at 0x2d73e3960
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x2d73e409f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x2d73e398d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x2d73e3c11
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x2d73e3c3d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x2d7487d80]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x2d7419580]
lea rbx, [0x2d74863b0]
call fcn.2d73668c0
inc rax
cmp rax, r8
jge 0x2d73e3c62
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x2d73e3c97
lea rdi, [0x2d7419600]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x2d73e3983
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x2d73e3c7b
jmp 0x2d73e3c50
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.2d7394fc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.2d73e3960

Function at 0x2d73e4240
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x2d73e4257
inc rax
cmp rax, 4
jge 0x2d73e426f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x2d73e4254
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x2d73e4280
inc rax
cmp rax, 4
jge 0x2d73e428e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x2d73e42b7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x2d73e429b
jmp 0x2d73e427d
Function at 0x2d73f4a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2d73f5920
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2d73f5920
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2d73f4b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2d75c9a84]
mov rbx, rcx
test esi, esi
jle 0x2d73f4c30
mov rax, qword [0x2d75c9a88]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2d73f4b4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2d73f4bd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2d73f4b30
mov rcx, rbx
call fcn.2d73f5360
mov rdi, rax
test rax, rax
je 0x2d73f4c52
mov rax, qword [0x2d75c9a88]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2d73f54a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2d75c9a88]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2d73f4c37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x2d73f4bce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x2d73f4be0
add dword [0x2d75c9a84], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x2d75c9a88]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2d73f4bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2d73f4a90
nop dword [rax]
xor esi, esi
jmp 0x2d73f4b58
mov rax, qword [0x2d75c9a88]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2d73f4a90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2d73f4a90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2d73f4fd0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2d75c9ac0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2d75c9aa0]
test rbx, rbx
je 0x2d73f502c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x2d73f5023
test eax, eax
jne 0x2d73f5023
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2d73f5008
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2d73f5360
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2d7538720]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2d73f5380
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2d73f5388
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2d73f5380
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2d73f53dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2d73f53d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2d73f5380
add rax, 0x28
cmp rax, r9
jne 0x2d73f53c0
xor eax, eax
ret

Function at 0x2d73f53e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d7538720]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2d73f53ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2d73f5408
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2d73f53ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2d73f54a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2d7538720]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2d73f54bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2d73f54c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Create directory
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x310
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
lea rdx, [rsp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, [rsp + 0x100]
mov qword [rsp + 0x20], rax
sub qword [rsp + 0x20], 2
add qword [rsp + 0x20], 2
mov rax, qword [rsp + 0x20]
cmp word [rax], 0
jne 0x1400010ae
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x328]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x1400010ce
xor edx, edx
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rax, [rsp + 0x100]
mov qword [rsp + 0x28], rax
sub qword [rsp + 0x28], 2
add qword [rsp + 0x28], 2
mov rax, qword [rsp + 0x28]
cmp word [rax], 0
jne 0x140001101
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x328]
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x140001121
cmp dword [rsp + 0x338], 0
je 0x14000117f
lea rax, [rsp + 0x100]
mov qword [rsp + 0x30], rax
sub qword [rsp + 0x30], 2
add qword [rsp + 0x30], 2
mov rax, qword [rsp + 0x30]
cmp word [rax], 0
jne 0x14000114e
mov rax, qword [rsp + 0x30]
lea rcx, str.dkwofjeiwucuinswncs
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x14000116d
jmp 0x1400011c1
lea rax, [rsp + 0x100]
mov qword [rsp + 0x38], rax
sub qword [rsp + 0x38], 2
add qword [rsp + 0x38], 2
mov rax, qword [rsp + 0x38]
cmp word [rax], 0
jne 0x140001192
mov rax, qword [rsp + 0x38]
lea rcx, str.fsdkioajfuiewfwwss
xor edx, edx
movzx edi, word [rcx + rdx*2]
mov word [rax + rdx*2], di
inc rdx
test di, di
jne 0x1400011b1
mov dword [rsp + 0x40], 0x2385
mov eax, dword [rsp + 0x40]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x48], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [rsp + 0x90], 0x68
xor eax, eax
add rsp, 0x310
pop rdi
ret

Function at 0x1800013f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001418
xor eax, eax
lea r8, [0x180001070]
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 eax, 1
add rsp, 0x38
ret
Function at 0x1400080a0
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x1400c4880]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x1400080bc
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x1400080ca
bts eax, 6
shr ecx, 1
test cl, 1
je 0x1400080d5
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1400080e0
bts eax, 4
shr ecx, 1
test cl, 1
je 0x1400080eb
bts eax, 3
shr ecx, 1
test cl, 1
je 0x1400080f6
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140008101
bts eax, 1
test cl, 2
je 0x14000810a
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
mov edx, 0x1e
cmovns r8d, eax
xor ecx, ecx
test r8b, 1
je 0x1400081a3
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x1400081af
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x140008197
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x1400080b0
mov dword [0x1400c4870], 1
ret
Function at 0x14000aff0
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 0x14000b01f
xor eax, eax
jmp 0x14000b1d7
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 0x14000b198
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x14000b198
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x14000b198
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x14000b198
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x14000b198
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.14000b1f0
cmp rsi, qword [rbx + 0x48]
jae 0x14000b0a5
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 0x14000b0df
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x14000b0ed
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x14000b106
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x14000b114
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 0x14000b160
call fcn.140008710
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 0x14000b1d2
xor edi, edi
cmp dword [rbx + 0x38], 1
sete dil
add edi, 3
call fcn.140008740
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], edi
jne 0x14000b194
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140007ec0
mov dword [rbx + 0x140], 1
xor eax, eax
jmp 0x14000b1d2
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x1c8], edi
call fcn.140008740
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], edi
jne 0x14000b1cd
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140007ec0
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 0x14000c0d0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x1400c15c0]
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 0x14000c115
cmp word [rax + 0x10], 2
jne 0x14000c115
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x14000c1c9
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 r15d, 0x2e
mov dword [rsp + 0x28], 0
lea rdx, [rbx + 1]
mov qword [rsp + 0x20], rdx
cmp byte [rbx], 0x30
je 0x14000c183
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 0x14000c1ab
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14000c1ab
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14000c1ab
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14000c1ab
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x14000c140
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x14000c1b0
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.14008e100
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x14000c1f0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400c15c0]
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 0x14000c259
movzx eax, word [rsp + 0x20]
cmp al, 1
jne 0x14000c253
shr ax, 8
cmp al, 1
jne 0x14000c253
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14008e100
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.14008e100
add rsp, 0x1d8
ret

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400c15c0]
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 0x14000c398
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008e100
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.14008e100
add rsp, 0x40
pop rbx
ret
Function at 0x14000c3d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400c15c0]
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 0x14000c45e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x14000c45a
cmp eax, 0x13
jne 0x14000c468
xor eax, eax
jmp 0x14000c48d
test dword [rsp + 0x50], 0x8000
je 0x14000c46f
mov eax, 0xffffffff
jmp 0x14000c48d
test rbx, rbx
je 0x14000c489
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.14008e100
add rsp, 0x80
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400c15c0]
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 0x14000c502
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 0x14000c55e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x14000c562
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14008e100
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000c580
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400c15c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
dec edx
mov dword [rsp + 0x30], r8d
mov r9d, 0xffffffff
cmp edx, 8
ja case.0x14000c5be.8
movsxd rax, edx
lea r10, [0x140000000]
mov edx, dword [r10 + rax*4 + 0xc664]
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 0x14000c643
mov edx, 0xffff
mov r8d, 0x20
jmp 0x14000c630
mov edx, 0xffff
mov r8d, 4
jmp 0x14000c630
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x14000c630
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x14000c630
mov edx, 0xffff
mov r8d, 0x1006
jmp 0x14000c630
mov edx, 0xffff
mov r8d, 0x1005
jmp 0x14000c630
mov edx, 6
mov r8d, 1
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.14008e100
add rsp, 0x58
ret

Function at 0x14000c690
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1400c15c0]
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 0x14000c6fe
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
test al, 2
je 0x14000c715
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 0x14000c742
mov eax, 0xffffffff
jmp 0x14000c779
mov dword [rbx], 0
test eax, eax
je 0x14000c777
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000c760
or dword [rbx], 1
lea rdx, [rsp + 0x250]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000c777
or dword [rbx], 2
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14008e100
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret