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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rdx
mov rdx, qword [rdx]
add rdx, 8
lea rcx, [rsp + 0x68]
call fcn.14000ea70
nop
lea rdx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x14003f5d3
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r10
inc rcx
cmp rcx, r8
jb 0x14003f5c0
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x28]
lea rcx, [rsi + 0xf0]
call fcn.14004ae40
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14003f5f9
mov rcx, qword [rsi + 0xf8]
lea r8, [rsp + 0x68]
cmp rcx, qword [rsi + 0xf8]
jne 0x14003f6e2
lea rdx, [rsp + 0x38]
lea rcx, [rsi + 0xf0]
call fcn.140046190
mov rcx, qword [rax]
add rcx, 0x30
mov rdx, rdi
call fcn.1400425d0
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x14003f668
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003f663
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003f6dc
call fcn.140057c14
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], SafeArrayPutElement
mov byte [rsp + 0x68], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14003f6b7
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14003f6b7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14003f6b7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + VariantCopy]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140057960
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14005e6c4
nop
lea rcx, [rsp + 0x88]
call fcn.1400431f0
nop
lea r8, [0x14009dcd8]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140042ed0
mov rcx, rax
call fcn.14003ec60
int3
Function at 0x1400430f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x20
mov r15, qword [r8 + 0x18]
mov rdi, r8
mov rbp, qword [r8 + 0x10]
mov r12, rdx
mov r10, rcx
cmp r15, 0x10
jb 0x140043120
mov r8, qword [r8]
xor esi, esi
movabs r9, 0xcbf29ce484222325
mov edx, esi
test rbp, rbp
je 0x140043154
movabs rcx, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + r8]
inc rdx
xor r9, rax
imul r9, rcx
cmp rdx, rbp
jb 0x140043140
mov rcx, qword [r10 + 0x30]
mov rax, qword [r10 + 0x18]
and rcx, r9
mov r13, qword [r10 + 8]
add rcx, rcx
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, r13
je 0x1400431c2
mov qword [rsp + 0x50], r14
mov r14, qword [rax + rcx*8]
nop dword [rax]
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jb 0x140043192
mov rdx, qword [rdx]
mov rcx, rdi
cmp r15, 0x10
jb 0x14004319e
mov rcx, qword [rdi]
cmp rbp, rax
jne 0x1400431af
mov r8, rbp
call fcn.14005a7e0
test eax, eax
je 0x1400431ba
cmp rbx, r14
je 0x1400431bd
mov rbx, qword [rbx + 8]
jmp 0x140043180
mov rsi, rbx
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test rsi, rsi
mov rbp, qword [rsp + 0x60]
mov rax, r12
cmove rsi, r13
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14004a940
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x14004aacf
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140042d70
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14004aa94
mov qword [rsp + 0x38], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rax + 0x10]
mov rcx, qword [rcx]
mov r11d, r9d
xor r11, rdi
imul r11, rbp
and r11, qword [rsi + 0x30]
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x14004aa0f
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x14004aa83
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x14004aa48
mov r10, qword [rdx]
cmp r10, rax
je 0x14004aa42
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x14004aa83
cmp r8, rdx
je 0x14004aa5f
nop dword [rax]
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x14004aaa9
cmp r8, rdx
jne 0x14004aa50
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14004a9e0
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14004aa83
lea rcx, str.invalid_hash_bucket_count
call fcn.140055404
int3
Function at 0x14004c5d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14004c7ab
mov rbx, qword [rcx + 0x18]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call fcn.140055860
test eax, eax
jne 0x14004c7d8
xor r14d, r14d
mov qword [rsi + 0x28], r14
mov qword [rsi + 0x30], r14
mov qword [rsp + 0x60], r14
lea r15, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rdi + 0x28]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov rdx, rsi
call qword [rax + VariantCopy]
cmp byte [rdi + 0x20], r14b
je 0x14004c73f
mov rax, qword [rsi + 0x28]
cmp qword [rsi + 0x30], rax
jbe 0x14004c73f
test rax, rax
je 0x14004c69d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movsxd rax, dword [rsi + 0x10]
movzx ebp, word [rdi + rax*2 + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x14004c6be
lea ebp, [rax + 7]
jmp 0x14004c6d9
mov edx, dword [rsp + 0x40]
and edx, 0xfff0
or edx, ebp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movzx ebp, word [rsp + 0x40]
mov rcx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x28]
cmp rcx, r8
jbe 0x14004c706
sub ecx, r8d
mov rdx, qword [rsp + 0x58]
add rdx, r8
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx edx, bp
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rsp + 0x60]
cmp rcx, rdx
jbe 0x14004c763
sub ecx, edx
add rdx, qword [rsp + 0x58]
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, ecx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
jmp 0x14004c763
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x14004c7a3
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c79d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c7d2
call fcn.140057c14
nop
mov rcx, rbx
call fcn.140055884
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140057960
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14005e6c4
nop
mov ecx, eax
call fcn.1400555a0
int3
Function at 0x14004dd10
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor eax, eax
mov qword [rsp + 0x60], rax
lea rbx, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 0xfa
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
call qword [rax + VariantCopy]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140003f40
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14004ddd6
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ddd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004de34
call fcn.140057c14
nop
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x14004de15
mov rdx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004de10
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004de2e
call fcn.140057c14
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140057960
add rsp, 0x180
pop rbx
ret
call fcn.14005e6c4
nop
call fcn.14005e6c4
nop
int3
Function at 0x14004ded0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbp, rcx
lea rdx, [rcx + 0xa8]
lea rcx, [rsp + 0x40]
call fcn.14000ce40
nop
lea rbx, [rbp + 0xd0]
mov rcx, qword [rbx]
lea rdi, [rbx + 0x10]
lea r14, [rbx + 8]
test rcx, rcx
je 0x14004e027
mov rax, qword [rbx + 0x10]
inc rax
xor edx, edx
div rcx
cmp rdx, qword [rbx + 8]
jne 0x14004e027
mov rcx, qword [rbp + 0xd8]
shl rcx, 5
mov rax, qword [rbp + 0xf0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movups xmm0, xmmword [rcx + rax]
movups xmmword [rsp + 0x20], xmm0
movups xmm1, xmmword [rcx + rax + 0x10]
movups xmmword [rsp + 0x30], xmm1
xor edx, edx
mov qword [rcx + rax + 0x10], rdx
mov qword [rcx + rax + 0x18], 7
mov word [rcx + rax], dx
mov rax, qword [rbx + 8]
inc rax
div qword [rbx]
mov qword [rbx + 8], rdx
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14004dfd5
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.140063dd4
test eax, eax
jne 0x14004e0db
lea rdi, [rbx + 0x10]
lea r14, [rbx + 8]
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004e027
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004e01a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e122
call fcn.140057c14
lea rdi, [rbx + 0x10]
lea r14, [rbx + 8]
cmp qword [rbx], 0
jbe 0x14004e06a
mov rcx, qword [rdi]
shl rcx, 5
add rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x40]
call fcn.14000e9a0
mov rcx, qword [rbx]
mov rax, qword [rdi]
inc rax
xor edx, edx
div rcx
mov qword [rdi], rdx
mov rax, qword [r14]
cmp rdx, rax
jne 0x14004e06a
inc rax
xor edx, edx
div rcx
mov qword [r14], rdx
inc qword [rbx + 0x18]
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14004e0a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004e0a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004e0d5
call fcn.140057c14
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140057960
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14005e6c4
nop
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14004e370
call fcn.14005e910
mov ebx, dword [rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14003f7a0
nop
mov r8, rax
lea rdx, str.Failed_removing_daily_file
lea rcx, [rsp + 0x80]
call fcn.14004e3d0
nop
mov edx, ebx
mov rcx, rax
call fcn.14003ebd0
nop
call fcn.14005e6c4
int3
Function at 0x14004f960
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x240
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, dword [rcx + 0x40]
cmp eax, 2
setle r13b
movzx esi, byte [rcx + 0xd8]
jle 0x14004f9bd
test sil, sil
je 0x14004fbb6
mov qword [rsp + 0x100], 0
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x108], 0xfa
mov rax, qword [rsp + 0x280]
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14004fa09
mov rcx, qword [rax]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0xe0], rcx
mov qword [rsp + 0xe8], rax
movaps xmm0, xmmword [rsp + 0xe0]
movdqa xmmword [rsp + 0xe0], xmm0
mov qword [rsp + 0x30], 0xd
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [r9]
movaps xmmword [rsp + 0xc0], xmm1
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0xf0]
call fcn.14002e370
mov r15, qword [rsp + 0x100]
mov r12, qword [rsp + 0xf8]
lea rcx, [rdi + 8]
cmp qword [rdi + 0x20], 0x10
jb 0x14004fa97
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x40], rcx
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x48], rax
movups xmm6, xmmword [r14]
movsd xmm7, qword [r14 + 0x10]
call fcn.1400551bc
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 2
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov ecx, SafeArrayPutElement
mov eax, dword [rcx + r14]
mov edx, 0x10
test al, 1
jne 0x14004fb05
or eax, 1
mov dword [rcx + r14], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov ecx, 0x10
add rcx, r14
mov qword [rcx], rax
jmp 0x14004fb09
lea rcx, [r14 + rdx]
mov rax, qword [rcx]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
movups xmmword [rsp + 0x98], xmm6
movsd qword [rsp + 0xa8], xmm7
mov qword [rsp + 0xb0], r12
mov qword [rsp + 0xb8], r15
movzx r9d, sil
movzx r8d, r13b
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1400419c0
nop
lea rax, vtable.fmt::v7::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x110]
mov rcx, qword [rsp + 0xf8]
cmp rcx, rax
je 0x14004fbb6
mov rdx, qword [rsp + 0x108]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004fbb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004fbee
call fcn.140057c14
nop
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140057960
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
ret
call fcn.14005e6c4
nop
int3
Function at 0x140051ae0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140051b11
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140051b8b
mov rdi, r14
mov rcx, rbx
call fcn.14000ee80
test rax, rax
jle 0x140051b63
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140059cd0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140051b7b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140051b83
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140051b25
sub r14, rdi
jmp 0x140051c6f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140051ba2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140051ba4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140051bd6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140059cd0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140051c6c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140051c11
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140051c4d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140065828
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140051c6c
cmp rbp, rax
ja 0x140051c20
test rbp, rbp
je 0x140051c6c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140065828
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140053e00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400b2080]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
mov qword [rbp - 0x38], rcx
xor edi, edi
mov dword [rbp - 0x60], edi
mov dword [rbp - 0x58], 0xf
mov dword [rbp - 0x54], 0x10
lea rax, str.C:_a_work1_s_srccommonSettingsAPI_settings_helpers.cpp
mov qword [rbp - 0x50], rax
lea rax, str.class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t______cdecl_PTSettingsHelper::get_root_save_folder_location_void_
mov qword [rbp - 0x48], rax
lea r9, [rbp - 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14008b558]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140053f8c
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov rdx, qword [rbp - 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], di
jne 0x140053e90
mov rcx, rbx
call fcn.140003dd0
mov dword [rbp - 0x60], 1
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r8d, SafeArrayPutElement
lea rdx, str.MicrosoftPowerToys
mov rcx, rbx
call fcn.14000e890
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140053ed5
mov rdx, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x30]
call fcn.140003dd0
mov dword [rbp - 0x60], 7
lea rcx, [rbp - 0x30]
call fcn.140053a90
test al, al
jne 0x140053f26
mov dword [rbp - 0x58], edi
lea rax, [0x1400b2cf0]
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call fcn.140053ba0
cmp dword [rbp - 0x58], 0
jne 0x140053f98
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140053f62
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053f5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053f86
call fcn.140057c14
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140057960
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14005e6c4
int3
lea rdx, [rbp - 0x58]
mov ecx, eax
call fcn.140004f10
nop
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x58]
lea rcx, str.create_directories
call fcn.140008bc0
int3
Function at 0x140055a48
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140055acc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.d2d1.dll_Ordinal_1
cmp byte [rcx + rax], 0
je 0x140055acc
dec r8
sub rdx, 1
jne 0x140055ab2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140058980
Capabilities:
Parse pe header

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

Function at 0x140063dd4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140063df4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14005e884
or eax, 0xffffffff
jmp 0x140063df6
xor eax, eax
add rsp, 0x28
ret

Function at 0x14006b34c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006b13c