joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d4ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5bc0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d54e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f8108]
test eax, eax
je 0x2fc4d557a
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f8110]
mov qword [rbp - 8], rax
jmp 0x2fc4d555e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d5552
cmp qword [rbp - 0x10], 0
je 0x2fc4d5552
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d5518
lea rax, [0x2fc4f80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d557b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5680
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d56a8
mov eax, 0
jmp 0x2fc4d56f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d56d1
mov eax, 0
jmp 0x2fc4d56f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d56f1
mov eax, 0
jmp 0x2fc4d56f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d56fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d577a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d5771
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d5771
mov rax, qword [rbp - 8]
jmp 0x2fc4d578f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d5744
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140019160
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov edx, 0x28
mov r14, rcx
mov rsi, r9
lea ecx, [rdx - 0x27]
call fcn.140051db8
mov edx, 0x28
mov rdi, rax
lea ecx, [rdx - 0x27]
call fcn.140051db8
mov rbx, rax
test rdi, rdi
je 0x140019201
test rax, rax
je 0x140019201
mov qword [rdi + 0x18], rsi
lea rax, [0x14001a160]
mov qword [rdi + 0x10], rax
lea r8, [0x140019120]
xor eax, eax
xor esi, esi
mov dword [rdi], eax
mov r9, rdi
movups xmm0, xmmword [rdi]
mov qword [rsp + 0x28], rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
movsd xmm0, qword [rdi + 0x20]
movsd qword [rbx + 0x20], xmm0
call fcn.140052410
mov qword [rbx + 8], rax
mov qword [r14], rbx
cmp qword [rbx + 8], rsi
sete sil
mov eax, esi
jmp 0x140019223
xor esi, esi
mov qword [r14], rsi
test rdi, rdi
je 0x140019213
mov rcx, rdi
call fcn.1400502e4
test rbx, rbx
je 0x140019220
mov rcx, rbx
call fcn.1400502e4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x140019850
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov edi, edx
mov rsi, rcx
je 0x140019976
mov qword [rsp + 0x40], rbx
mov rbx, qword [rcx + 0x10]
mov ecx, 1
call fcn.14004bcdc
cmp rbx, rax
je 0x140019971
mov rcx, rbx
call fcn.140051db0
lea ecx, [rax + rdi]
cmp ecx, dword [rsi + 8]
jle 0x140019971
mov rcx, qword [rsi + 0x10]
call fcn.14005ffb8
mov rdx, qword [rsi + 0x18]
mov ecx, eax
add rdx, 8
call fcn.140053230
mov rcx, qword [rsi + 0x10]
call fcn.14004a774
mov rcx, qword [rsi + 0x18]
xor edx, edx
mov rcx, qword [rcx]
call fcn.14005ffe0
test eax, eax
jne 0x1400198d9
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx]
call fcn.140052130
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x28]
mov rdx, qword [rdx]
call fcn.1400524f0
test eax, eax
je 0x14001991f
call fcn.14004c1bc
mov rdi, qword [rsi + 0x18]
mov ecx, 2
mov rbx, rax
call fcn.14004bcdc
mov r9, qword [rdi]
lea rdx, str.rename_from___s__to___s__failed__err_code__d_n
mov r8, qword [rsi + 0x28]
mov rcx, rax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
call fcn.1400193c0
mov eax, dword [rsi + 4]
mov rcx, qword [rsi + 0x20]
cmp eax, 1
jle 0x140019959
lea r8, [rcx + 0x38]
lea rdx, [rcx + 0x60]
lea r9d, [rax - 1]
nop word [rax + rax]
mov rax, qword [rdx]
lea rdx, [rdx + 0x38]
cmp qword [rcx + 0x28], rax
cmovg rcx, r8
add r8, 0x38
sub r9, 1
jne 0x140019940
mov qword [rsi + 0x18], rcx
lea rdx, [0x140089570]
mov rcx, qword [rsi + 0x28]
call fcn.140046ed4
mov qword [rsi + 0x10], rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001a4a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.140045920
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x100
call fcn.140045920
xor ebp, ebp
lea rdx, [0x140088634]
mov ecx, ebp
nop
movzx eax, byte [rcx + rdx]
mov byte [rsp + rcx + 0x50], al
lea rcx, [rcx + 1]
test al, al
jne 0x14001a500
lea rbx, [rsp + 0x50]
mov r14d, 0xf000
mov r15d, 0x4000
movzx eax, byte [rbx]
xor dil, dil
mov ecx, ebp
test al, al
je 0x14001a567
nop dword [rax]
cmp al, 0x5c
je 0x14001a550
cmp al, 0x2f
je 0x14001a550
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x14001a530
jmp 0x14001a567
movzx eax, byte [rbx + 1]
inc rbx
inc ecx
cmp al, 0x5c
je 0x14001a550
cmp al, 0x2f
je 0x14001a550
movzx edi, al
mov byte [rbx], bpl
lea rdx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], bpl
jne 0x14001a570
sub eax, ecx
lea rdx, [rsp + 0x50]
movsxd rsi, eax
lea rcx, [rsp + 0x150]
mov r8, rsi
call fcn.140053390
cmp rsi, 0x100
jae 0x14001a631
lea rcx, [rsp + 0x150]
mov byte [rsp + rsi + 0x150], bpl
call fcn.1400534f4
test eax, eax
jns 0x14001a5f2
call fcn.14004c1bc
cmp dword [rax], 0x11
je 0x14001a5cd
call fcn.14004c1bc
cmp dword [rax], 0x15
jne 0x14001a5ff
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x150]
call fcn.140053324
test eax, eax
js 0x14001a5ff
movzx eax, word [rsp + 0x26]
and ax, r14w
cmp ax, r15w
jne 0x14001a5ff
test dil, dil
je 0x14001a602
mov byte [rbx], dil
jmp 0x14001a521
or ebp, 0xffffffff
mov eax, ebp
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140042500
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.140042938
int3
Function at 0x14001a9a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rdx
mov r14, rcx
mov edx, 0x28
mov rbp, r9
mov r15, r8
lea ecx, [rdx - 0x27]
call fcn.140051db8
mov edx, 0x28
mov rbx, rax
lea ecx, [rdx - 0x27]
call fcn.140051db8
mov rdi, rax
test rbx, rbx
je 0x14001aa54
test rax, rax
je 0x14001aa54
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], rbp
test rsi, rsi
je 0x14001aa07
mov rax, qword [rsi]
test rax, rax
je 0x14001aa07
mov eax, dword [rax]
jmp 0x14001aa09
xor eax, eax
mov dword [rbx], eax
lea r8, [0x140019120]
movups xmm0, xmmword [rbx]
xor esi, esi
mov r9, rbx
mov qword [rsp + 0x28], rsi
xor edx, edx
movups xmmword [rdi], xmm0
xor ecx, ecx
mov dword [rsp + 0x20], esi
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
movsd xmm0, qword [rbx + 0x20]
movsd qword [rdi + 0x20], xmm0
call fcn.140052410
mov qword [rdi + 8], rax
mov qword [r14], rdi
cmp qword [rdi + 8], rsi
sete sil
mov eax, esi
jmp 0x14001aa76
xor esi, esi
mov qword [r14], rsi
test rbx, rbx
je 0x14001aa66
mov rcx, rbx
call fcn.1400502e4
test rdi, rdi
je 0x14001aa73
mov rcx, rdi
call fcn.1400502e4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14001c6f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov r14, r9
mov rax, rdx
mov rdi, rcx
mov dword [rsp + 0x20], 0
test r9, r9
je 0x14001c732
mov qword [r9 + 4], 0
lea rdx, [0x140089724]
mov rcx, rax
call fcn.140046ed4
mov r15, rax
test rax, rax
jne 0x14001c770
test r14, r14
je 0x14001c755
mov dword [r14], 0xa
mov rax, qword [0x1400a7090]
mov qword [rdi], rax
test rax, rax
je 0x14001c8bb
inc dword [rax + 0x50]
jmp 0x14001c8bb
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, r15
call fcn.14005077c
mov rcx, r15
call fcn.140051db0
movsxd r13, eax
xor ebp, ebp
test eax, eax
jne 0x14001c7a6
test r14, r14
je 0x14001c79c
mov ecx, 3
mov dword [r14], ecx
mov rcx, r15
call fcn.14004a774
jmp 0x14001c755
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.14005077c
lea eax, [r13 + 4]
movsxd rcx, eax
call fcn.14005126c
mov rsi, rax
mov r9, r15
mov r8d, 1
mov rdx, r13
mov rcx, rax
call fcn.140053ff0
mov rcx, r15
call fcn.14004a774
mov byte [r13 + rsi], bpl
lea ecx, [r13 + 1]
movsxd rdx, ecx
mov byte [rdx + rsi], bpl
lea ecx, [r13 + 2]
movsxd rdx, ecx
mov byte [rdx + rsi], bpl
lea eax, [r13 + 3]
movsxd rcx, eax
mov byte [rcx + rsi], bpl
xor r8d, r8d
mov edx, r13d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_IsTextUnicode]
test al, al
je 0x14001c851
movzx eax, byte [rsi]
mov ecx, 2
cmp al, 0xef
jne 0x14001c82a
cmp byte [rsi + 1], 0xff
cmove ebp, ecx
cmp al, 0xff
jne 0x14001c835
cmp byte [rsi + 1], 0xfe
cmove ebp, ecx
mov ecx, ebp
add rcx, rsi
call fcn.14001abb0
mov rbx, rax
mov rcx, rsi
call fcn.1400502e4
mov rsi, rbx
xor eax, eax
jmp 0x14001c86a
xor eax, eax
cmp byte [rsi], 0xef
jne 0x14001c86a
cmp byte [rsi + 1], 0xbb
jne 0x14001c86a
mov ecx, 3
cmp byte [rsi + 2], 0xbf
cmove eax, ecx
test rsi, rsi
jne 0x14001c884
test r14, r14
je 0x14001c755
mov dword [r14], reloc.WS2_32.dll_listen
jmp 0x14001c755
lea rdx, [rax + rsi]
mov r9, r14
lea rcx, [rsp + 0x70]
call fcn.14001c4e0
mov rcx, rsi
call fcn.1400502e4
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
test rax, rax
je 0x14001c8ad
inc dword [rax + 0x50]
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.14001c980
nop
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
Function at 0x14001ec60
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov qword [r11 - 0x10], rsi
mov ebx, r8d
mov rsi, rdx
mov qword [r11 - 0x18], rdi
mov rdx, qword [rcx + 0x30]
mov rdi, rcx
test rdx, rdx
je 0x14001ec9e
xor ecx, ecx
call fcn.1400346c0
test byte [rdi + 0x38], 4
je 0x14001ecac
or ebx, 0xffffffff
jmp 0x14001ee3e
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1000
mov edx, 0x4004667f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x14001ecd9
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 0xfff
jbe 0x14001ecde
mov ecx, 0x1000
test ebx, ebx
js 0x14001ece6
cmp ebx, ecx
jle 0x14001ece8
mov ebx, ecx
movsxd rbx, ebx
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
call fcn.140020420
cmp eax, 0xffffffff
jne 0x14001ed08
or ebx, eax
jmp 0x14001ee3e
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 1
mov r9d, 2
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x118], rbp
mov rdx, rbx
mov rcx, rdi
call fcn.140020990
xor ebx, ebx
movsxd rbp, eax
mov r8, rbp
test eax, eax
jle 0x14001ed72
mov edx, ebx
nop word [rax + rax]
mov rcx, qword [rsp + rdx + 0x50]
mov qword [rsp + rdx + 0x98], rcx
mov ecx, dword [rsp + rdx + 0x58]
mov dword [rsp + rdx + 0x90], ecx
lea rdx, [rdx + 0x10]
sub r8, 1
jne 0x14001ed50
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rbx
lea r9, [rsp + 0x44]
mov r8d, ebp
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
mov dword [rsp + 0x40], ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x14001edbd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
je 0x14001ee36
or ebx, 0xffffffff
jmp 0x14001ee36
movsxd rsi, dword [rsp + 0x44]
cmp esi, 0xffffffff
jne 0x14001edcb
or ebx, esi
jmp 0x14001ee36
test esi, esi
je 0x14001ee36
mov r9d, esi
mov r10d, ebx
test ebp, ebp
jle 0x14001ee21
mov r8, qword [rsp + 0x48]
nop
mov rdx, qword [r8]
test byte [rdx + 0x20], 8
je 0x14001edee
mov rcx, rbx
jmp 0x14001edfa
mov rcx, qword [rdx + 8]
sub rcx, qword [rdx + 0x18]
sub rcx, qword [rdx + 0x10]
movsxd rax, r9d
cmp rcx, rax
jge 0x14001ee16
add qword [rdx + 0x18], rcx
sub r9d, ecx
mov r8, qword [r8]
inc r10d
cmp r10d, ebp
jl 0x14001ede0
jmp 0x14001ee21
movsxd rax, r9d
add qword [rdx + 0x18], rax
mov qword [rdi + 0x10], r8
mov rax, rsi
mov rcx, rdi
add qword [rdi + 0x18], rax
add qword [rdi + 0x20], rax
call fcn.140020b60
mov ebx, esi
mov rbp, qword [rsp + 0x118]
mov rdx, qword [rdi + 0x30]
mov rdi, qword [rsp + 0xe0]
mov rsi, qword [rsp + 0xe8]
test rdx, rdx
je 0x14001ee5e
xor ecx, ecx
call fcn.1400346e0
mov eax, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140042500
add rsp, 0xf0
pop rbx
ret
Function at 0x1400212e0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x58], rdi
mov rbx, r8
mov qword [rsp + 0x50], r14
mov rdi, rcx
mov r14, rdx
mov rdx, qword [rcx + 0x30]
test rdx, rdx
je 0x140021309
xor ecx, ecx
call fcn.1400346c0
test byte [rdi + 0x38], 4
je 0x140021317
or ebx, 0xffffffff
jmp 0x14002140b
mov rdx, qword [rdi + 0x30]
test rbx, rbx
mov qword [rsp + 0x78], rbp
mov ebp, 0x4000
cmovns rbp, rbx
mov qword [rsp + 0x80], rsi
or ebx, 0xffffffff
mov esi, ebx
test rdx, rdx
je 0x140021345
xor ecx, ecx
call fcn.1400346c0
test byte [rdi + 0x38], 4
jne 0x14002138a
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
call fcn.140020420
test eax, eax
js 0x14002138a
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0
mov r9d, 2
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call fcn.140020990
mov esi, eax
mov rdx, qword [rdi + 0x30]
test rdx, rdx
je 0x14002139a
xor ecx, ecx
call fcn.1400346e0
lea eax, [rsi - 1]
cmp eax, 1
ja 0x1400213fe
mov r8d, dword [rsp + 0x38]
mov ecx, r14d
mov rdx, qword [rsp + 0x30]
call fcn.140058074
mov ebx, eax
test eax, eax
jle 0x1400213fe
mov qword [rsp + 0x38], rbx
mov ebp, ebx
cmp esi, 1
jle 0x1400213ee
mov r8d, dword [rsp + 0x48]
mov ecx, r14d
mov rdx, qword [rsp + 0x40]
call fcn.140058074
movsxd rbx, eax
test eax, eax
jg 0x1400213e9
mov ebx, ebp
mov r8d, 1
jmp 0x1400213f1
mov qword [rsp + 0x48], rbx
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14001dbb0
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rdx, qword [rdi + 0x30]
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
test rdx, rdx
je 0x140021425
xor ecx, ecx
call fcn.1400346e0
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0x140022980
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x160
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, qword [rcx]
xor esi, esi
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jns 0x1400229c2
or eax, 0xffffffff
jmp 0x140022a7d
cmp qword [rcx + 0x30], rsi
je 0x1400229e2
call fcn.140034670
test eax, eax
je 0x1400229e2
mov rcx, qword [r14 + 0x30]
call fcn.1400347a0
test eax, eax
je 0x140022aa5
test rbx, rbx
je 0x140022a7b
xor edx, edx
lea rcx, [rsp + 0x50]
cmp rdx, 0x10
jge 0x140022a37
test rdi, rdi
je 0x140022a37
mov rax, qword [rbx + 0x28]
add rax, qword [rbx + 0x10]
mov qword [rcx + 8], rax
cmp rdi, qword [rbx + 0x18]
jb 0x140022a2b
mov eax, dword [rbx + 0x18]
inc esi
mov dword [rcx], eax
inc rdx
sub rdi, qword [rbx + 0x18]
add rcx, 0x10
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400229f2
jmp 0x140022a37
movsxd rax, esi
add rax, rax
inc esi
mov dword [rsp + rax*8 + 0x50], edi
test esi, esi
je 0x140022a7b
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x50]
mov r8d, esi
mov dword [rsp + 0x20], 0
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_WSASend]
mov ecx, dword [rsp + 0x40]
or edx, 0xffffffff
test eax, eax
cmovne ecx, edx
mov eax, ecx
jmp 0x140022a7d
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140042500
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rax, [0x1400987b0]
mov r9d, 0x8c4
mov qword [rsp + 0x28], rax
lea r8, [0x1400987f8]
lea rax, [0x1400987c8]
mov ecx, 0xdeaddead
lea rdx, [0x140098808]
mov qword [rsp + 0x20], rax
call fcn.140034040
mov ecx, 2
call fcn.14004bcdc
mov rcx, rax
lea r8, [0x140098878]
lea rax, str.evbuffer_write_iovec
mov r9d, 0x8c4
mov qword [rsp + 0x28], rax
lea rdx, [0x140098888]
lea rax, [0x140098848]
mov qword [rsp + 0x20], rax
call fcn.1400193c0
call fcn.140054a44
int3
Function at 0x140026450
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov dword [rsp + 0x40], 1
mov esi, edx
mov rbx, rcx
test rcx, rcx
je 0x140026476
mov ecx, dword [rcx + 4]
jmp 0x14002647b
mov ecx, 2
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400264a5
lea rdx, [0x14009978c]
or rcx, rax
call fcn.140033ff0
jmp 0x140026538
mov rcx, rdi
call fcn.140031170
test eax, eax
js 0x140026520
mov rcx, rdi
call fcn.1400311d0
test eax, eax
js 0x140026520
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x140026520
test esi, esi
je 0x1400264f2
mov rcx, rdi
call fcn.1400311c0
test eax, eax
js 0x140026520
test rbx, rbx
je 0x14002650d
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140026520
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov ebx, eax
call sub.WS2_32.dll_closesocket
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x48]
or rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140026560
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov ebx, r8d
test rcx, rcx
jne 0x140026626
test dx, dx
jne 0x140026626
lea edx, [rcx + 1]
mov dword [rsp + 0x40], 1
lea ecx, [rdx + 1]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400265bf
or rdi, rax
lea rdx, [0x14009978c]
mov rcx, rdi
call fcn.140033ff0
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.140031170
test eax, eax
js 0x1400265fc
mov rcx, rdi
call fcn.1400311d0
test eax, eax
js 0x1400265fc
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140026618
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov ebx, eax
call sub.WS2_32.dll_closesocket
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
or rdi, 0xffffffffffffffff
mov rax, rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call fcn.140029ed0
mov rdi, rax
test rax, rax
jne 0x140026642
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov edx, ebx
mov rcx, rdi
call fcn.140026450
mov rcx, rdi
mov rbx, rax
call fcn.140032250
mov rax, rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140029d50
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x480
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbp, rcx
mov dword [rsp + 0x30], 0xa
mov r10d, r9d
mov dword [rsp + 0x28], 0x20
mov rax, r8
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x60]
mov r14, rdx
mov rcx, rax
mov r9d, 0x401
mov edx, r10d
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x140029dfd
mov qword [rsp + 0x30], 0
lea rbx, [0x1400a7100]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, rbx
lea rdx, str.getnameinfo_failed:__s
mov ecx, 1
call fcn.140034040
jmp 0x140029ea3
lea rcx, [rsp + 0x60]
call fcn.14002dbe0
lea rcx, [rsp + 0x40]
mov rsi, rax
call fcn.14002dbe0
mov rdi, rax
test rsi, rsi
je 0x140029e96
test rax, rax
je 0x140029e91
mov rcx, rax
call fcn.14005032c
mov rcx, qword [rbp + 0x98]
mov r9d, eax
mov r8, rsi
xor edx, edx
call fcn.140023a90
mov rcx, rsi
mov rbx, rax
call fcn.14002dc70
mov rcx, rdi
call fcn.14002dc70
test rbx, rbx
je 0x140029ea3
mov rax, qword [rbp + 0x70]
mov rdx, r14
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0xc0], rax
mov rax, qword [rbp + 0x78]
or dword [rbx + 0xd0], 1
mov qword [rbx + 0xc8], rax
mov dword [rbx + 0xe0], 3
mov qword [rbx + 0x10], r14
call fcn.140035540
mov rax, rbx
jmp 0x140029ea5
mov rcx, rsi
jmp 0x140029e9e
test rdi, rdi
je 0x140029ea3
mov rcx, rdi
call fcn.14002dc70
xor eax, eax
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140042500
add rsp, 0x480
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret