joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004ac0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004b93
cmp byte [rcx + 0x71], 0
je 0x140004b93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004b8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140004b54
sub eax, 1
je 0x140004b58
cmp eax, 2
jne 0x140004b8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006e80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004b86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140004b8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004b3c
xor al, al
jmp 0x140004b3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006e80
add rsp, 0x60
pop rbx
ret

Function at 0x140006818
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140006852
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140006857
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400068a0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400094b0]
cmp byte [rcx + rax], 0
je 0x1400068a0
dec r8
sub rdx, 1
jne 0x140006886
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140007878
Capabilities:
Parse pe header

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

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

Disassembly:
push rbp
lea rbp, [rsp - 0x1020]
mov eax, 0x1120
call fcn.140039540
sub rsp, rax
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1130], rbx
mov rbx, rcx
lea rcx, [rsp + 0x70]
call fcn.14000bbf0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140067930
nop
lea rcx, [rsp + 0x70]
call fcn.14000bd40
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x3a0]
call fcn.14003a7e0
lea rcx, [rsp + 0x58]
call fcn.1400117a0
mov r10, rax
xor r8d, r8d
test rax, rax
je 0x140005db1
mov edx, r8d
lea r9, [rbp + 0x3a0]
lea rcx, [rsp + 0x58]
call fcn.140011780
movzx ecx, byte [rax]
mov byte [r9], cl
inc r8d
lea r9, [r9 + 1]
movsxd rdx, r8d
cmp rdx, r10
jb 0x140005d92
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x7a0]
call fcn.14003a7e0
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp - 0x60]
call fcn.14003a7e0
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 edx, 0x400
lea rcx, [rbp - 0x60]
call fcn.14003d1dc
lea rcx, [rbp + 0xba0]
call fcn.140006cd0
nop
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0xba0]
call fcn.140006cf0
lea rcx, [rsp + 0x58]
call fcn.1400117a0
mov r9, rax
lea r8, [rbp + 0x7a0]
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0xba0]
call fcn.140069050
lea rdx, [rbp + 0x7b0]
mov rcx, rbx
call fcn.14000bbf0
nop
lea rcx, [rsp + 0x58]
call fcn.140011850
mov rax, rbx
mov rbx, qword [rsp + 0x1130]
add rsp, 0x1120
pop rbp
ret
Function at 0x1400128b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x48
cmp byte [rcx + 8], 0
mov r9, rcx
je 0x1400128eb
xor ecx, ecx
cmp dword [r9 + 0x3d0], ecx
jle 0x1400128e6
sub r8, rdx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
inc ecx
xor byte [rdx], al
lea rdx, [rdx + 1]
cmp ecx, dword [r9 + 0x3d0]
jl 0x1400128d0
add rsp, 0x48
ret
mov rdx, qword [0x140099918]
lea rcx, [rsp + 0x20]
call fcn.14000fb00
lea rdx, [0x140094c98]
lea rcx, [rsp + 0x20]
call fcn.14003aeac
int3
Function at 0x14001e9c0
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 0x14001ea81
cmp qword [rcx + 0x260], 0
je 0x14001ea36
call fcn.1400157c8
mov dl, 1
mov rcx, rdi
mov bl, al
call fcn.140015a5c
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.140015a5c
jmp 0x14001ea81
mov ecx, esi
test edx, edx
je 0x14001ea46
sub ecx, 1
je 0x14001ea46
cmp ecx, 1
jne 0x14001ea81
mov r9, qword [rdi + 0x1c8]
lea rax, [0x14006eed0]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.140041e98
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.140041e98
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 0x14001ebe0
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 0x14001ec19
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 0x14001ec1e
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1400970d8]
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.14001f244
test eax, eax
je 0x14001ed51
mov dword [rbx], 0x1b
or rax, 0xffffffffffffffff
jmp 0x14001edbb
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 0x14001edb8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0x2733
jne 0x14001ed88
xor esi, esi
mov dword [rbx], 0x51
jmp 0x14001edb8
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, edi
call fcn.140030b58
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.14001ea9c
mov dword [rbp + 0xc14], edi
mov dword [rbx], 0x37
mov rax, rsi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140039270
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001f244
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 0x14001f35e
lea rax, [0x14001ec24]
cmp qword [rbx + rdx*8 + 0x188], rax
jne 0x14001f35e
cmp qword [rdi + rbx + 0x1a8], 0
je 0x14001f2ba
test rsi, rsi
je 0x14001f35e
mov rbp, qword [rbx + rdx*8 + 0x160]
or r8, 0xffffffffffffffff
or rdx, r8
mov rcx, rbp
xor r9d, r9d
call fcn.1400291a8
cmp eax, 0xffffffff
je 0x14001f35e
test al, 1
je 0x14001f35e
mov rcx, qword [rdi + rbx + 0x1a8]
test rcx, rcx
jne 0x14001f335
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 0x14001f31b
lea eax, [rcx + 0x1b]
jmp 0x14001f360
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 0x14001f35e
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 0x14001f67c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x1c8
mov rax, qword [0x1400970d8]
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.14003a7e0
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14001f6fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140030b58
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14001f743
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rbp
mov r8, rdi
call fcn.14001f37c
test al, al
jne 0x14001f74e
call fcn.14003d1a4
mov ebx, dword [rax]
call fcn.14003d1a4
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140030b58
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14001ea9c
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140039270
add rsp, 0x1c8
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001fe14
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x48], 0
mov rbx, rcx
mov eax, dword [0x140097ff0]
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14001fe70
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140031d8c
test al, al
je 0x14001fe65
mov dword [0x140097ff0], 2
jmp 0x14001fec7
mov eax, 1
mov dword [0x140097ff0], eax
cmp eax, 2
je 0x14001fec7
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 0x14001fea6
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x14001fec7
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 0x14002063c
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 [0x1400970d8]
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.14001fed0
mov ebx, eax
test eax, eax
jne 0x1400208c1
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x24]
lea r8, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.14001f37c
mov r15, qword [rsp + 0x28]
test al, al
jne 0x1400206f6
call fcn.14003d1a4
mov ebx, dword [rax]
call fcn.14003d1a4
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, ebx
mov rdi, rax
call fcn.140030b58
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r14
call fcn.14001ea9c
jmp 0x140020787
cmp dword [rsp + 0x40], 2
jne 0x14002071d
cmp dword [rsp + 0x44], 1
jne 0x14002071d
mov dil, 1
cmp byte [r14 + 0x97c], sil
je 0x140020720
mov rdx, r15
mov rcx, r14
call fcn.1400209c8
jmp 0x140020720
mov dil, sil
mov rcx, r15
call fcn.14001fe14
test dil, dil
je 0x140020741
cmp byte [r14 + 0x983], sil
je 0x140020741
mov rdx, r15
mov rcx, r14
call fcn.1400208e4
cmp qword [r14 + 0x270], rsi
je 0x14002079c
mov dl, 1
mov rcx, r14
call fcn.140015a5c
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.140015a5c
cmp edi, 2
jne 0x14002077e
mov dil, 1
jmp 0x14002079f
test edi, edi
je 0x14002079c
mov esi, 0x2a
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14001f418
mov eax, esi
jmp 0x1400208c1
mov dil, sil
cmp dword [rsp + 0x40], 2
jne 0x1400207de
xor r9d, r9d
mov rdx, r15
mov rcx, r14
lea r8d, [r9 + 2]
call fcn.1400201fc
mov ebx, eax
test eax, eax
je 0x1400207de
mov r8, r15
mov rdx, r13
mov rcx, r14
call fcn.14001f418
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
jmp 0x1400208c1
mov edx, 1
mov rcx, r15
call fcn.140031b7c
lea rcx, [rsp + 0x28]
call fcn.1400234d4
cmp dword [r13 + 0x5e8], 1
movups xmm0, xmmword [rax]
movdqu xmmword [r13 + 0x2a8], xmm0
jle 0x140020835
mov rdx, qword [r13 + 0x2b8]
mov r8d, 3
mov rcx, r14
call fcn.1400155d4
mov rdx, qword [r13 + 0x2c0]
mov r8d, 4
mov rcx, r14
call fcn.1400155d4
test dil, dil
jne 0x1400208b7
cmp byte [r13 + 0x5fd], 4
je 0x1400208b7
cmp byte [r13 + 0x2a0], sil
jne 0x14002086f
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002086f
test ebx, ebx
jne 0x1400207d7
jmp 0x1400208aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
sub edx, 0xb
je 0x1400208a8
sub edx, 0x2728
je 0x1400208a8
cmp edx, 1
je 0x1400208a8
mov r8, r15
mov dword [r14 + 0xc14], eax
mov rdx, r13
mov rcx, r14
call fcn.14001f418
mov ebx, 7
jmp 0x1400207d7
mov ebx, esi
mov qword [r13 + r12*8 + 0x170], r15
jmp 0x1400207d7
mov qword [r13 + r12*8 + 0x170], r15
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140039270
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400208e4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400970d8]
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 0x1400209ab
mov ecx, dword [rbx + 0x910]
mov dword [rsp + 0x58], 1
call fcn.140020b18
mov ecx, dword [rbx + 0x914]
imul edx, eax, 0x3e8
mov dword [rsp + 0x50], edx
mov dword [rsp + 0x5c], edx
call fcn.140020b18
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.140039270
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret

Function at 0x1400209c8
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 0x140020d3c
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, [0x14006f1a0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x140020e81
lea rdx, str.LoadLibraryExA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14006f1c0]
mov rcx, rdi
mov rbp, rax
call fcn.1400437f8
test rax, rax
je 0x140020db1
mov rcx, rdi
test rbp, rbp
je 0x140020da9
mov r8d, 8
jmp 0x140020dd4
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x140020dd8
test rbp, rbp
je 0x140020de0
lea rdx, str.AddDllDirectory
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140020de0
mov r8d, 0x800
mov rcx, rdi
xor edx, edx
call rbp
mov rbx, rax
jmp 0x140020e7e
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140020e7e
or r14, 0xffffffffffffffff
mov rdx, r14
inc rdx
cmp byte [rdi + rdx], bl
jne 0x140020dfc
lea ecx, [rax + 1]
add rcx, rdx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140020e75
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140020e75
mov rax, r14
inc rax
cmp byte [rsi + rax], bl
jne 0x140020e2b
mov ecx, 0x5c
mov word [rax + rsi], cx
inc r14
cmp byte [rsi + r14], bl
jne 0x140020e3c
mov rcx, rsi
sub rcx, rdi
add rcx, r14
mov al, byte [rdi]
mov byte [rcx + rdi], al
inc rdi
test al, al
jne 0x140020e4e
mov rcx, rsi
test rbp, rbp
je 0x140020e6c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140020e72
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, rsi
call qword [fcn.14003d1d4]
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 0x140020edc
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400970d8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140020f31
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140020f18
mov eax, 2
jmp 0x140020faa
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140020f29
shr ax, 8
cmp al, 2
je 0x140020f31
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x140020f0e
call fcn.1400329dc
test eax, eax
jne 0x140020faa
lea rcx, str.iphlpapi.dll
call fcn.140020d3c
mov qword [0x140098000], rax
test rax, rax
je 0x140020f77
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140097ff8]
test rax, rax
cmovne rcx, rax
mov qword [0x140097ff8], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140031d8c
test al, al
lea rcx, [0x140099998]
setne byte [0x140099990]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140039270
add rsp, 0x1e8
ret
Function at 0x140023468
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 0x1400234cb
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
Function at 0x140029358
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140029382
cmp dword [rdx], 0
jne 0x140029398
test rbx, rbx
je 0x14002938d
cmp dword [r8], 0
jne 0x140029398
test rdi, rdi
je 0x1400293e4
cmp dword [r9], 0
je 0x1400293e4
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400346bc
test rdi, rdi
je 0x1400293b1
cmp dword [rdi], 0
jne 0x1400293b3
xor edi, edi
test rbx, rbx
je 0x1400293bd
cmp dword [rbx], 0
jne 0x1400293bf
xor ebx, ebx
test rsi, rsi
je 0x1400293c9
cmp dword [rsi], 0
jne 0x1400293cb
xor esi, esi
lea ecx, [rbp + 1]
mov qword [rsp + 0x20], rax
mov r9, rdi
mov r8, rbx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_select]
jmp 0x1400293ee
mov rcx, qword [rsp + 0x60]
call fcn.140029318
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14002a890
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r12, r9
xor edi, edi
and qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x14002a9ce
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14002a9bb
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14002a8f0
or r14, 0xffffffffffffffff
inc r14
cmp byte [rax + r14], 0
jne 0x14002a8e1
inc r14
jmp 0x14002a8f3
xor r14d, r14d
cmp dword [rbx + 4], 2
jne 0x14002a983
cmp qword [rbx + 0x20], 0
je 0x14002a983
cmp qword [rbx + 0x10], 0x10
jb 0x14002a983
lea rcx, [r14 + 0x40]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14002a991
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
and qword [rax + 0x18], 0
and qword [rax + 0x28], 0
mov dword [rax + 0xc], ecx
lea rcx, [rax + 0x30]
mov qword [rax + 0x20], rcx
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov rax, qword [rbx + 0x20]
movups xmm0, xmmword [rax]
movdqu xmmword [rcx], xmm0
test r14, r14
je 0x14002a970
add rcx, 0x10
mov r8, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rbx + 0x18]
call fcn.14003a380
test rdi, rdi
cmove rdi, rsi
test r15, r15
je 0x14002a980
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
je 0x14002a996
jmp 0x14002a8d4
mov ebp, 8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14002a9a6
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x14002a9b6
mov rcx, rdi
call fcn.14002a86c
xor edi, edi
jmp 0x14002a9c8
test rdi, rdi
jne 0x14002a9c8
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov qword [r12], rdi
mov eax, ebp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret