joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140065f00
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 3
jmp 0x140065f00
push rbx
sub rsp, 0x1d0
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x14023f2e0]
mov ebx, ecx
mov edx, eax
add eax, 1
test edx, edx
mov dword [0x14023f2e0], eax
jne 0x140065ff0
test cl, 1
lea rax, [fcn.140048900]
mov qword [fcn.140048900], rax
lea rax, [fcn.140046f30]
mov qword [fcn.140046f30], rax
lea rax, [fcn.14005e820]
mov qword [fcn.14005e820], rax
lea rax, [fcn.140065b10]
mov qword [fcn.140065b10], rax
lea rax, [fcn.14005e730]
mov qword [fcn.14005e730], rax
je 0x140065f8e
call fcn.140068e80
test eax, eax
je 0x140066011
test bl, 2
je 0x140065fc0
lea rdx, [rsp + 0x20]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140066011
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14006600b
shr ax, 8
cmp al, 2
jne 0x14006600b
call fcn.140067520
test eax, eax
jne 0x140066011
call fcn.1400e71c0
test eax, eax
jne 0x140066011
call fcn.140068000
mov eax, dword [0x14023f428]
test bl, 4
mov ecx, 1
mov dword [0x14023f2e4], ebx
cmovne eax, ecx
mov dword [0x14023f428], eax
call fcn.140067770
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140041910
add rsp, 0x1d0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x140065ff2

Function at 0x140066080
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
cmp dword [0x14023f2e0], 0
jne 0x14006614d
lea rax, [fcn.140048900]
mov dword [0x14023f2e0], 1
mov qword [fcn.140048900], rax
lea rax, [fcn.140046f30]
mov qword [fcn.140046f30], rax
lea rax, [fcn.14005e820]
mov qword [fcn.14005e820], rax
lea rax, [fcn.140065b10]
mov qword [fcn.140065b10], rax
lea rax, [fcn.14005e730]
mov qword [fcn.14005e730], rax
call fcn.140068e80
test eax, eax
je 0x140066185
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140066185
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14006617f
shr ax, 8
cmp al, 2
jne 0x14006617f
call fcn.140067520
test eax, eax
jne 0x140066185
call fcn.1400e71c0
test eax, eax
jne 0x140066185
call fcn.140068000
mov dword [0x14023f2e4], 3
call fcn.140067770
lea rcx, [rsp + 0x20]
call fcn.14006acf0
mov rcx, qword [rsp + 0x20]
xor edx, edx
test eax, eax
cmovne rcx, rdx
mov rax, rcx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140041910
add rsp, 0x1e8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140041910
add rsp, 0x1e8
ret
Function at 0x1400697b0
Capabilities:
Receive data
Receive data on socket

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

Function at 0x14006a030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rdx
mov rdx, rcx
mov ecx, dword [rcx + 4]
cmp ecx, 2
je 0x14006a059
cmp ecx, 0x17
je 0x14006a046
xor eax, eax
ret
mov rdx, qword [rdx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 8
jmp fcn.140082a00
mov rdx, qword [rdx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
jmp fcn.140082a00

Function at 0x1400751e0
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 0x14007521b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, reloc.WS2_32.dll_getservbyport
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 0x140075bc0
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 + 0x3b8]
mov rbp, qword [rbx + rcx*8 + 0x1d0]
mov rdi, rcx
shl rdi, 5
mov rsi, qword [rdi + rbx + 0x220]
sub rsi, qword [rdi + rbx + 0x228]
test byte [rax + 0x74], 3
je 0x140075cd7
lea rax, [0x140075820]
cmp qword [rbx + rcx*8 + 0x1f8], rax
jne 0x140075cd7
cmp qword [rdi + rbx + 0x218], 0
je 0x140075c33
test rsi, rsi
je 0x140075cd7
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.140067860
cmp eax, 0xffffffff
je 0x140075cd7
test al, 1
je 0x140075cd7
cmp qword [rdi + rbx + 0x218], 0
jne 0x140075ca9
mov ecx, 0x8000
mov qword [rdi + rbx + 0x220], 0x8000
call qword [fcn.140048900]
mov rsi, qword [rdi + rbx + 0x220]
xor ecx, ecx
test rax, rax
mov qword [rdi + rbx + 0x228], rcx
mov qword [rdi + rbx + 0x230], rcx
mov qword [rdi + rbx + 0x218], rax
jne 0x140075ca9
mov qword [rdi + rbx + 0x220], rcx
jmp 0x140075cd7
mov rdx, qword [rdi + rbx + 0x218]
xor r9d, r9d
mov r8d, esi
add rdx, qword [rdi + rbx + 0x228]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
movsxd rcx, eax
jle 0x140075cd7
add qword [rdi + rbx + 0x228], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140075db0
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
xor r10d, r10d
cmp rdx, qword [rcx + 0x1d8]
mov rdi, r9
sete r10b
mov rsi, r8
mov rbp, rcx
movsxd rax, r10d
mov edx, r10d
mov rbx, qword [rcx + rax*8 + 0x1d0]
call fcn.140075bc0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x140075e58
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
mov ebx, eax
jne 0x140075e29
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x140075e62
mov edx, eax
mov rcx, rbp
call fcn.140066c40
mov rcx, qword [rbp]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140075620
mov r11, qword [rbp]
mov eax, reloc.WS2_32.dll_getservbyname
mov dword [r11 + 0x88dc], ebx
jmp 0x140075e5a
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140078300
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 + 0x6c4], 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 0x14007836e
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.140075570
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
mov ecx, dword [rbx + 0x6c8]
mov dword [rsp + 0x50], 1
call fcn.14007b670
mov ecx, dword [rbx + 0x6cc]
imul eax, eax, 0x3e8
mov dword [rsp + 0x70], eax
mov dword [rsp + 0x54], eax
call fcn.14007b670
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x50]
mov r9d, reloc.WS2_32.dll_inet_ntoa
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 0x140078400
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.140075570
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret
Function at 0x140078e90
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 0x140078efb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.140066c40
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.140075570
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140075570
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140078f20
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x14023f478]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
test eax, eax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
jne 0x140078f7d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.14007b370
test eax, eax
je 0x140078f71
mov dword [0x14023f478], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x14023f478], 1
jmp 0x140078f82
cmp eax, 2
je 0x140078fd4
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 0x140078fb3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140078fd4
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 0x140079000
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 + 0x868]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x14007907c
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x140079033
cmp qword [rcx + 0x78], rax
je 0x14007907c
test rax, rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x28], 0
je 0x14007904e
lea rcx, [rax + 0xc0]
jmp 0x140079059
mov rcx, qword [rcx + 0x78]
add rcx, 0xc0
lea r8, [0x140078fe0]
lea rdx, [rsp + 0x20]
call fcn.14009c2a0
cmp dword [rsp + 0x28], 0
jne 0x140079090
mov qword [rdi + 0x868], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x140079098
mov qword [rsi], rbx
cmp dword [rbx + 0x258], 0
mov rdi, qword [rbx + 0x1d0]
je 0x1400790b6
mov rcx, rbx
call fcn.1400697b0
test eax, eax
jne 0x1400790d8
jmp 0x14007907c
cmp rdi, 0xffffffffffffffff
je 0x1400790d8
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14007907c
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14007b4a0
Capabilities:
Get common file path

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
mov rdi, rax
jne 0x14007b4ca
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140197238]
mov rcx, rbx
mov rbp, rax
call fcn.1400605d0
test rax, rax
je 0x14007b52f
test rbp, rbp
je 0x14007b516
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 8]
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
test rbp, rbp
je 0x14007b566
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14007b566
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rbp, qword [rsp + 0x40]
mov rsi, rax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r13
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov r13d, eax
je 0x14007b62e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
mov qword [rsp + 0x48], r12
not rcx
lea rax, [rcx - 1]
lea ecx, [r13 + 1]
add rcx, rax
call qword [fcn.140048900]
test rax, rax
mov r12, rax
je 0x14007b620
mov edx, r13d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14007b620
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r12
repne scasb al, byte [rdi]
mov rdi, r12
not rcx
mov word [rcx + r12 - 1], 0x5c
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
add rcx, r12
nop
nop
nop
movzx eax, byte [rbx]
add rcx, 1
add rbx, 1
test al, al
mov byte [rcx - 1], al
jne 0x14007b5f0
test rbp, rbp
je 0x14007b614
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 8]
call rbp
jmp 0x14007b61d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, r12
call qword [fcn.140046f30]
mov r12, qword [rsp + 0x48]
mov r13, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
mov rax, rsi
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14007b760
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
movzx r13d, r9w
mov qword [rbp], 0
mov r14d, r8d
mov r15d, edx
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x14007b895
cmp word [rax + 0x10], 2
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
jne 0x14007b857
cmp word [rax + 0x12], 4
jne 0x14007b857
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14007b857
nop
nop
nop
mov esi, dword [rcx]
mov edx, gethostbyname
lea ecx, [rdx - 0x2f]
call fcn.14005e730
test rax, rax
mov rbx, rax
je 0x14007b83d
mov edx, reloc.WS2_32.dll_recv
lea ecx, [rdx - 0xf]
call fcn.14005e730
test rax, rax
jne 0x14007b815
mov rcx, rbx
call fcn.140046f30
xor ebx, ebx
jmp 0x14007b83d
mov word [rax], 2
mov word [rax + 2], r13w
mov dword [rax + 4], esi
mov dword [rbx + 4], 2
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r14d
mov qword [rbx + reloc.WS2_32.dll_recv], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x14007b88e
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x14007b7e0
mov r8, qword [r12]
mov rcx, qword [rsp + 0x70]
mov r9d, 0x400
lea edx, [r9 + 1]
call fcn.140044c40
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 8
jmp 0x14007b871
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x14007b8ac
sub eax, 1
je 0x14007b8d2
sub eax, 1
je 0x14007b8bf
mov eax, 0x2af9
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afb
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afa
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14007c270
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x14023f47c], 0
lea rax, [0x14007bc20]
lea rbx, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x14007bfd0]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x14007bbc0]
mov qword [rsp + 0x48], rax
jne 0x14007c43f
lea rcx, [rsp + 0x160]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14007c435
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x290], rsi
call fcn.1400433f0
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.1400434a0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14007c364
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14007c3c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.1400433f0
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.1400434a0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14007c42d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14007c3c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14007c42d
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx], rax
je 0x14007c41c
add rdi, 1
add rbx, 0x10
cmp rdi, 3
jl 0x14007c3d3
mov rax, qword [rsp + 0x28]
mov qword [0x1401f4d20], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1401f4d30], rax
mov rax, qword [rsp + 0x48]
mov qword [0x1401f4d40], rax
jmp 0x14007c425
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x14023f47c], 1
movzx eax, bp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140041910
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret

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

Disassembly:
jmp 0x14007d770
sub rsp, 0x28
mov rcx, qword [rcx + 0x1d0]
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
movsxd rcx, eax
je 0x14007d7f7
cmp rcx, 1
jne 0x14007d7a7
mov eax, 1
add rsp, 0x28
ret
cmp rcx, 0xffffffffffffffff
jne 0x14007d7fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x14007d79d
cmp eax, 0xb
je 0x14007d79d
cmp eax, 0x2733
je 0x14007d79d
cmp eax, 0x2746
je 0x14007d7f7
cmp eax, 0x2745
je 0x14007d7f7
cmp eax, 0x2742
je 0x14007d7f7
cmp eax, 0x2744
je 0x14007d7f7
cmp eax, 0x274a
je 0x14007d7f7
cmp eax, 0x274c
je 0x14007d7f7
cmp eax, 0x2749
jne 0x14007d7fe
xor eax, eax
add rsp, 0x28
ret
or eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x14008a320
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx + 0x10]
mov r8d, dword [rcx]
test r8d, r8d
mov r9, qword [rax]
je 0x14008a391
sub r8d, 1
je 0x14008a388
sub r8d, 1
je 0x14008a37f
cmp r8d, 1
mov rcx, r9
je 0x14008a365
lea r8, str.Internal_state_machine_error
lea rdx, [0x1401cd58c]
call fcn.140075620
mov eax, 0x47
add rsp, 0x28
ret
lea r8, str.TFTP_finished
lea rdx, [0x140196d50]
call fcn.140075570
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.140089620
add rsp, 0x28
jmp fcn.1400892d0
add rsp, 0x28
jmp fcn.140089e40
Function at 0x14008c550
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 + 0x1d0]
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 0x14008c5ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140075620
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14008c410
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
movsxd rdi, edx
mov rbx, rcx
mov r8, qword [rsi + 0x1a8]
mov r10d, dword [r8 + rdi*4 + 0xc08]
test r10d, r10d
je 0x14008c6dd
sub r10d, 2
je 0x14008c675
cmp r10d, 1
jne 0x14008c78f
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x14008c659
cmp ecx, r10d
jne 0x14008c78f
mov dword [r8 + rdi*4 + 0xc08], r10d
mov dword [r8 + rdi*4 + 0x1008], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov dword [r8 + rdi*4 + 0xc08], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [r8 + rdi*4 + 0x1008]
test ecx, ecx
je 0x14008c6c1
cmp ecx, 1
jne 0x14008c78f
mov dword [r8 + rdi*4 + 0xc08], 3
mov dword [r8 + rdi*4 + 0x1008], 0
mov edx, 0xfe
mov r8d, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14008c550
mov dword [r8 + rdi*4 + 0xc08], 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor r9d, r9d
cmp dword [r8 + rdi*4 + 0x1408], 1
mov byte [rsp + 0x38], 0xff
mov byte [rsp + 0x3a], dil
lea rdx, [rsp + 0x38]
jne 0x14008c743
mov dword [r8 + rdi*4 + 0xc08], 1
mov rsi, qword [rcx]
mov rcx, qword [rcx + 0x1d0]
lea r8d, [r9 + 3]
mov byte [rsp + 0x39], 0xfd
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14008c73b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140075620
mov r8d, 0xfd
jmp 0x14008c77d
mov rcx, qword [rcx + 0x1d0]
mov r8d, 3
mov byte [rsp + 0x39], 0xfe
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14008c777
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140075620
mov r8d, 0xfe
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
call fcn.14008c410
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret