joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c240
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x40c250
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x40c260
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40c2a1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40c298
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x40c2a3
add rax, 0x28
cmp rax, r9
jne 0x40c284
xor eax, eax
ret

Function at 0x40c340
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004a6340]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40c3ad
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40c3ad
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40c3ad
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40c3a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40c3af
add rax, 0x28
cmp rax, r9
jne 0x40c390
xor eax, eax
add rsp, 0x28
ret

Function at 0x40c4b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004a6340]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x40c4d0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40c4c8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40c52d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x40c524
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40c534
add rax, 0x28
cmp rax, r9
jne 0x40c510
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x40c550
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004a6340]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x40c5be
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40c5be
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40c5be
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40c5be
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x40c5b5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x40c5c5
add rcx, 0x28
cmp rcx, rax
jne 0x40c5a0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x40c5d8
jmp 0x40c5be
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x40c5e6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40c5be
test r9d, r9d
jg 0x40c5d0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x419140
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x41916c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x419d40
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x004a0e30], 0
jne 0x419e46
mov byte [0x004a0e30], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x419e1c
mov rbx, qword [rax + 8]
lea r9, [rsp + 0x2c]
xor eax, eax
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
mov r8d, 0x30
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x419e0d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x004a1191]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x419e08
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x419dd7
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x419edb
call sym.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x419e41
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x419e41

Function at 0x468080
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x4680a8
call r12
cmp dword [rax], 4
jne 0x4680c6
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x4680a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x479460
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, str.mt19937
mov rcx, rsi
call method.std::string.compare_char_const__const
mov ecx, 0x1571
test eax, eax
jne 0x4794c5
mov dword [rbx], ecx
mov edx, 1
jmp 0x479494
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x479490
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sym.strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x4794e9
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x479484
lea rcx, str.random_device::random_device_const_std::string_
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x49d820
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140008237
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x14000263a
rol rcx, 0x10
test cx, 0xffff
jne 0x140002636
repz ret
ror rcx, 0x10
jmp 0x140008190
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140076a90]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140076b88]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140008215
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140076a90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140008237
mov rax, qword [rsp + 0x88]
mov qword [0x140076b88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140076b28], rax
mov rax, qword [0x140076b88]
mov qword [0x140076a00], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140076b10], rax
mov dword [0x1400769f0], 0xc0000409
mov dword [0x1400769f4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140075008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140076a88], eax
mov ecx, 1
call fcn.14000f540
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400649c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140076a88], 0
jne 0x1400082be
mov ecx, 1
call fcn.14000f540
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140003000
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x14000305b
lea r8, [rcx + 8]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140003020
jmp 0x140003067
cmp eax, 0x4e0
jb 0x140003067
call fcn.140003530
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x1400030b0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140014200
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov r8, rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x14002e6a8]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
call fcn.140003800
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140003188
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.140012ec0
add rsp, 0x8c0
pop rbx
ret
Function at 0x1400031b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rdi
mov eax, 0x13f0
call fcn.140012e50
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1400], rbx
mov qword [rsp + 0x1408], rsi
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov edi, edx
mov ebx, ecx
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
xor r8d, r8d
lea rdx, [0x14002ea98]
lea rcx, [rsp + 0x28]
call fcn.140002940
nop
call fcn.14001272c
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140003278
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x140003273
test cl, 0x1f
je 0x140003246
call fcn.140019078
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140003255
call fcn.140019078
int3
sub rcx, rax
cmp rcx, 8
jae 0x140003264
call fcn.140019078
int3
cmp rcx, 0x27
jbe 0x140003270
call fcn.140019078
int3
mov rcx, rax
call fcn.140012f20
call fcn.14001272c
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r8d, 1
mov edx, r8d
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + rdx*4 + 0x54], eax
inc r8d
inc rdx
cmp rdx, 0x270
jl 0x1400032a0
mov dword [rsp + 0x50], 0x270
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0x20
mov dword [rsp + 0x38], 0xffffffff
mov esi, 0x80000000
add ebx, esi
sub edi, ebx
lea edx, [rdi + rsi]
lea rcx, [rsp + 0x28]
cmp edx, 0xffffffff
jne 0x140003303
call fcn.140003460
jmp 0x14000330a
inc edx
call fcn.140002f50
lea rax, [rax + rsi]
add eax, ebx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140012ec0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003340
Capabilities:
Check if file exists
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003368
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 5]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_MoveFileExW]
add rsp, 0x20
pop rbx
ret
Function at 0x140005950
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
jne 0x140005976
xor eax, eax
add rsp, 0x20
pop rbx
ret
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.IsWow64Process
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64DisableWow64FsRedirection
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, [0x14002efa8]
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 8], rax
test rax, rax
je 0x14000596e
lea rdx, str.Wow64RevertWow64FsRedirection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 8]
lea rdx, str.Wow64RevertWow64FsRedirection
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x38], rax
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140005a90
Capabilities:
Hash data with md5

Disassembly:
push rbx
sub rsp, 0x20
mov byte [rcx + 0x68], 0
xor eax, eax
mov qword [rcx + 0x10], rax
mov rbx, rcx
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
cmp qword [rdx + 0x18], 0x10
mov r8, qword [rdx + 0x10]
jb 0x140005acc
mov rdx, qword [rdx]
call fcn.1400068e0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140007140
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x888
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x40], rdx
mov rsi, qword [rsp + 0x8e0]
xor edi, edi
mov dword [rsp + 0x30], edi
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.140014200
lea rax, [rbp + 0xc0]
cmp qword [rax + 0x18], 8
jb 0x1400071ad
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x70]
mov r8, rsi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
cmp qword [rbx + 0x18], 8
jb 0x1400071e6
mov rax, qword [rbx]
jmp 0x1400071e9
mov rax, rbx
mov word [rax], di
cmp word [rsp + 0x70], di
je 0x14000720a
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140007200
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140002bb0
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x14000722e
mov rax, qword [rbx]
jmp 0x140007231
mov rax, rbx
mov r11, rsi
sub r11, rax
nop word [rax + rax]
movzx r10d, word [rax]
movzx edx, word [rax + r11]
sub r10d, edx
jne 0x140007256
add rax, 2
test edx, edx
jne 0x140007240
test r10d, r10d
jne 0x1400072a8
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
cmp byte [rbp + 9], r10b
je 0x14000727b
call fcn.140007000
jmp 0x140007280
call fcn.140007100
mov rdx, rax
mov rcx, rbx
call fcn.140002080
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x1400072a8
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.140002d00
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140012ec0
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140008390
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140014200
cmp qword [rdi + 0x58], 8
lea r8, [rdi + 0x40]
jb 0x1400083de
mov r8, qword [r8]
lea r9, str.Config
lea rdx, [0x14002e898]
lea rcx, [rsp + 0x40]
call fcn.140001d50
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000840f
lea rcx, [rsp + 0x40]
call fcn.140009960
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.140014200
lea r9, str.UseVestige.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x150]
call fcn.140001d50
xor ebx, ebx
cmp word [rbp + 0x150], bx
jne 0x140008452
mov r8d, ebx
jmp 0x14000846a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x140008460
lea rcx, [rdi + 0xc0]
lea rdx, [rbp + 0x150]
call fcn.140002bb0
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.140014200
lea r9, str.Cache.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x360]
call fcn.140001d50
cmp word [rbp + 0x360], bx
jne 0x1400084be
mov r8, rbx
jmp 0x1400084da
lea rax, [rbp + 0x360]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1400084d0
lea rcx, [rdi + 0xe0]
lea rdx, [rbp + 0x360]
call fcn.140002bb0
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.140014200
lea rdx, str.LSRoute
lea rcx, [rsp + 0x20]
call fcn.140009e80
cmp qword [rax + 0x18], 8
jb 0x14000851c
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x14002e6a8]
lea rcx, [rbp + 0x570]
call fcn.140001d50
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x14000854f
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140002d00
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000856c
lea rcx, [rbp + 0x570]
call fcn.140009960
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.140014200
lea r9, str.Cache.ini
lea r8, [rbp + 0x570]
lea rdx, str._s_s
lea rcx, [rbp + 0x780]
call fcn.140001d50
cmp word [rbp + 0x780], bx
je 0x1400085bf
lea rax, [rbp + 0x780]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400085b5
lea rcx, [rdi + 0x100]
mov r8, rbx
lea rdx, [rbp + 0x780]
call fcn.140002bb0
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.140012ec0
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140009960
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
or r8, 0xffffffffffffffff
mov rbx, rcx
mov rdi, r8
nop dword [rax]
inc rdi
cmp word [rcx + rdi*2], 0
jne 0x140009980
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.140012f28
mov rsi, rax
sub rax, rbx
nop word [rax + rax]
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x1400099b0
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x140009a1f
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x140009a0d
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009a08
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140009a17
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x1400099e0
jmp 0x140009a1a
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140012fdc
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140009a40
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x290], rbx
mov rsi, rdx
xor bl, bl
mov rbp, rcx
call fcn.140009db0
xor edi, edi
test al, al
je 0x140009adc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.140009cc0
test al, al
je 0x140009adc
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x298], r14
lea edx, [rdi + 0x1a]
mov r14d, 1
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x298]
test bl, bl
jne 0x140009af0
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rbx, qword [rsp + 0x290]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140009b01
test eax, eax
je 0x140009bbf
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140009b20
mov eax, dword [0x14002e8a4]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x140009b40
xor r8d, r8d
nop dword [rax]
movzx ecx, word [rsi + r8*2]
mov word [rdx + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x140009b50
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140009b70
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140009b95
lea rcx, [rsp + 0x40]
call fcn.140009960
cmp word [rsp + 0x40], di
je 0x140009baf
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140009ba5
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140002bb0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140012ec0
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret

Function at 0x140009db0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x1400462a0]
test al, al
jne 0x140009e62
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140014200
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140009e5b
lea rcx, [rsp + 0x20]
call fcn.140019784
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x20]
call fcn.14001640c
test rax, rax
jne 0x140009e3b
lea rdx, str.documents_and_settingslocalservice
lea rcx, [rsp + 0x20]
call fcn.14001640c
test rax, rax
je 0x140009e5b
mov al, 1
mov byte [0x1400462a0], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140012ec0
add rsp, 0x248
ret
movzx eax, byte [0x1400462a0]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140012ec0
add rsp, 0x248
ret