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

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1400a2296
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400a2279
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400a2273
shr ax, 8
cmp al, 2
je 0x1400a2296
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140138320
add rsp, 0x1e8
ret
lea rcx, str.iphlpapi.dll
call fcn.1400a2090
mov qword [0x140215830], rax
test rax, rax
je 0x1400a22d3
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140215828]
test rax, rax
cmovne rcx, rax
mov qword [0x140215828], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1400d2bb0
test al, al
lea rcx, [0x140218678]
setne byte [0x140218674]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140138320
add rsp, 0x1e8
ret

Function at 0x1400a4250
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebp, byte [rcx]
mov rsi, rdx
mov rbx, rcx
test bpl, bpl
je 0x1400a429e
movzx ecx, byte [rsi]
test cl, cl
je 0x1400a429e
call fcn.1400a40e0
movzx ecx, bpl
movzx edi, al
call fcn.1400a40e0
cmp al, dil
jne 0x1400a42c3
movzx ebp, byte [rbx + 1]
inc rbx
inc rsi
test bpl, bpl
jne 0x1400a4272
xor ecx, ecx
mov eax, ecx
cmp byte [rbx], al
sete al
cmp byte [rsi], cl
setne cl
xor eax, ecx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x1400a42ae
test rcx, rcx
je 0x1400a42df
test rdx, rdx
je 0x1400a42ea
jmp 0x1400a4250
test rdx, rdx
jne 0x1400a42ea
mov eax, 1
ret
xor eax, eax
ret
Function at 0x1400afe80
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 0x1400afeaa
cmp dword [rdx], 0
jne 0x1400afec0
test rbx, rbx
je 0x1400afeb5
cmp dword [r8], 0
jne 0x1400afec0
test rdi, rdi
je 0x1400aff0c
cmp dword [r9], 0
je 0x1400aff0c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.1400d82e0
test rdi, rdi
je 0x1400afed9
cmp dword [rdi], 0
jne 0x1400afedb
xor edi, edi
test rbx, rbx
je 0x1400afee5
cmp dword [rbx], 0
jne 0x1400afee7
xor ebx, ebx
test rsi, rsi
je 0x1400afef1
cmp dword [rsi], 0
jne 0x1400afef3
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 0x1400aff16
mov rcx, qword [rsp + 0x60]
call fcn.1400afe30
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400b2f60
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140095500
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400b1520
mov rcx, rdi
mov rsi, rax
call fcn.1400b1520
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400b3010
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140095500
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140095590
cmp rax, 0x3e8
ja 0x1400b3041
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400b2fc0
test rsi, rsi
je 0x1400b301d
mov rcx, rsi
call fcn.140145f80
test rbx, rbx
je 0x1400b302a
mov rcx, rbx
call fcn.140145f80
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400b304e
mov rcx, rsi
call fcn.140145f80
test rbx, rbx
je 0x1400b305b
mov rcx, rbx
call fcn.140145f80
mov eax, 1
jmp 0x1400b302c
Function at 0x1400b34d0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1400b3659
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400b363e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400b353e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400b3530
inc rbx
jmp 0x1400b3540
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1400b354e
lea r14d, [rax + 0xe]
jmp 0x1400b355b
cmp eax, 0x17
jne 0x1400b35f4
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1400b35f4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400b35f4
cmp rax, r14
jb 0x1400b35f4
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400b3603
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.14013cf50
test rbx, rbx
je 0x1400b35e1
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.14013cf50
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1400b35f1
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400b3520
jmp 0x1400b3609
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b3628
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1400b3639
mov rcx, rbp
call fcn.1400b34a0
xor ebp, ebp
jmp 0x1400b364d
test rbp, rbp
jne 0x1400b364d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret

Function at 0x1400b3d80
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov r8, rdx
xor edx, edx
mov rdi, rcx
call fcn.14013d3b0
mov r9d, 1
mov qword [rsp + 0x50], 0
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400b3de6
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400b3df6
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400ba400
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, qword [rsi + 0x1b0]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400ba47c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400ba481
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400ba4a0
lea rdx, str.Error_accept__ing_server_connect
call fcn.14009f860
mov eax, 0x1e
jmp 0x1400ba52c
lea rdx, str.Connection_accepted_from_server
call fcn.14009f950
mov byte [rsi + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400d8350
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400cbe40
test eax, eax
jne 0x1400ba52c
cmp qword [rdi + 0x278], 0
je 0x1400ba52a
mov dl, 1
mov rcx, rdi
call fcn.14008feb0
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x280]
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14008feb0
test ebx, ebx
je 0x1400ba52a
mov rdx, rsi
mov rcx, rdi
call fcn.1400baa60
mov eax, Ordinal_46
jmp 0x1400ba52c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140138320
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400bb6c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x3a0
cmp byte [rdx + 0xfd], 0
jne 0x1400bb769
xor r8d, r8d
mov dword [rdx + 0xec], r8d
cmp byte [rax + 0x2cf], r8b
je 0x1400bb723
mov r9, qword [rdx + 0x98]
test r9, r9
je 0x1400bb723
cmp dword [rdx + 0xe0], r8d
je 0x1400bb717
mov rax, qword [rdx + 0xa8]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x1400bb723
mov dword [rdx + 0xe4], r8d
mov rcx, rbx
jmp 0x1400bb743
mov rcx, rbx
cmp dword [rdx + 0xe0], r8d
je 0x1400bb769
mov r9, qword [rdx + 0xa8]
mov dword [rdx + 0xe4], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.1400d87d0
mov r8d, eax
test eax, eax
jne 0x1400bb773
mov dl, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.1400baa00
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400bbb30
add rsp, 0x20
pop rbx
ret

Function at 0x1400bbb30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
add rdx, 0x3a0
cmp byte [rcx + 0xaa2], 0
jne 0x1400bbb56
cmp byte [rcx + 0x530], 0
je 0x1400bbb88
mov r9, qword [rdx + 0xa0]
test r9, r9
je 0x1400bbb88
lea r8, str.MDTM__s
call fcn.1400d87d0
mov r8d, eax
test eax, eax
jne 0x1400bbb92
mov dl, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.1400baa00
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400bcbf0
add rsp, 0x20
pop rbx
ret
Function at 0x1400bc2b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rdi
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x1400bc328
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rsi
mov rsi, qword [rcx + 0x20]
mov ebx, dword [rsi + 0x488]
test ebx, ebx
jne 0x1400bc2ee
lea rdx, str.disabling_EPRT_usage
call fcn.14009f950
mov byte [rsi + 0x2da], bl
mov rsi, qword [rsp + 0x38]
inc ebx
mov rcx, rdi
cmp ebx, 2
jne 0x1400bc317
lea rdx, str.Failed_to_do_PORT
call fcn.14009f860
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400bcfd0
lea rdx, str.Connect_data_stream_actively
call fcn.14009f950
xor edx, edx
mov rcx, rdi
call fcn.1400baa00
add rsp, 0x20
pop rdi
jmp fcn.1400baca0
Function at 0x1400bc650
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a8]
add rdx, 0x3a0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400bc6a0
cmp qword [rdx + 0xa0], 0
je 0x1400bc6a0
xor r9d, r9d
lea r8, str.REST__d
call fcn.1400d87d0
mov r8d, eax
test eax, eax
jne 0x1400bc6aa
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.1400baa00
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400bc350
add rsp, 0x20
pop rbx
ret

Function at 0x1400bc950
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a8]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x1400bc99f
mov r9, qword [rdx + 0x440]
test r9, r9
je 0x1400bc99f
lea r8, str.SIZE__s
add rdx, 0x3a0
call fcn.1400d87d0
mov r8d, eax
test eax, eax
jne 0x1400bc9a9
mov dl, reloc.WS2_32.dll_socket
mov rcx, rbx
call fcn.1400baa00
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400bc650
add rsp, 0x20
pop rbx
ret

Function at 0x1400bcbf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x1d4], 0
mov r10, rcx
mov r11, qword [rcx + 0x20]
je 0x1400bcc49
cmp qword [r11 + 0x440], 0
je 0x1400bcc49
movzx edx, byte [rcx + 0x139a]
mov rcx, r11
call fcn.1400baf10
test eax, eax
je 0x1400bcc49
mov rax, qword [r10 + 0x1a8]
mov r9b, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x139a]
add rsp, 0x28
jmp fcn.1400bae70
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.1400bc950

Function at 0x1400bcc60
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1400bcc9d
lea rdx, str.Couldnt_set_desired_mode
call fcn.14009f860
lea eax, [rdi + 0x11]
jmp 0x1400bccf9
cmp edx, 0xc8
je 0x1400bccb4
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.14009f950
cmp sil, 0x13
jne 0x1400bccc7
mov rdx, rbp
mov rcx, rbx
call fcn.1400bc950
jmp 0x1400bccf5
cmp sil, 0x14
jne 0x1400bccd7
mov rcx, rbx
call fcn.1400bb990
jmp 0x1400bccf5
cmp sil, 0x15
jne 0x1400bcce7
mov rcx, rbx
call fcn.1400bc940
jmp 0x1400bccf5
cmp sil, 0x16
jne 0x1400bccf7
mov rcx, rbx
call fcn.1400bcb40
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c39d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r9, qword [rcx + 0x1a8]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 8]
sub r8d, 1
je 0x1400c3a51
sub r8d, 1
je 0x1400c3a28
cmp r8d, 1
jne 0x1400c3a65
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400c3a49
cmp ecx, r8d
jne 0x1400c3a65
xor eax, eax
mov dword [r9 + r10*4 + 8], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x408], eax
mov edx, 0xfb
mov rcx, r11
jmp fcn.1400c3bf0
mov ecx, dword [r9 + r10*4 + 0x408]
test ecx, ecx
je 0x1400c3a49
cmp ecx, 1
jne 0x1400c3a65
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
mov dword [r9 + r10*4 + 0x408], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 8], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfc
mov dword [r9 + r10*4 + 8], eax
jmp fcn.1400c3bf0
ret

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

Disassembly:
mov r9, qword [rcx + 0x1a8]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
test r8d, r8d
je 0x1400c3b14
sub r8d, 2
je 0x1400c3acd
cmp r8d, 1
jne 0x1400c3b06
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400c3ac0
cmp ecx, r8d
jne 0x1400c3b06
mov dword [r9 + r10*4 + 0xc08], r8d
mov dword [r9 + r10*4 + 0x1008], 0
ret
mov dword [r9 + r10*4 + 0xc08], 0
ret
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400c3b07
cmp ecx, 1
jne 0x1400c3b06
mov dword [r9 + r10*4 + 0xc08], 3
mov rcx, r11
mov dword [r9 + r10*4 + 0x1008], 0
mov r8d, edx
mov edx, 0xfe
jmp fcn.1400c3bf0
ret
mov dword [r9 + r10*4 + 0xc08], 1
ret
cmp dword [r9 + r10*4 + 0x1408], 1
jne 0x1400c3af9
mov r8d, edx
mov dword [r9 + r10*4 + 0xc08], 1
mov edx, 0xfd
jmp fcn.1400c3bf0

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

Disassembly:
mov r9, qword [rcx + 0x1a8]
mov r11, rcx
movsxd r10, edx
mov r8d, dword [r9 + r10*4 + 0xc08]
sub r8d, 1
je 0x1400c3bcd
sub r8d, 1
je 0x1400c3b9e
cmp r8d, 1
jne 0x1400c3be4
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400c3bc2
cmp ecx, r8d
jne 0x1400c3be4
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], 2
mov r8d, edx
mov dword [r9 + r10*4 + 0x1008], eax
mov edx, 0xfd
mov rcx, r11
jmp fcn.1400c3bf0
mov ecx, dword [r9 + r10*4 + 0x1008]
test ecx, ecx
je 0x1400c3bc2
cmp ecx, 1
jne 0x1400c3be4
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
mov dword [r9 + r10*4 + 0x1008], eax
ret
xor eax, eax
mov dword [r9 + r10*4 + 0xc08], eax
ret
xor eax, eax
mov r8d, edx
mov edx, 0xfe
mov dword [r9 + r10*4 + 0xc08], eax
jmp fcn.1400c3bf0
ret
Function at 0x1400c3bf0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400c3c4f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14009f860
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1400c33d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c3fa0
Capabilities:
Send data
Send data on socket

Disassembly:
mov r10, qword [rcx + 0x1a8]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 8]
cmp r8d, 1
jne 0x1400c3ff3
test r9d, r9d
je 0x1400c3fdd
sub r9d, 2
je 0x1400c4005
cmp r9d, r8d
jne 0x1400c4033
cmp dword [r10 + r11*4 + 0x408], 0
jne 0x1400c4033
mov dword [r10 + r11*4 + 0x408], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 2
mov edx, 0xfb
jmp fcn.1400c3bf0
sub r9d, 1
je 0x1400c401d
sub r9d, 1
je 0x1400c3fc5
cmp r9d, 1
jne 0x1400c4033
cmp dword [r10 + r11*4 + 0x408], 1
jne 0x1400c4033
mov dword [r10 + r11*4 + 0x408], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 8], 3
mov edx, 0xfc
jmp fcn.1400c3bf0
ret

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

Disassembly:
mov r10, qword [rcx + 0x1a8]
movsxd r11, edx
mov r9d, dword [r10 + r11*4 + 0xc08]
cmp r8d, 1
jne 0x1400c4099
test r9d, r9d
je 0x1400c4080
sub r9d, 2
je 0x1400c40ab
cmp r9d, r8d
jne 0x1400c40dc
cmp dword [r10 + r11*4 + 0x1008], 0
jne 0x1400c40dc
mov dword [r10 + r11*4 + 0x1008], 1
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.1400c3bf0
sub r9d, 1
je 0x1400c40c3
sub r9d, 1
je 0x1400c4068
cmp r9d, 1
jne 0x1400c40dc
cmp dword [r10 + r11*4 + 0x1008], 1
jne 0x1400c40dc
mov dword [r10 + r11*4 + 0x1008], 0
ret
mov r8d, edx
mov dword [r10 + r11*4 + 0xc08], 3
mov edx, 0xfe
jmp fcn.1400c3bf0
ret
Function at 0x1400c5230
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1402126b0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x3a0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
lea r14, [rdi + 0x150]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x1400c52ce
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.14013cf50
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r9d, dword [rdi + 0x13c]
cmp r9d, 4
jge 0x1400c5317
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.14009f860
mov dword [rdi + 0xc], 7
mov eax, esi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140138320
mov rbp, qword [rsp + 0x108]
add rsp, 0xd0
pop r14
pop rdi
pop rsi
ret
mov rcx, r14
call fcn.1400c4d70
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x1400c5402
sub r8d, 1
je 0x1400c53db
sub r8d, 1
je 0x1400c537d
cmp r8d, 1
je 0x1400c535f
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x14017f684]
call fcn.14009f860
jmp 0x1400c53db
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.1400c4f90
mov esi, eax
test eax, eax
je 0x1400c53db
jmp 0x1400c52f3
mov qword [rsp + 0xf8], rbx
lea eax, [r9 - 4]
mov qword [rsp + 0x100], r15
mov rcx, r14
mov r15, qword [r14]
movsxd rbx, eax
call fcn.1400c4d50
movzx r9d, ax
lea rcx, [r15 + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1400c5de0
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae 0x1400c53d3
lea r8, [r15 + 4]
mov rcx, rbp
lea rdx, str.TFTP_error:__s
call fcn.14009f950
mov r15, qword [rsp + 0x100]
mov rcx, rbp
call fcn.1400aef50
test eax, eax
je 0x1400c52f1
mov edx, 5
mov rcx, rdi
call fcn.1400c5cd0
mov eax, Ordinal_46
jmp 0x1400c52f3
cmp r9d, 4
jle 0x1400c53db
mov rcx, r14
call fcn.1400c4d50
movzx ecx, word [rdi + 0x14c]
inc ecx
cmp cx, ax
jne 0x1400c53db
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, rbp
call fcn.14009fd60
mov esi, eax
test eax, eax
jne 0x1400c546a
mov eax, dword [rdi + 0x13c]
mov rcx, rbp
sub eax, 4
cdqe
add qword [rbp + 0x100], rax
mov rdx, qword [rbp + 0x100]
call fcn.1400aec80
mov esi, eax
test eax, eax
je 0x1400c53db
mov edx, 5
mov rcx, rdi
call fcn.1400c5cd0
jmp 0x1400c52f1
Function at 0x1400c72e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.140148490]
mov rdi, rax
test rax, rax
je 0x1400c735d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400c7388
cmp ebx, esi
je 0x1400c7388
cmp ebx, 0x8000
ja 0x1400c7388
cmp ebx, esi
jb 0x1400c7383
mov edx, ebx
mov rcx, rdi
call qword [fcn.140148490]
mov rdi, rax
test rax, rax
jne 0x1400c7320
mov rcx, rbp
call qword [fcn.140145f80]
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
mov rax, rdi
jmp 0x1400c7368
mov rcx, rdi
jmp 0x1400c7360
jmp 0x1400c72e0

Function at 0x1400c7390
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.140148490]
mov rdi, rax
test rax, rax
je 0x1400c735d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400c7388
cmp ebx, esi
je 0x1400c7388
cmp ebx, 0x8000
ja 0x1400c7388
cmp ebx, esi
jb 0x1400c7383
mov edx, ebx
mov rcx, rdi
call qword [fcn.140148490]
mov rdi, rax
test rax, rax
jne 0x1400c7320
mov rcx, rbp
call qword [fcn.140145f80]
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
mov rax, rdi
jmp 0x1400c7368
mov rcx, rdi
jmp 0x1400c7360
jmp 0x1400c72e0

Function at 0x1400cc080
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x140215840]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400cc0e4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1400d2bb0
test al, al
je 0x1400cc0d8
mov dword [0x140215840], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x140215840], 1
jmp 0x1400cc0e9
cmp eax, 2
je 0x1400cc13b
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 0x1400cc11a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400cc13b
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