joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180023470
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xae0
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0xad0], rax
call fcn.18000fcd0
xor esi, esi
lea rcx, [0x1800891c8]
cmp eax, esi
lea rdi, [0x1800891d0]
lea r8d, [rsi + 0x6c]
cmovne rdi, rcx
lea rcx, [rsp + 0x54]
xor edx, edx
mov dword [rsp + 0x50], reloc.WS2_32.dll_WSASetLastError
call fcn.18005c190
lea rcx, [rsp + 0xc2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xc0], si
call fcn.18005c190
lea rcx, [rsp + 0x2d2]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x2d0], si
call fcn.18005c190
mov rcx, qword [0x1800a92c8]
lea rdx, [rsp + 0xc0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rbx, rax
call fcn.18007dfb0
mov rcx, rbx
lea rdx, str.X64_
cmp al, sil
jne 0x180023548
lea rdx, str.X86_
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.KZMount2.exe
lea rcx, [rsp + 0x20]
call fcn.18007dff0
cmp qword [rax + 0x20], 8
jb 0x18002356c
mov rdx, qword [rax + 8]
jmp 0x180023570
lea rdx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp qword [rsp + 0x40], 8
jb 0x18002358b
mov rcx, qword [rsp + 0x28]
call fcn.18005bda0
lea rax, [rsp + 0xc0]
lea r8, [0x180089208]
lea rdx, [0x180089210]
lea rcx, [rsp + 0x2d0]
mov r9, rdi
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea r11, [rsp + 0x2d0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], r11
mov dword [rsp + 0x80], esi
mov dword [rsp + 0x54], 0x400
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.18005c4c0
lea r11, [rsp + 0xae0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180024028
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
lea rcx, [rsp + 0x22]
xor edx, edx
lea r8d, [rbx + 0x3e]
mov word [rsp + 0x20], bx
call fcn.18005c190
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
movzx ecx, ax
mov edx, 0x1004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
jne 0x18002407d
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x180024087
lea rcx, [rsp + 0x20]
call fcn.18005f518
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x70
pop rbx
ret

Function at 0x180025cd0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180025d2e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180025d28
shr ax, 8
cmp al, 2
jne 0x180025d28
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x1d8
ret
Function at 0x180027120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x18002712c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.180037170

Function at 0x1800305c0
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 0x1800305fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180030770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x268]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1800307b3
mov rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
js 0x1800307fa
cmp edx, 2
jg 0x1800307fa
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x18008a768]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.18005f008
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.18005f008
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, edx
mov r10, r9
mov r11, r8
mov rsi, rcx
mov rcx, qword [rcx + rax*8 + 0x1a8]
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
call qword [sym.imp.WS2_32.dll_send]
mov rbp, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rbp], 0
cmp rdi, 0xffffffffffffffff
jne 0x180030c7b
mov qword [rsp + 0x30], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180030c49
mov dword [rbp], 0x51
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, eax
mov rcx, rsi
call fcn.180036800
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1800309e0
mov r11, qword [rsi]
mov rax, rdi
mov dword [r11 + 0x889c], ebx
mov dword [rbp], gethostname
jmp 0x180030c34
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x180032e60
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x70]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x6a4], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x70], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180032ece
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.180030930
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0x6a8]
mov dword [rsp + 0x50], 1
call fcn.18004c8a0
mov ecx, dword [rbx + 0x6ac]
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x54], eax
call fcn.18004c8a0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, ntohs
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x180032f60
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov r8d, edi
mov r9d, eax
mov rcx, rbx
call fcn.180030930
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x1800336d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xa4], 2
mov rsi, qword [rcx]
mov rbx, rdx
mov rdi, rcx
je 0x1800338b4
cmp dword [rcx + 0x27c], 0
jne 0x1800338ac
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x180033765
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036800
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1800309e0
jmp 0x1800338b4
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.18005c190
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800337c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036800
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1800309e0
jmp 0x1800338b4
lea r8, [rdi + 0x120]
lea rdx, [rdi + 0xf0]
lea rcx, [rsp + 0xb0]
call fcn.180033650
test eax, eax
jne 0x18003380d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036800
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1800309e0
jmp 0x1800338b4
mov rax, qword [rdi + 0xf0]
lea r8, [rdi + 0x154]
lea rdx, [rdi + 0x124]
mov qword [rdi + 0x70], rax
mov rax, qword [rdi + 0xf8]
lea rcx, [rsp + 0x30]
mov qword [rdi + 0x78], rax
mov rax, qword [rdi + 0x100]
mov qword [rdi + 0x80], rax
mov rax, qword [rdi + 0x108]
mov qword [rdi + 0x88], rax
mov rax, qword [rdi + 0x110]
mov qword [rdi + 0x90], rax
mov eax, dword [rdi + 0x118]
mov dword [rdi + 0x98], eax
movzx eax, word [rdi + 0x11c]
mov word [rdi + 0x9c], ax
call fcn.180033650
test eax, eax
jne 0x1800338ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov edx, eax
mov ebx, eax
call fcn.180036800
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rsi
call fcn.1800309e0
jmp 0x1800338b4
mov rcx, rdi
call fcn.180033560
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18005c4c0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800338e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [rcx]
mov r10, rdx
mov edx, 6
mov eax, dword [rbx + 0x4d4]
mov rdi, rcx
lea r9, [rsp + 0x40]
lea r8d, [rdx - 5]
mov rcx, r10
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x40], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x18003394d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.180036800
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.180030930
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.180030930
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180033970
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0xf0
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov eax, dword [0x1800a93c0]
mov rbx, rcx
mov dword [rsp + 0x30], 0x4020
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x180033a48
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, LoadRegTypeLib
call fcn.18005c190
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x40], QueryPathOfRegTypeLib
mov dword [rsp + 0x44], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x40]
mov edx, 0x33
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x180033a3c
mov dword [0x1800a93c0], 2
jmp 0x180033a9f
mov dword [0x1800a93c0], 1
jmp 0x180033a4d
cmp eax, 2
je 0x180033a9f
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x180033a7e
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jg 0x180033a9f
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0xf0
pop rbx
ret
Function at 0x180033ae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x830]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x180033b53
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x180033b13
cmp qword [rdi + 0x78], rcx
je 0x180033b53
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
test rcx, rcx
jne 0x180033b29
mov rcx, qword [rdi + 0x78]
lea r8, [0x180033ac0]
lea rdx, [rsp + 0x20]
add rcx, 0xc0
call fcn.180052710
cmp dword [rsp + 0x28], 0
jne 0x180033b67
mov qword [rdi + 0x830], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x180033b6f
mov qword [rsi], rbx
cmp dword [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
jne 0x180033b53
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
test eax, eax
cmove rdi, rcx
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x180033d00
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x110
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
mov r13, r8
mov qword [r8], 0xffffffffffffffff
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
call fcn.180033c30
mov edi, eax
test eax, eax
je 0x180033d50
xor eax, eax
jmp 0x180033f85
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x108], rbx
call fcn.180033650
test eax, eax
jne 0x180033dac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.180036800
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.1800309e0
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.180033bc0
jmp 0x180033f7b
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x100], r12
call fcn.180030930
cmp dword [rsp + 0x30], 2
mov rbx, qword [rsp + 0x20]
jne 0x180033dfa
cmp dword [rsp + 0x34], 1
jne 0x180033dfa
mov r12d, 1
cmp dword [rbp + 0x4d4], r14d
je 0x180033dfd
mov rdx, rbx
mov rcx, rsi
call fcn.1800338e0
jmp 0x180033dfd
xor r12d, r12d
mov rcx, rbx
call fcn.180033970
test r12d, r12d
mov r12, qword [rsp + 0x100]
je 0x180033e26
cmp dword [rbp + 0x6a4], r14d
je 0x180033e26
mov rdx, rbx
mov rcx, rbp
call fcn.180032e60
mov rax, qword [rbp + 0x278]
test rax, rax
je 0x180033e4a
mov rcx, qword [rbp + 0x280]
xor r8d, r8d
mov rdx, rbx
call rax
cmp eax, 2
jne 0x180033e91
lea r14d, [rax - 1]
cmp dword [rsp + 0x30], 2
jne 0x180033eaa
lea rcx, [rsp + 0x40]
call fcn.180051780
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.180033060
mov edi, eax
test eax, eax
je 0x180033eaa
mov rdx, rbx
mov rcx, rsi
call fcn.180033bc0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x180033f7d
test eax, eax
je 0x180033e4a
mov rdx, rbx
mov rcx, rsi
call fcn.180033bc0
mov eax, Ordinal_46
jmp 0x180033f7d
mov edx, 1
mov rcx, rbx
call fcn.180053c40
call fcn.1800303f0
cmp dword [rsi + 0x2e4], 1
mov qword [rsi + 0x2dc], rax
jle 0x180033eda
mov edx, dword [rsi + 0x2e8]
mov rcx, rbp
call fcn.18002ebc0
test r14d, r14d
jne 0x180033f77
cmp dword [rsi + 0xa4], 1
jne 0x180033f77
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180033f6b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x180033f61
cmp eax, 0x2732
jle 0x180033f23
cmp eax, 0x2734
jle 0x180033f61
mov edx, eax
mov rcx, rsi
call fcn.180036800
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.180030930
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x889c], edi
call fcn.180033bc0
mov edi, 7
mov eax, edi
jmp 0x180033f7d
xor edi, edi
mov qword [r13], rbx
mov eax, edi
jmp 0x180033f7d
test edi, edi
jne 0x180033f73
mov qword [r13], rbx
mov eax, edi
jmp 0x180033f7d
mov qword [r13], rbx
xor eax, eax
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x110
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800345f0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
sub rsp, 0x20
xor r14d, r14d
mov r13, r9
mov qword [r9], r14
lea r9, [rsp + 0x68]
mov rsi, r14
mov r12, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x18003477e
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x180034766
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x1800346fd
cmp qword [rbx + 0x20], r14
je 0x1800346fd
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1800346fd
cmp rax, 0x10
jb 0x1800346fd
mov ecx, Ordinal_50
call qword [fcn.18005be6c]
mov rdi, rax
test rax, rax
je 0x180034736
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]
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov qword [rax + 0x20], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x28], r14
call qword [fcn.18005be6c]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x180034726
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800346e9
call qword [case.0x18003191c.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18003470c
test rsi, rsi
cmove rsi, rdi
test r12, r12
je 0x1800346fa
mov qword [r12 + 0x28], rdi
mov r12, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180034640
jmp 0x18003473b
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.18005bf24]
mov rcx, rdi
call qword [fcn.18005bf24]
jmp 0x18003473b
mov rcx, rdi
mov ebp, 8
call qword [fcn.18005bf24]
jmp 0x18003473b
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x180034750
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x180034761
mov rcx, rsi
call fcn.1800345a0
mov rsi, r14
jmp 0x180034773
test rsi, rsi
jne 0x180034773
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov qword [r13], rsi
mov eax, ebp
add rsp, 0x20
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret

Function at 0x180035f70
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.180062860
test rax, rax
je 0x180035f99
cmp rax, 0xffffffffffffffff
jne 0x180035f9b
xor eax, eax
add rsp, 0x38
ret
Function at 0x18003f7d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0x520]
mov rdi, qword [rcx]
mov dword [rsp + 0x30], 0x80
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rbp, rcx
mov rcx, qword [rbx + 0x18]
lea rax, [rsp + 0x40]
add r8d, 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x18003f872
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.18005e160
mov r11d, dword [rsp + 0x30]
mov dword [rbx + 0x150], r11d
mov r9d, dword [rbx + 0x154]
cmp r9d, 4
jge 0x18003f8c0
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1800309e0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18005c4c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rcx, [rbx + 0x168]
call fcn.18003e480
movzx r8d, ax
mov dword [rbx + 0xc], r8d
sub r8d, 3
je 0x18003f963
sub r8d, 1
je 0x18003f9da
sub r8d, 1
je 0x18003f933
cmp r8d, 1
je 0x18003f90f
lea r8, str.Internal_error:_Unexpected_packet
lea rdx, [0x18008a7a8]
mov rcx, rdi
call fcn.1800309e0
jmp 0x18003f9da
mov rdx, qword [rbx + 0x168]
lea r8d, [r9 - 2]
mov rcx, rbx
add rdx, 2
call fcn.18003e580
test eax, eax
je 0x18003f9da
jmp 0x18003f897
lea rcx, [rbx + 0x168]
call fcn.18003e490
lea rdx, [0x18008a9b0]
mov rcx, rdi
movzx r8d, ax
mov dword [rbx + 8], r8d
mov r8, qword [rbx + 0x168]
add r8, 4
call fcn.180030930
jmp 0x18003f9da
cmp r9d, 4
jle 0x18003f9da
lea rcx, [rbx + 0x168]
call fcn.18003e490
movzx ecx, word [rbx + 0x48]
inc ecx
cmp cx, ax
jne 0x18003f9da
mov r8, qword [rbx + 0x168]
lea eax, [r9 - 4]
mov edx, 1
add r8, 4
movsxd r9, eax
mov rcx, rbp
call fcn.180030f90
mov esi, eax
test eax, eax
je 0x18003f9b9
mov edx, 5
mov rcx, rbx
call fcn.18003f750
mov eax, esi
jmp 0x18003f897
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xb0], rax
mov rdx, qword [rdi + 0xb0]
call fcn.18004fc00
mov rcx, rbp
call fcn.18004fc80
test eax, eax
je 0x18003f895
mov edx, 5
mov rcx, rbx
call fcn.18003f750
mov eax, Ordinal_46
jmp 0x18003f897
Function at 0x1800414f0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1800a7120]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180041536
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.1800309e0
jmp 0x180041565
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx r11d, word [rsp + 0x20]
cmp r11b, 2
jne 0x180041556
shr r11w, 8
test r11b, r11b
jne 0x180041556
xor eax, eax
jmp 0x18004156a
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.1800309e0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18005c4c0
add rsp, 0x1d0
pop rbx
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
xor r9d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 0x1a8]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x11], dl
mov byte [rax + 0x12], r8b
lea r8d, [r9 + 3]
lea rdx, [rax + 0x10]
mov byte [rax + 0x10], 0xff
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1800417ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1800309e0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.180041630
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
movsxd r11, edx
mov rbx, rcx
mov r9, qword [rax + 0x1a8]
cmp r8d, 1
jne 0x180041877
mov r10d, dword [r9 + r11*4 + 0xc08]
test r10d, r10d
je 0x180041859
sub r10d, 2
je 0x18004188e
cmp r10d, r8d
jne 0x1800418c7
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x1800418c7
mov dword [r9 + r11*4 + 0x1008], 1
add rsp, 0x20
pop rbx
ret
mov edx, 0xfd
mov r8d, r11d
mov dword [r9 + r11*4 + 0xc08], 2
add rsp, 0x20
pop rbx
jmp fcn.180041770
mov ecx, dword [r9 + r11*4 + 0xc08]
sub ecx, 1
je 0x1800418ab
sub ecx, 1
je 0x180041838
cmp ecx, 1
jne 0x1800418c7
cmp dword [r9 + r11*4 + 0x1008], 1
jne 0x1800418c7
mov dword [r9 + r11*4 + 0x1008], 0
add rsp, 0x20
pop rbx
ret
mov edx, 0xfe
mov rcx, rbx
mov r8d, r11d
mov dword [r9 + r11*4 + 0xc08], 3
call fcn.180041770
add rsp, 0x20
pop rbx
ret