joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x79], 0
je 0x14001b654
xor eax, eax
jmp 0x14001b87d
mov r8, qword [rcx + 0x48]
mov r9, qword [rcx + 0x50]
test byte [rcx], 1
je 0x14001b68f
lea rdx, [rcx + 8]
mov rax, qword [rcx + 0x58]
cmp qword [rcx + 0x38], 0xffffffffffffffff
mov rdi, rcx
mov rcx, qword [rcx + 0x60]
je 0x14001b7c6
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
jmp 0x14001b7d5
cmp byte [rcx + 0x1a], 0
je 0x14001b6af
mov rsi, r8
xor eax, eax
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
jne 0x14001b815
jmp 0x14001b847
mov rax, qword [rcx + 8]
movzx edx, byte [rcx + 0x18]
jmp 0x14001b6c7
add rax, r10
mov qword [rcx + 8], rax
mov r10d, edx
xor dl, 1
test rax, rax
je 0x14001b6f6
cmp rax, r9
jae 0x14001b6f0
cmp byte [r8 + rax], 0xbf
jg 0x14001b6f6
jmp 0x14001b885
jne 0x14001b885
cmp rax, r9
je 0x14001b7ee
movzx ebx, byte [r8 + rax]
movzx r11d, bl
test r11b, r11b
jns 0x14001b770
mov esi, r11d
and esi, 0x1f
movzx edi, byte [r8 + rax + 1]
and edi, 0x3f
cmp r11b, 0xdf
jbe 0x14001b75a
movzx r11d, byte [r8 + rax + 2]
shl edi, 6
and r11d, 0x3f
or r11d, edi
cmp bl, 0xf0
jb 0x14001b7b2
movzx edi, byte [r8 + rax + 3]
and esi, 7
shl esi, 0x12
shl r11d, 6
and edi, 0x3f
or edi, r11d
or edi, esi
mov r11d, edi
test r10b, 1
je 0x14001b776
jmp 0x14001b7be
shl esi, 6
or esi, edi
mov r11d, esi
nop word cs:[rax + rax]
test r10b, 1
jne 0x14001b7be
mov r10d, 1
cmp r11d, 0x80
jb 0x14001b6c0
mov r10d, 2
cmp r11d, 0x800
jb 0x14001b6c0
cmp r11d, 0x10000
mov r10d, 4
sbb r10, 0
jmp 0x14001b6c0
shl esi, 0xc
or r11d, esi
test r10b, 1
je 0x14001b776
mov byte [rcx + 0x18], dl
mov r9, rax
jmp 0x14001b7f7
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x38]
mov rsi, r8
call fcn.14001b3c0
mov rcx, rdi
test byte [rsp + 0x38], 1
jne 0x14001b815
jmp 0x14001b847
mov byte [rcx + 0x18], dl
test r10b, 1
je 0x14001b832
mov rsi, r8
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r9
mov eax, 1
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
je 0x14001b847
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov r9, qword [rcx + 0x68]
sub rdx, r9
mov rax, rsi
add rax, r9
mov qword [rcx + 0x68], r8
jmp 0x14001b87d
mov rsi, r8
mov byte [rcx + 0x1a], 1
xor eax, eax
mov qword [rsp + 0x38], rax
test byte [rsp + 0x38], 1
jne 0x14001b815
cmp byte [rcx + 0x79], 0
jne 0x14001b64d
mov byte [rcx + 0x79], 1
cmp byte [rcx + 0x78], 1
jne 0x14001b865
mov rax, qword [rcx + 0x68]
mov rdx, qword [rcx + 0x70]
jmp 0x14001b876
mov rax, qword [rcx + 0x68]
mov rdx, qword [rcx + 0x70]
cmp rdx, rax
je 0x14001b64d
sub rdx, rax
add rax, qword [rcx + 0x48]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rcx + 0x18], dl
lea rcx, [0x140045980]
mov qword [rsp + 0x20], rcx
mov rcx, r8
mov rdx, r9
mov r8, rax
call fcn.140042f30
int3
Function at 0x14001c310
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r8
mov rdi, rcx
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x14001c385
cmp rax, 1
jne 0x14001c3c2
test rsi, rsi
je 0x14001c407
js 0x14001c50f
mov r14, rdx
movzx ebp, byte [r9]
movzx eax, byte [0x14005a181]
mov ebx, 1
mov edx, 1
mov rcx, rsi
call fcn.140005de0
test rax, rax
je 0x14001c511
cmp rsi, 8
mov rcx, r14
jae 0x14001c42d
xor edx, edx
jmp 0x14001c4e0
test rsi, rsi
je 0x14001c411
js 0x14001c51c
mov r15, rdx
movzx eax, byte [0x14005a181]
mov r14d, 1
mov edx, 1
mov rcx, rsi
call fcn.140005de0
test rax, rax
je 0x14001c51f
mov rbx, rax
mov rdx, r15
jmp 0x14001c416
add rsi, rdx
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.14001ba80
jmp 0x14001c4ff
mov eax, 1
jmp 0x14001c4f4
mov ebx, 1
mov rcx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rdi], rsi
mov qword [rdi + 8], rbx
jmp 0x14001c4fb
movzx r8d, bpl
cmp rsi, 0x20
jae 0x14001c43b
xor edx, edx
jmp 0x14001c496
movabs rdx, 0x7fffffffffffffe0
and rdx, rsi
movd xmm0, r8d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
xor r9d, r9d
nop
movdqu xmm1, xmmword [rcx + r9]
movdqu xmm2, xmmword [rcx + r9 + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rax + r9], xmm1
movdqu xmmword [rax + r9 + 0x10], xmm2
add r9, 0x20
cmp rdx, r9
jne 0x14001c460
cmp rdx, rsi
je 0x14001c4f4
test sil, 0x18
je 0x14001c4e0
mov r9, rdx
movabs rdx, 0x7ffffffffffffff8
and rdx, rsi
movd xmm0, r8d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
nop word cs:[rax + rax]
movq xmm1, qword [rcx + r9]
pxor xmm1, xmm0
movq qword [rax + r9], xmm1
add r9, 8
cmp rdx, r9
jne 0x14001c4c0
cmp rdx, rsi
je 0x14001c4f4
nop
movzx r8d, byte [rcx + rdx]
xor r8b, bpl
mov byte [rax + rdx], r8b
inc rdx
cmp rsi, rdx
jne 0x14001c4e0
mov qword [rdi], rsi
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rsi
mov rax, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
xor ebx, ebx
mov rcx, rbx
mov rdx, rsi
call fcn.140042770
xor r14d, r14d
mov rcx, r14
mov rdx, rsi
call fcn.140042770
int3
Function at 0x14001c690
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 8
mov qword [rbp - 0x18], 0
mov dword [rbp - 4], 0
mov r14, qword [rdx]
mov edi, 8
xor r15d, r15d
xor esi, esi
jmp 0x14001c6fd
mov r13, r12
mov qword [rbp - 0x18], r13
mov r15, r13
mov esi, r12d
lea r8d, [r15*8]
mov dword [rsp + 0x20], 3
mov rcx, r14
mov rdx, rdi
lea r9, [rbp - 4]
call sub.psapi.dll_EnumProcessModulesEx
test eax, eax
je 0x14001c79d
mov r12d, dword [rbp - 4]
cmp r12d, esi
jbe 0x14001c7f9
mov rsi, r12
sub rsi, r15
jbe 0x14001c6f0
mov rax, qword [rbp - 0x28]
sub rax, r15
mov r13, r15
cmp rax, rsi
jae 0x14001c75b
lea rcx, [rbp - 0x28]
mov rdx, r15
mov r8, rsi
call fcn.140040540
mov rdi, qword [rbp - 0x20]
mov r13, qword [rbp - 0x18]
lea rcx, [rdi + r13*8]
cmp rsi, 2
jb 0x14001c78e
mov r8, r15
not r8
add r8, r12
shl r8, 3
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + r13]
sub rax, r15
lea rcx, [rdi + rax*8]
add rcx, 0xfffffffffffffff8
add r13, rsi
dec r13
mov qword [rcx], 0
inc r13
jmp 0x14001c6f3
call fcn.14002a9d0
shl rax, 0x20
or rax, 2
mov rcx, qword [rbp - 0x10]
mov qword [rcx], 0
mov qword [rcx + 8], rax
mov rax, qword [rbp - 0x30]
mov qword [rcx + 0x20], rax
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rcx + 0x10], xmm0
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x14001c7e4
shl rdx, 3
mov r8d, 8
mov rcx, rdi
call fcn.140005df0
mov rax, qword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r14d, r12d
shr r14d, 3
cmp r15, r14
jb 0x14001c902
cmp r12d, 8
jae 0x14001c81b
mov eax, 8
xor ecx, ecx
jmp 0x14001c8d9
mov r15, r14
shl r15, 4
movzx eax, byte [0x14005a181]
mov edx, 8
mov rcx, r15
call fcn.140005de0
test rax, rax
je 0x14001c916
lea rdx, [r14 - 1]
mov ecx, r14d
and ecx, 3
cmp rdx, 3
jae 0x14001c853
xor edx, edx
jmp 0x14001c89f
mov r8d, r14d
and r8d, 0xfffffffc
lea r9, [rax + 0x38]
xor edx, edx
mov r10, qword [rdi + rdx*8]
mov qword [r9 - 0x38], rbx
mov qword [r9 - 0x30], r10
mov r10, qword [rdi + rdx*8 + 8]
mov qword [r9 - 0x28], rbx
mov qword [r9 - 0x20], r10
mov r10, qword [rdi + rdx*8 + 0x10]
mov qword [r9 - 0x18], rbx
mov qword [r9 - 0x10], r10
mov r10, qword [rdi + rdx*8 + 0x18]
mov qword [r9 - 8], rbx
mov qword [r9], r10
add rdx, 4
add r9, 0x40
cmp r8, rdx
jne 0x14001c860
test rcx, rcx
je 0x14001c8d6
lea r8, [rdi + rdx*8]
shl rdx, 4
add rdx, rax
add rdx, 8
shl ecx, 3
xor r9d, r9d
nop dword [rax]
mov r10, qword [r8 + r9]
mov qword [rdx + r9*2 - 8], rbx
mov qword [rdx + r9*2], r10
add r9, 8
cmp rcx, r9
jne 0x14001c8c0
mov rcx, r14
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], rcx
mov qword [rdx], 4
mov rdx, qword [rbp - 0x28]
test rdx, rdx
jne 0x14001c7d2
jmp 0x14001c7e4
lea r8, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinproc_0.6.4_srcprocessmod.rs
mov rcx, r14
mov rdx, r15
call fcn.140042d60
jmp 0x14001c923
mov ecx, 8
mov rdx, r15
call fcn.140042770
ud2
Function at 0x14001d230
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov edx, 8
call sub.advapi32.dll_SystemFunction036
mov rax, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x14001fcd0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14001fd42
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x14001fd08
add rdi, rbx
sub rsi, rbx
je 0x14001fd42
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x14001fd00
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x14001fd00
and ebp, 0x7fffffff
jmp 0x14001fd44
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400222d0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140022370
jmp 0x14002235f
jae 0x14002242f
cmp r8, 0x201
jae 0x140022370
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400223c7
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14002239f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140040b30
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400223f0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002249b
mov r8d, r13d
cmp r12, r8
jne 0x140022350
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400224cf
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002235f
jmp 0x140022370
cmp r14, r8
jb 0x1400224e9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400259f0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140022484
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140005df0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14002246f
jmp 0x140022484
lea rcx, str.internal_error:_entered_unreachable_code_rustc_28a58f2fa7f0c46b8fab8237c02471a915924fe5library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1400429b0
jmp 0x1400224fe
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140042d60
ud2
Function at 0x140025720
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140025787
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140025787
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140025787
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140025787
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test rax, rax
je 0x1400257c9
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400257b5
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x30
pop rbp
ret

Function at 0x1400257e0
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140025847
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140025847
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140025847
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140025847
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test rax, rax
je 0x140025889
mov dword [rbp - 4], r9d
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140025875
xor eax, eax
add rsp, 0x30
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbp
ret
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x30
pop rbp
ret

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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rdx
mov rcx, qword [rcx]
mov rax, qword [rdx + 8]
mov rdi, qword [rdx + 0x10]
sub rax, rdi
cmp rax, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
mov rdx, qword [rdx]
add rdx, rdi
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400258fd
cdqe
add rdi, rax
mov qword [rsi + 0x10], rdi
mov rax, qword [rsi + 0x18]
cmp rax, rdi
cmova rdi, rax
mov qword [rsi + 0x18], rdi
xor eax, eax
jmp 0x140025916
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14002590e
xor eax, eax
jmp 0x140025916
shl rax, 0x20
or rax, 2
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x140025966
movsxd rdx, eax
xor eax, eax
add rsp, 0x20
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140025990
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rcx, qword [rcx]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400259c2
movsxd rdx, eax
xor ecx, ecx
jmp 0x1400259e6
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
xor edx, edx
mov ecx, 0
cmp eax, 0x274a
je 0x1400259e6
shl rax, 0x20
or rax, 2
mov ecx, 1
mov rdx, rax
mov rax, rcx
add rsp, 0x20
pop rbp
ret

Function at 0x14002a690
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x140048400]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002a71f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x14002a72c
xor edx, edx
xor eax, eax
jmp 0x14002a756
cmp eax, 0x103
je 0x14002a760
test eax, eax
js 0x14002a73f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14002a756
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140024a30
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1400207c0
mov ecx, 7
int 0x29
ud2
Function at 0x14002a7b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x140048400]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002a846
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14002a873
test eax, eax
js 0x14002a852
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14002a869
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140024a30
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1400207c0
mov ecx, 7
int 0x29
ud2

Function at 0x14002a8d0
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp byte [rcx], 0
mov eax, 0x17
mov r14d, 2
cmovne r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002a9b0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14002a937
mov esi, eax
cmp eax, 0x2726
jne 0x14002a9a3
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14002a99b
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x14002a9b0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x14002a9b0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14002ccd0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov eax, dword [0x14005a270]
cmp eax, 4
jne 0x14002cdff
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x14002ce25
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.140036a10
test byte [rbp + 0x158], 1
je 0x14002cd6e
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14002cdf0
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x14002cdd1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14002cde9
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.140040df0
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x14002cd25
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.140040f30
jmp 0x14002cdf0

Function at 0x14002ce40
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov eax, 1
test rcx, rcx
jne 0x14002cef0
mov eax, dword [0x14005a270]
cmp eax, 4
jne 0x14002cf19
mov rsi, rdx
mov rcx, rdx
mov edx, 1
call fcn.14002a8d0
test rax, rax
je 0x14002ce85
mov eax, 1
jmp 0x14002cef0
test byte [rsi], 1
je 0x14002cea6
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x14002cebb
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
xorps xmm0, xmm0
mov r8d, 0x10
mov r10w, 2
rol cx, 8
mov word [rbp - 0x1c], r10w
mov word [rbp - 0x1a], cx
mov dword [rbp - 0x18], eax
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], r9d
lea rax, [rbp - 0x1c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002cef8
xor eax, eax
mov rdx, rsi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rdx, rdi
jmp 0x14002ce7e
mov rsi, rdx
call fcn.140040df0
mov rdx, rsi
jmp 0x14002ce69