joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e7350
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400e738b
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400e7389
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e8850
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x1400e8893
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400e88e0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x1400e8942
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x1400e8900
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1400e8981
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140100ce9]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140100cea]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x1400e8950
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x1400e8b70
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14016e900]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, Ordinal_27
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400e8bbc
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400e8c8f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400e8c00
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x1400e8c8f
mov rcx, rbp
call fcn.1400a44e0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x1400e8c6b
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400e8c7b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400e8c8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400e9c10
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400e9a50
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x1400e9ab5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x1400e9a60
ret
Function at 0x1400e9ac0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14016e900]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1400e9b43
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400e9b65
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400e9c10
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.1400a44e0
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x1400e9bc4
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400e9bd4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400e9be6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x1400e9b48

Function at 0x1400eaa14
Capabilities:
Parse pe header

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

Function at 0x1400eaf4c
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 0x1400eaf86
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400eaf8b
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 0x1400eafd4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400eafd4
dec r8
sub rdx, 1
jne 0x1400eafba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x26f491344
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov edi, edx
mov dword [rsp + 0x3c], edx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 0x1006
mov edx, 0xffff
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp eax, 0xffffffff
je 0x26f4913d4
mov dword [rsp + 0x3c], edi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp eax, 0xffffffff
je 0x26f4913af
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.tcp_set_timeo
lea rcx, str._E____s_____setsockopt_SO_SNDTIMEO__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f4913a5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.tcp_set_timeo
lea rcx, str._E____s_____setsockopt_SO_RCVTIMEO__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f4913a5

Function at 0x26f4913f9
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov edi, edx
test edx, edx
jne 0x26f491436
mov eax, 1
mov dword [rsp + 0x3c], eax
lea r8, [rsp + 0x3c]
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
cmp eax, 0xffffffff
je 0x26f49143d
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov eax, 0
jmp 0x26f49140e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.sock_set_blocking
lea rcx, str._E____s_____ioctlsocket_FIONBIO__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f49142c

Function at 0x26f49152a
Capabilities:
Set socket configuration

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov edi, edx
test edx, edx
setne al
movzx eax, al
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x3c]
mov r8d, 1
mov edx, 6
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
cmp eax, 0xffffffff
je 0x26f491571
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
lea rdx, str.tcp_set_nodelay
lea rcx, str._E____s_____setsockopt_TCP_NODELAY__failed_sock0x_llx_value_d_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f491567
Function at 0x26f4915fa
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov ebp, ecx
mov edi, edx
mov r8d, 0
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x26f491702
mov edx, 1
mov rcx, rax
call fcn.26f49152a
cmp eax, 0xffffffff
je 0x26f4916f1
mov word [rsp + 0x30], 2
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x34], eax
movzx r12d, di
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
lea rdx, [rsp + 0x30]
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
mov esi, eax
cmp eax, 0xffffffff
je 0x26f4916c4
mov edx, 5
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_listen]
mov esi, eax
cmp eax, 0xffffffff
jne 0x26f491726
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
mov r9d, ebp
mov r8, rbx
lea rdx, str.tcp_listen
lea rcx, str._E____s_____listen_failed_sock0x_llx_host_08x_port_u_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f4916ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
mov r9d, ebp
mov r8, rbx
lea rdx, str.tcp_listen
lea rcx, str._E____s_____bind_failed_sock0x_llx_host_08x_port_u_WSAgle_d__n
call fcn.26f49a202
cmp esi, 0xffffffff
jne 0x26f491726
mov rcx, rbx
call fcn.26f4914c5
mov rbx, 0xffffffffffffffff
jmp 0x26f49172c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
movzx r9d, di
mov r8d, ebp
lea rdx, str.tcp_listen
lea rcx, str._E____s_____socket_failed_host_08x_port_u_WSAgle_d__n
call fcn.26f49a202
cmp rbx, 0xffffffffffffffff
jne 0x26f49173a
mov rax, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
movzx eax, di
mov dword [rsp + 0x20], eax
mov r9d, ebp
mov r8, rbx
lea rdx, str.tcp_listen
lea rcx, str._I____s_____Done_sock0x_llx_host_08x_port_u__n
call fcn.26f49a202
jmp 0x26f49172c
Function at 0x26f49175c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov edi, ecx
mov esi, edx
mov ebp, r8d
mov r8d, 0
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x26f49195b
test ebp, ebp
je 0x26f4917b5
mov edx, 0
mov rcx, rax
call fcn.26f4913f9
cmp eax, 0xffffffff
je 0x26f49180e
mov edx, ebp
mov rcx, rbx
call fcn.26f491344
jmp 0x26f4917c2
mov edx, 1
mov rcx, rax
call fcn.26f4913f9
cmp eax, 0xffffffff
jne 0x26f491801
mov rcx, rbx
call fcn.26f4914c5
mov rbx, 0xffffffffffffffff
movzx r9d, si
mov r8d, edi
lea rdx, str.tcp_connect
lea rcx, str._E____s_____connection_failed_host_08x_port_u__n
call fcn.26f49a202
mov rax, rbx
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edx, 1
mov rcx, rbx
call fcn.26f49152a
cmp eax, 0xffffffff
je 0x26f4917c7
mov word [rsp + 0x40], 2
mov ecx, edi
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x44], eax
movzx r12d, si
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
lea rdx, [rsp + 0x40]
mov r8d, 0x10
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x26f49186c
mov edx, 1
mov rcx, rbx
call fcn.26f4913f9
cmp eax, 0xffffffff
jne 0x26f49197f
jmp 0x26f4917c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x26f49192e
test ebp, ebp
je 0x26f4917c7
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], rbx
mov eax, ebp
imul rax, rax, 0x10624dd3
shr rax, 0x26
mov dword [rsp + 0x38], eax
imul eax, eax, 0x3e8
mov edx, ebp
sub edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x3c], eax
lea ecx, [rbx + 1]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0
lea r8, [rsp + 0x50]
mov edx, 0
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x26f491910
jns 0x26f491851
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._E____s_____select_failed_sock0x_llx_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f4917c7
mov r9d, ebp
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._W____s_____select_timedout_sock0x_llx_timeo_u__n
call fcn.26f49a202
jmp 0x26f4917c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
mov r9d, edi
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._E____s_____connect_failed_sock0x_llx_host_08x_port_u_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f4917c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
movzx r9d, si
mov r8d, edi
lea rdx, str.tcp_connect
lea rcx, str._E____s_____socket_failed_host_08x_port_u_WSAgle_d__n
call fcn.26f49a202
cmp rbx, 0xffffffffffffffff
je 0x26f4917d6
movzx esi, si
mov dword [rsp + 0x20], esi
mov r9d, edi
mov r8, rbx
lea rdx, str.tcp_connect
lea rcx, str._I____s_____Done_sock0x_llx_host_08x_port_u__n
call fcn.26f49a202
jmp 0x26f4917f0
Function at 0x26f4919d9
Capabilities:
Get socket status

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x260
mov rbx, rcx
mov esi, edx
mov rdi, r8
mov rbp, r9
mov dword [rsp + 0x24c], 0x10
test edx, edx
je 0x26f491a98
mov edx, 0
call fcn.26f4913f9
cmp eax, 0xffffffff
jne 0x26f491a2e
test rdi, rdi
je 0x26f491bfe
mov dword [rdi], 0x40000001
mov rsi, 0xffffffffffffffff
jmp 0x26f491b58
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x48], rbx
mov eax, esi
imul rax, rax, 0x10624dd3
shr rax, 0x26
mov dword [rsp + 0x38], eax
imul eax, eax, 0x3e8
sub esi, eax
imul esi, esi, 0x3e8
mov dword [rsp + 0x3c], esi
lea rdx, [rsp + 0x40]
lea ecx, [rbx + 1]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x26f491b69
js 0x26f491b93
lea rdx, [rsp + 0x250]
lea r8, [rsp + 0x24c]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x26f491bda
mov edx, 1
mov rcx, rbx
call fcn.26f4913f9
cmp eax, 0xffffffff
je 0x26f491bc6
mov ecx, dword [rsp + 0x254]
call qword [sym.imp.WS2_32.dll_ntohl]
mov r12d, eax
movzx ecx, word [rsp + 0x252]
call qword [sym.imp.WS2_32.dll_ntohs]
test rbp, rbp
je 0x26f491afb
mov dword [rbp], r12d
cmp qword [rsp + 0x2b0], 0
je 0x26f491b11
mov rcx, qword [rsp + 0x2b0]
mov word [rcx], ax
test rdi, rdi
je 0x26f491b1c
mov dword [rdi], 0
movzx eax, ax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r12d
mov r9, rsi
mov r8, rbx
lea rdx, str.tcp_accept
lea rcx, str._I____s_____Done_sock0x_llx_client0x_llx_h_08x_p_u__n
call fcn.26f49a202
cmp rsi, 0xffffffffffffffff
sete al
test rdi, rdi
setne dl
test dl, al
je 0x26f491b58
mov dword [rdi], 0x40000001
mov rax, rsi
add rsp, 0x260
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test rdi, rdi
je 0x26f491b74
mov dword [rdi], 0x40000006
mov r8, rbx
lea rdx, str.tcp_accept
lea rcx, str._W____s_____select_timedout_sock0x_llx__n
call fcn.26f49a202
mov rsi, 0xffffffffffffffff
jmp 0x26f491b58
test rdi, rdi
je 0x26f491b9e
mov dword [rdi], 0x40000001
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.tcp_accept
lea rcx, str._E____s_____select_failed_sock0x_llx_WSAgle_d__n
call fcn.26f49a202
mov rsi, 0xffffffffffffffff
jmp 0x26f491b58
mov rcx, rsi
call fcn.26f4914c5
mov rsi, 0xffffffffffffffff
jmp 0x26f491b41
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, rbx
lea rdx, str.tcp_accept
lea rcx, str._E____s_____Failed_sock0x_llx_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f491b41
mov rsi, 0xffffffffffffffff
jmp 0x26f491b58
Function at 0x26f491c0a
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rcx
cmp rcx, 0xffffffffffffffff
setne al
test rdx, rdx
setne cl
test cl, al
je 0x26f491c98
test r8d, r8d
jle 0x26f491c98
mov r9d, 0
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x26f491c4c
test eax, eax
jle 0x26f491c7b
mov eax, ebx
add rsp, 0x38
pop rbx
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x26f491c60
mov ebx, 0
jmp 0x26f491c43
mov r9d, eax
mov r8, rsi
lea rdx, str.tcp_recv
lea rcx, str._E____s_____recv_failed_sock0x_llx_WSAgle_d__n
call fcn.26f49a202
jmp 0x26f491c43
mov r8, rsi
lea rdx, str.tcp_recv
lea rcx, str._D____s_____Disconnected_sock0x_llx__n
call fcn.26f49a202
mov ebx, 0xffffffff
jmp 0x26f491c43
mov dword [rsp + 0x20], r8d
mov r9, rdx
mov r8, rsi
lea rdx, str.tcp_recv
lea rcx, str._E____s_____Invalid_arguments_sock0x_llx_p0x_p_l_d__n
call fcn.26f49a202
mov ebx, 0xffffffff
jmp 0x26f491c43

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov r12, r8
mov esi, r8d
cmp rcx, 0xffffffffffffffff
setne al
test rdx, rdx
setne dl
test dl, al
je 0x26f491d6c
test r8d, r8d
jle 0x26f491d6c
mov ebx, 0
cmp ebx, esi
jge 0x26f491d39
movsxd rdx, ebx
add rdx, rbp
mov r9d, 0
mov r8d, esi
sub r8d, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x26f491d1a
add ebx, eax
jmp 0x26f491cf2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8, rdi
lea rdx, str.tcp_send
lea rcx, str._E____s_____send_failed_sock0x_llx_WSAgle_d__n
call fcn.26f49a202
cmp ebx, r12d
jl 0x26f491d91
jg 0x26f491d4d
mov eax, ebx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov dword [rsp + 0x20], ebx
mov r9d, r12d
mov r8, rdi
lea rdx, str.tcp_send
lea rcx, str._E____s________WTF____sock0x_llx_l_d_n_d__n
call fcn.26f49a202
jmp 0x26f491d40
mov dword [rsp + 0x20], r12d
mov r9, rbp
mov r8, rdi
lea rdx, str.tcp_recv
lea rcx, str._E____s_____Invalid_arguments_sock0x_llx_p0x_p_l_d__n
call fcn.26f49a202
mov ebx, 0xffffffff
jmp 0x26f491d40
mov ebx, 0xffffffff
jmp 0x26f491d40

Function at 0x26f491fce
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x26f492012
lea r8, [0x26f4a081d]
lea rdx, str.net_init
lea rcx, [0x26f4a0822]
call fcn.26f49a202
mov eax, 0
add rsp, 0x1c0
pop rbx
ret
mov r8d, eax
lea rbx, str.net_init
mov rdx, rbx
lea rcx, str._E____s_____WSAStartup_failed_ret_d__n
call fcn.26f49a202
mov r8d, 1
mov rdx, rbx
lea rcx, [0x26f4a07ff]
call fcn.26f49a202
mov eax, 0x40000001
jmp 0x26f492009
Function at 0x26f492d49
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test rcx, rcx
je 0x26f492dd8
test rdx, rdx
je 0x26f492e11
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x26f492e4a
mov ebp, 0
mov r12d, 0
test rdi, rdi
je 0x26f492d8d
mov dword [rdi], ebp
test r12d, r12d
je 0x26f492f86
test rsi, rsi
je 0x26f492da1
mov dword [rsi], 0xffffffff
mov r9d, r12d
and r9d, 0x3fffffff
test rbx, rbx
je 0x26f492f7a
mov r8, rbx
lea rdx, str.fs_attr_get
lea rcx, [0x26f4a1090]
call fcn.26f49a202
mov eax, r12d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov dword [rsp + 0x20], 0x62
lea r9, str.H:_Projects_rdp_bot_codebase_fs.c
lea r8, [0x26f4a0ff2]
lea rdx, str.fs_attr_get
lea rcx, [0x26f4a1010]
call fcn.26f49a202
mov ebp, 0xa0
mov r12d, 0x40000001
jmp 0x26f492d86
mov dword [rsp + 0x20], 0x63
lea r9, str.H:_Projects_rdp_bot_codebase_fs.c
lea r8, str._attr___NULL_
lea rdx, str.fs_attr_get
lea rcx, [0x26f4a1010]
call fcn.26f49a202
mov ebp, 0xa0
mov r12d, 0x40000001
jmp 0x26f492d86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov r9d, eax
mov r8, rbx
lea rdx, str.fs_attr_get
lea rcx, str._E____s_____GetFileAttributesA_failed_path_s_gle_lu__n
call fcn.26f49a202
cmp ebp, 0x20
ja 0x26f492e90
ja case.0x26f492e86.1
mov eax, ebp
lea rdx, [0x26f4a10e0]
movsxd rax, dword [rdx + rax*4]
add rax, rdx
jmp rax
mov r12d, ebp
jmp 0x26f492d86
cmp ebp, 0x94
je 0x26f492f38
jbe 0x26f492ec9
cmp ebp, 0xb7
je 0x26f492f64
cmp ebp, 0x80070005
je 0x26f492f6f
cmp ebp, 0xaa
je 0x26f492ef6
mov r12d, 0x40000001
jmp 0x26f492d86
cmp ebp, 0x7f
ja 0x26f492ee3
cmp ebp, 0x7e
jae 0x26f492f43
cmp ebp, 0x50
jne 0x26f492f4e
mov r12d, 0x40000007
jmp 0x26f492d86
cmp ebp, 0x91
jne 0x26f492f59
mov r12d, 0x4000000d
jmp 0x26f492d86
mov r12d, 0x4000000d
jmp 0x26f492d86
mov r12d, 0x40000003
jmp 0x26f492d86
mov r12d, 0x40000009
jmp 0x26f492d86
mov r12d, 0x4000000d
jmp 0x26f492d86
mov r12d, 0x40000001
jmp 0x26f492d86
mov r12d, 0x40000008
jmp 0x26f492d86
mov r12d, 0x4000000d
jmp 0x26f492d86
mov r12d, 0x40000003
jmp 0x26f492d86
mov r12d, 0x40000001
jmp 0x26f492d86
mov r12d, 0x40000001
jmp 0x26f492d86
mov r12d, 0x40000007
jmp 0x26f492d86
mov r12d, 0x40000009
jmp 0x26f492d86
lea rbx, [0x26f4a0fcb]
jmp 0x26f492db4
mov r9d, dword [rsi]
mov r8, rbx
lea rdx, str.fs_attr_get
lea rcx, str._D____s_____Done_path_s_attr_08lx__n
call fcn.26f49a202
jmp 0x26f492dca