joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076d92
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x6a8
mov r15, r8
mov rbx, rdx
mov r13, rcx
mov rdi, qword [rdx + 0x3f0]
lea rsi, [rdi + 0x10]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140161288]
shl rax, 1
test rax, rax
jne 0x140079082
xor edx, edx
mov al, byte [rdi + 0x18]
test al, al
jne 0x140079163
mov rax, qword [rdi + 0x178]
or rax, qword [rdi + 0x188]
je 0x140076dfc
mov rcx, rsi
call fcn.140034b50
jmp 0x140076e28
mov rdi, qword [rdi + 0x228]
mov rcx, rsi
call fcn.140034b50
cmp rdi, 1
ja 0x140076e28
mov rdx, qword [rbx + 0x3f0]
add rdx, 0x10
lea rcx, [rbx + 0x390]
call fcn.140058a28
mov rax, qword [rbx + 0x368]
cmp rax, 2
jne 0x140076e57
mov rax, qword [rbx + 0x388]
lea r12, [rsp + 0x4d8]
mov qword [r12 - 0x18], 2
mov qword [r12 + 8], rax
jmp 0x140076f2f
lea rdx, [rbx + 0x380]
test rax, rax
je 0x140076ede
mov rax, qword [rbx + 0x370]
mov r8, qword [rbx + 0x378]
mov rcx, qword [r8 + 0x10]
dec rcx
and rcx, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
call qword [r8 + 0x70]
mov rcx, qword [rbx + 0x370]
lock inc qword [rcx]
jle 0x140079198
mov r8, qword [rbx + 0x378]
mov rdx, qword [rbx + 0x388]
lea r12, [rsp + 0x4d8]
mov qword [r12 - 0x18], 1
mov qword [r12 - 0x10], rcx
mov qword [r12 - 8], r8
mov qword [r12], rax
mov qword [r12 + 8], rdx
mov rax, qword [r8 + 0x10]
dec rax
and rax, 0xfffffffffffffff0
add rcx, rax
add rcx, 0x10
jmp 0x140076f28
mov rcx, qword [rbx + 0x370]
mov rax, qword [rbx + 0x378]
call qword [rax + 0x70]
mov rcx, qword [rbx + 0x370]
mov r8, qword [rbx + 0x378]
mov rdx, qword [rbx + 0x388]
lea r12, [rsp + 0x4d8]
mov qword [r12 - 0x18], 0
mov qword [r12 - 0x10], rcx
mov qword [r12 - 8], r8
mov qword [r12], rax
mov qword [r12 + 8], rdx
mov rdx, r12
call qword [r8 + 0x60]
mov qword [rsp + 0x4e8], 2
mov qword [rsp + 0x508], 0
lea r14, [rbx + 0x3e8]
lea rax, [rbx + 0x390]
mov qword [rsp + 0x168], rax
lea rbp, [rbx + 0x400]
lea rax, [rbx + 0x3c8]
mov qword [rsp + 0x4a8], rax
lea rcx, [rbx + 0x48]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x88], rcx
call fcn.1400d29b0
mov edx, eax
xor dl, 1
jmp 0x140076dd7
invalid
invalid
lea r8, [rsp + 0x170]
mov qword [r8], rsi
mov byte [r8 + 8], dl
lea rax, str.C:Users29281.cargo_registry_srcindex.crates.io_6f17d22bba15001fh2_0.3.21_srcproto_streams_streams.rs
ud2
Function at 0x14009a370
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000a2c0
cmp rax, rcx
je 0x14009a395
cmp rdx, 4
jae 0x14009a398
xor eax, eax
xor r8d, r8d
jmp 0x14009a430
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400d4670]
movdqa xmm3, xmmword [0x1400d4680]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14009a3c0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14009a447
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14009a430
ret
Function at 0x14009b3b0
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 0x14009b40b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14009b40b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14009b426
cmp eax, 0x42
jne 0x14009b40b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14009b4d6
cmp byte [r9 + r11], 0x5f
jne 0x14009b4d6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14009b53e
mov rcx, rsi
xor edx, edx
call fcn.140096e00
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.140096e00
test al, al
jne 0x14009b5d1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14009b462
lea rdx, [0x140129bd3]
mov r8d, 1
call fcn.14000a850
test al, al
jne 0x14009b5d1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14009b41a
xor r14d, r14d
lea rbx, [0x140129f88]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14009b494
cmp byte [rax + rcx], 0x45
je 0x14009b5f3
sub r14, 1
jb 0x14009b4b9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14009b4b9
mov r8d, 2
mov rdx, rbx
call fcn.14000a850
test al, al
jne 0x14009b5d1
mov rcx, rsi
call fcn.140098610
test al, al
jne 0x14009b5d1
mov rax, qword [rsi]
test rax, rax
jne 0x14009b480
jmp 0x14009b41a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14009b598
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14009b532
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14009b51c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14009b50b
add dl, 0xa9
jmp 0x14009b51a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14009b598
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14009b598
movzx edx, bl
add rax, rdx
jae 0x14009b4e0
jmp 0x14009b598
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14009b598
cmp rax, rcx
jae 0x14009b595
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14009b5eb
cmp qword [rsi + 0x20], 0
je 0x14009b5e4
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.14009b3b0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14009b41c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14009b5d9
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140129f48]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.14000a850
test al, al
je 0x14009b5d9
mov dil, 2
jmp 0x14009b41a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14009b41a
mov dil, 1
xor r8d, r8d
jmp 0x14009b59a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14009b41a
Function at 0x14009d8fa
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
lea r8, [rsp + 0x20]
mov qword [r8], 0
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x14009d927
mov rdx, qword [rsp + 0x20]
jmp 0x14009d92f
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret

Function at 0x14009dafd
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x60], 4
mov dword [rsp + 0xa8], 0x400010
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14009db5e
mov edx, dword [rcx + 0x28]
mov dword [rsp + 0x88], edx
mov qword [rsp + 0x90], rax
mov rax, qword [rcx + 0x30]
test rax, rax
je 0x14009db94
mov r8, qword [rcx + 0x40]
xor edx, edx
test r8, r8
je 0x14009db8d
lea r9, [0x140155f70]
xor r10d, r10d
movzx r11d, byte [rax + r10]
or edx, dword [r9 + r11*4]
inc r10
cmp r8, r10
jne 0x14009db7c
mov dword [rsp + 0x98], edx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x14009dbeb
mov rax, r14
shr rax, 0x3c
jne 0x14009dcb4
mov rbx, qword [rcx]
lea rdi, [r14*8]
mov al, byte [0x140161290]
mov edx, 8
mov rcx, rdi
call fcn.1400077b0
test rax, rax
je 0x14009dcbb
mov rsi, rax
xor eax, eax
mov rcx, qword [rbx + rax*8]
mov qword [rsi + rax*8], rcx
inc rax
cmp r14, rax
jne 0x14009dbd6
mov eax, r14d
jmp 0x14009dbf2
xor eax, eax
mov esi, 8
lea rcx, [rsp + 0x60]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x40], 0
lea rdx, str.Microsoft_Unified_Security_Protocol_Provider
xor ecx, ecx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.secur32.dll_AcquireCredentialsHandleA]
test eax, eax
je 0x14009dc4b
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov ebx, 1
jmp 0x14009dc88
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x58]
mov al, byte [0x140161290]
mov ecx, 0x20
mov edx, 8
call fcn.1400077b0
test rax, rax
je 0x14009dcc5
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], r15
xor ebx, ebx
test r14, r14
je 0x14009dc9f
mov rcx, qword [0x1401611e0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, rbx
mov rdx, rdi
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140007870
ud2
mov ecx, 8
mov rdx, rdi
jmp 0x14009dccf
mov ecx, 8
mov edx, 0x20
call fcn.1400ceec0
ud2
Function at 0x14009e8f6
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x14009e922
xor eax, eax
jmp 0x14009e930
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret

Function at 0x14009e935
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov r8d, dword [rdx + 0x80]
call qword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x14009e95a
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14009e95c
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400a47a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push rdi
push r14
push r13
push r12
push rsi
push rdi
push rbx

Function at 0x1400a70d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
invalid
movups xmm0, xmmword [0x14012cb68]
add eax, 0x85a82

Function at 0x1400ab980
Capabilities:
Create process on windows
Encode data using base64
Get common file path
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x628
lea rbp, [rsp + 0x80]
add byte [rax], 0
add byte [rsi + 0xf], ah
jg 0x1400ab954
nop
add eax, 0xc7480000
test dword [rax - 0x1fffffb], ecx
invalid
invalid
dec dword [rax - 0x77]
ror dword [rax - 0x77], cl
lea edx, [rax + 0x4c000004]
mov edi, dword [rdx + 0x60]
movzx eax, byte [rdx + 0x68]
mov dh, 0x42
push 0xffffffff8948c084
xchg ebp, eax
fadd dword [rax + rax]
add byte [rbp + 0x18], dh

Function at 0x1400b2270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400a1570
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x1400b22e6
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400b2450
mov rdi, qword [rsp + 0x28]
and al, 0x28
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
Function at 0x1400b4080
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140161290]
mov ecx, 0x10
mov edx, 8
call fcn.1400077b0
test rax, rax
je 0x1400b4176
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400b4590]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400b4168
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x18]
je 0x1400b4141
cmp qword [rax + 0x10], 0x11
jae 0x1400b412a
mov r8, qword [rbp - 0x20]
jmp 0x1400b4132
mov r8, qword [rbp - 0x20]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1401611e0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1401611e0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1400ceec0
ud2
Function at 0x1400b4a80
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.1400ce570
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 + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, [0x1400ab5c0]
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 0x1400b4c6e
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 + 0xfec], 0
je 0x1400b4b47
cmp dword [rbp + 0xff0], 0
jne 0x1400b4c83
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x1400b4c83
cmp ebx, 0x1000
ja 0x1400b4cc7
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x1400b4cb3
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 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 0x1400b4c76
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x1400b4bf0
cmp dword [rbp + 0xff0], 0
jne 0x1400b4c7c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x1400b4b90
mov dword [rbp + 0xfec], 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 0x1400b4b47
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400b4c83
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
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.1400cf5d0
jmp 0x1400b4cdb
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.1400cf340
ud2
Function at 0x1400b4d30
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 0x1400b4d73
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, [fcn.1400a54b0]
mov qword [rbp - 0x28], rax
lea rax, [0x14012d070]
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.1400cf220
ud2

Function at 0x1400bc2a0
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 0x1400bc2d5
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400bc2da
call fcn.1400b4d30
nop
add rsp, 0x38
ret

Function at 0x1400bea39
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x1400bea82
movzx eax, dl
lea r9, [rsp + 0x34]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1400bea6f
xor eax, eax
jmp 0x1400bea7d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
add byte [rax], al
add byte [rax - 0x77], cl
push rsp
and al, 0x50
mov rbp, qword [r8 + 8]
mov rbx, qword [r8 + 0x10]
mov r12, qword [rcx + 0x10]
mov qword [rsp + 0x40], r8
mov r13, qword [r8]
add r13, rbx
mov qword [rsp + 0x28], rbp
sub rbp, rbx
mov eax, 0x7fffffff
cmp rbp, rax
cmovae rbp, rax
mov rsi, qword [rcx + 0x18]
mov r14, qword [rcx + 0x20]
lea rax, [r12 + 0x80]
mov qword [rsp + 0x48], rax

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], r9
mov rbx, r8
mov qword [rsp + 0x28], rcx
mov rax, qword [rsp + 0xc0]
mov r14, qword [rdx + 0x10]
mov r15, qword [rdx + 0x18]
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
mov rdi, qword [rdx + 0x20]
lea r13, [r14 + 0x80]

Function at 0x1400c077b
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400c0782
test al, 1
je 0x1400c07a1
test al, 2
jne 0x1400c07b6
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x14012f658]
mov edx, 0x23
jmp 0x1400c07c9
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x14012f618]
mov edx, 0x25
call fcn.1400cf3b0
ud2
Function at 0x1400ceab4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ceafe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ceafe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ceafe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ceafe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ceafe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ceb00
xor al, al
add rsp, 0x28
ret
Function at 0x100409390
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140001451
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400511e8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140050f3b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140050f3b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050f3b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140050f3b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140050f3b
cmp dword [rcx + 0x84], 0xe
jbe 0x140050f3b
cmp dword [rcx + 0xf8], 0
je 0x140050f3b
mov ecx, ebx
call fcn.1400510b4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140050c10
nop
cmp dword [rbp + 0x20], 0
je 0x140050f89
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140050fc4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140050ecc
Function at 0x14000263f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400cf7d8
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140106088]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140109848]
xor r11d, r11d
lea rdi, [0x1400db56a]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400cf848
mov rax, 0xfffffffffffffffe
jmp 0x1400cf995
cmp word [r10 + 6], r11w
jne 0x1400cf8b7
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400cf872
test r14, r14
je 0x1400cf863
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400cf995
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400cf880
mov r8b, 2
jmp 0x1400cf89e
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400cf88e
mov r8b, 3
jmp 0x1400cf89e
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400cf98a
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x1400cf8e0
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400cf98a
cmp bl, bpl
jb 0x1400cf98a
cmp bl, r8b
jae 0x1400cf98a
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400cf90d
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400cf98a
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x1400cf8ef
cmp r9, rbp
jae 0x1400cf939
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400cf83c
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400cf98a
cmp edx, 0x110000
jae 0x1400cf98a
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400cf98a
test r14, r14
je 0x1400cf978
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140004548
jmp 0x1400cf995
mov rdx, rsi
mov rcx, r10
call fcn.140004d77
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002bee
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret