joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019f25
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.14001c4eb
test rax, rax
je 0x140019f5d
mov edx, 4
mov rcx, rax
call fcn.1400062e0
jmp 0x140019f96
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.1400193a2
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.1400193f7
Function at 0x14001d5c4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call fcn.14001cc71
cmp eax, 1
je 0x14001d5fa
mov eax, eax
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
cmp eax, 2
jne 0x14001d60f
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14006bfa0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x14006c340
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400890b0
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
lea rsp, [rsp - 0xb8]
movaps xmmword [rsp + 0x10], xmm6
movaps xmmword [rsp + 0x20], xmm7
movaps xmmword [rsp + 0x30], xmm8
movaps xmmword [rsp + 0x40], xmm9
movaps xmmword [rsp + 0x50], xmm10
movaps xmmword [rsp + 0x60], xmm11
movaps xmmword [rsp + 0x70], xmm12
movaps xmmword [rsp + 0x80], xmm13
movaps xmmword [rsp + 0x90], xmm14
movaps xmmword [rsp + 0xa0], xmm15
movdqu xmm0, xmmword [rdi]
call fcn.14006c200
call fcn.14006b880
movdqu xmmword [rsi], xmm0
movaps xmm6, xmmword [rsp + 0x10]
movaps xmm7, xmmword [rsp + 0x20]
movaps xmm8, xmmword [rsp + 0x30]
movaps xmm9, xmmword [rsp + 0x40]
movaps xmm10, xmmword [rsp + 0x50]
movaps xmm11, xmmword [rsp + 0x60]
movaps xmm12, xmmword [rsp + 0x70]
movaps xmm13, xmmword [rsp + 0x80]
movaps xmm14, xmmword [rsp + 0x90]
movaps xmm15, xmmword [rsp + 0xa0]
lea rsp, [rsp + 0xb8]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
movups xmm2, xmmword [rcx]
mov eax, dword [r8 + 0xf0]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
lea r8, [r8 + 0x20]
xorps xmm2, xmm0
aesenc xmm2, xmm1
dec eax
movups xmm1, xmmword [r8]
lea r8, [r8 + 0x10]
jne 0x14006c35a
aesenclast xmm2, xmm1
pxor xmm0, xmm0
pxor xmm1, xmm1
movups xmmword [rdx], xmm2
pxor xmm2, xmm2
ret
push rbx
push rsi
push rdi
sub rsp, 0x430
mov rax, qword [0x1400f60c0]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rsi, rdx
mov rbx, rcx
mov rdx, r8
lea rcx, [rsp + 0x60]
mov rdi, r8
call fcn.140088180
mov r8d, 1
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140088d08
mov edx, dword [rdi + 0xf0]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.1400880b0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rsi
call fcn.140088214
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.14008fae0
add rsp, 0x430
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001d703
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x660
movaps xmmword [rsp + 0x650], xmm6
mov rsi, rcx
mov rax, r8
shr rax, 0x3d
jne 0x14001d790
movzx ebx, r9b
shl rbx, 7
sub rbx, 0xffffffffffffff80
shl r8, 3
cmp r8, rbx
jne 0x14001d790
mov rdi, rdx
lea rcx, [rsp + 0x140]
mov r8d, 0xf4
xor edx, edx
call fcn.140094420
call fcn.14001cc71
cmp eax, 3
je 0x14001d773
mov eax, eax
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
cmp eax, 2
jne 0x14001d787
call fcn.14006bec0
jmp 0x14001d78c
lea r8, [rsp + 0x140]
mov rcx, rdi
mov edx, ebx
call fcn.140089138
jmp 0x14001d78c
call fcn.14006d110
test eax, eax
je 0x14001d7a9
mov dword [rsi], 2
movaps xmm6, xmmword [rsp + 0x650]
add rsp, 0x660
pop rbx
pop rdi
pop rsi
ret
lea rdi, [rsp + 0x358]
lea rdx, [rsp + 0x140]
mov r8d, 0xf4
mov rcx, rdi
call fcn.140093d80
xorps xmm6, xmm6
lea r8, [rsp + 0x450]
movaps xmmword [r8], xmm6
lea rbx, [rsp + 0x140]
mov rcx, rbx
mov rdx, rdi
call fcn.14001d5c4
movaps xmm0, xmmword [rbx]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rcx, [rsp + 0x20]
call fcn.14001d1e1
xor eax, eax
cmp rax, 0x100
je 0x14001d816
movups xmmword [rsp + rax + 0x140], xmm6
add rax, 0x10
jmp 0x14001d800
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x140]
mov r8d, 0x100
call fcn.140093d80
call fcn.14001d1c9
test al, al
je 0x14001d86e
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, rax
shld rdx, rcx, 1
shld rcx, rax, 1
sar rax, 0x3f
movabs r8, 0xc200000000000000
and r8, rax
xor r8, rdx
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], rcx
jmp 0x14001d893
mov eax, dword [0x1400f6354]
not eax
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x20]
test eax, 0x10400000
jne 0x14001d88e
call fcn.14006af60
jmp 0x14001d893
call fcn.14006a540
lea rdi, [rsp + 0x450]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov rcx, rdi
call fcn.140093d80
lea rcx, [rsp + 0x550]
lea rdx, [rsp + 0x358]
mov r8d, 0xf4
call fcn.140093d80
lea rcx, [rsp + 0x14c]
mov r8d, 0x200
mov rdx, rdi
call fcn.140093d80
and dword [rsi], 0
add rsi, 4
lea rdx, [rsp + 0x140]
mov r8d, 0x20c
mov rcx, rsi
call fcn.140093d80
jmp 0x14001d796

Function at 0x1400278f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140007b90
cmp rax, rcx
je 0x140027915
cmp rdx, 4
jae 0x140027918
xor eax, eax
xor r8d, r8d
jmp 0x1400279b0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140098100]
movdqa xmm3, xmmword [0x140098110]
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 0x140027940
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x1400279c7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x1400279b0
ret
Function at 0x140028910
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 0x14002896b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14002896b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140028986
cmp eax, 0x42
jne 0x14002896b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140028a36
cmp byte [r9 + r11], 0x5f
jne 0x140028a36
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140028a9e
mov rcx, rsi
xor edx, edx
call fcn.140024370
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.140024370
test al, al
jne 0x140028b31
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x1400289c2
lea rdx, [0x1400b282b]
mov r8d, 1
call fcn.140008000
test al, al
jne 0x140028b31
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14002897a
xor r14d, r14d
lea rbx, [0x1400b2be0]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x1400289f4
cmp byte [rax + rcx], 0x45
je 0x140028b53
sub r14, 1
jb 0x140028a19
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028a19
mov r8d, 2
mov rdx, rbx
call fcn.140008000
test al, al
jne 0x140028b31
mov rcx, rsi
call fcn.140025b80
test al, al
jne 0x140028b31
mov rax, qword [rsi]
test rax, rax
jne 0x1400289e0
jmp 0x14002897a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140028af8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140028a92
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140028a7c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140028a6b
add dl, 0xa9
jmp 0x140028a7a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140028af8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140028af8
movzx edx, bl
add rax, rdx
jae 0x140028a40
jmp 0x140028af8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140028af8
cmp rax, rcx
jae 0x140028af5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140028b4b
cmp qword [rsi + 0x20], 0
je 0x140028b44
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.140028910
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14002897c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140028b39
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400b2ba0]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140008000
test al, al
je 0x140028b39
mov dil, 2
jmp 0x14002897a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14002897a
mov dil, 1
xor r8d, r8d
jmp 0x140028afa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14002897a
Function at 0x14004cba0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400b9500]
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 0x14004cc13
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14004cc4a
test eax, eax
js 0x14004cc24
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14004cc3d
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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.14004b620
mov rcx, rax
call fcn.14004b730
mov ecx, 7
int 0x29
ud2

Function at 0x1400514a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x410], xmm6
mov qword [rbp + 0x408], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.14004d480
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x3e8], rax
test rax, rax
je 0x140051627
mov qword [rbp + 0x3f8], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x3d8], rax
mov qword [rbp + 0x3c0], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3c8], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x400], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140051560
jmp 0x14005154f
lea rcx, [rbp - 0x60]
call fcn.14004d640
mov byte [rsi + 0x18], 2
jmp 0x14005174a
adc dword [rcx], eax
add byte [rax], al
Function at 0x1400555f0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
test dx, dx
mov eax, 2
mov edi, 0x17
cmove edi, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14005563f
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400556b3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140055653
cmp eax, 0x2739
jne 0x1400556a0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, edi
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14005569a
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1400556ba
mov qword [rsi + 8], rdi
jmp 0x140055636
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
or byte [rax - 0x39], r9b
invalid
add dword [rax], eax
add byte [rax], al
add rsp, 0x38
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add byte [rax - 0x77], cl
stc
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.WS2_32.dll_closesocket]
invalid

Function at 0x1400556f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14005574e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mul ecx
mov r9d, 0xffffffff
jo 0x14005574e
invalid
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14005574e
imul edx, edx, 0xf4240
xor r10d, r10d
xor edx, edx
sub r8d, edx
setne r10b
add rax, r10
jb 0x14005574e
mov r9d, 0xffffffff
cmp rax, r9
cmp eax, ecx
cmovb r9, rax
test r9, r9
je 0x14005578d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
and byte [rax + rax], al
add byte [rax], al
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.WS2_32.dll_setsockopt]
sbb eax, dword [rax + rax]
cmp eax, 0xffffffff
je 0x14005577a
xor eax, eax
jmp 0x140055788
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
invalid
invalid
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x140055788

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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
sub esp, 0x28

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

Disassembly:
push rsi
sub rsp, 0x40
in al, dx
mov rax, r8
mov eax, eax

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

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov eax, eax
Function at 0x140055910
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
sub esp, 0x20
mov rax, r8
mov rsi, rcx
cmp r9, 0x7fffffff
invalid
invalid
invalid
jg 0x140055964
mov eax, 0x7fffffff
invalid
invalid
cmovb r8, r9
mov rcx, rdx
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
invalid
cmp eax, 0xffffffff
je 0x140055944
cdqe
jmp case.0x140053df6.37
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
add byte [rbp + 0xa], dh
xor eax, eax
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14005596c
invalid
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
or byte [rax + 1], bh
invalid
mov qword [rsi], rax
add rsp, 0x20
pop rsi
ret
Function at 0x14005cc90
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.14004d480
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x14005cd06
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.14005cbc0
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14005cd14
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005cd34
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14005cd25
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.14004d640
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14005cd25
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.1400062e0
Function at 0x14005eee0
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 [0x1400f6349]
mov ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.140006250
test rax, rax
je 0x14005efb7
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14005f3c0]
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 0x14005efa9
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
je 0x14005ef86
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1400062e0
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.1400062e0
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, reloc.WS2_32.dll_recv
call fcn.140094890
ud2
Function at 0x14005f860
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.14008f9d0
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 fcn.140094420
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, [0x140055e40]
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 0x14005fa4e
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 0x14005f927
cmp dword [rbp + 0xff0], 0
jne 0x14005fa63
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x14005fa63
cmp ebx, 0x1000
ja 0x14005faa7
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x14005fa93
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 0x14005fa56
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x14005f9d0
cmp dword [rbp + 0xff0], 0
jne 0x14005fa5c
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x14005f970
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 0x14005f927
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005fa63
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.140094e10
jmp 0x14005fabb
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.140094ba0
ud2
Function at 0x14005fb10
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, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14005fb53
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, [0x140052180]
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.140094a60
ud2

Function at 0x140065f50
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, reloc.WS2_32.dll_recv
adc byte [rax], al
add byte [rax], al
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140065f83
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140065f88
call fcn.14005fb10
mov ecx, dword [0x1400f6360]
mov r8, qword gs:[0x58]
pop rax
add byte [rax], al
invalid
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x80], 1
mov qword [rcx + 0x88], rax
add byte [rax], al
mov qword [rcx + 0x90], rdx
add rsp, 0x38
ret
Function at 0x140069f00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x14006a020
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x140069f60
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x140069f60
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x140069f60