joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800016f4
Capabilities:
Check mutex on windows
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x220
mov rsi, rcx
call fcn.180002df8
mov ecx, 0x202
lea rdx, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.180001ca8
test byte [0x180004274], 1
je 0x1800017bd
mov r8d, dword [0x180004288]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x626f6c47
mov dword [rsp + 0x34], 0x255c6c61
mov dword [rsp + 0x38], 0x783830
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x1800042c0], rax
test rax, rax
je 0x1800017b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1800017a7
mov rcx, qword [0x1800042c0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov qword [0x1800042c0], rax
jmp 0x1800017ae
mov rax, qword [0x1800042c0]
test rax, rax
jne 0x1800017bd
mov al, 1
mov byte [0x180004184], al
jmp 0x1800017c3
mov al, byte [0x180004184]
test al, al
jne 0x180001833
xor ebx, ebx
test rsi, rsi
je 0x1800017d9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea ebp, [rbx + 0x13]
movsxd rcx, ebp
call fcn.180002e3c
lea rdx, [0x180004260]
mov rdi, rax
lea rcx, [rax + 1]
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov word [rdi + 0x11], bx
test ebx, ebx
je 0x180001812
movsxd r8, ebx
lea rcx, [rdi + 0x13]
mov rdx, rsi
call fcn.180002ecc
xor edx, edx
mov dword [rsp + 0x20], ebp
mov r9, rdi
xor r8d, r8d
lea ecx, [rdx + 1]
call fcn.1800021ac
mov rcx, rdi
call fcn.180002e28
call fcn.180001920
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rcx, qword [0x1800042c0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [0x180004170]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 5
mov ebx, edi
mov rcx, qword [0x1800042c8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
sub rbx, 1
jne 0x18000185a
lea r8d, [rbx + 1]
mov r9d, 0x3a98
lea rbx, [0x180004330]
mov ecx, edi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [0x180004358]
add rbx, 8
cmp rbx, rax
jl 0x180001891
mov rcx, qword [0x1800042c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1800042d0]
call fcn.180001564
lea rcx, [0x180004300]
call fcn.180001564
mov rcx, qword [0x180004280]
call fcn.180002e28
mov rcx, qword [0x180004178]
call fcn.180002e28
lea rcx, [0x180004210]
call fcn.180001564
lea rcx, [0x180004290]
call fcn.180001564
call fcn.180002e18
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1800020b8
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x180002102
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov ebx, edx
mov edi, r10d
mov r11, rcx
mov dl, byte [r11]
movsxd rax, edi
mov cl, dl
xor cl, byte [rax + r8]
lea eax, [rdi + 1]
xor cl, r10b
mov r10b, dl
cdq
mov byte [r11], cl
idiv r9d
inc r11
mov edi, edx
sub rbx, 1
jne 0x1800020d1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x180002104
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x18000214c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r10d, r10d
mov ebx, edx
mov edi, r10d
mov r11, rcx
movsxd rax, edi
mov cl, byte [rax + r8]
lea eax, [rdi + 1]
xor cl, byte [r11]
cdq
idiv r9d
xor cl, r10b
mov byte [r11], cl
mov edi, edx
inc r11
mov r10b, cl
sub rbx, 1
jne 0x18000211d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x1800021ac
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rbp, dword [rsp + 0x70]
mov r12d, ecx
mov rsi, r9
mov edi, r8d
mov ebx, edx
lea ecx, [rbp + 0x30]
call fcn.180002150
mov r10d, dword [0x180004288]
mov r8, rbp
mov rdx, rsi
mov r13, rax
mov r15, qword [rax + 8]
lea r14, [r15 + 0x13]
mov dword [r15 + 0x2c], ebp
mov dword [r14 + 0xe], edi
lea rdi, [r15 + 0x30]
mov dword [r14], r10d
mov rcx, rdi
mov r10d, dword [0x180004270]
mov dword [r14 + 4], r10d
mov dword [r14 + 8], 0xc917d366
mov byte [r14 + 0xc], r12b
mov byte [r14 + 0xd], bl
mov dword [r14 + 0x12], ebp
call fcn.180002ecc
mov edx, select
lea ecx, [rdx - 0xa]
call fcn.180002e94
lea rbx, [r15 + 4]
mov dword [r15], eax
mov rcx, rbx
mov edx, eax
call fcn.180002e80
mov r9d, 0x1f
lea r8, [0x1800040c0]
mov rcx, r14
lea esi, [r9 - 9]
mov edx, esi
call fcn.1800020b8
mov r9d, dword [r15]
mov edx, esi
mov rcx, r14
mov r8, rbx
call fcn.1800020b8
mov edx, ebp
lea r9d, [rsi + 9]
mov rcx, rdi
lea r8, [0x1800040c0]
call fcn.1800020b8
mov r9d, dword [r15]
mov edx, ebp
mov rcx, rdi
mov r8, rbx
call fcn.1800020b8
mov rdx, r13
lea rcx, [0x180004290]
call fcn.180001604
cmp r12d, 6
je 0x1800022be
mov rcx, qword [0x180004170]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180002320
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rcx + 8]
mov ebp, 6
mov r14d, dword [rcx + 0x10]
mov r15, rcx
sub r14d, ebp
movzx edx, byte [rbx + 5]
lea rdi, [rbx + 6]
mov esi, dword [rbx + 1]
sub edx, 1
je 0x180002471
cmp edx, 1
je 0x1800023c3
mov r8d, esi
lea rdx, [0x1800024e4]
lea rcx, [0x180004300]
call fcn.18000165c
test rax, rax
je 0x1800023ab
mov rax, qword [rax + 0x10]
test rax, rax
je 0x180002398
cmp byte [rbx + 5], 8
je 0x18000238e
movzx ebp, byte [rbx + 5]
mov r8d, r14d
mov rdx, rdi
mov ecx, ebp
call rax
cmp byte [rbx + 5], 8
jne 0x1800024bb
and dword [rbx + 1], 0
jmp 0x1800024bb
cmp byte [rbx + 5], 8
je 0x1800024bb
mov r8d, dword [rbx + 1]
mov edx, 7
jmp 0x1800024aa
mov eax, dword [rdi + 4]
lea rdx, [0x1800024e4]
movsxd rbp, dword [rdi + 8]
lea rcx, [0x1800042d0]
mov ebx, dword [rdi]
mov r12d, dword [rdi + 0xc]
mov r8d, ebx
mov dword [rsp + 0x70], eax
lea rax, [rdi + 0x10]
lea r13, [rax + rbp]
mov qword [rsp + 0x78], rax
call fcn.18000165c
mov rdi, rax
test rax, rax
jne 0x180002466
lea ecx, [rax + 0x60]
call fcn.180002e3c
mov rcx, rbp
mov rdi, rax
mov dword [rax + 8], ebx
mov dword [rax + 0xc], ebp
call fcn.180002e3c
mov qword [rdi + 0x10], rax
lea rcx, [rdi + 0x1c]
mov eax, dword [rsp + 0x70]
mov edx, 0x3f
mov dword [rdi + 0x18], eax
call fcn.180002e80
mov rdx, qword [rsp + 0x78]
mov r8, rbp
mov rcx, qword [rdi + 0x10]
call fcn.180002ecc
mov rcx, qword [rdi + 0x10]
lea r8, [rdi + 0x1c]
mov r9d, 0x3f
mov edx, ebp
call fcn.1800020b8
mov rdx, rdi
lea rcx, [0x1800042d0]
call fcn.180001604
mov r9d, r12d
mov r8, r13
mov rdx, rdi
jmp 0x180002499
mov r8d, dword [rdi]
lea rdx, [0x1800024e4]
mov ebx, dword [rdi + 4]
lea rcx, [0x1800042d0]
call fcn.18000165c
test rax, rax
je 0x1800024a2
lea r8, [rdi + 8]
mov r9d, ebx
mov rdx, rax
mov ecx, esi
call fcn.1800025a0
jmp 0x1800024bb
mov r8d, esi
mov edx, 4
and dword [rsp + 0x20], 0
xor r9d, r9d
lea ecx, [r9 + 3]
call fcn.1800021ac
mov rdx, r15
lea rcx, [0x180004210]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.180001604
Function at 0x1800025a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov r15, r8
mov esi, ecx
mov r8d, ecx
mov rbp, rdx
lea rcx, [0x180004300]
mov r14d, r9d
lea rdx, [0x1800024e4]
call fcn.18000165c
mov rbx, rax
test rax, rax
je 0x1800025f8
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1800025f4
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 6]
call rax
or dword [rbx + 8], 0xffffffff
xor r8d, r8d
lea rdx, [0x1800024e4]
lea rcx, [0x180004300]
call fcn.18000165c
mov rdi, rax
test rax, rax
jne 0x180002634
lea ecx, [rax + 0x18]
call fcn.180002e3c
mov rdx, rax
lea rcx, [0x180004300]
mov rdi, rax
or dword [rax + 8], 0xffffffff
call fcn.180001604
and qword [rdi + 0x10], 0
lea rax, [0x18000251c]
mov dword [rdi + 8], esi
xor ecx, ecx
movsxd rdx, dword [rbp + 0xc]
mov r8d, 0x3000
mov qword [rsp + 0x24], rax
lea rax, [0x18000254c]
mov qword [rsp + 0x2c], rax
lea rax, [0x180002570]
lea r9d, [rcx + 0x40]
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x3c], r15
mov dword [rsp + 0x44], r14d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsxd r8, dword [rbp + 0xc]
mov rcx, rax
mov rdx, qword [rbp + 0x10]
mov rbx, rax
call fcn.180002ecc
mov edx, dword [rbp + 0xc]
lea r8, [rbp + 0x1c]
mov r9d, 0x3f
mov rcx, rbx
call fcn.180002104
movsxd r8, dword [rbp + 0x18]
lea rcx, [rsp + 0x20]
add r8, rbx
call r8
mov esi, 0x8000
xor edx, edx
mov r8d, esi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r8d, esi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
and dword [rdi + 8], 0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1800026fc
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov esi, edx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1800027a8
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rbx, rax
test rax, rax
je 0x1800027a8
xor r8d, r8d
lea r14d, [r8 + 2]
mov ecx, r14d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp eax, 0xffffffff
je 0x1800027a8
xor edx, edx
lea r8d, [r14 + 0xe]
lea rcx, [rsp + 0x20]
call fcn.180002f58
movzx ecx, si
mov word [rsp + 0x20], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rbx
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
movsxd rbx, edi
lea r8d, [r14 + 0xe]
mov rcx, rbx
mov dword [rsp + 0x24], eax
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1800027c0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
mov rax, rbx
jmp 0x1800027aa
Function at 0x1800027c8
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov r8d, edx
xor r9d, r9d
mov rdx, rcx
mov rcx, qword [0x180004200]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1800027eb
mov al, 1
jmp 0x180002802
mov rcx, qword [0x180004200]
call qword [sym.imp.WS2_32.dll_closesocket]
and qword [0x180004200], 0
xor al, al
add rsp, 0x28
ret

Function at 0x180002808
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x180004200]
mov edi, edx
and dword [r11 + 0x20], 0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rsi, rcx
imul eax, r8d, 0xf4240
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 1
xor ecx, ecx
mov dword [r11 + 0x24], eax
lea rax, [r11 + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x1800028ad
xor ebx, ebx
test edi, edi
jle 0x180002890
mov rcx, qword [0x180004200]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x180002890
add ebx, eax
cmp ebx, edi
jl 0x18000286a
cmp ebx, edi
jne 0x180002898
mov al, 1
jmp 0x1800028af
mov rcx, qword [0x180004200]
call qword [sym.imp.WS2_32.dll_closesocket]
and qword [0x180004200], 0
xor al, al
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180002e88
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
lea edx, [rcx - 1]
xor ecx, ecx
jmp fcn.180002e94

Function at 0x180002e94
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov edi, ecx
mov edx, 4
lea rcx, [rsp + 0x30]
call sub.ADVAPI32.dll_SystemFunction036
mov eax, dword [rsp + 0x30]
sub ebx, edi
inc ebx
xor edx, edx
div ebx
mov rbx, qword [rsp + 0x38]
lea eax, [rdi + rdx]
add rsp, 0x20
pop rdi
ret

Function at 0x180002f7c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor eax, eax
test edx, edx
jle 0x180002f99
mov r8d, edx
movzx edx, byte [rcx]
inc rcx
xor eax, edx
imul eax, eax, 0x1000193
sub r8, 1
jne 0x180002f85
ret
Function at 0x140006a20
Capabilities:
Hash data using crc32b

Disassembly:
xor r9d, r9d
lea r10, [0x14014ecb0]
nop word [rax + rax]
xor eax, eax
test r9b, 1
je 0x140006a3c
bts eax, 7
mov ecx, r9d
shr ecx, 1
test cl, 1
je 0x140006a4a
bts eax, 6
shr ecx, 1
test cl, 1
je 0x140006a55
bts eax, 5
shr ecx, 1
test cl, 1
je 0x140006a60
bts eax, 4
shr ecx, 1
test cl, 1
je 0x140006a6b
bts eax, 3
shr ecx, 1
test cl, 1
je 0x140006a76
bts eax, 2
shr ecx, 1
test cl, 1
je 0x140006a81
bts eax, 1
test cl, 2
je 0x140006a8a
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 0x140006b21
lea eax, [rdx + 1]
bts ecx, eax
sar r8d, 1
test r8b, 1
je 0x140006b2d
bts ecx, edx
sar r8d, 1
sub edx, 2
cmp edx, 0xfffffffe
jg 0x140006b15
mov dword [r10], ecx
inc r9d
add r10, 4
cmp r9d, 0x100
jl 0x140006a30
mov dword [0x14014eca0], 1
ret
Function at 0x140009a30
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 0x140009a5f
xor eax, eax
jmp 0x140009c17
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 0x140009bd8
mov ecx, dword [rdi + 0x1c]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa4]
jne 0x140009bd8
mov ecx, dword [rdi + 0x20]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0x9c]
jne 0x140009bd8
mov ecx, dword [rdi + 0x24]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, dword [rbx + 0xa0]
jne 0x140009bd8
mov eax, dword [rbx + 0x1c]
cmp dword [rdi + 0x28], eax
jne 0x140009bd8
mov edx, 1
mov r8b, 0xff
mov rcx, rbx
call fcn.140009c30
cmp rsi, qword [rbx + 0x48]
jae 0x140009ae5
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 0x140009b1f
cmp eax, esi
mov ecx, eax
cmova ecx, esi
cmp ecx, dword [rbx + 0xd0]
jae 0x140009b2d
mov dword [rbx + 0xd0], ecx
mov ecx, dword [rdi + 0xc]
call qword [sym.imp.WS2_32.dll_ntohl]
cmp eax, esi
jb 0x140009b46
mov ecx, 0x10000
mov esi, eax
cmp eax, ecx
cmova esi, ecx
cmp esi, dword [rbx + 0xd4]
jae 0x140009b54
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 0x140009ba0
call fcn.140007130
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 0x140009c12
xor edi, edi
cmp dword [rbx + 0x38], 1
sete dil
add edi, 3
call fcn.140007160
cmp dword [rbx + 0x140], 0
mov dword [rbx + 0x38], edi
jne 0x140009bd4
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140006840
mov dword [rbx + 0x140], 1
xor eax, eax
jmp 0x140009c12
xor edi, edi
mov rcx, rbx
mov dword [rbx + 0x1c8], edi
call fcn.140007160
mov dword [rbx + 0x38], 9
cmp dword [rbx + 0x140], edi
jne 0x140009c0d
lea rcx, [rbp + 0x48]
mov rdx, rbx
call fcn.140006840
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 0x14000aaf0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rax, qword [0x1401113d8]
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 0x14000ab35
cmp word [rax + 0x10], 2
jne 0x14000ab35
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [r14], eax
xor eax, eax
jmp 0x14000abe9
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 0x14000aba3
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 0x14000abcb
mov rdx, qword [rsp + 0x20]
cmp rdx, rbx
je 0x14000abcb
mov rcx, rdx
sub rcx, rbx
cmp rcx, 3
jg 0x14000abcb
mov byte [rsp + rdi + 0x28], al
movsx eax, byte [rdx]
cmp ebp, 3
mov ecx, esi
cmovl ecx, r15d
cmp eax, ecx
jne 0x14000abcb
inc ebp
lea rbx, [rdx + 1]
inc rdi
cmp rdi, 4
jl 0x14000ab60
mov eax, dword [rsp + 0x28]
mov dword [r14], eax
jmp 0x14000abd0
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.1400d0820
add rsp, 0x58
pop r14
pop rbx
ret

Function at 0x14000ac10
Capabilities:
Initialize winsock library

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

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

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401113d8]
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 0x14000adb8
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400d0820
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.1400d0820
add rsp, 0x40
pop rbx
ret
Function at 0x14000adf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1401113d8]
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 0x14000ae7e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
je 0x14000ae7a
cmp eax, 0x13
jne 0x14000ae88
xor eax, eax
jmp 0x14000aead
test dword [rsp + 0x50], 0x8000
je 0x14000ae8f
mov eax, 0xffffffff
jmp 0x14000aead
test rbx, rbx
je 0x14000aea9
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.1400d0820
add rsp, 0x80
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1401113d8]
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 0x14000af22
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 0x14000af7e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
jmp 0x14000af82
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400d0820
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000afa0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1401113d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
dec edx
mov dword [rsp + 0x30], r8d
mov r9d, 0xffffffff
cmp edx, 8
ja case.0x14000afde.8
movsxd rax, edx
lea r10, [0x140000000]
mov edx, dword [r10 + rax*4 + 0xb084]
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 0x14000b061
mov edx, 0xffff
mov r8d, reloc.WLDAP32.dll_Ordinal_32
jmp 0x14000b04e
mov edx, 0xffff
mov r8d, 4
jmp 0x14000b04e
mov edx, 0xffff
mov r8d, 0x1002
jmp 0x14000b04e
mov edx, 0xffff
mov r8d, 0x1001
jmp 0x14000b04e
mov edx, 0xffff
mov r8d, 0x1006
jmp 0x14000b04e
mov edx, 0xffff
mov r8d, 0x1005
jmp 0x14000b04e
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.1400d0820
add rsp, 0x58
ret

Function at 0x14000b0b0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1401113d8]
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 0x14000b11e
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
test al, 2
je 0x14000b135
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 0x14000b162
mov eax, 0xffffffff
jmp 0x14000b199
mov dword [rbx], 0
test eax, eax
je 0x14000b197
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000b180
or dword [rbx], 1
lea rdx, [rsp + 0x250]
mov rcx, rdi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000b197
or dword [rbx], 2
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400d0820
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret