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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
cmp byte [rcx + 8], 0
mov rsi, r9
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14000f193
test r9, r9
je 0x14000f1d9
movsxd rcx, dword [rcx + 0x3d0]
xor edx, edx
mov rax, r9
div rcx
test rdx, rdx
jne 0x14000f1d9
xor r14d, r14d
test rax, rax
je 0x14000f178
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.14000ed58
cmp byte [rbx + 8], 0
mov rcx, rdi
je 0x14000f1b6
xor edx, edx
cmp dword [rbx + 0x3d0], edx
jle 0x14000f142
mov r8, rbx
sub r8, rdi
mov al, byte [r8 + rcx + 0x3f8]
inc edx
xor byte [rcx], al
inc rcx
cmp edx, dword [rbx + 0x3d0]
jl 0x14000f12b
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rbp
call fcn.140056780
movsxd rcx, dword [rbx + 0x3d0]
xor edx, edx
mov rax, rsi
inc r14d
add rbp, rcx
div rcx
add rdi, rcx
movsxd rcx, r14d
cmp rcx, rax
jb 0x14000f100
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
lea rdx, str.Object_not_Initialized
lea rcx, [rsp + 0x20]
call fcn.140056da4
lea rdx, [0x14009acf0]
lea rcx, [rsp + 0x20]
call fcn.14005cf88
int3
lea rdx, str.Object_not_Initialized
lea rcx, [rsp + 0x20]
call fcn.140056da4
lea rdx, [0x14009acf0]
lea rcx, [rsp + 0x20]
call fcn.14005cf88
int3
lea rdx, str.Data_not_multiple_of_Block_Size
lea rcx, [rsp + 0x20]
call fcn.140056da4
lea rdx, [0x14009acf0]
lea rcx, [rsp + 0x20]
call fcn.14005cf88
int3
Function at 0x1400119d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x178]
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400a91a0]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
and dword [rsp + 0x44], 0
lea rcx, [0x1400a8a48]
mov rax, qword [0x1400a8a48]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x44], 1
mov byte [rsp + 0x60], 0
xor edx, edx
mov r8d, 0x1ff
lea rcx, [rsp + 0x61]
call fcn.14005a570
mov dword [rsp + 0x30], 0x200
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14008fd50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011b26
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x14008e958]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140011b0e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011b26
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.MachineGuid
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011b26
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400125ec
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140056190
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rbp
ret
Function at 0x140011f44
Capabilities:
Get common file path
Get disk information

Disassembly:
push rbp
sub rsp, 0x6b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp + 0x688], rbx
mov qword [rbp + 0x690], rsi
mov qword [rbp + 0x698], rdi
mov rax, qword [0x1400a91a0]
xor rax, rbp
mov qword [rbp + 0x660], rax
mov rdi, rcx
xor esi, esi
mov dword [rbp + 0x18], esi
lea rdx, [0x1400898e7]
lea rcx, [rbp + 8]
call fcn.14000ce1c
nop
mov word [rbp + 0x450], si
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x452]
call fcn.14005a570
mov word [rbp + 0x240], si
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x242]
call fcn.14005a570
mov dword [rbp], esi
mov dword [rbp + 0x14], esi
mov dword [rbp + 0x10], esi
mov word [rbp + 0x30], si
xor edx, edx
lea r8d, [rbx - 2]
lea rcx, [rbp + 0x32]
call fcn.14005a570
xor r9d, r9d
lea r8d, [rsi + 0x25]
lea rdx, [rbp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [rbp + 0x36], si
mov r8d, 0x105
mov dword [rsp + 0x38], r8d
lea rax, [rbp + 0x240]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x14]
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x140012057
mov r8d, dword [rbp]
lea rdx, [0x14008dd74]
lea rcx, [rbp + 8]
call fcn.14000c874
mov r8, qword [rbp + 8]
test r8, r8
je 0x1400120ce
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [r8 + rcx], sil
jne 0x140012064
inc ecx
cmp ecx, 0x3fffffff
jg 0x1400120ce
movsxd rax, ecx
add rax, rax
lea rdx, [rax + 0xf]
cmp rdx, rax
ja 0x140012090
movabs rdx, 0xffffffffffffff0
and rdx, 0xfffffffffffffff0
mov rax, rdx
call fcn.14005c530
sub rsp, rdx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400120ce
mov word [rbx], si
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb rdx, rdx
and rdx, rbx
jmp 0x1400120d1
mov rdx, rsi
mov rcx, rdi
call fcn.14001256c
nop
mov rdx, qword [rbp + 8]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400120f3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.WS2_32.dll_htonl + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x660]
xor rcx, rbp
call fcn.140056190
mov rbx, qword [rbp + 0x688]
mov rsi, qword [rbp + 0x690]
mov rdi, qword [rbp + 0x698]
lea rsp, [rbp + 0x670]
pop rbp
ret

Function at 0x140013200
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400a91a0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140013261
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14001325b
shr ax, 8
cmp al, 2
jne 0x14001325b
call fcn.140018900
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140056190
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140056190
add rsp, 0x1d8
ret
Function at 0x140019870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x14001987c
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.140034330

Function at 0x14001ad10
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140034840
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14003489c
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 0x1400348ac
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 0x1400241b0
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 0x1400241eb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
movsxd rax, edx
mov rdi, r9
mov rsi, r8
mov rbx, qword [rcx + rax*8 + 0x238]
mov r14, rcx
call fcn.1400246a0
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
movsxd rdi, eax
mov dword [rsi], 0
cmp rdi, 0xffffffffffffffff
jne 0x140024368
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14002433d
mov dword [rsi], 0x51
xor eax, eax
jmp 0x14002436b
mov edx, eax
mov rcx, r14
call fcn.140033440
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140023ea0
mov rcx, qword [r14]
mov dword [rcx + 0x4b64], ebx
mov dword [rsi], gethostname
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1400246a0
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 rsi, rcx
movsxd rcx, edx
mov rax, qword [rsi + 0x630]
mov rbp, qword [rsi + rcx*8 + 0x238]
lea rbx, [rcx + 0x14]
shl rbx, 5
add rbx, rsi
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x14002477c
lea rax, [0x140024200]
cmp qword [rsi + rcx*8 + 0x260], rax
jne 0x14002477c
cmp qword [rbx], 0
je 0x140024706
test rdi, rdi
je 0x14002477c
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.140023500
cmp eax, 0xffffffff
je 0x14002477c
test al, 1
je 0x14002477c
cmp qword [rbx], 0
jne 0x14002475b
mov rax, qword [rsi]
mov ecx, dword [rax + 0x578]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.140058128]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x14002475b
mov qword [rbx + 8], rcx
jmp 0x14002477c
mov rdx, qword [rbx]
xor r9d, r9d
mov r8d, edi
add rdx, qword [rbx + 0x10]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14002477c
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140024970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2c8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x1400249b3
mov rax, qword [rcx + 0x218]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x1400249f6
mov r9, qword [rbx + 0x210]
movsxd rcx, edx
lea rdx, [0x14007cae8]
lea rcx, [rcx + rcx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call fcn.140057460
mov r9, qword [rbx + 0x210]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.140057460
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
cmp dword [rcx + 0x2c0], 0
je 0x14002519d
call fcn.14001a580
test eax, eax
jne 0x1400251c8
xor eax, eax
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x140025196
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1400251c8
add rsp, 0x28
ret
mov eax, 1
add rsp, 0x28
ret

Function at 0x1400251e0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400aadc4]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x14002523d
lea r9d, [rax + 3]
lea r8d, [rax + 2]
lea ecx, [rax + 6]
xor edx, edx
call fcn.140032740
test eax, eax
je 0x140025231
mov dword [0x1400aadc4], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400aadc4], 1
jmp 0x140025242
cmp eax, 2
je 0x140025294
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 0x140025273
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x140025294
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 0x1400252a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x140
mov rax, qword [0x1400a91a0]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp dword [rcx + 0xbc], 2
mov rbp, qword [rcx]
mov rbx, rdx
mov rsi, rcx
je 0x14002549d
cmp dword [rcx + 0x588], 0
mov qword [rsp + 0x170], rdi
jne 0x14002548d
cmp dword [rcx + 0x5f8], 0
jne 0x14002548d
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0xb0]
mov rcx, rbx
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x140025343
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.140033440
lea rdx, str.getpeername___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.140023ea0
jmp 0x140025495
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x80
mov dword [rsp + 0x20], 0x80
call fcn.14005a570
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400253a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.140033440
lea rdx, [0x14009e500]
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.140023ea0
jmp 0x140025495
lea rbx, [rsi + 0x186]
lea r8, [rsi + 0x1b4]
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.140026280
test eax, eax
jne 0x1400253f6
call fcn.14005b554
mov rbx, rax
call fcn.14005b554
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140033440
mov r8d, dword [rdi]
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140023ea0
jmp 0x140025495
mov rax, qword [rbx]
lea r8, [rsi + 0x1e8]
lea rdx, [rsi + 0x1b8]
mov qword [rsi + 0x88], rax
mov rax, qword [rbx + 8]
lea rcx, [rsp + 0x30]
mov qword [rsi + 0x90], rax
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x98], rax
mov rax, qword [rbx + 0x18]
mov qword [rsi + 0xa0], rax
mov rax, qword [rbx + 0x20]
mov qword [rsi + 0xa8], rax
mov eax, dword [rbx + 0x28]
mov dword [rsi + 0xb0], eax
movzx eax, word [rbx + 0x2c]
mov word [rsi + 0xb4], ax
call fcn.140026280
test eax, eax
jne 0x14002548d
call fcn.14005b554
mov rbx, rax
call fcn.14005b554
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.140033440
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.140023ea0
jmp 0x140025495
mov rcx, rsi
call fcn.1400254c0
mov rdi, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140056190
add rsp, 0x140
pop rsi
pop rbp
pop rbx
ret
Function at 0x140025730
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 0x14002579b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rdi
mov edx, eax
call fcn.140033440
lea rdx, str.Could_not_set_TCP_NODELAY:__s_n
mov rcx, rbx
mov r8, rax
call fcn.140023df0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.TCP_NODELAY_set_n
mov rcx, rbx
call fcn.140023df0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140025920
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400a91a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
mov eax, esi
lea r9, [rsp + 0x50]
lea r8d, [rsi + 8]
cmp dword [rcx + 0x87c], eax
mov edx, 0xffff
mov rcx, rdi
setne al
mov dword [rsp + 0x20], 4
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14002598f
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov r8, rdi
mov rcx, rbx
call fcn.140023df0
jmp 0x140025a1e
mov ecx, dword [rbx + 0x880]
mov dword [rsp + 0x58], 1
call fcn.14002f880
mov ecx, dword [rbx + 0x884]
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x5c], eax
call fcn.14002f880
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x58]
mov r9d, recvfrom
mov edx, 0x98000004
imul eax, eax, 0x3e8
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140025a1e
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.140023df0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140056190
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002f950
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
mov rcx, r8
mov rbx, rdx
call fcn.14002f870
mov rdx, rbx
mov ecx, edi
mov r8d, eax
call fcn.14006c138
mov rbx, qword [rsp + 0x30]
cdqe
add rsp, 0x20
pop rdi
ret

Function at 0x1400328b0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400328da
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov qword [rsp + 0x48], r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400a06c8]
mov rcx, rbx
mov r14, rax
call fcn.14005c148
test rax, rax
je 0x14003293d
mov rcx, rbx
test r14, r14
je 0x140032927
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140032975
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140032975
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140032a49
mov qword [rsp + 0x40], rsi
or rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1400329a0
lea ecx, [rax + 1]
add rcx, rdx
call qword [fcn.140058128]
mov rdi, rax
test rax, rax
je 0x140032a3b
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140032a3b
mov rcx, rsi
cmp byte [rdi + rcx + 1], bpl
lea rcx, [rcx + 1]
jne 0x1400329d4
movzx eax, word [0x1400a06cc]
mov word [rcx + rdi], ax
nop word [rax + rax]
cmp byte [rdi + rsi + 1], bpl
lea rsi, [rsi + 1]
jne 0x1400329f0
lea rcx, [rsi + rdi]
sub rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbx]
lea rbx, [rbx + 1]
mov byte [rcx + rbx - 1], al
test al, al
jne 0x140032a10
mov rcx, rdi
test r14, r14
je 0x140032a32
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140032a38
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1400570ac]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov r14, qword [rsp + 0x48]
mov rax, rbp
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140032ab0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov r15, r9
mov qword [r9], r12
lea r9, [rsp + 0x68]
mov esi, r12d
mov r14d, r12d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test eax, eax
jne 0x140032c30
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x140032c19
mov qword [rsp + 0x58], rdi
nop dword [rax]
cmp dword [rbx + 4], 2
jne 0x140032bb0
cmp qword [rbx + 0x20], r12
je 0x140032bb0
cmp qword [rbx + 0x10], 0x10
jb 0x140032bb0
mov ecx, Ordinal_50
call qword [fcn.140058128]
mov rdi, rax
test rax, rax
je 0x140032be9
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + reloc.WS2_32.dll_recv], 0x10
mov dword [rax + 0xc], ecx
mov ecx, reloc.WS2_32.dll_recv
mov qword [rax + 0x20], r12
mov qword [rax + 0x18], r12
mov qword [rax + 0x28], r12
call qword [fcn.140058128]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140032bd9
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140032b9d
call qword [str.Ty_a_]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x140032bbf
test rsi, rsi
cmove rsi, rdi
test r14, r14
je 0x140032bad
mov qword [r14 + 0x28], rdi
mov r14, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140032b00
jmp 0x140032bee
mov rcx, qword [rdi + 0x20]
mov ebp, 8
call qword [fcn.1400570ac]
mov rcx, rdi
call qword [fcn.1400570ac]
jmp 0x140032bee
mov rcx, rdi
mov ebp, 8
call qword [fcn.1400570ac]
jmp 0x140032bee
mov ebp, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x58]
test rcx, rcx
je 0x140032c03
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x140032c14
mov rcx, rsi
call fcn.140032a60
mov rsi, r12
jmp 0x140032c26
test rsi, rsi
jne 0x140032c26
mov ebp, 0x2af9
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov qword [r15], rsi
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret

Function at 0x140034190
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call fcn.140059b18
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret