joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426250
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00425ff0
mov ebx, eax
mov rax, qword [0x00494298]
cmp byte [rax], 0
je 0x426388
mov rcx, qword [0x00493f58]
call fcn.004067e0
call fcn.00405ac0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426210]
mov r8d, 1
movsxd r9, esi
call fcn.0040c7a0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00426428]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4263ce
mov rcx, qword [0x00499d68]
call fcn.0040c910
mov rcx, rax
mov rax, qword [0x00493ed0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00426210]
call fcn.0040c7e0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4284d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040a320
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040edd0
mov esi, eax
cmp esi, 0x104
jbe 0x42852d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405780
mov rdi, rax
jmp 0x428531
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040edd0
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x428587
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x42856b
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x428599
mov rcx, rdi
call fcn.004057b0
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x454e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x454e87
mov rcx, rbp
call fcn.00454d40
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x454ea6
mov rcx, rbp
call fcn.00454d40
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.004547f0
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x45d240
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, rsp
mov rsi, rcx
lea rdi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
cmp qword [0x0049e418], 0
jne 0x45d2f5
xor rcx, rcx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc_1
mov rbx, rax
mov rax, qword [0x0049e410]
mov qword [rbx], rax
lea rcx, [0x0048f610]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00405b50
lea rax, [0x0045d200]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.0045d230
mov dword [rsi + 1], eax
mov rax, qword [0x0049e418]
mov qword [rsi + 5], rax
mov qword [0x0049e418], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x45d2b3
mov qword [0x0049e410], rbx
mov rax, qword [0x0049e418]
mov rsi, qword [0x0049e418]
mov rcx, qword [rsi + 5]
mov qword [0x0049e418], rcx
lea rdi, [rsi + 5]
lea rsi, [rbp + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
lea rsp, [rbp + 0x38]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x46bd80
Capabilities:
Encrypt data using rc6

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rcx, qword [0x0049e4e0]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
call fcn.00405b50
mov dword [0x0049e428], 0xb7e15163
mov ebx, 1
lea rax, [0x0049e428]
movsxd rcx, ebx
lea rdx, [0x0049e424]
movsxd r8, ebx
mov edx, dword [rdx + r8*4]
add edx, 0x9e3779b9
mov dword [rax + rcx*4], edx
add ebx, 1
cmp ebx, 0x2c
jne 0x46bdb3
nop
xor rbx, rbx
xor rsi, rsi
xor r13, r13
xor r14, r14
mov edi, 1
lea rax, [0x0049e428]
movsxd rcx, ebx
mov ecx, dword [rax + rcx*4]
add ecx, r13d
add ecx, r14d
mov edx, 3
call fcn.0046bbd0
mov r13d, eax
lea rax, [0x0049e428]
movsxd rcx, ebx
mov dword [rax + rcx*4], r13d
movsxd rax, esi
mov ecx, dword [rsp + rax*4 + 0x20]
add ecx, r13d
add ecx, r14d
mov edx, r13d
add edx, r14d
call fcn.0046bbd0
mov r14d, eax
movsxd rax, esi
mov dword [rsp + rax*4 + 0x20], r14d
mov eax, ebx
add eax, 1
mov ecx, 0x2c
cdq
idiv ecx
mov rbx, rdx
mov eax, esi
add eax, 1
mov ecx, 0x10
cdq
idiv ecx
mov rsi, rdx
add edi, 1
cmp edi, 0x85
jne 0x46bdef
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x4712c0
Capabilities:
Set registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov rbx, rdx
mov rsi, r8
mov rdi, r9
call fcn.0040afc0
mov rcx, rdi
mov rdx, rax
xor r8, r8
lea r9, [0x00471398]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x54]
mov qword [rsp + 0x40], rax
call sub.advapi32.dll_RegCreateKeyExW
mov edi, eax
test edi, edi
jne 0x47136c
xor rdi, rdi
test rsi, rsi
je 0x47132a
mov edi, dword [rsi - 4]
mov rcx, rbx
call fcn.0040afc0
mov rbx, rax
mov rcx, rsi
call fcn.0040afc0
mov rcx, qword [rbp + 0x58]
mov rdx, rbx
xor r8, r8
mov r9d, 1
mov qword [rsp + 0x20], rax
add edi, 1
add edi, edi
mov dword [rsp + 0x28], edi
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rcx, qword [rbp + 0x58]
call sub.advapi32.dll_RegCloseKey_1
test edi, edi
je 0x47138d
mov rcx, qword [0x0046e018]
mov dl, 1
mov r8, qword [0x00493f88]
call fcn.004265f0
mov rcx, rax
call fcn.00408d50
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4713a0
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040afc0
mov rcx, rbx
mov rdx, rax
call sub.advapi32.dll_RegDeleteKeyW
add rsp, 0x20
pop rbx
ret

Function at 0x473f50
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
xor rbx, rbx
call sub.kernel32.dll_GetCommandLineW_1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00473dc0
jmp 0x473f77
add ebx, 1
lea rcx, [rsp + 0x28]
xor rdx, rdx
xor r8, r8
call fcn.00473dc0
test al, al
jne 0x473f74
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x47a700
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov edi, ecx
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x47a75f
lea rcx, [rbp + 0x30]
xor rdx, rdx
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 1
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x47a74d
lea rcx, [rbp + 0x30]
call sub.user32.dll_TranslateMessage
lea rcx, [rbp + 0x30]
call sub.user32.dll_DispatchMessageW
mov ecx, 1
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
sub ebx, esi
cmp ebx, edi
jl 0x47a71d
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x47d5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
xor rsi, rsi
mov dword [rbp + 0x34], 0xff
mov rcx, 0xffffffff80000002
lea rdx, [0x0047d6d8]
xor r8, r8
mov r9d, 0x20019
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x47d6b0
mov rcx, qword [rbp + 0x238]
lea rdx, [0x0047d718]
xor r8, r8
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47d650
mov sil, 1
jmp 0x47d6b0
mov rcx, 0xffffffff80000002
lea rdx, [0x0047d6d8]
xor r8, r8
mov r9d, 0x20119
lea rax, [rbp + 0x238]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x47d6b0
mov rcx, qword [rbp + 0x238]
lea rdx, [0x0047d718]
xor r8, r8
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x34]
mov qword [rsp + 0x28], rax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x47d6b0
mov sil, 1
test sil, sil
je 0x47d6c8
mov rcx, rbx
lea rdx, [rbp + 0x38]
mov r8d, pe_nt_image_headers64
call fcn.0040b090
mov rax, rbx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rbp
ret
Function at 0x140006130
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x138
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x118], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x120], rax
mov byte [rsp + 0x12f], 0
mov qword [rsp + 0x130], 1
lea rcx, [rsp + 0x98]
xor edx, edx
mov r8d, 0x40
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0xd8]
lea rdx, [rsp + 0x98]
mov r8d, 0x40
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0xd8]
mov r8d, 0x40
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x40
mov dword [rsp + 0x38], eax
lea rcx, [rsp + 0x38]
call sub.kernel32.dll_GlobalMemoryStatusEx
cmp eax, 0
jne 0x1400061e6
mov rax, qword [rsp + 0x28]
mov qword [rax], 0
jmp 0x140006285
mov rax, qword [rsp + 0x28]
movq xmm1, qword [rsp + 0x40]
movaps xmm3, xmmword [0x14005fe90]
punpckldq xmm1, xmm3
movapd xmm2, xmmword [0x14005fea0]
subpd xmm1, xmm2
movaps xmm0, xmm1
unpckhpd xmm1, xmm1
addsd xmm1, xmm0
movsd xmm0, qword [0x14005fe88]
divsd xmm1, xmm0
movsd qword [rsp + 0x88], xmm1
movq xmm0, qword [rsp + 0x48]
punpckldq xmm0, xmm3
subpd xmm0, xmm2
movaps xmm2, xmm0
unpckhpd xmm0, xmm0
addsd xmm0, xmm2
movsd xmm2, qword [0x14005fe88]
divsd xmm0, xmm2
movsd qword [rsp + 0x90], xmm0
movsd qword [rsp + 0x78], xmm1
movsd qword [rsp + 0x80], xmm0
movsd xmm1, qword [rsp + 0x78]
movsd xmm0, qword [rsp + 0x80]
movsd qword [rax + 8], xmm1
movsd qword [rax + 0x10], xmm0
mov qword [rax], 1
mov rax, qword [rsp + 0x30]
add rsp, 0x138
ret
Function at 0x14003eae0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
sub rsp, 0x108
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r8
mov eax, 0xffffffff
mov eax, eax
mov r9d, eax
lea rcx, [rsp + 0x58]
lea rax, str.C:UsersRabbitMask.cargo_registry_srcindex.crates.io_6f17d22bba15001fgetrandom_0.2.10_srcwindows.rsH
mov qword [rsp + 0x20], rax
call fcn.14003f4c0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14003f570
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
call fcn.14003f590
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14003eb91
mov dword [rsp + 0x3c], 0
jmp 0x14003ec86
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xd0], 0
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xc8], rcx
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0xf8], rdx
mov qword [rsp + 0x100], rax
mov r8d, eax
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0xb8], eax
shr eax, 0x1e
cmp eax, 3
jne 0x14003eb4d
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rax
mov edx, eax
call qword [sym.imp.advapi32.dll_SystemFunction036]
mov byte [rsp + 0xbf], al
cmp al, 0
jne 0x14003eb4d
mov ecx, dword [rsp + 0x38]
xor ecx, 0x80000000
mov dword [rsp + 0xc0], ecx
call fcn.14003f850
mov ecx, eax
mov dword [rsp + 0xc4], ecx
call fcn.14003f270
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
add rsp, 0x108
ret
Function at 0x140042a60
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 r13d, r13d
cmp r8, 0x201
jae 0x140042b00
jmp 0x140042aef
jae 0x140042bc0
cmp r8, 0x201
jae 0x140042b00
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140042b58
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x140042b2f
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14005b1e0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3d8], r13
mov rdi, rbx
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140042b81
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140042c28
mov r8d, r14d
cmp r15, r8
jne 0x140042ae0
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140042c4b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140042aef
jmp 0x140042b00
cmp rsi, r8
jb 0x140042c65
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140045350
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 0x140042c11
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140007710
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], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x140042bf9
jmp 0x140042c11
lea rcx, [0x1400625cb]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14005c260
jmp 0x140042c7a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14005c750
ud2
Function at 0x140045d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140045da0
test ecx, ecx
jne 0x140045df0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140045dac
test ecx, ecx
jne 0x140045df0
mov rcx, rdi
call fcn.140045c50
movzx eax, al
test bpl, bpl
jne 0x140045df7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140045de3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140045f68]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140045de3.2
xor eax, eax
test bpl, bpl
je 0x140045dbc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140045f49
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140045e2a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140045ea9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140045e70
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140045e8b
inc rax
dec rdi
cmp rax, 1
jne 0x140045e50
jmp 0x140045ea9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140045e8b
cmp ebx, 0x5c
je 0x140045e8b
inc rax
dec rdi
cmp rax, 1
jne 0x140045e70
jmp 0x140045ea9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140045f57
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140045ed3
mov al, 9
cmp rdx, 2
je 0x140045ed7
cmp rdx, 1
jne 0x140045ee7
cmp byte [r8], 0x2e
jne 0x140045ee7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140045ee7
mov al, 0xa
jmp 0x140045ee7
cmp byte [r8], 0x2e
jne 0x140045ee7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140045de3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140045de3.2
mov ecx, 2
jmp case.0x140045de3.2
lea r8, str.library_std_srcpath.rs
call fcn.14005c740
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14005c740
ud2
Function at 0x14004a7e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
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 0x14004a88b
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x14004a8c2
test eax, eax
js 0x14004a89c
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14004a8b5
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, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x140062328]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x140056220]
mov qword [rsp + 0x70], rax
lea rax, [0x140062770]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.140044eb0
mov rcx, rax
call fcn.1400406a0
mov ecx, 7
int 0x29
ud2
Function at 0x140058fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14005901a
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 0x140059010
cmp r10, r11
jb 0x1400590b3
cmp r10, rdx
ja 0x1400590c7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140059012
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140058ff0
jmp 0x140059087
ja 0x14005901a
mov r11, r10
cmp rax, r8
jne 0x140058fc2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14005908b
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 0x140059060
mov r8, r10
sub ecx, r9d
jns 0x14005907e
jmp 0x14005908d
cmp r10, rdx
je 0x140059099
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14005908d
xor al, 1
cmp r8, rdx
jne 0x140059040
jmp 0x14005908d
xor eax, eax
jmp 0x14005908d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14005c260
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14005c760
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14005c750
ud2

Function at 0x14005ac2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14005ac76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14005ac76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14005ac76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14005ac76
cmp dword [rcx + 0x84], 0xe
jbe 0x14005ac76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14005ac78
xor al, al
add rsp, 0x28
ret
Function at 0x14001a630
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 0x14001a6c0
cmp r11, r10
ja 0x14001a736
cmp r10, rdx
ja 0x14001a74a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a6c2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a6a0
jmp 0x14001a724
ja 0x14001a6ca
mov r11, r10
cmp rax, r8
jne 0x14001a664
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 0x14001a700
mov rdi, r8
sub ecx, edx
jns 0x14001a71b
jmp 0x14001a726
cmp r8, rsi
je 0x14001a75b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a726
xor al, 1
cmp rdi, rsi
jne 0x14001a6e0
jmp 0x14001a726
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x1413b0f28]
mov rcx, r11
mov rdx, r10
call fcn.140050c40
ud2
lea r8, [0x1413b0f28]
mov rcx, r10
call fcn.1400509c0
ud2
lea rcx, [0x1413b55b8]
lea r8, [0x1413b0f10]
mov edx, 0x2b
call fcn.140050a40
ud2

Function at 0x14001fef0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017f10
cmp rax, rcx
je 0x14001ff15
cmp rdx, 4
jae 0x14001ff18
xor eax, eax
xor r8d, r8d
jmp 0x14001ffb0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140053730]
movdqa xmm3, xmmword [0x140053540]
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 0x14001ff40
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001ffc7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001ffb0
ret