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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, r8
mov rsi, rcx
mov rcx, qword [rdx]
movzx eax, byte [rcx + 0x24]
cmp al, 2
je 0x140134a89
and al, 1
jne 0x140134a89
movzx eax, byte [rdi + 0x34]
xor al, 4
or al, byte [rdi + 0x35]
mov eax, dword [rdi + 0x30]
jne 0x140134a8c
cmp eax, 0xff
ja 0x140134a8c
test al, al
js 0x140134ae9
movzx eax, al
shl rax, 0x20
test al, 1
je 0x140134a98
jmp 0x140134b73
mov eax, dword [rdi + 0x30]
shl rax, 0x20
test al, 1
jne 0x140134b73
mov rcx, rax
shr rcx, 0x27
jne 0x140134aad
shr rax, 0x20
mov byte [rsi + 8], al
jmp 0x140134b76
mov r14, qword [rdx + 8]
mov rbx, qword [rdx + 0x10]
test rbx, rbx
je 0x140134b24
js 0x140134bcb
movzx eax, byte [0x14031b901]
mov edx, 1
mov rcx, rbx
call fcn.1400016f0
mov r15, rax
test rax, rax
jne 0x140134b2a
mov ecx, 1
mov rdx, rbx
call fcn.140273c70
cmp byte [rcx + 0x27], 0
je 0x140134b60
mov r14, qword [rdx + 8]
mov rbx, qword [rdx + 0x10]
test rbx, rbx
je 0x140134b8f
js 0x140134bcb
movzx eax, byte [0x14031b901]
mov edx, 1
mov rcx, rbx
call fcn.1400016f0
mov r15, rax
test rax, rax
jne 0x140134b95
jmp 0x140134adc
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140263e30
mov qword [rsi], rbx
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x38], xmm2
mov byte [rsi + 0x48], 0
jmp 0x140134b83
movzx eax, al
shl rax, 8
or rax, 1
test al, 1
je 0x140134a98
mov byte [rsi + 8], ah
movabs rax, 0x8000000000000000
mov qword [rsi], rax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov r15d, 1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140263e30
mov qword [rsi], rbx
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmm2, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x38], xmm2
mov byte [rsi + 0x48], 1
jmp 0x140134b83
call fcn.140189730
int3

Function at 0x140146300
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x140151040
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14015108d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1401510bc
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.140176100
mov rcx, qword [rbp - 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140154420
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov r8, rdx
mov rax, qword [rcx + 0x38]
test rax, rax
jle 0x140154447
cmp qword [rcx + 0x40], 0
js 0x140154447
add rax, 0xffffffffffffff00
mov qword [rcx + 0x38], rax
mov edx, 6
jmp fcn.140154900
mov rdx, r8
jmp fcn.140154450
Function at 0x1401573d0
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 0x140157442
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 0x140157408
add rdi, rbx
sub rsi, rbx
je 0x140157442
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 0x140157400
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x140157400
add ebp, 0x80000000
jmp 0x140157444
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 0x140170b50
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140170b86
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140170b96
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret
Function at 0x140170bb0
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], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x140170c50
jmp 0x140170c3f
jae 0x140170d10
cmp r8, 0x201
jae 0x140170c50
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140170ca8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x140170c7f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140272ab0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
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 0x140170cd1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140170d78
mov r8d, r14d
cmp r15, r8
jne 0x140170c30
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140170da5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140170c3f
jmp 0x140170c50
cmp rsi, r8
jb 0x140170dbf
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140176100
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 rbx, rbx
je 0x140170d61
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001700
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 + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x140170d49
jmp 0x140170d61
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140274010
jmp 0x140170dd4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140274500
ud2
Function at 0x1401713c0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x1401713d0
mov rcx, rdx
mov rdx, r8
jmp fcn.1401713e0
mov rcx, rdx
mov rdx, r8
jmp fcn.14017c890

Function at 0x140175ed0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140175f31
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140175f31
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140175f31
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140175f31
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140175f73
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1006
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140175f60
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
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x140175f80
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x140175fe1
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x140175fe1
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x140175fe1
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x140175fe1
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x140176023
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140176010
xor eax, eax
add rsp, 0x38
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
lea rax, str.cannot_set_a_0_duration_timeout
add rsp, 0x38
ret

Function at 0x140176030
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

Function at 0x140176090
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 qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1401760c4
cdqe
jmp 0x1401760d3
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1401760db
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401760ec
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 0x14017c890
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140180a70
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14017c951
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.14017f0b0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x14017c951
mov rcx, rsi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14017c925
test rdi, rdi
je 0x14017c921
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
xor esi, esi
jmp 0x14017c951
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14017c94e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14017c960
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.140180a70
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14017ca1f
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.14017f0b0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x14017ca1f
mov rcx, rsi
call qword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
je 0x14017c9f3
test rdi, rdi
je 0x14017c9ef
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
xor esi, esi
jmp 0x14017ca1f
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14017ca1c
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14017ca30
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.140180a70
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x14017cb70
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14017f0b0
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rax, r14
je 0x14017cb70
mov qword [rbp - 0x28], rsi
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8, rdi
call fcn.140180a70
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
cmp rax, r14
je 0x14017cafb
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14017f0b0
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, r14
jne 0x14017cb1e
mov r14, qword [rbp - 8]
mov r15, qword [rbp - 0x28]
test r14, r14
je 0x14017cb70
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140001700
jmp 0x14017cb70
mov r15, qword [rbp - 0x28]
mov rcx, r15
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov r14, qword [rbp - 8]
je 0x14017cb80
test rdi, rdi
je 0x14017cb55
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
test r14, r14
je 0x14017cb6e
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140001700
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14017cba9
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001700
mov rsi, rbx
test r14, r14
jne 0x14017cb08
jmp 0x14017cb70
Function at 0x14017d250
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 [0x1402c7a20]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14017d294
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 0x14017d2fa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14017d331
test eax, eax
js 0x14017d30b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14017d324
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.8z__
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.140175580
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14016e570
mov ecx, 7
int 0x29
ud2

Function at 0x14017f870
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14017f8a8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14017f8c0
nop
add rsp, 0x38
ret

Function at 0x14017f8c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x14017f903
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, case.0x14017144b.114
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140273f40
ud2

Function at 0x14017ff60
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
push rax
Function at 0x1401814d0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x14031be70]
cmp rax, 3
jne 0x1401815c6
cmp rbx, 0x17f
ja 0x1401815d8
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.140263e30
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.14018b970
cmp qword [rsp + 0x28], 0
je 0x140181554
lea rax, str.Pm__
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401815e9
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401815ae
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
jmp 0x1401815e9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x1401815e9
call fcn.1402730b0
cmp rbx, 0x17f
jbe 0x14018150a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.140273200
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140181600
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140181622
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x1401816f7
mov rax, qword [0x14031be70]
cmp rax, 3
jne 0x140181702
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.14017d950
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x140181663
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1401816f7
cmp word [rbx], 0
je 0x140181684
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140181699
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401816d5
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1401816f7
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
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, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.1402730b0
jmp 0x140181633
Function at 0x140191780
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1401917fa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401917f0
cmp r11, r10
ja 0x140191891
cmp r10, rdx
ja 0x1401918a3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1401917f2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401917d0
jmp 0x140191867
ja 0x1401917fa
mov r11, r10
cmp rax, r8
jne 0x1401917a2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14019186b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140191840
mov r8, r10
sub ecx, r9d
jns 0x14019185e
jmp 0x14019186d
cmp r10, rdx
je 0x140191879
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14019186d
xor al, 1
cmp r8, rdx
jne 0x140191820
jmp 0x14019186d
xor eax, eax
jmp 0x14019186d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1402cad69]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140274010
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140274580
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140274500
int3
Function at 0x1401a6170
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov ebx, ecx
call fcn.140246f80
test eax, eax
jne 0x1401a6375
cmp byte [0x1403182c4], al
mov qword [rsp + 0x30], rbp
jne 0x1401a619d
xor ebp, ebp
jmp 0x1401a61b9
mov ecx, 5
call qword [0x140318330]
mov rbp, rax
test rax, rax
je 0x1401a61b9
mov rcx, rax
call qword [0x140318340]
test ebx, ebx
jle 0x1401a6358
test rsi, rsi
je 0x1401a6358
cmp dword [0x14031bac0], 0
mov qword [rsp + 0x38], rdi
jne 0x1401a62df
call fcn.140246f80
test eax, eax
je 0x1401a61f5
movups xmm0, xmmword [0x14028dea0]
movaps xmmword [0x14031bac0], xmm0
jmp 0x1401a6259
cmp byte [0x1403182c4], 0
jne 0x1401a6207
mov rdi, qword [0x14031b928]
jmp 0x1401a6246
mov ecx, 2
mov qword [rsp + 0x40], r14
call qword [0x140318330]
mov r14, rax
test rax, rax
je 0x1401a623a
mov rcx, rax
call qword [0x140318340]
mov rdi, qword [0x14031b928]
mov rcx, r14
call qword [0x140318350]
jmp 0x1401a6241
mov rdi, qword [0x14031b928]
mov r14, qword [rsp + 0x40]
movups xmm0, xmmword [0x14028dea0]
movaps xmmword [0x14031bac0], xmm0
test rdi, rdi
jne 0x1401a627b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14031bad0], xmm0
mov qword [0x14031baf0], rax
movups xmmword [0x14031bae0], xmm0
mov dword [0x14031baf8], eax
jmp 0x1401a62bf
mov eax, dword [0x140318470]
test eax, eax
je 0x1401a62ad
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x14031bad0], xmm0
mov dword [0x14031bad0], eax
movups xmmword [0x14031bae0], xmm0
mov qword [0x14031baf0], rcx
mov dword [0x14031baf8], ecx
jmp 0x1401a62bf
lea r8, [0x14031bad0]
mov edx, 0x2c
mov rcx, rdi
call qword [rdi + 0x68]
mov eax, dword [0x14031baf0]
xor cl, cl
mov byte [0x14031bb40], cl
mov dword [0x14031bafc], eax
mov dword [0x14031baf0], 0
jmp 0x1401a62e6
movzx ecx, byte [0x14031bb40]
movzx eax, cl
lea rdi, [0x14031bb00]
cmp ebx, eax
jle 0x1401a6335
test cl, cl
je 0x1401a6313
movzx r8d, cl
mov rdx, rdi
mov rcx, rsi
call fcn.140263e30
movzx ecx, byte [0x14031bb40]
sub ebx, ecx
add rsi, rcx
inc dword [0x14031baf0]
lea rdx, [0x14031bac0]
mov rcx, rdi
call fcn.1401b9540
mov cl, 0x40
mov byte [0x14031bb40], cl
cmp ebx, 0x40
jg 0x1401a62f4
movzx eax, cl
mov rcx, rsi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rdi
call fcn.140263e30
sub byte [0x14031bb40], bl
mov rdi, qword [rsp + 0x38]
jmp 0x1401a6362
mov dword [0x14031bac0], 0
test rbp, rbp
je 0x1401a6370
mov rcx, rbp
call qword [0x140318350]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret