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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov rax, qword [0x1800ef040]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, r9
mov r15, r8
mov r14, rdx
mov r12, qword [rbp + 0x6f]
mov r13, qword [rbp + 0x77]
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x41], rax
mov rax, qword [rbp + 0x87]
mov qword [rbp - 0x49], rax
mov rbx, qword [rbp + 0x97]
mov qword [rbp - 0x29], rbx
mov ecx, dword [0x1801ebe88]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1801ec628], ecx
jle 0x18008754d
lea rcx, [0x1801ec628]
call fcn.18008da6c
cmp dword [0x1801ec628], 0xffffffff
jne 0x18008754d
mov r9, qword [0x1801ec330]
movabs rcx, 0xadc5df00da06e785
mov qword [rbp - 0x59], rcx
movabs rcx, 0xd46fdcf489b7603c
mov qword [rbp - 0x51], rcx
movabs rcx, 0xcf8aa861a8428ced
mov qword [rbp - 0x19], rcx
movabs rcx, 0xd46fdcf4fdd40556
mov qword [rbp - 0x11], rcx
movdqa xmm0, xmmword [rbp - 0x59]
xorps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x59], xmm0
mov r8d, 0x811c9dc5
lea rax, [rbp - 0x59]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x1800874e7
xor edx, edx
test rcx, rcx
je 0x180087518
mov eax, edx
nop dword [rax]
movsx eax, byte [rbp + rax - 0x59]
xor eax, r8d
imul r8d, eax, 0x1000193
inc edx
mov eax, edx
cmp rax, rcx
jb 0x180087500
mov eax, r8d
mov qword [rbp - 0x19], rax
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x39]
lea rcx, [r9 + 0x5b0]
call fcn.180028370
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov qword [0x1801ec620], rax
lea rcx, [0x1801ec628]
call fcn.18008da00
mov dword [rbp - 0x19], 0x8f910730
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x39]
lea rcx, [rbx + 0x40]
call fcn.1800371f0
mov rcx, qword [rax]
mov edx, dword [rcx + 0x14]
test edx, edx
je 0x180087581
cmp edx, 1
jne 0x18008758f
mov rax, qword [0x1801ec368]
movups xmm0, xmmword [rax + 0x10]
jmp 0x18008758b
mov rax, qword [0x1801ec368]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x59], xmm0
lea rcx, [rbx + 0x80]
mov dword [rbp - 0x19], 0xf2f8d328
lea r8, [rbp - 0x19]
lea rdx, [rbp - 0x39]
cmp byte [rbp + 0x8f], 0
mov rax, qword [rbp - 0x59]
jne 0x1800875b6
mov rax, qword [rbp - 0x51]
mov qword [rsi + 0x20], rax
call fcn.1800371f0
mov rax, qword [rax]
mov eax, dword [rax + 0x14]
mov dword [rsi + 0x40], eax
mov rax, qword [rbp - 0x49]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x41]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov r9d, dword [rbp + 0x67]
mov r8, rsi
mov rdx, r15
mov rcx, r14
call qword [0x1801ec620]
nop
lea rcx, [rbx + 0x80]
call fcn.180003fd0
lea rcx, [rbx + 0x40]
call fcn.180003fd0
mov rcx, rbx
call fcn.180003fd0
mov al, 1
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.18008d340
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180088590
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r8
mov r14, rdx
mov rsi, rcx
movzx r13d, byte [r8]
movabs rax, 0xcbf29ce484222325
xor r13, rax
movabs rcx, 0x100000001b3
imul r13, rcx
movzx eax, byte [r8 + 1]
xor r13, rax
imul r13, rcx
movzx eax, byte [r8 + 2]
xor r13, rax
imul r13, rcx
movzx eax, byte [r8 + 3]
xor r13, rax
imul r13, rcx
mov rcx, qword [rsi + 0x30]
and rcx, r13
add rcx, rcx
mov rax, qword [rsi + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
lea rdx, [rsi + 8]
mov r15, qword [rdx]
cmp rbx, r15
jne 0x180088617
mov rbx, r15
mov rbp, r15
jmp 0x18008865a
mov rcx, qword [rax + rcx*8]
mov eax, dword [r8]
cmp eax, dword [rbx + 0x10]
je 0x180088631
cmp rbx, rcx
je 0x180088654
mov rbx, qword [rbx + 8]
cmp eax, dword [rbx + 0x10]
jne 0x180088623
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r15, rbx
mov rbp, rbx
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [rsi + 0x10], rax
jne 0x180088678
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], 0
mov ecx, 0x18
call fcn.18008d360
mov rdi, rax
mov qword [rsp + 0x28], rax
mov rax, qword [r12]
mov qword [rdi + 0x10], rax
mov rdx, qword [rsi + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x1800886b4
cvtsi2ss xmm0, rdx
jmp 0x1800886cc
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mov rcx, qword [rsi + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x1800886df
cvtsi2ss xmm1, rcx
jmp 0x1800886f4
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [rsi]
seta al
test al, al
je 0x180088769
mov rcx, rsi
call fcn.180037ca0
mov rdx, rax
mov rcx, rsi
call fcn.18001be30
mov rdx, r13
and rdx, qword [rsi + 0x30]
add rdx, rdx
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
mov rbx, qword [rsi + 8]
cmp rax, rbx
jne 0x18008873c
mov qword [rsp + 0x28], 0
jmp 0x18008875c
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [rdi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x180088759
mov rbx, rax
cmp rax, rdx
je 0x18008879d
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x180088748
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r15, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [rsi + 0x10]
mov qword [rdi], r15
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
and rax, r13
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [rsi + 8]
jne 0x1800887ad
mov qword [rcx + rax*8], rdi
jmp 0x1800887bf
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x180088761
cmp r8, rbp
jne 0x1800887b8
mov qword [rcx + rax*8], rdi
jmp 0x1800887c4
cmp qword [rcx + rax*8 + 8], rdx
jne 0x1800887c4
mov qword [rcx + rax*8 + 8], rdi
mov qword [r14], rdi
mov byte [r14 + 8], 1
jmp 0x180088639
Function at 0x18008b0b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
je 0x18008b0c6
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180019820]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18008b0f9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x18008c990
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18008c9ca
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18008c9cf
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18008ca18
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180092aa0]
cmp byte [rcx + rax], 0
je 0x18008ca18
dec r8
sub rdx, 1
jne 0x18008c9fe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140012170
Capabilities:
Encrypt data using aes via x86 extensions

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

Function at 0x140016e00
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
movdqa xmm0, xmmword [rcx]
movdqa xmm10, xmmword [rcx + 0x10]
movdqa xmm9, xmmword [rcx + 0x20]
movdqa xmm8, xmmword [rcx + 0x30]
movdqa xmm1, xmmword [rdx]
pxor xmm1, xmm0
movdqa xmm3, xmmword [rdx + 0x10]
pxor xmm3, xmm0
movdqa xmm4, xmmword [rdx + 0x20]
pxor xmm4, xmm0
movdqa xmm5, xmmword [rdx + 0x30]
pxor xmm5, xmm0
movdqa xmm2, xmmword [rdx + 0x40]
pxor xmm2, xmm0
movdqa xmm6, xmmword [rdx + 0x50]
pxor xmm6, xmm0
movdqa xmm7, xmmword [rdx + 0x60]
pxor xmm7, xmm0
pxor xmm0, xmmword [rdx + 0x70]
aesenc xmm1, xmm10
aesenc xmm3, xmm10
aesenc xmm4, xmm10
aesenc xmm5, xmm10
aesenc xmm2, xmm10
aesenc xmm6, xmm10
aesenc xmm7, xmm10
aesenc xmm0, xmm10
aesenc xmm1, xmm9
aesenc xmm3, xmm9
aesenc xmm4, xmm9
aesenc xmm5, xmm9
aesenc xmm2, xmm9
aesenc xmm6, xmm9
aesenc xmm7, xmm9
aesenc xmm0, xmm9
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x40]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x50]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x60]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x70]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x80]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0x90]
aesenc xmm1, xmm8
aesenc xmm3, xmm8
aesenc xmm4, xmm8
aesenc xmm5, xmm8
aesenc xmm2, xmm8
aesenc xmm6, xmm8
aesenc xmm7, xmm8
aesenc xmm0, xmm8
movdqa xmm8, xmmword [rcx + 0xa0]
aesenclast xmm1, xmm8
aesenclast xmm3, xmm8
movdqa xmmword [rdx], xmm1
movdqa xmmword [rdx + 0x10], xmm3
aesenclast xmm4, xmm8
movdqa xmmword [rdx + 0x20], xmm4
aesenclast xmm5, xmm8
movdqa xmmword [rdx + 0x30], xmm5
aesenclast xmm2, xmm8
aesenclast xmm6, xmm8
movdqa xmmword [rdx + 0x40], xmm2
movdqa xmmword [rdx + 0x50], xmm6
aesenclast xmm7, xmm8
movdqa xmmword [rdx + 0x60], xmm7
aesenclast xmm0, xmm8
movdqa xmmword [rdx + 0x70], xmm0
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140019a80
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, rcx
add r8, rdx
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], r8
mov word [rbp - 0x38], 0
mov dword [rbp - 0x30], 1
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x48]
call fcn.140014c50
movzx r9d, byte [rsi + 0x18]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov qword [rbp - 0x10], rdx
xor r8d, r8d
call sub.ADVAPI32.dll_RegSetValueExW
mov esi, eax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x140019b0a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x10]
call fcn.14001dfa0
mov rcx, rsi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test esi, esi
cmovne rax, rcx
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019da0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov rbx, qword [rdx]
mov rcx, qword [r8 + 8]
mov qword [rbp + 0x10], r8
mov rax, qword [r8 + 0x10]
add rax, rcx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rax
mov word [rbp - 0x20], 0
mov dword [rbp - 0x18], 1
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x30]
call fcn.140014c50
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
test rdx, rdx
je 0x140019e19
mov r8d, 1
mov rcx, qword [rbp - 0x38]
call fcn.14001dfa0
mov qword [rbp + 0x10], rsi
mov dword [rbp + 0x1c], 0x800
mov dword [rbp + 0xc], 0
movzx eax, byte [0x1400731c1]
mov ecx, 0x800
mov edx, 1
call fcn.14001df90
test rax, rax
je 0x140019fa7
mov r14, rax
mov qword [rbp - 0x10], 0x800
mov qword [rbp - 8], rax
mov qword [rbp], 0
mov rdi, qword [rbp - 0x48]
lea r12, [rbp + 0x1c]
lea r15, [rbp + 0xc]
mov rsi, qword [rbp - 0x10]
mov r13, qword [rbp]
sub rsi, r13
nop dword [rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r14
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call sub.ADVAPI32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x140019ebd
mov r8d, dword [rbp + 0x1c]
cmp rsi, r8
jae 0x140019e80
lea rcx, [rbp - 0x10]
mov rdx, r13
call fcn.140057c70
mov r14, qword [rbp - 8]
jmp 0x140019e6d
movabs rbx, 0x8000000000000000
test eax, eax
jne 0x140019eea
mov eax, dword [rbp + 0x1c]
mov qword [rbp], rax
mov eax, dword [rbp + 0xc]
cmp eax, 0xb
jbe 0x140019f85
movabs rax, 0xde00000002
jmp 0x140019ef2
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x30], rbx
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140019f11
mov r8d, 1
mov rcx, r14
call fcn.14001dfa0
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x140019f2b
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14001dfa0
cmp qword [rbp - 0x30], rbx
jne 0x140019f42
mov rax, qword [rbp - 0x28]
mov rsi, qword [rbp + 0x10]
mov qword [rsi + 8], rax
mov qword [rsi], rbx
jmp 0x140019f6e
lea rdx, [rbp - 0x30]
mov rsi, qword [rbp + 0x10]
mov rcx, rsi
call fcn.14001e360
mov rcx, qword [rbp - 0x30]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x140019f6e
mov rdx, qword [rbp - 0x28]
call fcn.1400195e0
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp]
mov qword [rbp - 0x20], rcx
movups xmm0, xmmword [rbp - 0x10]
movaps xmmword [rbp - 0x30], xmm0
mov byte [rbp - 0x18], al
mov rdx, qword [rbp - 0x50]
test rdx, rdx
jne 0x140019f1a
jmp 0x140019f2b
mov ecx, 1
mov edx, 0x800
call fcn.140058b50
ud2
Function at 0x140021410
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14002145b
call sub.ole32.dll_CoTaskMemFree
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140021488
call sub.KERNEL32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.140035c30
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x140022f00
Capabilities:
Generate random numbers via winapi

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
test rdx, rdx
je 0x140022f67
mov rdx, rcx
mov ebx, 0xffffffff
xor esi, esi
mov r14, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
nop word cs:[rax + rax]
test rdi, rdi
je 0x140022f69
cmp rdi, rbx
mov r8d, 0xffffffff
cmovb r8, rdi
sub rdi, r8
lea r15, [rdx + r8]
xor ecx, ecx
mov r9d, 2
call r14
mov rdx, r15
cmp eax, 0xc0000000
jb 0x140022f30
add eax, 0x80000000
mov esi, eax
jmp 0x140022f69
xor esi, esi
mov eax, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140032500
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 0x1400325a0
jmp 0x14003258f
jae 0x140032660
cmp r8, 0x201
jae 0x1400325a0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400325f8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400325cf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400583b0
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 0x140032621
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400326c8
mov r8d, r14d
cmp r15, r8
jne 0x140032580
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400326f5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14003258f
jmp 0x1400325a0
cmp rsi, r8
jb 0x14003270f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140035c30
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 0x1400326b1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.14001dfa0
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 0x140032699
jmp 0x1400326b1
lea rcx, str.internal_error:_entered_unreachable_code_
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140058db0
jmp 0x140032724
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140059200
ud2
Function at 0x140033300
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x140033310
mov rcx, rdx
mov rdx, r8
jmp fcn.140033320
mov rcx, rdx
mov rdx, r8
jmp fcn.14003d170

Function at 0x140039340
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.140057330
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 sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x1400419c0]
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.140041760
cmp qword [rbp + 0xfe8], 0
jne 0x140039517
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1400394e3
cmp r12, 0x1000
ja 0x140039539
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 0x1400394b7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140039460
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400394bd
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x1400394a0
jbe 0x140039410
jmp 0x140039525
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x1400393c5
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.14002c900
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.14002c900
jmp 0x1400394e3
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140059280
jmp 0x14003954d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140059200
ud2
Function at 0x14003d170
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140048800
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14003d231
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400405a0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14003d231
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14003d205
test rdi, rdi
je 0x14003d201
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001dfa0
xor esi, esi
jmp 0x14003d231
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14003d22e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001dfa0
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003d820
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140048800
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x14003d8df
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400405a0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x14003d8df
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14003d8b3
test rdi, rdi
je 0x14003d8af
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001dfa0
xor esi, esi
jmp 0x14003d8df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14003d8dc
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14001dfa0
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003d8f0
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x28]
call fcn.140048800
add byte [rax - 0x75], cl
fmul dword [r8 - 0x75]
jne 0x14003d90c

Function at 0x14003f300
Capabilities:
Read 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 [0x140060520]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14003f344
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_NtReadFile]
cmp eax, 0x103
jne 0x14003f3a3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14003f3b2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14003f3ea
cmp eax, 0x103
je 0x14003f3f4
test eax, eax
js 0x14003f3cf
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14003f3ea
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140060580]
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.140035970
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14002cee0
mov ecx, 7
int 0x29
ud2