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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
mov r12d, 0xffffffff
mov r13, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rsi, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test rdi, rdi
je 0x14000e37a
mov r14, rbx
cmp rdi, r12
mov r15d, 0xffffffff
cmovb r15, rdi
add rbx, r15
sub rdi, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call r13
cmp eax, 0xbfffffff
jbe 0x14000e32f
mov ebp, eax
mov rcx, r14
mov edx, r15d
call rsi
test al, al
jne 0x14000e32f
add ebp, 0x80000000
mov eax, ebp
jmp 0x14000e37c
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001232f
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r9, r8
mov rax, rdx
not ecx
lea rdi, [0x14046ffb8]
mov ebx, 0xff
lea rsi, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.3.2_src_baseline.rs
cmp r9, 0x40
jb 0x14001245f
mov r14d, 4
sub r14, 1
jb 0x140012354
cmp r9, 0xf
jbe 0x14001248c
movzx edx, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
mov ebp, dword [rdi + r8*4 + 0x400]
xor ebp, dword [rdi + rdx*4]
movzx edx, byte [rax + 0xd]
xor ebp, dword [rdi + rdx*4 + 0x800]
movzx edx, byte [rax + 0xc]
xor ebp, dword [rdi + rdx*4 + 0xc00]
movzx edx, byte [rax + 0xb]
xor ebp, dword [rdi + rdx*4 + 0x1000]
movzx edx, byte [rax + 0xa]
xor ebp, dword [rdi + rdx*4 + 0x1400]
movzx edx, byte [rax + 9]
xor ebp, dword [rdi + rdx*4 + 0x1800]
movzx edx, byte [rax + 8]
xor ebp, dword [rdi + rdx*4 + 0x1c00]
movzx edx, byte [rax + 7]
xor ebp, dword [rdi + rdx*4 + 0x2000]
movzx edx, byte [rax + 6]
xor ebp, dword [rdi + rdx*4 + 0x2400]
movzx edx, byte [rax + 5]
xor ebp, dword [rdi + rdx*4 + 0x2800]
movzx edx, byte [rax + 4]
xor ebp, dword [rdi + rdx*4 + 0x2c00]
mov edx, ecx
shr edx, 0x18
movzx r8d, byte [rax + 3]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3000]
mov edx, ecx
shr edx, 0x10
and edx, ebx
movzx r8d, byte [rax + 2]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3400]
mov edx, ecx
shr edx, 8
and edx, ebx
movzx r8d, byte [rax + 1]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3800]
and ecx, ebx
movzx edx, byte [rax]
xor edx, ecx
xor ebp, dword [rdi + rdx*4 + 0x3c00]
mov rcx, rax
mov rdx, r9
mov r8, rsi
call fcn.1400122e4
mov r9, rdx
mov ecx, ebp
jmp 0x140012364
xor edx, edx
cmp r9, rdx
je 0x14001247d
mov r8b, byte [rax + rdx]
xor r8b, cl
movzx r8d, r8b
shr ecx, 8
xor ecx, dword [rdi + r8*4]
inc rdx
jmp 0x140012461
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r8, str.C:Usersuser.cargo_registry_srcindex.crates.io_6f17d22bba15001fcrc32fast_1.3.2_src_baseline.rs
mov ecx, 0xf
mov rdx, r9
call fcn.1400a8360
int3
Function at 0x140012c7a
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x14001e550
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 0x14001e5f0
jmp 0x14001e5df
jae 0x14001e6b0
cmp r8, 0x201
jae 0x14001e5f0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001e648
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14001e61f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400a73a0
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 0x14001e671
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001e718
mov r8d, r14d
cmp r15, r8
jne 0x14001e5d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001e745
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001e5df
jmp 0x14001e5f0
cmp rsi, r8
jb 0x14001e75f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400217b0
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 0x14001e701
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140004ea0
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 0x14001e6e9
jmp 0x14001e701
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.uG_
mov edx, 0x28
call fcn.1400a82c0
jmp 0x14001e774
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400a8710
ud2
Function at 0x14001e7d0
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]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.1400313e0
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x14001e826
lea rcx, [rbp - 0x50]
call fcn.140018ba0
mov qword [rsi], rdi
jmp 0x14001ea11
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x14001e8b0
jmp 0x14001e89f
jae 0x14001e976
cmp r8, 0x201
jae 0x14001e8b0
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x14001e908
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14001e8df
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.1400a73a0
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14001e937
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001ea4b
mov r8d, esi
cmp r12, r8
jne 0x14001e890
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001ea86
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001e89f
jmp 0x14001e8b0
cmp r15, r8
jb 0x14001eaa0
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.1400217b0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x14001e9d8
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.140004ea0
cmp qword [rbp + 0x3d0], rdi
jne 0x14001ea28
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.140018ba0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14001ea11
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140004ea0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14001e9fc
jmp 0x14001ea11
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x14001e9c0
jmp 0x14001e9d8
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.uG_
mov edx, 0x28
call fcn.1400a82c0
jmp 0x14001eab5
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.1400a8710
ud2
Function at 0x14001eec0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x14001eed0
mov rcx, rdx
mov rdx, r8
jmp fcn.14001eee0
mov rcx, rdx
mov rdx, r8
jmp fcn.140027b80

Function at 0x140024b00
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.1400a2e20
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.1400a3f60
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14002ab90]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.14002a930
cmp qword [rbp + 0xfe8], 0
jne 0x140024cd7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140024ca3
cmp r12, 0x1000
ja 0x140024cf9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140024c77
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140024c20
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x140024c7d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140024c60
jbe 0x140024bd0
jmp 0x140024ce5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140024b85
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140018ba0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140018ba0
jmp 0x140024ca3
lea r8, str.0xG_
mov rcx, r13
mov rdx, r12
call fcn.1400a8790
jmp 0x140024d0d
lea r8, str.0xG_
mov edx, 0x1000
mov rcx, r12
call fcn.1400a8710
ud2
Function at 0x140027b80
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.1400313e0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140027c41
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.140029770
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x140027c41
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140027c15
test rdi, rdi
je 0x140027c11
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140004ea0
xor esi, esi
jmp 0x140027c41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x140027c3e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140004ea0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140028020
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 [0x1404774f8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140028064
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 0x1400280ca
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140028101
test eax, eax
js 0x1400280db
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400280f4
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._buG_
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.1400213e0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140019100
mov ecx, 7
int 0x29
ud2

Function at 0x140029f30
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop
Function at 0x14002f590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
jo 0x14002f5e4
mov esi, ecx

Function at 0x1400304f0
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 0x140030528
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140030540
nop
add rsp, 0x38
ret

Function at 0x140030540
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 0x140030583
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.0x1400229c2.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.1400a81f0
ud2

Function at 0x140030be0
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 dword [rbp - 8], 0xfffffffe
mov rdi, r8
mov r14, rdx
invalid
mov rsi, rcx
movzx eax, byte [0x140485f11]
mov ecx, 0x10
adc byte [rax], al
add byte [rax], al
mov edx, 8
call fcn.140004e90
test rax, rax
ror byte [rdi], 0x84
invalid
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, case.0x140023562.401
xor edi, edi
xor ecx, ecx
leave
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140030cb1
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]
mov eax, dword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je case.0x1400227c9.497
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140004ea0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140004ea0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
loop case.0x14003124f.472
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 - 0x18], r14
mov qword [rbp - 0x10], rdi
jge 0x140030cb7
mov ecx, 8
mov edx, 0x10
call fcn.1400a8100
ud2
Function at 0x14003eb70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14003ebea
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 0x14003ebe0
cmp r11, r10
ja 0x14003ec81
cmp r10, rdx
ja 0x14003ec93
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14003ebe2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14003ebc0
jmp 0x14003ec57
ja 0x14003ebea
mov r11, r10
cmp rax, r8
jne 0x14003eb92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003ec5b
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 0x14003ec30
mov r8, r10
sub ecx, r9d
jns 0x14003ec4e
jmp 0x14003ec5d
cmp r10, rdx
je 0x14003ec69
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003ec5d
xor al, 1
cmp r8, rdx
jne 0x14003ec10
jmp 0x14003ec5d
xor eax, eax
jmp 0x14003ec5d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14047a51b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1400a82c0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400a8790
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400a8710
int3

Function at 0x14003fc50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0x20
mov rsi, rcx
jb 0x14003fcdc
mov rcx, qword [rcx + 0x20]
mov edx, 0x12
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 0x18]
mov edx, 0xc
mov rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 0x10]
mov edx, 7
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rcx, qword [rsi + 8]
mov edx, 1
add rbx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll__rotl64
mov rdx, qword [rsi + 8]
lea rcx, [rbx + rax]
call fcn.14003fbe4
mov rdx, qword [rsi + 0x10]
mov rcx, rax
call fcn.14003fbe4
mov rdx, qword [rsi + 0x18]
mov rcx, rax
call fcn.14003fbe4
mov rdx, qword [rsi + 0x20]
mov rcx, rax
call fcn.14003fbe4
jmp 0x14003fced
mov rax, qword [rcx + 0x18]
movabs rcx, 0x27d4eb2f165667c5
add rax, rcx
mov r8, qword [rsi]
lea rdx, [rsi + 0x28]
xor r9d, r9d
lea rcx, [r8 + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14003fa70
Function at 0x1400a3588
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a35d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a35d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a35d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a35d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a35d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a35d4
xor al, al
add rsp, 0x28
ret
Function at 0x140001100
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov edi, dword [0x140008320]
movsxd rbp, r8d
mov r12, rdx
xor r8d, r8d
mov rdx, r9
mov ecx, edi
mov rsi, r9
call qword [sym.imp.msvcrt.dll__lseeki64]
cmp rax, rsi
je 0x14000113f
or eax, 0xffffffff
jmp 0x1400011e9
mov r8d, ebp
mov rdx, r12
mov ecx, edi
mov qword [rsp + 0x30], rbx
call qword [sym.imp.msvcrt.dll__write]
mov ebx, eax
test eax, eax
jns 0x1400011e2
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0x1c
jne 0x1400011e2
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rbx, [rsi + rbp]
lea rdx, str.Extending_file_to__I64u_bytes._n
add rcx, 0x60
mov r8, rbx
call qword [sym.imp.msvcrt.dll_fprintf]
xor r8d, r8d
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.msvcrt.dll__lseeki64]
cmp rax, rbx
jne 0x1400011ba
mov ecx, edi
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400011bf
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 0x1c
or eax, 0xffffffff
jmp 0x1400011e4
xor r8d, r8d
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.msvcrt.dll__lseeki64]
cmp rax, rsi
jne 0x1400011ba
mov r8d, ebp
mov rdx, r12
mov ecx, edi
call qword [sym.imp.msvcrt.dll__write]
jmp 0x1400011e4
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140001200
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebp, dword [0x140008320]
mov rbx, r8
mov edi, edx
mov rsi, rcx
xor r8d, r8d
mov ecx, ebp
mov rdx, rbx
call qword [sym.imp.msvcrt.dll__lseeki64]
cmp rax, rbx
je 0x14000123a
or eax, 0xffffffff
jmp 0x140001271
mov r8d, edi
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.msvcrt.dll__read]
movsxd r11, eax
test edi, edi
jle 0x14000126e
test eax, eax
js 0x14000126e
cmp r11d, edi
jge 0x14000126e
mov eax, edi
lea rcx, [rsi + r11]
xor edx, edx
sub eax, r11d
movsxd r8, eax
call sub.msvcrt.dll_memset
mov r11d, edi
mov eax, r11d
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140001440
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
cmp dword [0x140008910], 0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x40], rsi
je 0x1400014de
mov rax, qword [0x140008930]
lea rsi, [0x140008948]
cmp rsi, rax
jne 0x14000147f
xor ebx, ebx
cmp dword [0x140008324], 0x18
setae bl
jmp 0x14000159f
mov rcx, qword [0x140008920]
test rcx, rcx
cmove rcx, qword [0x140008928]
sub rax, rcx
mov qword [0x140008920], rcx
cmp rax, 0x18
jge 0x1400014a8
xor ebx, ebx
jmp 0x14000159f
mov rax, qword [0x140008948]
add rcx, 0x18
mov ebx, 1
mov qword [rcx - 0x18], rax
mov rax, qword [0x140008950]
mov qword [0x140008920], rcx
mov qword [rcx - 0x10], rax
mov rax, qword [0x140008958]
mov qword [rcx - 8], rax
jmp 0x14000159f
mov qword [rsp + 0x68], rbp
mov rbp, qword [0x140008328]
mov qword [rsp + 0x38], rdi
xor ebx, ebx
mov qword [rsp + 0x30], r12
lea rsi, [0x140008948]
mov edi, ebx
lea r12, [0x140008fa0]
nop word [rax + rax]
mov rcx, qword [0x140008fb8]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x140001550
mov r8d, 0x18
lea r9, [rsp + 0x58]
mov rdx, rsi
mov rcx, rbp
sub r8d, edi
mov dword [0x140008fb0], ebx
mov dword [0x140008fb4], ebx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000155d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000158a
lea r8, [rsp + 0x50]
mov r9d, 1
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x14000158a
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000158a
add edi, eax
add rsi, rax
cmp edi, 0x18
jb 0x140001510
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x68]
cmp edi, 0x18
mov rdi, qword [rsp + 0x38]
sete bl
mov rsi, qword [rsp + 0x40]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
je 0x1400015cd
call fcn.1400013b0
test eax, eax
jne 0x1400015d4
mov rcx, qword [sym.imp.msvcrt.dll__iob]
lea rdx, str.Error_flushing_comm_data:__m_n
add rcx, 0x60
call section..text
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret