joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7ca0
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x4e7cf2
mov rsi, rax
lea rdx, [0x005c764e]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4e7cf2
mov rdi, rax
lea rdx, [0x005c765c]
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4e7cf2
mov rbx, rax
xor esi, esi
jmp 0x4e7d76
lea rcx, str.ntdll.dll
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x4e7de4
mov rdi, rax
lea rdx, [0x005c75f2]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4e7de4
mov rbx, rax
lea rdx, [0x005c7605]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4e7de4
mov rsi, rax
lea rdx, [0x005c7619]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x4e7de4
mov rdi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x4e7de4
mov rbx, qword [rsp + 0x20]
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x4e7dfe
mov r14, rax
mov qword [rax], rsi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rbx
xor eax, eax
lock cmpxchg qword [0x006320c8], r14
je 0x4e7dd7
mov rsi, rax
cmp qword [r14], 0
je 0x4e7dc1
mov rcx, qword [r14 + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x18
mov r8d, 8
mov rcx, r14
call fcn.0044f660
mov r14, rsi
mov rax, r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8__home_codespace_.cargo_registry_src_index.crates.io_6f17d22bba15001f_parking_lot_core_0.9.5_src_thread_parker_windows_mod.rs
lea r8, [0x005c7748]
mov edx, 0x5b
call fcn.004e8950
jmp 0x4e7e0d
mov ecx, 8
mov edx, 0x18
call fcn.00578c70
ud2
Function at 0x4e84a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x4e7234
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x4e7249
mov rdi, rax
cmp qword [rax + 8], 0
je 0x4e7249
add rdi, 8
jmp 0x4e7373
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x4e7221
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x4e7358
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4e7371
mov rdi, rax
test rax, rax
jne 0x4e72d8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov rax, qword [0x005f7f18]
movzx eax, byte [rax]
mov ecx, 0x40
mov edx, 8
call fcn.0044f650
test rax, rax
je 0x4e738d
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
movups xmm3, xmmword [rsp + 0x50]
movups xmmword [rax + 0x30], xmm3
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [rbx + 0x18]
test ecx, ecx
je 0x4e737e
dec ecx
mov rdx, rdi
call fcn.005ab204
add rdi, 8
test rsi, rsi
je 0x4e7312
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x4e7312
movups xmm0, xmmword [rsi + 8]
movups xmm1, xmmword [rsi + 0x18]
movups xmm2, xmmword [rsi + 0x28]
movups xmmword [rsp + 0x48], xmm2
movups xmmword [rsp + 0x38], xmm1
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
jmp 0x4e731c
lea rcx, [rsp + 0x20]
call fcn.004e81e0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm1
mov rdx, qword [rsp + 0x50]
mov qword [rdi + 0x30], rdx
cmp qword [rdi], 0
mov qword [rdi], rax
mov qword [rdi + 8], rcx
je 0x4e7373
lock dec qword [0x006320d0]
jmp 0x4e7373
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x4e7265
xor edi, edi
mov rax, rdi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.0053fd10
mov ecx, eax
jmp 0x4e72d0
mov ecx, 8
mov edx, 0x40
call fcn.00578c70
ud2
mov rdx, rcx
lea rcx, [0x005ae758]
jmp 0x4e7200

Function at 0x4e8970
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4e8987
dec ecx
jmp 0x4e8991
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
mov edx, 1
call fcn.005ab204
cmp qword [rdi + 8], 0
je 0x4e89aa
lock dec qword [0x006320d0]
mov edx, 0x40
mov r8d, 8
mov rcx, rdi
call fcn.0044f660
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4e89c8
dec ecx
jmp 0x4e89d2
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.005ab204
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x4eaea0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx]
mov rsi, qword [rdi]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4eaeb7
dec ecx
jmp 0x4eaec1
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
mov edx, 1
call fcn.005ab204
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x4eaeef
dec qword [rcx]
jne 0x4eaeef
dec qword [rcx + 8]
jne 0x4eaeef
mov edx, 0x170
mov r8d, 0x10
call fcn.0044f660
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call fcn.0044f660
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x4eaf0d
dec ecx
jmp 0x4eaf17
mov rcx, rsi
call fcn.0053fd10
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.005ab204
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x4f0470
Capabilities:
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
test rdx, rdx
je 0x4f04c9
mov rdx, rcx
mov ebx, 0xffffffff
xor esi, esi
nop dword [rax + rax]
test rdi, rdi
je 0x4f04cb
cmp rdi, rbx
mov r8d, 0xffffffff
cmovb r8, rdi
sub rdi, r8
lea r14, [rdx + r8]
xor ecx, ecx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
mov rdx, r14
cmp eax, 0xc0000000
jb 0x4f0490
add eax, 0x80000000
mov esi, eax
jmp 0x4f04cb
xor esi, esi
mov eax, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x513a10
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x513a90
jmp 0x513a7f
jae 0x513b34
cmp r8, 0x201
jae 0x513a90
mov r12d, 0x200
lea r13, [rsp + 0x68]
mov rbp, r8
jmp 0x513ad7
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x513ab7
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.004feae0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, r15
mov r13, qword [rsp + 0x20]
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r13
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x513afb
call fcn.005ab3f4
test eax, eax
jne 0x513b92
mov r8d, ebx
cmp rbp, r8
jne 0x513a70
call fcn.005ab3f4
cmp eax, 0x7a
jne 0x513bb2
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x513a7f
jmp 0x513a90
cmp r12, r8
jb 0x513bcc
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.00521530
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x513b7b
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call fcn.0044f660
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.005ab3f4
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x513b65
jmp 0x513b7b
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.00587f10
jmp 0x513be1
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.0058e5d0
ud2
Function at 0x520310
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
mov r9d, 2
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x520346
cdqe
jmp 0x520354
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x52035c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x52036d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x5206f6
cdqe
jmp 0x520704
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x52070c
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x52071d
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rsp + 0x3c]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x38]
mov rdx, rax
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x520825
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x520836
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x520849
mov eax, dword [rsp + 0x38]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x520849
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x40
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x52089c
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x5208b2
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x40
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
mov rcx, qword [rcx]
mov r8d, 0xffffffff
cmp r9, r8
cmovb r8, r9
mov dword [rsp + 0x3c], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rdx, rax
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x520914
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x52092a
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x5212f0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x5212f0
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xc
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x521339
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

Function at 0x5213a0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x5213a0
push rsi
sub rsp, 0x30
mov rcx, qword [rcx]
mov eax, dword [rdx]
mov edx, dword [r8]
shl rdx, 0x20
or rdx, rax
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 8
xor esi, esi
lea r9, [rsp + 0x28]
xor edx, edx
mov r8d, 0xd
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x5213e9
call sub.WS2_32.dll_WSAGetLastError
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rax, rsi
add rsp, 0x30
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x521489
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x52149f
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x5214e3
cdqe
jmp 0x5214f1
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x5214f9
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x52150a
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x526f60
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, qword [rcx + 0x30]
jns 0x526f9a
Function at 0x52a2a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1078
call fcn.005ab110
sub rsp, rax
movaps xmmword [rsp + 0x1060], xmm6
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
lea r13, [rsp + 0x34]
mov qword [rsp + 0x58], r13
lea rbp, [0x00538c90]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x52a435
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x60]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x52a333
cmp dword [rsp + 0x38], 0
jne 0x52a43a
mov r15d, dword [rsp + 0x3c]
test r15, r15
je 0x52a43a
cmp r15d, 0x1000
ja 0x52a47a
xor r12d, r12d
nop word cs:[rax + rax]
cmp r12, r15
ja 0x52a466
lea rdx, [rsp + r12]
add rdx, 0x60
mov r8d, r15d
sub r8d, r12d
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rsi
mov r9, rbx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x52a435
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x34], 0
je 0x52a3d0
cmp dword [rsp + 0x38], 0
jne 0x52a43a
mov eax, dword [rsp + 0x3c]
add r12, rax
cmp r12, r15
jne 0x52a380
mov dword [rsp + 0x34], 0
movaps xmmword [rsp + 0x40], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x20], rbp
mov rcx, rdi
mov rdx, r14
mov r8d, 0x1000
mov r9, rbx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x52a333
call fcn.005ab3f4
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1060]
add rsp, 0x1078
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.0058e650
jmp 0x52a48e
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.0058e5d0
ud2
Function at 0x533f30
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x005d0210]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x533f74
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x533fd1
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x533fe0
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x534017
cmp eax, 0x103
je 0x534021
test eax, eax
js 0x533ffd
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x534017
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x005d0278]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.0051edc0
mov rcx, rax
call fcn.004f4f30
mov ecx, 7
int 0x29
ud2

Function at 0x534080
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x005d0210]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x5340c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x534128
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x53415e
test eax, eax
js 0x534139
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x534151
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x005d0278]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.0051edc0
mov rcx, rax
call fcn.004f4f30
mov ecx, 7
int 0x29
ud2
Function at 0x5347d0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x534824
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x5348ba
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x534837
cmp eax, 0x2739
jne 0x534885
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call sub.WS2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x534880
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x53489a
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x5348ba
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x5348ba
call fcn.005ab3f4
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call fcn.005ab644
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x5348d0
Capabilities:
Connect socket
Enumerate pe sections
Set socket configuration

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov ebp, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov dword [rsp + 0x38], 1
mov rbx, qword [rcx]
lea r8, [rsp + 0x38]
mov rcx, rbx
mov edx, 0x8004667e
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x53492e
cmp word [rsi], 0
je 0x534942
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
sbb al, 0x41
mov eax, 0x1c
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
jmp 0x534bb4
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r9w, 2
mov r9d, 0x570f0002
invalid
Function at 0x534ff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov r10, r8
mov rsi, rcx
mov eax, dword [rsp + 0x110]
pxor xmm0, xmm0
movdqa xmmword [rsp + 0xc0], xmm0
movdqa xmmword [rsp + 0xb0], xmm0
movdqa xmmword [rsp + 0xa0], xmm0
movdqa xmmword [rsp + 0x90], xmm0
movdqa xmmword [rsp + 0x80], xmm0
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x34], pe_nt_image_headers64
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov rcx, rdx
mov rdx, r10
mov r9d, eax
call sub.WS2_32.dll_recvfrom
cmp eax, 0xffffffff
je 0x5350c7
mov ecx, dword [rsp + 0x34]
movzx edx, word [rsp + 0x50]
cmp edx, 0x17
je 0x535121
cmp edx, 2
jne 0x535115
cmp ecx, 0xf
jbe 0x535235
movzx ecx, word [rsp + 0x52]
rol cx, 8
mov edx, dword [rsp + 0x54]
mov word [rsp + 0x3c], cx
mov dword [rsp + 0x38], edx
xor r11d, r11d
jmp 0x53516b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x53519d
mov eax, dword [rsp + 0x34]
movzx ecx, word [rsp + 0x50]
cmp ecx, 0x17
je 0x5351b0
cmp ecx, 2
jne 0x535115
cmp eax, 0xf
jbe 0x535235
movzx eax, word [rsp + 0x52]
rol ax, 8
mov ecx, dword [rsp + 0x54]
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x38], ecx
xor r10d, r10d
jmp 0x5351f9
lea rax, str.invalid_argument
jmp 0x5351a5
cmp ecx, 0x1b
jbe 0x53524f
movzx ecx, word [rsp + 0x52]
rol cx, 8
movdqu xmm0, xmmword [rsp + 0x58]
mov r8d, dword [rsp + 0x54]
mov edx, dword [rsp + 0x68]
movq r10, xmm0
pshufd xmm1, xmm0, 0xee
movq r9, xmm1
shld r9, r10, 0x20
movdqu xmmword [rsp + 0x3a], xmm0
pshufd xmm0, xmm0, 0xff
movd r10d, xmm0
mov r11w, 1
cdqe
movzx edi, word [rsp + 0x3c]
mov word [rsi + 0xe], di
mov edi, dword [rsp + 0x38]
mov dword [rsi + 0xa], edi
mov qword [rsi], rax
mov word [rsi + 8], r11w
mov qword [rsi + 0x10], r9
mov dword [rsi + 0x18], r10d
mov dword [rsi + 0x1c], r8d
mov dword [rsi + 0x20], edx
mov word [rsi + 0x24], cx
jmp 0x53522b
shl rax, 0x20
or rax, 2
mov qword [rsi], rax
mov word [rsi + 8], 2
jmp 0x53522b
cmp eax, 0x1b
jbe 0x53524f
movzx eax, word [rsp + 0x52]
rol ax, 8
movdqu xmm0, xmmword [rsp + 0x58]
mov edx, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x68]
movq r9, xmm0
pshufd xmm1, xmm0, 0xee
movq r8, xmm1
shld r8, r9, 0x20
movdqu xmmword [rsp + 0x3a], xmm0
pshufd xmm0, xmm0, 0xff
movd r9d, xmm0
mov r10w, 1
movzx r11d, word [rsp + 0x3c]
mov word [rsi + 0xe], r11w
mov r11d, dword [rsp + 0x38]
mov dword [rsi + 0xa], r11d
mov qword [rsi], 0
mov word [rsi + 8], r10w
mov qword [rsi + 0x10], r8
mov dword [rsi + 0x18], r9d
mov dword [rsi + 0x1c], edx
mov dword [rsi + 0x20], ecx
mov word [rsi + 0x24], ax
add rsp, 0xd8
pop rdi
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___library_std_src_sys_common_net.rs
lea r8, [0x005d1650]
mov edx, 0x42
call fcn.00587f10
ud2
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, [0x005d16b0]
mov edx, 0x43
call fcn.00587f10
ud2