joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b1a80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x1400b1abc
je 0x1400b1abb
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x14017f2e4]
nop word [rax + rax]
movzx r10d, al
movzx r11d, byte [rdx + r8]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x1400b1aa0
ret
int3

Function at 0x1400b3608
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b3652
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b3652
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b3652
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b3652
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b3652
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b3654
xor al, al
add rsp, 0x28
ret

Function at 0x1400b3960
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400b39d8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400b39d8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400b39d8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400b39cc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400b39ea
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400b39ba
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400b39da

Function at 0x1400c1a68
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400c1a9f
call fcn.1400c4d94
mov dword [rax], 0x16
call fcn.1400c672c
xor eax, eax
jmp 0x1400c1b2d
mov rdx, r9
mov rcx, r8
call fcn.1400c1b50
mov rbx, rax
test rax, rax
je 0x1400c1b2a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400c1bc0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400c1b17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400c4dd4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c1afe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400c1b0d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140083d10
jmp 0x1400c1b2a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400c1b27
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000b3c0
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rdi, rcx
xor edx, edx
lea r8d, [rdx + 0x5c]
add rcx, 4
call fcn.14003c9f0
mov dword [rdi + 4], 0x67452301
mov dword [rdi + 8], 0xefcdab89
mov dword [rdi + 0xc], 0x98badcfe
mov dword [rdi + 0x10], 0x10325476
xor ecx, ecx
mov qword [rdi + 0xb0], rcx
lea eax, [rcx + 0xf]
mov qword [rdi + 0xb8], rax
mov byte [rdi + 0xa0], cl
mov qword [rdi + 0xd0], rcx
mov qword [rdi + 0xd8], rax
mov byte [rdi + 0xc0], cl
mov word [rdi], 0x101
mov word [rsp + 0x88], 0x33
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.140012124
nop
lea rdx, [0x14008fe30]
lea rcx, [rsp + 0x48]
call fcn.140012124
mov r8, rax
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14000b210
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000b4b1
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b4ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b4c2
call fcn.14003ab08
nop
mov rax, rdi
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
ret
call fcn.14003f284
nop
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
cmp ecx, 5
je 0x14000b4f2
and dword [rsp + 0x20], 0
xor r9d, r9d
mov ecx, dword [0x14009f800]
call fcn.1400636f8
add rsp, 0x68
ret
lea rcx, [rsp + 0x38]
call fcn.14000cf58
nop
cmp qword [rax + 0x18], 0x10
jb 0x14000b507
mov rax, qword [rax]
mov rcx, rax
call fcn.140006b88
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14000b549
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b544
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b56e
call fcn.14003ab08
mov ecx, 3
mov dword [0x14009f800], ecx
mov dword [rsp + 0x20], 0xbb8
lea r9d, [rcx - 2]
call fcn.1400636f8
add rsp, 0x68
jmp fcn.1400635a8
call fcn.14003f284
int3
Function at 0x14000d154
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x1020]
mov eax, 0x1120
call fcn.14003b750
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1130], rbx
mov qword [rsp + 0x1138], rsi
mov rbx, rcx
lea rcx, [rsp + 0x70]
call fcn.140012124
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140071c20
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x14000d1dd
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d1d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d37d
call fcn.14003ab08
mov esi, 0x400
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14003c9f0
xor r9d, r9d
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
sub rdx, r8
je 0x14000d221
lea rcx, [rbp - 0x60]
lea rax, [rbp - 0x60]
sub r8, rax
mov al, byte [r8 + rcx]
mov byte [rcx], al
inc r9d
inc rcx
movsxd rax, r9d
cmp rax, rdx
jb 0x14000d20d
mov r8, rsi
xor edx, edx
lea rcx, [rbp + 0xc20]
call fcn.14003c9f0
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov r8, rsi
xor edx, edx
lea rcx, [rbp + 0x820]
call fcn.14003c9f0
mov word [rsp + 0x4e], 0x3939
mov dword [rsp + 0x30], 0x37383843
mov dword [rsp + 0x3f], 0x42324436
mov dword [rsp + 0x35], 0x44433234
mov word [rsp + 0x48], 0x4342
mov dword [rsp + 0x43], 0x42413436
mov word [rsp + 0x3c], 0x3945
mov word [rsp + 0x39], 0x4132
mov byte [rsp + 0x50], 0
mov byte [rsp + 0x3b], 0x37
mov byte [rsp + 0x34], 0x44
mov word [rsp + 0x4b], 0x3836
mov byte [rsp + 0x4a], 0x46
mov byte [rsp + 0x47], 0x43
mov byte [rsp + 0x3e], 0x46
mov byte [rsp + 0x4d], 0x46
lea r8, [rsp + 0x30]
mov rdx, rsi
lea rcx, [rbp + 0x820]
call fcn.14003f3ec
lea rax, vtable.CRijndael.0
mov qword [rbp + 0x3a0], rax
mov byte [rbp + 0x3a8], 0
lea r8, [rsp + 0x70]
lea rdx, [rbp + 0x820]
lea rcx, [rbp + 0x3a0]
call fcn.14000e058
mov r9, qword [rsp + 0x60]
sub r9, qword [rsp + 0x58]
lea r8, [rbp + 0xc20]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x3a0]
call fcn.140072dd8
lea rdx, [rbp + 0xc30]
mov rcx, rbx
call fcn.140012124
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000d35f
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d35a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000d377
call fcn.14003ab08
mov rax, rbx
lea r11, [rsp + 0x1120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.14003f284
nop
call fcn.14003f284
nop
int3
Function at 0x140020c08
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0x977], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140020cc9
cmp qword [rcx + 0x260], 0
je 0x140020c7e
call fcn.140017a04
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.140017c98
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
mov dl, bl
mov rcx, rdi
call fcn.140017c98
jmp 0x140020cc9
mov ecx, esi
test edx, edx
je 0x140020c8e
sub ecx, 1
je 0x140020c8e
cmp ecx, 1
jne 0x140020cc9
mov r9, qword [rdi + 0x1c8]
lea rax, [0x140075ed0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1400440a8
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1400440a8
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140020e28
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140020e61
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
and qword [rbx], 0
mov ecx, 0x38
cmp eax, 0x2733
lea edx, [rcx + 0x19]
cmove ecx, edx
mov eax, ecx
jmp 0x140020e66
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x14009d0d8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x160]
call fcn.14002148c
test eax, eax
je 0x140020f99
mov dword [rbx], 0x1b
or rax, 0xffffffffffffffff
jmp 0x140021003
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
and dword [rbx], 0
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x140021000
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x140020fd0
xor esi, esi
mov dword [rbx], 0x51
jmp 0x140021000
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140032da4
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.140020ce4
mov dword [rbp + 0xc14], edi
mov dword [rbx], 0x37
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14003b480
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002148c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov r14, rcx
movsxd rdx, r8d
mov rdi, rdx
shl rdi, 5
mov rax, qword [rbx + 0x2c8]
mov rsi, qword [rdi + rbx + 0x1b0]
sub rsi, qword [rdi + rbx + 0x1b8]
test byte [rax + 0x84], 3
je 0x1400215a6
lea rax, [0x140020e6c]
cmp qword [rbx + rdx*8 + 0x188], rax
jne 0x1400215a6
cmp qword [rdi + rbx + 0x1a8], 0
je 0x140021502
test rsi, rsi
je 0x1400215a6
mov rbp, qword [rbx + rdx*8 + 0x160]
or r8, 0xffffffffffffffff
or rdx, r8
mov rcx, rbp
xor r9d, r9d
call fcn.14002b3f4
cmp eax, 0xffffffff
je 0x1400215a6
test al, 1
je 0x1400215a6
mov rcx, qword [rdi + rbx + 0x1a8]
test rcx, rcx
jne 0x14002157d
mov eax, dword [r14 + 0x5f4]
lea ecx, [rax + rax]
mov qword [rdi + rbx + 0x1b0], rcx
call qword [section..data]
mov qword [rdi + rbx + 0x1a8], rax
mov rcx, rax
test rax, rax
jne 0x140021563
lea eax, [rcx + 0x1b]
jmp 0x1400215a8
and qword [rdi + rbx + 0x1b8], 0
and qword [rdi + rbx + 0x1c0], 0
mov rsi, qword [rdi + rbx + 0x1b0]
mov rdx, qword [rdi + rbx + 0x1b8]
xor r9d, r9d
add rdx, rcx
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x1400215a6
add qword [rdi + rbx + 0x1b8], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x14009d0d8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, r8
mov rbx, rdx
mov r8d, 0x80
mov rsi, rcx
xor edx, edx
mov dword [rsp + 0x20], r8d
lea rcx, [rsp + 0x30]
mov rbp, r9
call fcn.14003c9f0
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140021945
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140032da4
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14002198b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.1400215c4
test al, al
jne 0x140021996
call fcn.14003f3b4
mov ebx, dword [rax]
call fcn.14003f3b4
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140032da4
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140020ce4
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14003b480
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14002205c
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x14009e010]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400220b8
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140033fd8
test al, al
je 0x1400220ad
mov dword [0x14009e010], 2
jmp 0x14002210f
mov eax, 1
mov dword [0x14009e010], eax
cmp eax, 2
je 0x14002210f
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400220ee
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14002210f
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x140022884
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x118]
sub rsp, 0x218
mov rax, qword [0x14009d0d8]
xor rax, rsp
mov qword [rbp + 0x100], rax
movsxd r12, r9d
mov rax, r8
mov r13, rdx
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov r14, rcx
xor esi, esi
or qword [rdx + r12*8 + 0x170], 0xffffffffffffffff
mov rdx, rax
call fcn.140022118
mov ebx, eax
test eax, eax
jne 0x140022b09
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400215c4
mov r15, qword [rsp + 0x28]
test al, al
jne 0x14002293e
call fcn.14003f3b4
mov ebx, dword [rax]
call fcn.14003f3b4
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, ebx
mov rdi, rax
call fcn.140032da4
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.140020ce4
jmp 0x1400229cf
cmp dword [rsp + 0x40], 2
jne 0x140022965
cmp dword [rsp + 0x44], 1
jne 0x140022965
mov dil, 1
cmp byte [r14 + 0x97c], sil
je 0x140022968
mov rdx, r15
mov rcx, r14
call fcn.140022c10
jmp 0x140022968
mov dil, sil
mov rcx, r15
call fcn.14002205c
test dil, dil
je 0x140022989
cmp byte [r14 + 0x983], sil
je 0x140022989
mov rdx, r15
mov rcx, r14
call fcn.140022b2c
cmp qword [r14 + 0x270], rsi
je 0x1400229e4
mov dl, 1
mov rcx, r14
call fcn.140017c98
mov rcx, qword [r14 + 0x278]
xor r8d, r8d
mov rdx, r15
call qword [r14 + 0x270]
xor edx, edx
mov rcx, r14
mov edi, eax
call fcn.140017c98
cmp edi, 2
jne 0x1400229c6
mov dil, 1
jmp 0x1400229e7
test edi, edi
je 0x1400229e4
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140021660
mov eax, esi
jmp 0x140022b09
mov dil, sil
cmp dword [rsp + 0x40], 2
jne 0x140022a26
xor r9d, r9d
mov rdx, r15
mov rcx, r14
lea r8d, [r9 + 2]
call fcn.140022444
mov ebx, eax
test eax, eax
je 0x140022a26
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.140021660
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x140022b09
mov edx, 1
mov rcx, r15
call fcn.140033dc8
lea rcx, [rsp + 0x28]
call fcn.140025720
cmp dword [r13 + 0x5e8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x2a8], xmm0
jle 0x140022a7d
mov rdx, qword [r13 + 0x2b8]
mov r8d, 3
mov rcx, r14
call fcn.140017810
mov rdx, qword [r13 + 0x2c0]
mov r8d, 4
mov rcx, r14
call fcn.140017810
test dil, dil
jne 0x140022aff
cmp byte [r13 + 0x5fd], 4
je 0x140022aff
cmp byte [r13 + 0x2a0], sil
jne 0x140022ab7
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140022ab7
test ebx, ebx
jne 0x140022a1f
jmp 0x140022af2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x140022af0
sub edx, 0x2728
je 0x140022af0
cmp edx, 1
je 0x140022af0
mov r8, r15
mov dword [r14 + 0xc14], eax
mov rdx, r13
mov rcx, r14
call fcn.140021660
mov ebx, 7
jmp 0x140022a1f
mov ebx, esi
mov qword [r13 + r12*8 + 0x170], r15
jmp 0x140022a1f
mov qword [r13 + r12*8 + 0x170], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.14003b480
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140022b2c
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14009d0d8]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor eax, eax
mov dword [rsp + 0x20], 4
cmp byte [rcx + 0x983], al
lea r9, [rsp + 0x50]
mov rdi, rdx
mov rbx, rcx
setne al
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x50], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x140022bf3
mov ecx, dword [rbx + 0x910]
mov dword [rsp + 0x58], 1
call fcn.140022d60
mov ecx, dword [rbx + 0x914]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.140022d60
and qword [rsp + 0x40], 0
lea r8, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9d, ntohs
imul edx, eax, 0x3e8
mov rcx, rdi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x60], edx
mov edx, 0x98000004
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003b480
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x140022c10
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov r8d, 1
mov dword [rsp + 0x20], 4
mov rcx, rdx
mov dword [rsp + 0x50], r8d
lea r9, [rsp + 0x50]
lea edx, [r8 + 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x140022f88
Capabilities:
Get common file path

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, rcx
xor ebx, ebx
lea rcx, [0x1400761a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x1400230cd
lea rdx, str.LoadLibraryExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400761c0]
mov rcx, rdi
mov rbp, rax
call fcn.140045a08
test rax, rax
je 0x140022ffd
mov rcx, rdi
test rbp, rbp
je 0x140022ff5
mov r8d, 8
jmp 0x140023020
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140023024
test rbp, rbp
je 0x14002302c
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002302c
mov r8d, 0x800
mov rcx, rdi
xor edx, edx
call rbp
mov rbx, rax
jmp 0x1400230ca
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1400230ca
or r14, 0xffffffffffffffff
mov rdx, r14
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140023048
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400230c1
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400230c1
mov rax, r14
inc rax
cmp byte [rsi + rax], bl
jne 0x140023077
mov ecx, 0x5c
mov word [rax + rsi], cx
inc r14
cmp byte [rsi + r14], bl
jne 0x140023088
mov rcx, rsi
sub rcx, rdi
add rcx, r14
mov al, byte [rdi]
mov byte [rcx + rdi], al
inc rdi
test al, al
jne 0x14002309a
mov rcx, rsi
test rbp, rbp
je 0x1400230b8
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1400230be
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rsi
call qword [fcn.14003f3e4]
mov rax, rbx
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 0x140023128
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14009d0d8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14002317d
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140023164
mov eax, 2
jmp 0x1400231f6
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140023175
shr ax, 8
cmp al, 2
je 0x14002317d
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14002315a
call fcn.140034c28
test eax, eax
jne 0x1400231f6
lea rcx, str.iphlpapi.dll
call fcn.140022f88
mov qword [0x14009e020], rax
test rax, rax
je 0x1400231c3
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14009e018]
test rax, rax
cmovne rcx, rax
mov qword [0x14009e018], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140033fd8
test al, al
lea rcx, [0x14009f998]
setne byte [0x14009f990]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.14003b480
add rsp, 0x1e8
ret
Function at 0x1400256b4
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x18]
and qword [r11 - 0x20], 0
xor r9d, r9d
mov qword [r11 - 0x28], rax
xor r8d, r8d
lea rax, [r11 + 0x10]
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
mov qword [r11 - 0x38], rax
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140025717
lea r9, [rsp + 0x68]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x50
pop rbx
ret