joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038890
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
mov r12d, 0xffffffff
mov r13, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.advapi32.dll_SystemFunction036]
test rdi, rdi
je 0x140038905
mov r14, rbx
cmp rdi, r12
mov r15d, 0xffffffff
cmovb r15, rdi
add rbx, r15
sub rdi, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call r13
cmp eax, 0xbfffffff
jbe 0x1400388ba
mov ebp, eax
mov rcx, r14
mov edx, r15d
call rsi
test al, al
jne 0x1400388ba
add ebp, 0x80000000
mov eax, ebp
jmp 0x140038907
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400465f9
Capabilities:
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.140046b4c
mov r8d, dword [rdi + 8]
cmp r8d, 0x3b9aca01
jne 0x140046626
mov rax, qword [rsp + 0x30]
jmp 0x1400466cd
xor r10d, r10d
cmp r8d, 0x3b9aca00
je 0x140046683
mov rax, qword [rsp + 0x30]
mov ecx, 0x3e8
mul rcx
mov r10d, 0xffffffff
jo 0x140046683
mov rcx, rax
mov r9d, 0xf4240
mov eax, r8d
xor edx, edx
div r9d
add rcx, rax
jb 0x140046683
mov eax, r8d
xor edx, edx
div r9d
xor eax, eax
test edx, edx
setne al
add rcx, rax
jb 0x140046683
mov r10d, 0xffffffff
cmp rcx, r10
cmovb r10, rcx
test r10, r10
je 0x1400466d4
lea r9, [rsp + 0x30]
mov dword [r9], r10d
mov dword [rsp + 0x20], 4
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400466b0
xor eax, eax
jmp 0x1400466be
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
call fcn.140047806
xor eax, eax
add rsp, 0x48
pop rdi
pop rsi
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x1400466be
Function at 0x14004b0f1
Capabilities:
Connect pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
movabs r14, 0xd00000003
mov rbx, qword [rcx]
mov al, 1
xchg byte [rbx + 0xb8], al
test al, al
je 0x14004b118
mov rdi, r14
jmp 0x14004b18d
mov rsi, rcx
lea rdx, [rbx + 0x10]
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x14004b146
xor edi, edi
xor eax, eax
xchg byte [rbx + 0xb8], al
mov rcx, qword [rsi]
xor edx, edx
call fcn.14004b1a4
jmp 0x14004b18d
call fcn.140002e9c
mov rdi, rax
mov rcx, rax
call fcn.14004b0b3
cmp eax, 1
jne 0x14004b185
cmp edx, 0xe8
je 0x14004b19a
cmp edx, 0x217
je 0x14004b19a
cmp edx, 0x3e5
jne 0x14004b185
mov rcx, rdi
call fcn.140055c59
lock inc qword [rbx]
jg 0x14004b113
ud2
xor eax, eax
xchg byte [rbx + 0xb8], al
mov rax, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, rdi
call fcn.140055c59
jmp 0x14004b130

Function at 0x14004b268
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov bpl, 1
cmp qword [rdx + 0x10], 0
jne 0x14004b3cb
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea r12, [rdx + 0x10]
lea rdx, [rcx + 0x10]
lea r15, [rsp + 0x30]
mov rcx, r15
call fcn.14004b47f
lea rbp, [rsi + 0x38]
mov r14, qword [r15]
mov r15, qword [r15 + 8]
mov r8d, 0xffffffff
cmp r15, r8
cmovb r8, r15
mov rcx, qword [rsi + 0xb0]
mov qword [rsp + 0x20], rbp
mov rdx, r14
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004b304
call fcn.140002e9c
mov r13, rax
mov rcx, rax
call fcn.14004b0b3
test eax, eax
je 0x14004b37c
cmp edx, 0x3e5
jne 0x14004b37c
mov rcx, r13
call fcn.140055c59
lea r8, [rsp + 0x2c]
and dword [r8], 0
mov rcx, qword [rsi + 0xb0]
mov rdx, rbp
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x14004b348
call fcn.140002e9c
mov r13, rax
mov rcx, rax
call fcn.14004b0b3
test eax, eax
je 0x14004b37c
cmp edx, 0x3e4
jne 0x14004b37c
mov rcx, r13
call fcn.140055c59
mov rcx, r12
call fcn.14004a837
mov qword [rdi + 0x10], 1
and qword [rdi + 0x18], 0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi + 0x20], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x30], rax
lock inc qword [rsi]
mov bpl, 1
jg 0x14004b3cb
ud2
test eax, eax
sete al
cmp edx, 0x218
setne bpl
or bpl, al
cmp bpl, 1
jne 0x14004b3b8
mov rcx, r12
call fcn.14004a837
mov qword [rdi + 0x10], 3
mov qword [rdi + 0x18], r13
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call fcn.14004b509
jmp 0x14004b3c0
mov rcx, r13
call fcn.140055c59
mov rcx, r14
mov rdx, r15
call fcn.1400c2022
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004bbe3
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea r12, [rdx + 0x60]
mov r15, qword [r8]
mov rdx, qword [r8 + 0x10]
lea r9, [0x14012f5c8]
mov rcx, r15
mov r8, r14
call fcn.14004bdd6
mov r8d, 0xffffffff
cmp rdx, r8
cmovb r8, rdx
mov rcx, qword [rbx + 0xb0]
mov qword [rsp + 0x20], r12
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004bc71
call fcn.140002e9c
mov r13, rax
mov rcx, rax
call fcn.14004b0b3
test eax, eax
je 0x14004bd2d
cmp edx, 0x3e5
jne 0x14004bd2d
mov rcx, r13
call fcn.140055c59
mov rbp, qword [rsp + 0xa0]
lea r8, [rsp + 0x34]
and dword [r8], 0
mov rcx, qword [rbx + 0xb0]
mov rdx, r12
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x14004bcd9
mov r15d, dword [rsp + 0x34]
lea rcx, [rbp + 0x38]
call fcn.14004a837
mov qword [rbp + 0x38], 2
mov qword [rbp + 0x40], r14
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x48], xmm0
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x58], rax
lock inc qword [rbx]
jle 0x14004bd56
mov qword [rsi], 1
mov qword [rsi + 8], r15
jmp 0x14004bd44
call fcn.140002e9c
mov r13, rax
mov rcx, rax
call fcn.14004b0b3
test eax, eax
je 0x14004bd2d
cmp edx, 0x3e4
jne 0x14004bd2d
mov rcx, r13
call fcn.140055c59
lea rcx, [rbp + 0x38]
call fcn.14004a837
mov qword [rbp + 0x38], 1
mov qword [rbp + 0x40], r14
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x48], xmm0
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x58], rax
lock inc qword [rbx]
jle 0x14004bd56
and qword [rsi], 0
jmp 0x14004bd44
mov qword [rsi + 8], r13
mov qword [rsi], 2
mov rdx, qword [rdi + 8]
mov rcx, r15
call fcn.1400c2022
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x14004c602
Capabilities:
List udp connections and listeners

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov edi, edx
mov qword [rsp + 0x38], rcx
lea rbx, [rsp + 0x44]
and dword [rbx], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r14d, r14d
xor ecx, ecx
mov rdx, rbx
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.iphlpapi.dll_GetExtendedUdpTable]
mov r15d, 1
mov ebp, 0x65
mov rsi, qword [sym.imp.iphlpapi.dll_GetExtendedUdpTable]
cmp eax, 0x7a
jne 0x14004c6ad
mov ecx, dword [rsp + 0x44]
call fcn.14004c433
mov r12, rax
mov r13, rdx
mov rcx, r15
mov rdx, r14
call fcn.1400c2022
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov rcx, r12
mov rdx, rbx
xor r8d, r8d
mov r9d, edi
call rsi
mov r14, r13
mov r15, r12
dec ebp
jne 0x14004c654
mov rax, qword [rsp + 0x38]
mov byte [rax + 8], 7
and qword [rax], 0
mov rcx, r12
mov rdx, r13
jmp 0x14004c6da
test eax, eax
jne 0x14004c6c4
mov rax, qword [rsp + 0x38]
mov qword [rax], r15
mov qword [rax + 8], r14
and qword [rax + 0x10], 0
jmp 0x14004c6df
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 8], 9
mov dword [rcx + 0xc], eax
and qword [rcx], 0
mov rcx, r15
mov rdx, r14
call fcn.1400c2022
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004c79e
Capabilities:
List tcp connections and listeners

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov edi, edx
mov qword [rsp + 0x38], rcx
lea rbx, [rsp + 0x44]
and dword [rbx], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 5
xor r14d, r14d
xor ecx, ecx
mov rdx, rbx
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
mov r15d, 1
mov ebp, 0x65
mov rsi, qword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
cmp eax, 0x7a
jne 0x14004c849
mov ecx, dword [rsp + 0x44]
call fcn.14004c433
mov r12, rax
mov r13, rdx
mov rcx, r15
mov rdx, r14
call fcn.1400c2022
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 5
mov rcx, r12
mov rdx, rbx
xor r8d, r8d
mov r9d, edi
call rsi
mov r14, r13
mov r15, r12
dec ebp
jne 0x14004c7f0
mov rax, qword [rsp + 0x38]
mov byte [rax + 8], 7
and qword [rax], 0
mov rcx, r12
mov rdx, r13
jmp 0x14004c876
test eax, eax
jne 0x14004c860
mov rax, qword [rsp + 0x38]
mov qword [rax], r15
mov qword [rax + 8], r14
and qword [rax + 0x10], 0
jmp 0x14004c87b
mov rcx, qword [rsp + 0x38]
mov byte [rcx + 8], 8
mov dword [rcx + 0xc], eax
and qword [rcx], 0
mov rcx, r15
mov rdx, r14
call fcn.1400c2022
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14004cfc3
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov ebx, r9d
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov r13, qword [rsp + 0xe0]
add rdi, rdx
lea r15, [rsp + 0x40]
mov qword [r15], rdx
mov qword [r15 + 8], rdi
and word [r15 + 0x10], 0
xor r12d, r12d
mov rcx, r15
call fcn.14004cd50
inc r12
cmp ax, 1
je 0x14004d001
mov rcx, r12
call fcn.14004cf4d
lea r15, [rsp + 0x68]
mov qword [r15], rax
mov qword [r15 + 8], rdx
and qword [r15 + 0x10], 0
lea rdx, [rsp + 0x40]
mov qword [rdx], r14
mov qword [rdx + 8], rdi
and word [rdx + 0x10], 0
mov rcx, r15
call fcn.14004ccce
mov rdx, qword [r15 + 0x10]
cmp rdx, qword [r15 + 8]
jne 0x14004d05f
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.14004cfa8
mov rdx, qword [rdi + 0x10]
mov rax, qword [rsp + 0x68]
and word [rax + rdx*2], 0
inc rdx
mov qword [rsp + 0x78], rdx
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rcx], xmm0
call fcn.14004cec1
mov r14, rax
mov rdi, rdx
movzx edx, bl
shl edx, 0x13
or edx, 0x40000003
mov qword [rsp + 0x38], r13
mov eax, 0x10000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
and dword [rsp + 0x30], 0
mov rcx, r14
mov r8d, 8
mov r9d, 0xff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14004d0fa
mov rcx, rax
call fcn.14004b584
lea r8, str.C:UsersAdministrator.WIN7_2021OVWRCZ.cargo_registry_src_rsproxy.cn_0dccff568467c15b_tokio_1.36.0_src_netwindows_named_pipe.rs
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rax
call fcn.1400bd562
mov rax, qword [rbx]
cmp rax, 2
jne 0x14004d10a
mov rcx, qword [rsp + 0x48]
jmp 0x14004d118
call fcn.140002e9c
mov qword [rsi + 8], rax
mov eax, 2
jmp 0x14004d11c
mov rcx, qword [rsp + 0x48]
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 8], rcx
mov qword [rsi], rax
mov rcx, r14
mov rdx, rdi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400072d4
Function at 0x14004da84
Capabilities:
Link many functions at runtime

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov r14, qword [0x1401c6ca0]
test r14, r14
jne 0x14004dbbb
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004daee
mov rbx, rax
lea rdx, str.WaitOnAddress
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004daee
mov rdi, rax
lea rdx, str.WakeByAddressSingle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004daee
mov r15, rax
xor ebx, ebx
jmp 0x14004db73
lea rcx, [0x14012fbb8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14004dbcf
mov rdi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004dbcf
mov r14, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004dbcf
mov rbx, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004dbcf
mov rdi, rax
lea rcx, [rsp + 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call r14
test eax, eax
jne 0x14004dbcf
mov r15, qword [rsp + 0x28]
mov ecx, 0x18
call fcn.14004a112
mov r14, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], r15
xor eax, eax
lock cmpxchg qword [0x1401c6ca0], r14
je 0x14004dbbb
mov rdi, rax
cmp qword [r14], 0
je 0x14004dbab
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
mov rcx, r14
call fcn.14002a040
mov r14, rdi
and qword [rsi + 8], 0
mov qword [rsi], r14
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:UsersAdministrator.WIN7_2021OVWRCZ.cargo_registry_src_rsproxy.cn_0dccff568467c15bparking_lot_core_0.9.9_src_thread_parkerwindowsmod.rs
lea r8, [0x14012fcd0]
mov edx, 0x5b
call fcn.14010fcf7
ud2
Function at 0x14005388f
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.140055b12
test rax, rax
je 0x1400538c7
mov edx, 4
mov rcx, rax
call fcn.14002a040
jmp 0x140053900
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.140052ce7
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.140052d72
Function at 0x14005dc06
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x668
movaps xmmword [rsp + 0x650], xmm6
mov rsi, rcx
mov rax, r8
shr rax, 0x3d
jne 0x14005dc95
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x14005dc95
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call fcn.140100820
call fcn.14005d589
cmp eax, 3
je 0x14005dc78
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x14005dc8c
call fcn.1400d4b80
jmp 0x14005dc91
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.1400f7130
jmp 0x14005dc91
call fcn.1400d6050
test eax, eax
je 0x14005dcb0
mov dword [rsi], 2
movaps xmm6, xmmword [rsp + 0x650]
add rsp, 0x668
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdi, [rsp + 0x358]
lea rbx, [rsp + 0x140]
mov r8d, 0xf4
mov rcx, rdi
mov rdx, rbx
call fcn.1400ffbc0
xorps xmm6, xmm6
movaps xmmword [rbx], xmm6
lea rbx, [rsp + 0x30]
lea r8, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.14005d5c0
mov r14, qword [rbx]
mov rdi, qword [rbx + 8]
bswap r14
bswap rdi
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x28], rdi
xor eax, eax
cmp rax, 0x100
je 0x14005dd24
lea rcx, [rsp + rax]
add rcx, 0x140
movups xmmword [rcx], xmm6
add rax, 0x10
jmp 0x14005dd08
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, pe_nt_image_headers64
call fcn.1400ffbc0
call fcn.14005d5a8
test al, al
je 0x14005dd72
mov rax, r14
shld rax, rdi, 1
shld rdi, r14, 1
sar r14, 0x3f
movabs rcx, 0xc200000000000000
and rcx, r14
xor rcx, rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rdi
jmp 0x14005dd97
mov eax, dword [0x1401c6e4c]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x14005dd92
call fcn.1400d3ba0
jmp 0x14005dd97
call fcn.1400d3180
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, pe_nt_image_headers64
mov rcx, rdi
call fcn.1400ffbc0
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call fcn.1400ffbc0
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call fcn.1400ffbc0
and dword [rsi], 0
add rsi, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
mov rcx, rsi
call fcn.1400ffbc0
jmp 0x14005dc9b

Function at 0x140060d5e
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
lea rbx, str.C:UsersAdministrator.WIN7_2021OVWRCZ.cargo_registry_src_rsproxy.cn_0dccff568467c15b_ring_0.16.20_src_rand.rs
mov r12d, 0xffffffff
mov r13, qword [sym.imp.advapi32.dll_SystemFunction036]
mov r14, r15
cmp r15, rsi
jae 0x140060dbd
mov rcx, rdi
mov rdx, rsi
mov r8, r14
mov r9, rbx
call fcn.14004bdd6
mov r15, rdx
cmp rdx, r12
cmovae r15, r12
mov rcx, rax
mov edx, r15d
call r13
add r15, r14
test al, al
jne 0x140060d8a
cmp r14, rsi
setb al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140065cb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140065d0b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140065d0b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140065d26
cmp eax, 0x42
jne 0x140065d0b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140065dd6
cmp byte [r9 + r11], 0x5f
jne 0x140065dd6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140065e3e
mov rcx, rsi
xor edx, edx
call fcn.1400613e0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1400613e0
test al, al
jne 0x140065ed1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140065d62
lea rdx, [0x140134a03]
mov r8d, 1
call fcn.14002d9c0
test al, al
jne 0x140065ed1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140065d1a
xor r14d, r14d
lea rbx, [0x140134db8]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140065d94
cmp byte [rax + rcx], 0x45
je 0x140065ef3
sub r14, 1
jb 0x140065db9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140065db9
mov r8d, 2
mov rdx, rbx
call fcn.14002d9c0
test al, al
jne 0x140065ed1
mov rcx, rsi
call fcn.140062ce0
test al, al
jne 0x140065ed1
mov rax, qword [rsi]
test rax, rax
jne 0x140065d80
jmp 0x140065d1a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140065e98
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140065e32
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140065e1c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140065e0b
add dl, 0xa9
jmp 0x140065e1a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140065e98
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140065e98
movzx edx, bl
add rax, rdx
jae 0x140065de0
jmp 0x140065e98
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140065e98
cmp rax, rcx
jae 0x140065e95
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140065eeb
cmp qword [rsi + 0x20], 0
je 0x140065ee4
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140065cb0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140065d1c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140065ed9
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140134d78]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14002d9c0
test al, al
je 0x140065ed9
mov dil, 2
jmp 0x140065d1a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140065d1a
mov dil, 1
xor r8d, r8d
jmp 0x140065e9a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140065d1a
Function at 0x1400905c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14013c7f8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140090633
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14009066a
test eax, eax
js 0x140090644
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14009065d
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, [0x14013c860]
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.14008e6b0
mov rcx, rax
call fcn.14008e7f0
mov ecx, 7
int 0x29
ud2
Function at 0x1400922c0
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 r14d, r14d
cmp r8, 0x201
jae 0x140092350
jmp 0x14009233f
jae 0x14009240f
cmp r8, 0x201
jae 0x140092350
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x1400923a8
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x14009237f
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.1401119e0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r13d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x1400923d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14009246e
mov r8d, esi
cmp r13, r8
jne 0x140092330
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140092491
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x14009233f
jmp 0x140092350
cmp r15, r8
jb 0x1400924ab
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140092cd0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rax, qword [rbp + 0x3e0]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x140092459
mov edx, 2
mov rcx, qword [rbp + 0x3e8]
call fcn.14002a040
nop
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 rcx, qword [rbp + 0x3e0]
mov qword [rcx], rax
mov byte [rcx + 0x18], 2
test rdi, rdi
jne 0x140092448
jmp 0x140092459
lea rcx, str.internal_error:_entered_unreachable_codeC:UsersAdministrator.WIN7_2021OVWRCZ.cargo_registry_src_rsproxy.cn_0dccff568467c15bwebpki_0.22.4_srccalendar.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14010ebd0
jmp 0x1400924c0
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.14010eb50
ud2