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

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x140246540
test al, 1
je 0x1402465d1
test al, 2
jne 0x1402465eb
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x20]
call fcn.14024c3d0
test rax, rax
je 0x14024659a
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x18], rdx
call qword [rdx]
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x14024659a
mov r8, qword [rax + 0x10]
call fcn.1400590f0
mov rcx, qword [rbp + 0x20]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x140246605
jne 0x1402465c7
mov rcx, qword [rbp + 0x20]
call fcn.140246090
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140356650]
mov edx, 0x23
call fcn.1402dbed0
ud2
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140356610]
mov edx, 0x25
call fcn.1402dbed0
ud2
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1402cd5a0]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:_hf5_
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], 2
lea rdx, [0x140356698]
lea rcx, [rbp - 0x58]
call fcn.1402dbe30
ud2

Function at 0x14024c610
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x14024c810
Capabilities:
Connect socket

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.1402a8290
mov r8d, dword [rsi + 0x80]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x14024c847
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x20
pop rsi
ret
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x14024c850
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1402a8290
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
lea r8, [rsp + 0x2c]
mov rcx, rax
mov edx, 0x8004667e
call qword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14024c883
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14024c8a0
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14024c8a0
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1402a8290
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1002
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14024c8df
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x14024c900
Capabilities:
Set socket configuration

Disassembly:
jmp 0x14024c900
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1402a8290
movzx ecx, bl
mov dword [rsp + 0x2c], ecx
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14024c941
xor eax, eax
add rsp, 0x30
pop rbx
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret

Function at 0x14024c960
Capabilities:
Set socket configuration

Disassembly:
mov edx, edx
jmp 0x14024c960
push rsi
sub rsp, 0x30
mov rsi, rdx
call fcn.1402a8290
mov dword [rsp + 0x2c], esi
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x2c]
mov rcx, rax
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14024c99f
xor eax, eax
add rsp, 0x30
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rsi
ret

Function at 0x14024c9c0
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
call fcn.1402a8290
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov rcx, rax
mov edx, 0xffff
mov r8d, 8
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14024caf8
mov rcx, rdi
call fcn.1402a8290
mov rcx, rax
mov r10d, dword [rsi + 8]
xor r8d, r8d
mov r9d, 0
cmp r10d, 0x3b9aca00
je 0x14024ca59
mov eax, 0x3e8
mul qword [rsi]
mov r9d, r10d
imul r10, r9, 0x431bde83
shr r10, 0x32
add r10, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r10, rax
cmovae r10, rax
xor r9d, r9d
neg rdx
sbb r9d, r9d
or r9d, r10d
mov r10d, dword [rsi + 0x18]
cmp r10d, 0x3b9aca00
je 0x14024ca9c
mov eax, 0x3e8
mul qword [rsi + 0x10]
mov r8d, r10d
imul r10, r8, 0x431bde83
shr r10, 0x32
add r10, rax
adc rdx, 0
mov eax, 0xffffffff
cmp r10, rax
cmovae r10, rax
xor r8d, r8d
neg rdx
sbb r8d, r8d
or r8d, r10d
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], r9d
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x54], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x48]
mov edx, 0x98000004
mov r9d, 0xc
call qword [sym.imp.ws2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x14024caf8
xor eax, eax
jmp 0x14024cb05
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140278540
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp byte [rdx], 9
jne 0x140278573
mov rdi, rdx
lea rcx, [rdx + 1]
lea rdx, [0x140393621]
mov r8d, 0x27
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1402785a9
movups xmm0, xmmword [0x140393630]
movups xmmword [rsi + 0x14], xmm0
movups xmm0, xmmword [0x140393620]
movups xmmword [rsi + 4], xmm0
mov qword [rsi + 0x24], 0
mov dword [rsi], 5
mov rax, rsi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.14027b330
mov eax, dword [rsp + 0x28]
cmp eax, 6
jne 0x14027864b
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov ebp, dword [rsp + 0x40]
movzx r12d, byte [rsp + 0x48]
movzx r14d, byte [rsp + 0x49]
movzx r15d, byte [rsp + 0x4a]
lea rcx, [rsp + 0x28]
call fcn.14027c500
cmp r12b, byte [rsp + 0x40]
jne 0x140278640
cmp r12d, 0x16
je 0x140278606
cmp r12d, 0x15
je 0x140278606
cmp r12d, 0x14
jne 0x14027861f
test r15b, r15b
sete al
cmp byte [rsp + 0x42], 0
setne cl
cmp al, cl
je 0x140278640
cmp r14b, byte [rsp + 0x41]
jne 0x140278640
cmp ebp, dword [rsp + 0x38]
jne 0x140278640
cmp rdi, qword [rsp + 0x30]
jne 0x140278640
mov rdx, qword [rsp + 0x28]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14027869a
mov dword [rsi], 4
jmp 0x140278597
mov ecx, dword [rsp + 0x2c]
movups xmm0, xmmword [rsp + 0x30]
movzx edx, word [rsp + 0x48]
movzx r8d, byte [rsp + 0x4a]
movzx r9d, byte [rsp + 0x4f]
mov byte [rsi + 0x27], r9b
mov r9d, dword [rsp + 0x4b]
mov dword [rsi + 0x23], r9d
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x28], xmm1
mov r9, qword [rsp + 0x40]
mov dword [rsi], eax
mov dword [rsi + 4], ecx
movups xmmword [rsi + 8], xmm0
mov qword [rsi + 0x18], r9
mov word [rsi + 0x20], dx
mov byte [rsi + 0x22], r8b
jmp 0x140278597
mov dword [rsi], 6
jmp 0x140278597
Function at 0x14028e460
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 0x14028e4d2
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 0x14028e498
add rdi, rbx
sub rsi, rbx
je 0x14028e4d2
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 0x14028e490
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x14028e490
add ebp, 0x80000000
jmp 0x14028e4d4
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 0x140299690
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140299720
jmp 0x14029970f
jae 0x1402997e0
cmp r8, 0x201
jae 0x140299720
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140299778
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14029974f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1402dab40
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1402997a1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140299848
mov r8d, r14d
cmp r15, r8
jne 0x140299700
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14029986b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14029970f
jmp 0x140299720
cmp rsi, r8
jb 0x140299885
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14029f410
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140299831
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400590f0
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 + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140299819
jmp 0x140299831
lea rcx, [0x1403966d8]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1402dbed0
jmp 0x14029989a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1402dc400
ud2
Function at 0x14029f1c0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 0xffffffffffffffff
je 0x140242d58
add rcx, 0x18
add rsp, 0x28
jmp 0x14024fd30
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Users_timot.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.1_srciopoll_evented.rs
lea r8, [0x14035aaf0]
mov edx, 0x2b
call fcn.1402dbed0
ud2
jmp 0x14029f1c0
sub rsp, 0x38
mov rcx, qword [rcx]
movzx eax, dl
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14029f1f8
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14029f210
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 qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14029f247
cdqe
jmp 0x14029f256
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x14029f25e
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14029f26f
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 0x14029f280
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 qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x14029f2bd
cdqe
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14029f2d4
call qword [sym.imp.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 0x14029f2e0
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 qword [sym.imp.ws2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x14029f335
mov eax, dword [rsp + 0x3c]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14029f34c
call qword [sym.imp.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 0x14029fe20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14029fe50
test ecx, ecx
jne 0x14029fea0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14029fe5c
test ecx, ecx
jne 0x14029fea0
mov rcx, rdi
call fcn.14029fd00
movzx eax, al
test bpl, bpl
jne 0x14029fea7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14029fe93.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1402a0018]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14029fe93.2
xor eax, eax
test bpl, bpl
je 0x14029fe6c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14029fff9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14029feda
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14029ff59
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14029ff20
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14029ff3b
inc rax
dec rdi
cmp rax, 1
jne 0x14029ff00
jmp 0x14029ff59
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14029ff3b
cmp ebx, 0x5c
je 0x14029ff3b
inc rax
dec rdi
cmp rax, 1
jne 0x14029ff20
jmp 0x14029ff59
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1402a0007
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14029ff83
mov al, 9
cmp rdx, 2
je 0x14029ff87
cmp rdx, 1
jne 0x14029ff97
cmp byte [r8], 0x2e
jne 0x14029ff97
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14029ff97
mov al, 0xa
jmp 0x14029ff97
cmp byte [r8], 0x2e
jne 0x14029ff97
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14029fe93.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14029fe93.2
mov ecx, 2
jmp case.0x14029fe93.2
lea r8, str.library_std_srcpath.rs
call fcn.1402dc380
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1402dc380
ud2
Function at 0x1402a3e80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1402ce4a0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfe8]
mov qword [rbp + 0xfc8], r15
lea r12, [0x1402acb40]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1402a406e
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1402a3f47
cmp dword [rbp + 0xfec], 0
jne 0x1402a4083
mov ebx, dword [rbp + 0xff0]
test rbx, rbx
je 0x1402a4083
cmp ebx, 0x1000
ja 0x1402a40ce
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x1402a40b3
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x1402a4076
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfe8], 0
je 0x1402a3ff0
cmp dword [rbp + 0xfec], 0
jne 0x1402a407c
mov eax, dword [rbp + 0xff0]
add r14, rax
cmp r14, rbx
jne 0x1402a3f90
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1402a3f47
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1402a4083
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0xfd0], rbx
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.1402dc480
jmp 0x1402a40e8
mov ecx, ebx
mov qword [rbp + 0xfd0], rcx
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
call fcn.1402dc400
ud2
Function at 0x1402a88a0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1402b4000
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x1402a8955
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.1402ab330
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x1402a8955
mov rcx, rdi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x1402a8929
test rsi, rsi
je 0x1402a8925
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400590f0
xor esi, esi
jmp 0x1402a8955
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x1402a8952
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400590f0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x1402a96f0
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 [0x140398a98]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1402a9734
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 qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1402a9793
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1402a97a2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1402a97da
cmp eax, 0x103
je 0x1402a97e4
test eax, eax
js 0x1402a97bf
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1402a97da
mov ecx, eax
call qword [sym.imp.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, [0x140398b00]
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.14029e520
mov rcx, rax
call fcn.140292da0
mov ecx, 7
int 0x29
ud2
Function at 0x1402a9850
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 [0x140398a98]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1402a9894
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 qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1402a98fa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1402a9931
test eax, eax
js 0x1402a990b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1402a9924
mov ecx, eax
call qword [sym.imp.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, [0x140398b00]
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.14029e520
mov rcx, rax
call fcn.140292da0
mov ecx, 7
int 0x29
ud2

Function at 0x1402a9990
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 qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1402a99e5
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1402a9a81
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1402a99f9
cmp eax, 0x2739
jne 0x1402a9a4a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1402a9a44
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x1402a9a5f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1402a9a81
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1402a9a81
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret