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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe88
movdqa xmmword [rsp + 0xe70], xmm15
movdqa xmmword [rsp + 0xe60], xmm14
movdqa xmmword [rsp + 0xe50], xmm13
jg 0x14001c408
and al, 0x50
invalid
add byte [rax], al
movdqa xmmword [rsp + 0xe40], xmm12
movdqa xmmword [rsp + 0xe30], xmm11
and al, 0x30
invalid
add byte [rax], al
movdqa xmmword [rsp + 0xe20], xmm10
movdqa xmmword [rsp + 0xe10], xmm9
movdqa xmmword [rsp + 0xe00], xmm8
movdqa xmmword [rsp + 0xdf0], xmm7
movdqa xmmword [rsp + 0xde0], xmm6
mov rbx, r9
mov rax, r8
mov rdi, rcx
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], r8
mov qword [rsp + 0x68], 1
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0xa00], 0
movdqu xmmword [rsp + 0xa08], xmm0
movq qword [rsp + 0xa08], mm0
mov dword [rsp + 0xa18], 7
mov qword [rsp + 0xa1c], 0
mov word [rsp + 0xa24], 0
mov byte [rsp + 0xa20], 1
lea r8, [rsp + 0xa00]
mov rcx, rdx
mov rdx, rax
call fcn.140081f70
mov rsi, rdx
test rax, rax
je 0x14001c582
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x14001c555
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14001e473
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 8
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14001e473
mov qword [rax], rsi
mov qword [rdi], rax
lea rax, [0x1400b0c00]
mov qword [rdi + 8], rax
jmp 0x14001c938
lea rcx, [rsp + 0xa00]
mov rdx, rsi
call fcn.1400821a0
cmp dword [rsp + 0xa00], 2
mov qword [rsp + 0xc0], rbx
jne 0x14001c5cd
mov rax, qword [rsp + 0xa08]
lea rcx, [rsp + 0xe8]
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xe0], 1
jmp 0x14001c655
mov r14, qword [rsp + 0xa38]
mov qword [rsp + 0xe0], 0
lea r8, [rsp + 0xe0]
mov rcx, rsi
xor edx, edx
mov r9d, 1
call qword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c62b
xor r12d, r12d
mov r13d, 0
sub r14, qword [rsp + 0xe0]
cmovb r14, r12
ja 0x14001cfa6
add r14, 0x400
jae 0x14001cfcc
mov r15b, 1
jmp 0x14001c663
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0xa08]
add byte [rax - 0x77], cl
test byte [rax + rcx], ah
or al, byte [rax]
add byte [rax - 0x39], cl
test byte [rax + rax], ah
or al, byte [rax]
add byte [rcx], al
add byte [rax], al
invalid
call fcn.140079f00
mov r15b, 1
invalid
xor r12d, r12d
xor r13d, r13d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
xor esi, esi
pxor xmm6, xmm6
lea rbx, [rsp + 0xa00]
or al, byte [rax]
add byte [rax - 0x73], cl
sub eax, 0xd2b02
mov qword [rsp + 0xa0], r12
lea rcx, [rsp + 0x68]
xor edx, edx
mov r8, r14
call fcn.1400aae70
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
add r14, 0x400
jb 0x14001c626
mov rax, r14
and rax, 0x1fff
je 0x14001cfeb
mov ecx, 0x2000
sub rcx, rax
add r14, rcx
setb r15b
jmp 0x14001c663
xor r15d, r15d
jmp 0x14001c663
Function at 0x140040180
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140044fb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140045040
cmp r11, r10
ja 0x1400450b6
cmp r10, rdx
ja 0x1400450ca
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140045042
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140045020
jmp 0x1400450a4
ja 0x14004504a
mov r11, r10
cmp rax, r8
jne 0x140044fe4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140045080
mov rdi, r8
sub ecx, edx
jns 0x14004509b
jmp 0x1400450a6
cmp r8, rsi
je 0x1400450db
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400450a6
xor al, 1
cmp rdi, rsi
jne 0x140045060
jmp 0x1400450a6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400aa0c0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400a9df0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__valueC:Userswilliamcanin.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.6_srcwin.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400a9e70
ud2
Function at 0x1400625e0
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
movdqa xmmword [rsp + 0xc0], xmm15
movdqa xmmword [rsp + 0xb0], xmm14
movdqa xmmword [rsp + 0xa0], xmm13
movdqa xmmword [rsp + 0x90], xmm12
movdqa xmmword [rsp + 0x80], xmm11
movdqa xmmword [rsp + 0x70], xmm10
movdqa xmmword [rsp + 0x60], xmm9
movdqa xmmword [rsp + 0x50], xmm8
movdqa xmmword [rsp + 0x40], xmm7
movdqa xmmword [rsp + 0x30], xmm6
mov rax, rdx
shr rax, 0x3e
jne 0x140062681
mov rbx, rdx
mov r14, rcx
lea rax, [rdx*4]
movabs r9, 0xaaaaaaaaaaaaaaab
mul r9
mov rcx, rdx
shr rcx, 1
add rcx, 3
mov rdi, rcx
and rdi, 0xfffffffffffffffc
cmp rdi, 5
jb 0x1400626e6
xor esi, esi
mov rsi, r8
mov rax, rbx
mul r9
shr rdx, 1
lea r8, [rdx + rdx*2]
mov r15, rsi
mov rdx, rdi
cmp r8, 3
jb 0x140062cec
lea rax, [r8 - 3]
mul r9
shr rdx, 1
shr rcx, 2
cmp rdx, rcx
cmovb rcx, rdx
mov rax, r14
mov r9, r8
mov rdx, rdi
mov r10, rsi
cmp rcx, 8
jb 0x140062ba4
inc rcx
mov eax, ecx
and eax, 7
mov edx, 8
cmovne rdx, rax
sub rcx, rdx
lea rdx, [rcx + rcx*2]
lea rax, [r14 + rdx]
mov r9, r8
sub r9, rdx
lea r10, [rcx*4]
mov rdx, rdi
sub rdx, r10
lea r10, [rsi + rcx*4]
xor r11d, r11d
mov r15, r14
movdqa xmm9, xmmword [0x1400b08b0]
movdqa xmm5, xmmword [0x1400b08d0]
movdqa xmm13, xmmword [0x1400b08f0]
movdqa xmm2, xmmword [0x1400b0910]
nop dword [rax]
Function at 0x140066d40
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x140066dca
mov esi, eax
mov rcx, rbx
mov edx, 0x20
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140066d82
xor edi, edi
jmp 0x140066dca
xor esi, 0x80000000
je 0x140066d7e
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x140066db2
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x140066dd5
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x140066dd5
mov rdi, rax
mov dword [rax], esi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 4
mov edx, 4
call fcn.1400a9bd0
ud2
Function at 0x140067340
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov r14, qword [rdx + 0x10]
movzx ebp, byte [rdx + 0x18]
movzx eax, byte [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x14006738a
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1400675ca
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 0x5f0
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1400675ca
mov rbx, rax
mov byte [rsp + 0x27], bpl
mov qword [rsp + 0x30], r14
lea r15, [rsi + 0x20]
mov r8d, 0x5f0
mov rcx, rax
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x28], rax
movabs rcx, 0x7465646279746573
movabs rdx, 0x6c7967656e657261
movabs r8, 0xded7d4e2d7dedfc6
movabs r9, 0xa60c596fc19fead0
movabs r10, 0xe414a674f0de7325
movabs r11, 0x800000000000000
nop word [rax + rax]
mov ebp, 1
lock xadd qword [0x1400f9140], rbp
mov r14, rbp
xor r14, rcx
lea r12, [r14 + rdx]
mov rax, r14
rol rax, 0x10
xor rax, r12
lea r13, [rax + r8]
rol rax, 0x15
add r14, r9
mov r12, r14
xor r12, r10
rol r14, 0x20
xor rbp, r13
add rbp, r12
rol r12, 0xd
xor r13, r11
xor r12, rbp
rol rbp, 0x20
xor r13, rax
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r12
rol r12, 0x11
xor r13, rbp
xor r12, r14
rol r14, 0x20
xor rbp, r11
add rbp, r12
rol r12, 0xd
xor r12, rbp
rol rbp, 0x20
xor r14, 0xff
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r12
rol r12, 0x11
xor r12, r14
rol r14, 0x20
xor r13, rbp
add rbp, r12
rol r12, 0xd
xor r12, rbp
rol rbp, 0x20
add r14, r13
rol r13, 0x10
xor r13, r14
add rbp, r13
rol r13, 0x15
add r14, r12
rol r12, 0x11
xor r12, r14
rol r14, 0x20
xor r13, rbp
add rbp, r12
rol r12, 0xd
add r14, r13
rol r13, 0x10
xor r13, r14
rol r13, 0x15
xor r12, rbp
add r14, r12
rol r12, 0x11
mov rbp, r14
rol rbp, 0x20
xor rbp, r12
xor rbp, r13
xor rbp, r14
je 0x140067410
mov rax, qword [rsi + 0x40]
movups xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x118], xmm0
mov rcx, qword [rsp + 0x30]
mov qword [rdi + 0x138], rcx
movzx ecx, byte [rsp + 0x27]
mov byte [rdi + 0x140], cl
mov qword [rdi], 0
mov qword [rdi + 8], rbx
mov qword [rdi + 0x80], 0
mov qword [rdi + 0x88], rbx
mov rcx, qword [rsp + 0x28]
mov qword [rdi + 0x100], rcx
mov qword [rdi + 0x108], rbp
mov qword [rdi + 0x110], rax
mov r8, qword [rsi + 0x48]
test r8, r8
je 0x1400675b8
cmp qword [rsi + 0x50], 0
je 0x1400675b8
mov rcx, qword [0x1400f91f8]
xor edx, edx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, 0x5f0
call fcn.1400a9bd0
ud2
Function at 0x14006b680
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov rsi, rcx
cmp byte [rdx + 0x28], 9
jne 0x14006b6b8
mov rdi, rdx
lea rcx, [rdx + 0x29]
lea rdx, [0x1400e3049]
mov r8d, 0x27
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006b75b
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 5
movabs rbx, 0x101010df786
xor eax, eax
xor r8d, r8d
xor r10d, r10d
xor r11d, r11d
xor r9d, r9d
xor edx, edx
mov rdi, qword [rsp + 0x2d]
mov qword [rsi + 0x38], rdi
mov rdi, qword [rsp + 0x20]
mov qword [rsi + 0x2b], rdi
movzx edi, byte [rsp + 0x28]
mov byte [rsi + 0x33], dil
mov edi, dword [rsp + 0x29]
mov dword [rsi + 0x34], edi
movzx edi, word [rsp + 0x2d]
mov word [rsi + 0x38], di
movzx edi, byte [rsp + 0x2f]
mov byte [rsi + 0x3a], dil
mov dword [rsi + 8], ecx
mov byte [rsi + 0xc], 9
mov word [rsi + 0xd], 0x862a
mov byte [rsi + 0xf], 0x48
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rdx
mov dword [rsi + 0x20], r9d
mov dword [rsi + 0x24], r11d
mov byte [rsi + 0x28], r10b
mov byte [rsi + 0x29], r8b
mov byte [rsi + 0x2a], al
mov qword [rsi], 2
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdx, qword [rdi + 0x58]
mov r9d, dword [rdi + 0x60]
movzx eax, byte [rdi + 0x68]
cmp al, 0x17
jne 0x14006b789
mov rbx, qword [rdi + 0x50]
movzx eax, byte [rdi + 0x6a]
movzx r8d, byte [rdi + 0x69]
mov r11d, dword [rdi + 0x64]
mov ecx, 2
mov r10b, 0x17
jmp 0x14006b6e5
mov ecx, 4
cmp al, 4
jne 0x14006b7b7
test r9d, r9d
jne 0x14006b7b7
test rdx, rdx
jne 0x14006b6e5
cmp byte [rdi + 0x20], 0
je 0x14006b7bc
mov dword [rsi + 8], 4
mov qword [rsi + 0x10], 0
jmp 0x14006b745
jmp 0x14006b6e5
mov rdx, qword [rdi]
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x20]
call fcn.140063980
mov rax, qword [rsp + 0x20]
cmp rax, 8
jne 0x14006b835
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
lea r14, [rsp + 0x80]
mov rcx, r14
call fcn.14006b380
lea r15, [rsp + 0xb0]
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.14006b380
lea rcx, [rsp + 0x20]
mov rdx, r14
mov r8, r15
call fcn.14006b8c0
cmp dword [rsp + 0x20], 2
jne 0x14006b87c
mov dword [rsi + 8], 4
jmp 0x14006b745
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov r9, rcx
shr r9, 0x20
cmp eax, 4
mov eax, 4
cmove eax, ecx
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x48]
mov dword [rsi + 8], eax
mov dword [rsi + 0xc], r9d
movups xmmword [rsi + 0x10], xmm0
mov qword [rsi + 0x20], rdx
movups xmmword [rsi + 0x28], xmm1
mov qword [rsi + 0x38], r8
jmp 0x14006b745
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x50], xmm0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x40], xmm0
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmm2, xmmword [rsp + 0x40]
and al, 0x40
movups xmm3, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x30], xmm3
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x10], xmm1
adc byte [rdi], cl
adc dword [rsi], eax
jmp 0x14006b74c
Function at 0x14006f980
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400419e0
cmp rax, rcx
je 0x14006f9a5
cmp rdx, 4
jae 0x14006f9a8
xor eax, eax
xor r8d, r8d
jmp 0x14006fa40
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400b06f0]
movdqa xmm3, xmmword [0x1400b0700]
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 0x14006f9d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14006fa57
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14006fa40
ret
Function at 0x14007b4d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400e9ed0]
adc byte [0x1400e9ed0], al

Function at 0x140086b60
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, 0x688
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x5f0], xmm6
mov qword [rbp + 0x5e8], 0xfffffffffffffffe
mov byte [rbp + 0x458], r9b
mov qword [rbp + 0x448], r8
mov qword [rbp + 0x4f8], rcx
movzx eax, byte [rdx + 0x68]
mov qword [rbp + 0x4d8], rdx
mov r15, qword [rdx + 0x60]
test al, al
jne 0x140086bce
test r15, r15
jne 0x140086bce
mov qword [rbp + 0x410], 0
xor r12d, r12d
jmp 0x1400878c0
mov qword [rbp + 0x4e0], 0
mov qword [rbp + 0x4f0], 0
test al, al
jne 0x140086e10
mov qword [rbp + 0x5b8], r15
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14008a292
lea rsi, [rbp + 0x460]
lea rdi, [rbp - 0x10]
lea r14, [rbp + 0x578]
mov qword [rbp + 0x570], rax
mov rbx, rax
nop
mov rax, qword [rbp + 0x4d8]
mov r15, qword [rax + 0x40]
lea rcx, str.program_path_has_no_file_name
mov qword [rbp + 0x5d8], rcx
test r15, r15
je 0x14008792f
mov r14, qword [rax + 0x30]
cmp r15, 4
jae 0x1400878f1
lea rax, [0x14008d8f0]
jmp 0x14008791a
mov eax, dword [r14]
bswap eax
xor ecx, ecx
cmp eax, 0x5c5c3f5c
setb cl
cmp eax, 0x5c5c3f5d
adc ecx, 0xffffffff
lea rcx, [0x14008d8e0]
lea rax, [0x14008d8f0]
cmove rax, rcx
movzx esi, byte [r15 + r14 - 1]
mov byte [rbp + 0x5e7], 1
mov ecx, esi
call rax
test al, al
je 0x14008799e
cmp r15, 3
jbe 0x140087a04
movzx eax, byte [r15 + r14 - 4]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x2e
jne 0x140087a04
movzx eax, byte [r14 + r15 - 3]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x65
jne 0x140087a04
movzx eax, byte [r14 + r15 - 2]
lea ecx, [rax - 0x41]
cmp cl, 0x1a
setb cl
shl cl, 5
or cl, al
cmp cl, 0x78
jne 0x140087a04
lea eax, [rsi - 0x41]
cmp al, 0x1a
setb al
shl al, 5
or al, sil
cmp al, 0x65
sete al
jmp 0x140087a06
xor eax, eax
lea rbx, [r14 + r15]
xor ecx, ecx
mov qword [rbp + 0x5b8], r15
nop word cs:[rax + rax]
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x578], rax
lea rax, [rbp + 0x578]
mov qword [rbp + 0x460], rax
lea rax, [0x140080b70]
mov qword [rbp + 0x468], rax
lea rax, str.failure_getting_env_string_from_OS:
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], 1
mov qword [rbp + 0x10], 0
lea rax, [rbp + 0x460]
mov qword [rbp], rax
mov qword [rbp + 8], 1
lea rdx, str.library_std_src_syswindowsos.rs
lea rcx, [rbp - 0x10]
call fcn.1400a9cb0
jmp 0x14008a3bf

Function at 0x14008d9e0
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.14007be20
and al, 0xe4
invalid
dec dword [rax - 0x75]
and al, 0x40
mov rax, qword [rsp + 0x48]
test rcx, rcx
leave
Function at 0x14008fe80
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 [0x1400f92c0]
mov rcx, qword [0x1400f91f8]
test rcx, rcx
jne 0x14008fecc
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x14008ff9a
mov rcx, rax
mov qword [0x1400f91f8], rax
mov r8d, 0x10
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x14008ff9a
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140090060]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
mov edx, eax
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
or byte [rax], al
add byte [rax], al
Function at 0x140090ad0
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 0x140090b13
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, [0x140080b70]
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.1400a9cb0
ud2

Function at 0x140092ab0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140092c05
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140092ae8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140092bc8
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140092be7
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140092b49
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x140092b7b
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x140092b7f
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x140092b83
cmp eax, 0x6d
jne 0x140092bae
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x140092b88
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140092bb4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140079f00
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x140092bbe
cmp rax, 1
je 0x140092b32
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x140092b3c
mov r8d, 0x10
mov rcx, rbx
call fcn.1400aae70
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140092af5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1400aae70
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140092af5
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400ae3d0
ud2
Function at 0x1400965a0
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 - 0x18]
call fcn.14007be20
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x1400966c5
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.140082750
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rax, rax
je 0x1400966c5
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x18]
mov rdx, rbx
mov r8, rdi
call fcn.14007be20
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
test rax, rax
je 0x1400966a6
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.140082750
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
test rdi, rdi
je 0x1400966a6
mov r14, qword [rbp - 0x20]
mov rcx, r14
mov rdx, rdi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov r15, qword [rbp - 0x28]
je 0x1400966d5
test rsi, rsi
je 0x140096696
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
test r15, r15
je 0x140096706
mov rcx, qword [0x1400f91f8]
xor esi, esi
jmp 0x1400966ba
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 0x28]
test r15, r15
je 0x1400966c5
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, r14
call qword [sym.imp.kernel32.dll_HeapFree]
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 rsi, rsi
je 0x1400966fc
mov rcx, qword [0x1400f91f8]
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rsi, rbx
test r15, r15
jne 0x1400966b3
jmp 0x1400966c5
xor esi, esi
jmp 0x1400966c5

Function at 0x140097850
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 0x140097885
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14009788a
call fcn.140090ad0
mov ecx, dword [0x1400f92c4]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0xf8], 1
mov qword [rcx + 0x100], rax
mov qword [rcx + 0x108], rdx
add rsp, 0x38
ret

Function at 0x1400a62e4
Capabilities:
Parse pe header

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