joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800802c0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x68
call fcn.1801c83e0
sub rsp, rax
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx ebx, byte [rcx]
mov rax, qword [rcx + 0x28]
mov r13, qword [rsp + 0xd0]
mov r14, qword [rcx + 0x30]
mov rsi, r9
mov r10, r8
mov qword [rsp + 0x38], r8
mov r15, rdx
mov rdi, rcx
mov byte [rsp + 0x30], bl
mov qword [rsp + 0x40], rax
test bl, 0x40
jne 0x180080329
lea rdx, [rcx + 0x10]
mov r8, r14
call rax
mov r10, qword [rsp + 0x38]
movzx eax, bl
mov r8d, reloc.WS2_32.dll_ntohs
xor ebp, ebp
and eax, 7
mov r12d, r8d
mov ecx, ebp
sub r12d, eax
mov byte [rdi], al
movsxd rax, r12d
cmp r12d, r8d
jae 0x180080365
lea rdx, [rax + rdi]
sub r8d, r12d
movzx eax, byte [rdx]
mov byte [rdx], bpl
inc rdx
or rcx, rax
shl rcx, 8
dec r8
jne 0x180080350
movzx eax, byte [rdi + 0xf]
mov byte [rdi + 0xf], 1
or rcx, rax
cmp rcx, rsi
je 0x18008037d
or eax, 0xffffffff
jmp 0x1800804ba
mov rbx, rsi
shr rbx, 4
test rbx, rbx
je 0x180080401
lea rax, [rdi + 0x10]
mov r9, r14
mov r8, rbx
mov qword [rsp + 0x28], rax
mov rdx, r10
mov rcx, r15
mov qword [rsp + 0x20], rdi
call r13
mov r13, qword [rsp + 0x38]
shl rbx, 4
add r13, rbx
add r15, rbx
sub rsi, rbx
je 0x180080470
lea r9, [rdi + 8]
shr rbx, 4
mov rdx, rbp
lea r8, [r9 + 8]
neg r9
movzx eax, byte [r8 - 1]
dec r8
movzx ecx, bl
add rdx, rax
lea rax, [r9 + r8]
shr rbx, 8
add rdx, rcx
mov byte [r8], dl
shr rdx, 8
test rax, rax
je 0x180080406
test rbx, rbx
jne 0x1800803d0
test rdx, rdx
jne 0x1800803d0
jmp 0x180080406
mov r13, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
test rsi, rsi
je 0x180080475
lea rdx, [rsp + 0x48]
mov r8, r14
mov rcx, rdi
call rbx
test rsi, rsi
je 0x180080462
lea rax, [rsp + 0x48]
mov r8, rdi
lea rdx, [rsp + 0x48]
sub r15, rax
lea rax, [rsp + 0x48]
sub r13, rax
lea rax, [rsp + 0x48]
sub r8, rax
movzx ecx, byte [r15 + rdx]
movzx eax, byte [rdx]
inc ebp
xor ecx, eax
mov eax, ebp
inc rdx
mov byte [r13 + rdx - 1], cl
xor byte [r8 + rdx + 0xf], cl
cmp rax, rsi
jb 0x180080442
lea rcx, [rdi + 0x10]
mov r8, r14
mov rdx, rcx
call rbx
jmp 0x180080475
mov rbx, qword [rsp + 0x40]
movsxd rax, r12d
cmp r12d, 0x10
jae 0x180080492
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rax + rdi]
xor edx, edx
sub r8d, r12d
call fcn.1801c9e80
lea rdx, [rsp + 0x48]
mov r8, r14
mov rcx, rdi
call rbx
mov rax, qword [rsp + 0x48]
xor qword [rdi + 0x10], rax
mov rax, qword [rsp + 0x50]
xor qword [rdi + 0x18], rax
movzx eax, byte [rsp + 0x30]
mov byte [rdi], al
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180086610
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1802d1460]
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 0x18008666e
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x180086668
shr ax, 8
cmp al, 2
jne 0x180086668
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1801c74b0
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.1801c74b0
add rsp, 0x1d8
ret

Function at 0x180087080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 3
mov rsi, rdx
jne 0x1800870ca
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1800870ba
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x180087112
cmp qword [rbx + 0x10], 0
jne 0x1800870fe
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1802248b8]
call fcn.1801dc3dc
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1800870fe
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call fcn.1801dc7b8
mov rdi, rax
test rax, rax
jne 0x180087135
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18008712c
call fcn.1801dc46c
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x180089450
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x18009be60
sub rsp, 0x28
mov rcx, qword [rcx + 0x210]
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x18009bee7
cmp rcx, 1
jne 0x18009be97
mov eax, 1
add rsp, 0x28
ret
cmp rcx, 0xffffffffffffffff
jne 0x18009beee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x18009be8d
cmp eax, 0xb
je 0x18009be8d
cmp eax, 0x2733
je 0x18009be8d
cmp eax, 0x2746
je 0x18009bee7
cmp eax, 0x2745
je 0x18009bee7
cmp eax, 0x2742
je 0x18009bee7
cmp eax, 0x2744
je 0x18009bee7
cmp eax, 0x274a
je 0x18009bee7
cmp eax, 0x274c
je 0x18009bee7
cmp eax, 0x2749
jne 0x18009beee
xor eax, eax
add rsp, 0x28
ret
or eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x180089b10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x180089b1c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.1800a0f00
Function at 0x180094a90
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 0x180094acb
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 0x180094c50
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 0x180094c93
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 0x180094cda
cmp edx, 2
jg 0x180094cda
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x180225c98]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.1801dcad0
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.1801dcad0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rcx, edx
mov rax, qword [rbx + 0x480]
mov rbp, qword [rbx + rcx*8 + 0x210]
mov rdi, rcx
shl rdi, 5
mov rsi, qword [rdi + rbx + 0x260]
sub rsi, qword [rdi + rbx + 0x268]
test byte [rax + 0x74], 3
je 0x180095477
lea rax, [0x1800950b0]
cmp qword [rbx + rcx*8 + 0x238], rax
jne 0x180095477
cmp qword [rdi + rbx + 0x258], 0
je 0x1800953d3
test rsi, rsi
je 0x180095477
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.1800879b0
cmp eax, 0xffffffff
je 0x180095477
test al, 1
je 0x180095477
cmp qword [rdi + rbx + 0x258], 0
jne 0x180095449
mov ecx, 0x8000
mov qword [rdi + rbx + 0x260], 0x8000
call qword [fcn.1801d17e4]
mov rsi, qword [rdi + rbx + 0x260]
xor ecx, ecx
mov qword [rdi + rbx + 0x268], rcx
mov qword [rdi + rbx + 0x270], rcx
mov qword [rdi + rbx + 0x258], rax
test rax, rax
jne 0x180095449
mov qword [rdi + rbx + 0x260], rcx
jmp 0x180095477
mov rdx, qword [rdi + rbx + 0x258]
xor r9d, r9d
mov r8d, esi
add rdx, qword [rdi + rbx + 0x268]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x180095477
add qword [rdi + rbx + 0x268], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180095490
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov rbx, qword [rcx + rax*8 + 0x210]
mov rbp, rcx
call fcn.180095360
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x18009552a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1800954fc
mov dword [rsi], 0x51
xor eax, eax
jmp 0x18009552d
mov edx, eax
mov rcx, rbp
call fcn.18009b570
mov rcx, qword [rbp]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.180094ec0
mov r11, qword [rbp]
mov dword [r11 + 0x4a84], ebx
mov dword [rsi], reloc.WS2_32.dll_getservbyname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180097760
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x804], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1800977cf
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.180094e10
jmp 0x18009785e
mov ecx, dword [rbx + 0x808]
mov dword [rsp + 0x58], 1
call fcn.1800a0800
mov ecx, dword [rbx + 0x80c]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.1800a0800
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, InitCommonControls
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
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 0x18009785e
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.180094e10
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1801c74b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1800981f0
Capabilities:
Set socket configuration

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

Function at 0x180098280
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1802eee30]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1800982dd
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.1800bc570
test eax, eax
je 0x1800982d1
mov dword [0x1802eee30], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1802eee30], 1
jmp 0x1800982e2
cmp eax, 2
je 0x180098334
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x48]
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 0x180098313
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x180098334
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x298], 0
je 0x18009842d
call fcn.180089450
test eax, eax
jne 0x180098458
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x210]
cmp rcx, 0xffffffffffffffff
je 0x180098426
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x180098458
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret
Function at 0x18009a780
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 esi, r14d
mov r12d, r14d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x18009a90e
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x18009a8f6
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x18009a88d
cmp qword [rbx + 0x20], r14
je 0x18009a88d
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x18009a88d
cmp rax, 0x10
jb 0x18009a88d
mov ecx, gethostbyname
call qword [fcn.1801d17e4]
mov rdi, rax
test rax, rax
je 0x18009a8c6
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.1801d17e4]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x18009a8b6
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 0x18009a879
call qword [case.0x18009604c.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18009a89c
test rsi, rsi
cmove rsi, rdi
test r12, r12
je 0x18009a88a
mov qword [r12 + 0x28], rdi
mov r12, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x18009a7d0
jmp 0x18009a8cb
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.1801cc408]
mov rcx, rdi
call qword [fcn.1801cc408]
jmp 0x18009a8cb
mov rcx, rdi
mov ebp, 8
call qword [fcn.1801cc408]
jmp 0x18009a8cb
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x18009a8e0
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x18009a8f1
mov rcx, rsi
call fcn.18009a730
mov rsi, r14
jmp 0x18009a903
test rsi, rsi
jne 0x18009a903
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 0x18009acd0
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.1801dafc0
test rax, rax
je 0x18009acf9
cmp rax, 0xffffffffffffffff
jne 0x18009acfb
xor eax, eax
add rsp, 0x38
ret
Function at 0x18009be60
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x18009be60
sub rsp, 0x28
mov rcx, qword [rcx + 0x210]
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
je 0x18009bee7
cmp rcx, 1
jne 0x18009be97
mov eax, 1
add rsp, 0x28
ret
cmp rcx, 0xffffffffffffffff
jne 0x18009beee
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x18009be8d
cmp eax, 0xb
je 0x18009be8d
cmp eax, 0x2733
je 0x18009be8d
cmp eax, 0x2746
je 0x18009bee7
cmp eax, 0x2745
je 0x18009bee7
cmp eax, 0x2742
je 0x18009bee7
cmp eax, 0x2744
je 0x18009bee7
cmp eax, 0x274a
je 0x18009bee7
cmp eax, 0x274c
je 0x18009bee7
cmp eax, 0x2749
jne 0x18009beee
xor eax, eax
add rsp, 0x28
ret
or eax, 0xffffffff
add rsp, 0x28
ret

Function at 0x1800a0820
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov r9d, ecx
mov rcx, r8
call fcn.18004ca80
mov ecx, r9d
mov r8d, eax
call fcn.1801e4208
cdqe
add rsp, 0x28
ret
Function at 0x1800ab430
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1802d1460]
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 0x1800ab476
lea rdx, str.WSAStartup_failed___d_
mov r8d, eax
mov rcx, rbx
call fcn.180094ec0
jmp 0x1800ab4a5
call qword [sym.imp.WS2_32.dll_WSACleanup]
movzx r11d, word [rsp + 0x20]
cmp r11b, 2
jne 0x1800ab496
shr r11w, 8
test r11b, r11b
jne 0x1800ab496
xor eax, eax
jmp 0x1800ab4aa
lea rdx, str.insufficient_winsock_version_to_support_telnet
mov rcx, rbx
call fcn.180094ec0
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x1d0
pop rbx
ret

Function at 0x1800ab6b0
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 + 0x210]
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 0x1800ab70e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.180094ec0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1800ab570
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1800ab740
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 0x1800ab7b3
mov r10d, dword [r9 + r11*4 + 0xc08]
test r10d, r10d
je 0x1800ab795
sub r10d, 2
je 0x1800ab7c7
dec r10d
jne 0x1800ab7fd
cmp dword [r9 + r11*4 + 0x1008], 0
jne 0x1800ab7fd
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.1800ab6b0
mov ecx, dword [r9 + r11*4 + 0xc08]
dec ecx
je 0x1800ab7e1
dec ecx
je 0x1800ab778
dec ecx
jne 0x1800ab7fd
mov ecx, dword [r9 + r11*4 + 0x1008]
dec ecx
jne 0x1800ab7fd
mov dword [r9 + r11*4 + 0x1008], ecx
add rsp, 0x20
pop rbx
ret
mov edx, 0xfe
mov rcx, rbx
mov r8d, r11d
mov dword [r9 + r11*4 + 0xc08], 3
call fcn.1800ab6b0
add rsp, 0x20
pop rbx
ret
Function at 0x1800ab810
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
test r10d, r10d
je 0x1800ab8c4
sub r10d, 2
je 0x1800ab87a
dec r10d
jne 0x1800ab8ae
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800ab869
dec ecx
jne 0x1800ab8ae
mov dword [r8 + r9*4 + 0xc08], 1
mov dword [r8 + r9*4 + 0x1008], ecx
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 0
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800ab8b3
dec ecx
jne 0x1800ab8ae
mov dword [r8 + r9*4 + 0x1008], ecx
mov dword [r8 + r9*4 + 0xc08], 3
mov rcx, r11
mov r8d, edx
mov edx, 0xfe
call fcn.1800ab6b0
add rsp, 0x28
ret
mov dword [r8 + r9*4 + 0xc08], 1
add rsp, 0x28
ret
cmp dword [r8 + r9*4 + 0x1408], 1
jne 0x1800ab8a1
mov dword [r8 + r9*4 + 0xc08], 1
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.1800ab6b0

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

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 0xc08]
dec r10d
je 0x1800ab98f
dec r10d
je 0x1800ab968
dec r10d
jne 0x1800ab9a6
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800ab959
dec ecx
jne 0x1800ab9a6
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x1008], eax
mov r8d, edx
mov edx, 0xfd
add rsp, 0x28
jmp fcn.1800ab6b0
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x1008]
test ecx, ecx
je 0x1800ab959
dec ecx
jne 0x1800ab9a6
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov dword [r8 + r9*4 + 0x1008], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 0xc08], eax
mov r8d, edx
mov edx, 0xfe
call fcn.1800ab6b0
add rsp, 0x28
ret

Function at 0x1800ab9b0
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 0x1800aba19
mov r10d, dword [r9 + r11*4 + 8]
test r10d, r10d
je 0x1800ab9fe
sub r10d, 2
je 0x1800aba2a
dec r10d
jne 0x1800aba5d
cmp dword [r9 + r11*4 + 0x408], 0
jne 0x1800aba5d
mov dword [r9 + r11*4 + 0x408], 1
add rsp, 0x20
pop rbx
ret
mov edx, 0xfb
mov r8d, r11d
mov dword [r9 + r11*4 + 8], 2
add rsp, 0x20
pop rbx
jmp fcn.1800ab6b0
mov ecx, dword [r9 + r11*4 + 8]
dec ecx
je 0x1800aba44
dec ecx
je 0x1800ab9e1
dec ecx
jne 0x1800aba5d
mov ecx, dword [r9 + r11*4 + 0x408]
dec ecx
jne 0x1800aba5d
mov dword [r9 + r11*4 + 0x408], ecx
add rsp, 0x20
pop rbx
ret
mov edx, 0xfc
mov rcx, rbx
mov r8d, r11d
mov dword [r9 + r11*4 + 8], 3
call fcn.1800ab6b0
add rsp, 0x20
pop rbx
ret
Function at 0x1800aba70
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
movsxd r9, edx
mov r11, rcx
mov r8, qword [rax + 0x1a8]
mov r10d, dword [r8 + r9*4 + 8]
dec r10d
je 0x1800abaff
dec r10d
je 0x1800abadb
dec r10d
jne 0x1800abb13
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x1800abacf
dec ecx
jne 0x1800abb13
xor eax, eax
mov dword [r8 + r9*4 + 8], 2
mov rcx, r11
mov dword [r8 + r9*4 + 0x408], eax
mov r8d, edx
mov edx, 0xfb
add rsp, 0x28
jmp fcn.1800ab6b0
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
add rsp, 0x28
ret
mov ecx, dword [r8 + r9*4 + 0x408]
test ecx, ecx
je 0x1800abacf
dec ecx
jne 0x1800abb13
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov dword [r8 + r9*4 + 0x408], eax
add rsp, 0x28
ret
xor eax, eax
mov dword [r8 + r9*4 + 8], eax
mov r8d, edx
mov edx, 0xfc
call fcn.1800ab6b0
add rsp, 0x28
ret