joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140292850
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x38
cmp byte [rcx], 0
mov eax, 0x17
mov ecx, 2
cmovne ecx, eax
mov eax, dword [0x14046c4fc]
cmp eax, 3
jne 0x1402928cc
xor r8d, r8d
call qword [sym.imp.ws2_32.dll_socket]
cmp rax, 0xffffffffffffffff
je 0x14029291f
mov rsi, rax
mov dword [rsp + 0x2c], 1
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
je 0x1402928c8
call fcn.1402b9b20
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov eax, 1
mov rsi, rdi
jmp 0x140292933
xor eax, eax
jmp 0x140292933
mov byte [rsp + 0x2b], 1
lea rax, [rsp + 0x2b]
mov qword [rsp + 0x30], rax
lea rax, str.C:Users_runneradmin.cargo_registry_srcindex.crates.io_6f17d22bba15001fmio_1.0.2_src_syswindows_net.rs
mov qword [rsp + 0x20], rax
lea rax, [0x14046c4fc]
lea r9, [0x1403c39c8]
lea r8, [rsp + 0x30]
mov esi, ecx
mov rcx, rax
mov edi, edx
xor edx, edx
call fcn.1402e6d00
mov ecx, esi
mov edx, edi
xor r8d, r8d
call qword [sym.imp.ws2_32.dll_socket]
cmp rax, 0xffffffffffffffff
jne 0x140292884
call fcn.1402b9b20
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov eax, 1
mov rdx, rsi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x1402a3040
Capabilities:
Manipulate console buffer

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
cmp byte [rcx + 8], 0
je 0x1402a310a
inc rdi
mov qword [rbp + 0x10], rdi
inc rsi
mov qword [rbp + 8], rsi
lea rax, [rbp + 0x10]
mov qword [rbp - 0x60], rax
lea rax, [fcn.1402d7690]
mov qword [rbp - 0x58], rax
lea rdx, [rbp + 8]
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rax
lea rax, str._v__
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 3
mov qword [rbp - 0x20], 0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 2
lea rax, [rbp - 0x10]
lea rdx, [rbp - 0x40]
mov rsi, rcx
mov rcx, rax
call fcn.1402cd1b0
mov rdx, qword [rbp - 8]
mov r8, qword [rbp]
mov rcx, rsi
mov qword [rbp + 0x18], rdx
call fcn.1402a1ab0
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x1402a3150
mov r8d, 1
mov rcx, qword [rbp + 0x18]
mov rsi, rax
call fcn.1400b33e0
mov rax, rsi
jmp 0x1402a3150
mov rax, qword [rcx]
movzx ecx, byte [rax + 0x62]
xor ecx, 0xfffffff5
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rbx, rax
xorps xmm0, xmm0
movaps xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x32], 0
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1402a314e
shl edi, 0x10
movzx edx, si
or edx, edi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
xor eax, eax
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402a3380
Capabilities:
Manipulate console buffer

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
cmp byte [rcx + 8], 0
je 0x1402a33ac
lea rdx, str._re_2Ke__25he__25l
mov r8d, 5
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.1402a1ab0
mov rax, qword [rcx]
movzx ecx, byte [rax + 0x62]
xor ecx, 0xfffffff5
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rsi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x3e], 0
lea rdi, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1402a343f
movzx ebx, word [rsp + 0x38]
movzx eax, word [rsp + 0x3e]
movzx ebp, word [rsp + 0x36]
shl ebp, 0x10
sub ax, word [rsp + 0x3a]
mov dword [rsp + 0x30], 0
movsx r14d, ax
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov dl, 0x20
mov r8d, r14d
mov r9d, ebp
call qword [sym.imp.kernel32.dll_FillConsoleOutputCharacterA]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov edx, ebx
mov r8d, r14d
mov r9d, ebp
call qword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
mov rcx, rsi
mov edx, ebp
call qword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
xor eax, eax
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1402a3450
Capabilities:
Manipulate console buffer

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
cmp byte [rcx + 8], 0
je 0x1402a346f
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp 0x1402a5910
mov r14, rdx
mov rax, qword [rcx]
movzx ecx, byte [rax + 0x62]
xor ecx, 0xfffffff5
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rsi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x3e], 0
lea rdi, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x1402a3513
movzx eax, word [rsp + 0x34]
movzx ebx, word [rsp + 0x38]
movzx ecx, word [rsp + 0x36]
shl ecx, 0x10
cmp ax, r14w
cmovl r14d, eax
sub eax, r14d
mov dword [rsp + 0x30], 0
movsx ebp, r14w
movzx r14d, ax
or r14d, ecx
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov dl, 0x20
mov r8d, ebp
mov r9d, r14d
call qword [sym.imp.kernel32.dll_FillConsoleOutputCharacterA]
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov edx, ebx
mov r8d, ebp
mov r9d, r14d
call qword [sym.imp.kernel32.dll_FillConsoleOutputAttribute]
mov rcx, rsi
mov edx, r14d
call qword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
xor eax, eax
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
push rbp
push rsi
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rbp], rdx
test rdx, rdx
je 0x1402a59b7
mov rsi, rcx
mov rax, rbp
mov qword [rbp - 0x28], rax
lea rax, [fcn.1402d7690]
mov qword [rbp - 0x20], rax
lea rax, str.__
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 1
lea rcx, [rbp - 0x18]
lea rdx, [rbp - 0x58]
call fcn.1402cd1b0
mov rdx, qword [rbp - 0x10]
mov r8, qword [rbp - 8]
mov rcx, rsi
mov qword [rbp + 8], rdx
call fcn.1402a1ab0
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1402a59b9
mov r8d, 1
mov rcx, qword [rbp + 8]
mov rsi, rax
call fcn.1400b33e0
mov rax, rsi
jmp 0x1402a59b9
xor eax, eax
add rsp, 0x98
pop rsi
pop rbp
ret

Function at 0x1402ad400
Capabilities:
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [rbp - 0x10]
xor eax, eax
test rcx, rcx
sete al
lea rdx, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
cmovne rdx, rcx
add rsp, 0x50
pop rbp
ret
Function at 0x1402ad440
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 0x1402ad4e0
jmp 0x1402ad4cf
jae 0x1402ad5ae
cmp r8, 0x201
jae 0x1402ad4e0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1402ad546
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1402ad51e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.1402e6700
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 0x1402ad56f
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1402ad61a
mov r8d, r13d
cmp r12, r8
jne 0x1402ad4c0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1402ad64e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1402ad4cf
jmp 0x1402ad4e0
cmp r14, r8
jb 0x1402ad668
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1402b10e0
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 0x1402ad603
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400b33e0
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 0x1402ad5ee
jmp 0x1402ad603
lea rcx, str.internal_error:_entered_unreachable_code8
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1402e7d50
jmp 0x1402ad67d
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1402e81e0
ud2
Function at 0x1402b0ce0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140277888
add rcx, 0x18
add rsp, 0x28
jmp 0x14028e990
lea rcx, [0x1403c0af8]
call fcn.1402e7c30
int3
jmp 0x1402b0ce0
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rbp - 4], eax
mov dword [rsp + 0x20], 4
lea r9, [rbp - 4]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1402b0d1d
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

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

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

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

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, qword [rcx]
mov rcx, qword [rax]
cmp r8, 0x7fffffff
mov eax, 0x7fffffff
cmovae r8, rax
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x1402b0de9
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 0x1402b0e10
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov rax, qword [rcx]
mov rcx, qword [rax]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp + 4], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 4]
call qword [sym.imp.ws2_32.dll_WSASend]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1402b0e63
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
xor ecx, ecx
cmp esi, 0xffffffff
sete cl
mov edx, dword [rbp + 4]
cmove rdx, rax
mov rax, rcx
add rsp, 0x48
pop rsi
pop rbp
ret
Function at 0x1402b51d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10c8
call fcn.1402d8140
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1030], xmm6
mov qword [rbp + 0x1028], 0xfffffffffffffffe
mov rsi, rdx
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea rbx, [0x1402bafe0]
lea r12, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov r15, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
lea rdx, [rbp - 0x50]
call fcn.1402baf00
mov r14, rdx
test rax, rax
jne 0x1402b536c
test r14, r14
je 0x1402b533c
cmp r14, 0x1000
ja 0x1402b5410
xor r13d, r13d
nop dword [rax + rax]
cmp r13, r14
ja 0x1402b53e7
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xff4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea rax, [rbp + 0xff4]
mov qword [rbp + 0xfc8], rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r12
call rdi
test eax, eax
je 0x1402b5336
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff4], 1
jne 0x1402b5300
cmp dword [rbp + 0xff8], 0
jne 0x1402b533c
mov eax, dword [rbp + 0xffc]
add r13, rax
cmp r13, r14
jne 0x1402b52a0
jmp 0x1402b524b
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1020]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1030]
add rsp, 0x10c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x1402b533c
mov rax, r14
dec rax
mov qword [rbp + 0xfe8], rax
mov rax, qword [r14 - 1]
mov qword [rbp + 0x1000], rax
mov rax, qword [r14 + 7]
mov qword [rbp + 0x1008], rax
mov rax, qword [rax]
test rax, rax
je 0x1402b53ab
mov rcx, qword [rbp + 0x1000]
call rax
mov rcx, qword [rbp + 0x1000]
mov rax, qword [rbp + 0x1008]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1402b53cb
mov r8, qword [rax + 0x10]
call fcn.1400b33e0
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0xfe8]
call fcn.1400b33e0
jmp 0x1402b533c
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.1402e8250
jmp 0x1402b5439
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.1402e81e0
ud2
Function at 0x1402b95d0
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 [0x1403cccc0]
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 0x1402b965f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0xc0000011
jne 0x1402b966c
xor edx, edx
xor eax, eax
jmp 0x1402b9696
cmp eax, 0x103
je 0x1402b96a0
test eax, eax
js 0x1402b967f
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1402b9696
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, [0x1403ccd28]
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.1402b0170
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1402a79a0
mov ecx, 7
int 0x29
ud2

Function at 0x1402b96f0
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 [0x1403cccc0]
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 0x1402b9786
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1402b97b3
test eax, eax
js 0x1402b9792
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x1402b97a9
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, [0x1403ccd28]
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.1402b0170
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.1402a79a0
mov ecx, 7
int 0x29
ud2
Function at 0x1402b9810
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 0x1402b98f0
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x1402b9877
mov esi, eax
cmp eax, 0x2726
jne 0x1402b98e3
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 0x1402b98db
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 0x1402b98f0
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 0x1402b98f0
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 0x1402b9910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov r10, r8
mov rsi, rcx
mov eax, dword [rbp + 0x80]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp + 0x3c], 0x80
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rbp + 0x3c]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call qword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x1402b99c5
mov ecx, dword [rbp + 0x3c]
movzx edx, word [rbp - 0x50]
cmp edx, 0x17
je 0x1402b9a1a
cmp edx, 2
jne 0x1402b9a11
cmp ecx, 0xf
jbe 0x1402b9ae0
mov ecx, dword [rbp - 0x4c]
movzx edx, word [rbp - 0x4e]
rol dx, 8
movzx edx, dx
shl rdx, 0x20
or rdx, rcx
xor edi, edi
jmp 0x1402b9a46
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1402b9a70
mov eax, dword [rbp + 0x3c]
movzx ecx, word [rbp - 0x50]
cmp ecx, 0x17
je 0x1402b9a83
cmp ecx, 2
jne 0x1402b9a11
cmp eax, 0xf
jbe 0x1402b9ae0
mov eax, dword [rbp - 0x4c]
movzx ecx, word [rbp - 0x4e]
rol cx, 8
movzx ecx, cx
shl rcx, 0x20
or rcx, rax
xor r11d, r11d
jmp 0x1402b9aab
lea rax, str.invalid_argument
jmp 0x1402b9a78
cmp ecx, 0x1b
jbe 0x1402b9af8
movzx ecx, word [rbp - 0x4e]
rol cx, 8
mov r9d, dword [rbp - 0x4c]
mov r8d, dword [rbp - 0x38]
mov edx, dword [rbp - 0x48]
shl rdx, 0x10
mov r11, qword [rbp - 0x44]
mov di, 1
mov r10d, dword [rbp - 0x3c]
cdqe
mov qword [rsi], rax
mov word [rsi + 8], di
mov dword [rsi + 0xa], edx
shr rdx, 0x20
mov word [rsi + 0xe], dx
mov qword [rsi + 0x10], r11
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r9d
mov dword [rsi + 0x20], r8d
mov word [rsi + 0x24], cx
jmp 0x1402b9ad5
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x1402b9ad5
cmp eax, 0x1b
jbe 0x1402b9af8
movzx eax, word [rbp - 0x4e]
rol ax, 8
mov r8d, dword [rbp - 0x4c]
mov edx, dword [rbp - 0x38]
mov ecx, dword [rbp - 0x48]
shl rcx, 0x10
mov r10, qword [rbp - 0x44]
mov r11w, 1
mov r9d, dword [rbp - 0x3c]
mov qword [rsi], 0
mov word [rsi + 8], r11w
mov dword [rsi + 0xa], ecx
shr rcx, 0x20
mov word [rsi + 0xe], cx
mov qword [rsi + 0x10], r10
mov dword [rsi + 0x18], r9d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], ax
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in___std_src_sys_common_net.rs
lea r8, [0x1403cd948]
mov edx, 0x39
call fcn.1402e7d50
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, [0x1403cd9a0]
mov edx, 0x3a
call fcn.1402e7d50
int3
Function at 0x1402ba0c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, rdx
mov qword [rbp - 8], rcx
movzx r15d, byte [rdx + 0x18]
mov byte [rdx + 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 2
mov qword [rbp - 0x10], 0
mov r12, qword [rdx + 8]
movzx esi, word [rdx + 0x10]
mov eax, 2
xor edi, edi
xor r13d, r13d
jmp 0x1402ba12c
mov word [rax + rdi*2], r14w
inc rdi
mov qword [rbp - 0x10], rdi
mov rdx, qword [rbx]
mov r14d, esi
test si, si
jne 0x1402ba1d0
nop dword [rax + rax]
cmp rdx, r12
je 0x1402ba28f
lea rcx, [rdx + 1]
mov qword [rbx], rcx
movzx r9d, byte [rdx]
movzx r14d, r9b
test r14b, r14b
jns 0x1402ba1fa
mov r8d, r14d
and r8d, 0x1f
lea rcx, [rdx + 2]
mov qword [rbx], rcx
movzx r10d, byte [rdx + 1]
and r10d, 0x3f
cmp r14b, 0xdf
jbe 0x1402ba1f0
lea rcx, [rdx + 3]
mov qword [rbx], rcx
movzx r14d, byte [rdx + 2]
shl r10d, 6
and r14d, 0x3f
or r14d, r10d
cmp r9b, 0xf0
jb 0x1402ba218
lea rcx, [rdx + 4]
mov qword [rbx], rcx
movzx edx, byte [rdx + 3]
and r8d, 7
shl r8d, 0x12
shl r14d, 6
and edx, 0x3f
or edx, r14d
or edx, r8d
mov r14d, edx
cmp r14d, 0xffff
jbe 0x1402ba1fa
jmp 0x1402ba228
mov word [rbx + 0x10], 0
xor esi, esi
cmp r14w, 0x22
je 0x1402ba206
jmp 0x1402ba260
shl r8d, 6
or r8d, r10d
mov r14d, r8d
xor esi, esi
mov rdx, rcx
cmp r14w, 0x22
jne 0x1402ba260
xor r13b, 1
mov r14d, esi
test si, si
je 0x1402ba140
jmp 0x1402ba1d0
shl r8d, 0xc
or r14d, r8d
cmp r14d, 0xffff
jbe 0x1402ba1fa
lea r8d, [r14 + 0xff0000]
shr r8d, 0xa
or r8d, 0xd800
and r14d, 0x3ff
or r14d, 0xdc00
mov word [rbx + 0x10], r14w
mov rdx, rcx
mov esi, r14d
mov r14d, r8d
cmp r14w, 0x22
je 0x1402ba206
nop dword [rax]
movzx ecx, r14w
cmp ecx, 0x3b
jne 0x1402ba26f
test r13b, 1
je 0x1402ba28b
cmp rdi, qword [rbp - 0x20]
jne 0x1402ba120
lea rcx, [rbp - 0x20]
call fcn.1402ac050
mov rax, qword [rbp - 0x18]
jmp 0x1402ba120
mov byte [rbx + 0x18], 1
test rdi, rdi
setne al
or r15b, al
je 0x1402ba2c8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x40]
mov r8, rdi
call fcn.1402b10e0
movups xmm0, xmmword [rbp - 0x40]
movups xmm1, xmmword [rbp - 0x30]
mov rax, qword [rbp - 8]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jne 0x1402ba2e2
jmp 0x1402ba2f4
movabs rax, 0x8000000000000000
mov rcx, qword [rbp - 8]
mov qword [rcx], rax
mov rdx, qword [rbp - 0x20]
test rdx, rdx
je 0x1402ba2f4
mov rcx, qword [rbp - 0x18]
add rdx, rdx
mov r8d, 2
call fcn.1400b33e0
mov rax, qword [rbp - 8]
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret