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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4caeb2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4ef108]
test eax, eax
je 0x2fc4caf4a
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4ef110]
mov qword [rbp - 8], rax
jmp 0x2fc4caf2e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4caf22
cmp qword [rbp - 0x10], 0
je 0x2fc4caf22
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4caee8
lea rax, [0x2fc4ef0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4caf4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb050
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cb078
mov eax, 0
jmp 0x2fc4cb0c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cb0a1
mov eax, 0
jmp 0x2fc4cb0c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cb0c1
mov eax, 0
jmp 0x2fc4cb0c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb0cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cb14a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb141
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cb141
mov rax, qword [rbp - 8]
jmp 0x2fc4cb15f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cb114
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1800051f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x40
xor ecx, ecx
lea rax, [r11 - 0x28]
mov rbx, r9
mov qword [r11 - 0x30], rax
mov rsi, r8
mov qword [r11 - 0x38], rcx
mov rbp, rdx
mov dword [rsp + 0x30], ecx
mov r15d, 1
lea r9, [r11 - 0x24]
mov rcx, rbp
mov dword [r11 - 0x24], r15d
mov r8, rbx
mov rdx, rsi
xor r14b, r14b
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1800052ea
mov ecx, dword [rsp + 0x30]
mov qword [rsp + 0x60], rdi
call fcn.18001d564
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.18001c150
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov r8, rbx
mov qword [rsp + 0x20], rdi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test rdi, rdi
je 0x1800052e4
mov r8, qword [rsp + 0x80]
mov rax, rdi
sub r8, rdi
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1800052b6
add rax, 2
test ecx, ecx
jne 0x1800052a2
test edx, edx
movzx ebx, r14b
mov rcx, rdi
cmove ebx, r15d
call fcn.18001d55c
movzx eax, bl
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
movzx eax, r14b
jmp 0x1800052cb
movzx eax, r14b
jmp 0x1800052d0
Function at 0x180005690
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x18004f0b0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movaps xmm0, xmmword [str.SOFTWARERegisteredApplications]
lea rcx, [rsp + 0x70]
movaps xmm1, xmmword [0x180035650]
mov rdi, r8
movaps xmmword [rsp + 0x30], xmm0
mov rbx, rdx
movaps xmm0, xmmword [0x180035660]
xor edx, edx
movaps xmmword [rsp + 0x40], xmm1
mov r8d, 0x88
movaps xmm1, xmmword [0x180035670]
mov esi, r9d
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
call fcn.18001c150
xor edx, edx
lea rcx, [rsp + 0x100]
mov r8d, 0xc8
call fcn.18001c150
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rsp + rcx + 0x30]
mov word [rsp + rcx + 0x100], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005720
lea rcx, [rsp + 0x100]
sub rcx, 2
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180005742
mov eax, dword [0x180035b4c]
mov dword [rcx], eax
lea rax, [rsp + 0x100]
sub rax, 2
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x180005761
xor edx, edx
nop
movzx ecx, word [rbx + rdx*2]
lea rdx, [rdx + 1]
test cx, cx
jne 0x180005770
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test esi, esi
je 0x1800057d7
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1800057a0
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x30]
mov r8, rbx
mov qword [rsp + 0x20], rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.180019490
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180005b10
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x370
mov rax, qword [0x18004f0b0]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rdi, r8
lea rcx, [rsp + 0x1d0]
mov rbx, rdx
mov r8d, 0x190
xor edx, edx
call fcn.18001c150
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0xc8
call fcn.18001c150
xor edx, edx
lea rcx, [rsp + 0x100]
mov r8d, 0xc8
call fcn.18001c150
mov r9, rdi
lea rdx, str._s_s
mov r8, rbx
lea rcx, [rsp + 0x100]
call fcn.180008b90
mov r8, rbx
lea rdx, str.SOFTWARE_sCapabilitiesFileAssociations
lea rcx, [rsp + 0x1d0]
call fcn.180008b90
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rsp + rcx + 0x1d0]
mov word [rsp + rcx + 0x30], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x180005bb0
lea rcx, [rsp + 0x30]
sub rcx, 2
nop
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x180005bd0
mov eax, dword [0x180035b4c]
mov dword [rcx], eax
lea rax, [rsp + 0x30]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x180005bf0
xor edx, edx
nop dword [rax]
movzx ecx, word [rdi + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x180005c00
lea rdx, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea rdx, [rsp + 0x100]
or rax, 0xffffffffffffffff
nop
cmp word [rdx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x180005c30
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x1d0]
lea rax, [rsp + 0x100]
mov r8, rdi
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.180019490
mov rbx, qword [rsp + 0x380]
add rsp, 0x370
pop rdi
ret
Function at 0x180005f20
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18004f0b0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
test rcx, rcx
jne 0x180005f6b
xor eax, eax
jmp 0x180006172
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp word [rcx], bx
jne 0x180005f88
mov r8, rbx
jmp 0x180005f9a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rcx + r8*2], bx
jne 0x180005f90
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.180008580
nop
lea rcx, [rsp + 0x50]
call fcn.180012cd0
xor edx, edx
mov r8d, 0x238
lea rcx, [rbp - 0x70]
call fcn.18001c150
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180006153
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x180006149
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp - 0x44], 0
jne 0x180006014
mov r8, rbx
jmp 0x18000602b
lea rax, [rbp - 0x44]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x180006020
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.180008580
nop
lea rcx, [rsp + 0x30]
call fcn.180012cd0
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x40]
call fcn.180008060
test eax, eax
je 0x1800060c3
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1800124f0
or edi, 1
lea r9, [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x180006099
mov rax, qword [rax]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov r9, qword [r9]
mov r8, rax
mov rdx, qword [rsp + 0x60]
call fcn.180008060
test eax, eax
je 0x1800060c3
xor sil, sil
jmp 0x1800060c6
mov sil, 1
test dil, 1
je 0x1800060eb
and edi, 0xfffffffe
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x1800060eb
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.180008740
test sil, sil
jne 0x18000611e
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x18000610d
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.180008740
lea rdx, [rbp - 0x70]
mov rcx, r14
call sub.KERNEL32.dll_Process32NextW
jmp 0x180005fed
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rbp - 0x68]
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x180006153
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.180008740
jmp 0x180006153
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x180006170
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.180008740
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.180019490
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180008c10
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
xor ebx, ebx
movsxd rbp, edx
xor r11d, r11d
xor r10d, r10d
mov r14, r9
mov r15, r8
mov rdi, rcx
test edx, edx
jle 0x180008d4c
mov rsi, rcx
lea r12, [0x180036b10]
neg rsi
mov rdx, rcx
movzx eax, byte [rdx]
cmp al, 0x3d
jne 0x180008c66
inc r11d
cmp r11d, 2
jg 0x180008cb9
cmp al, 0x7f
ja 0x180008cb9
movzx eax, al
movzx ecx, byte [rax + r12]
cmp cl, 0x7f
je 0x180008cb9
cmp cl, 0x40
jae 0x180008c81
test r11d, r11d
jne 0x180008cb9
inc rdx
inc ebx
inc r10d
lea rax, [rsi + rdx]
cmp rax, rbp
jl 0x180008c56
test ebx, ebx
je 0x180008d4c
lea eax, [rbx + rbx*2]
lea eax, [rax*2 + 7]
sar eax, 3
cmp dword [r9], eax
jge 0x180008cc3
mov dword [r9], eax
mov eax, 0xfffffff0
jmp 0x180008d4e
mov eax, 0xffffffee
jmp 0x180008d4e
xor r8d, r8d
xor r11d, r11d
mov r9d, 3
mov rax, r15
test r10d, r10d
jle 0x180008d46
nop word [rax + rax]
movzx ecx, byte [rdi]
movzx edx, byte [rcx + r12]
xor ecx, ecx
cmp dl, 0x40
sete cl
and edx, 0x3f
sub r9d, ecx
inc r11d
mov ecx, r8d
mov r8d, edx
shl ecx, 6
or r8d, ecx
cmp r11d, 4
jne 0x180008d3b
xor r11d, r11d
test r9d, r9d
jle 0x180008d1e
mov ecx, r8d
shr ecx, 0x10
mov byte [rax], cl
inc rax
cmp r9d, 1
jle 0x180008d2f
mov ecx, r8d
shr ecx, 8
mov byte [rax], cl
inc rax
cmp r9d, 2
jle 0x180008d3b
mov byte [rax], r8b
inc rax
dec r10d
inc rdi
test r10d, r10d
jg 0x180008ce0
sub eax, r15d
mov dword [r14], eax
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret

Function at 0x180008d70
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 0x180008dac
mov rdx, qword [rdx]
call fcn.18000a310
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x18000aab0
Capabilities:
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x798]
sub rsp, 0x898
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x18004f0b0]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov ebx, r9d
mov rsi, r8
mov rdi, rdx
mov r14, rcx
lea r9, [rcx + 0xc0]
cmp qword [r9 + 0x18], 8
jb 0x18000aaff
mov r9, qword [r9]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, ebx
jne 0x18000ac22
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x180035c10]
lea rcx, [rsp + 0x38]
call fcn.180008580
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.18001c150
mov r8d, ebx
lea rdx, [0x180036f28]
lea rcx, [rbp - 0x80]
call fcn.180008b90
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8, rdi
lea rdx, [rsp + 0x58]
mov rcx, r14
call fcn.18000aa70
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x18000abce
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x18000abac
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180008740
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180007ce0
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x18000abeb
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180008740
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.180021420
mov ebx, eax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x18000ac22
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180008740
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.180019490
add rsp, 0x898
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18000ac50
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 [0x18004f0b0]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov r14, r9
mov rbp, r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rdx
mov rsi, qword [rsp + 0x8e0]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x70]
call fcn.18001c150
lea rax, [r15 + 0xc0]
cmp qword [rax + 0x18], 8
jb 0x18000acbd
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rsp + 0x70]
mov r8, rsi
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 8
jb 0x18000acf6
mov rax, qword [rdi]
jmp 0x18000acf9
mov rax, rdi
mov word [rax], bx
cmp word [rsp + 0x70], bx
je 0x18000ad1a
lea rax, [rsp + 0x70]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18000ad10
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.180008580
mov dword [rsp + 0x30], 1
cmp qword [rdi + 0x18], 8
jb 0x18000ad3e
mov rax, qword [rdi]
jmp 0x18000ad41
mov rax, rdi
mov r11, rsi
sub r11, rax
nop word [rax + rax]
movzx r10d, word [rax]
movzx edx, word [rax + r11]
sub r10d, edx
jne 0x18000ad66
add rax, 2
test edx, edx
jne 0x18000ad50
test r10d, r10d
jne 0x18000adab
mov qword [rsp + 0x20], rsi
mov r9, r14
mov r8, rbp
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.18000aa70
mov rdx, rax
mov rcx, rdi
call fcn.180005180
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x18000adab
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180008740
mov rax, rdi
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.180019490
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000beb0
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 [0x18004f0b0]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.18001c150
cmp qword [rdi + 0x58], 8
lea r8, [rdi + 0x40]
jb 0x18000befe
mov r8, qword [r8]
lea r9, str.Config
lea rdx, [0x180036e78]
lea rcx, [rsp + 0x40]
call fcn.180008b90
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000bf2f
lea rcx, [rsp + 0x40]
call fcn.180011220
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.18001c150
lea r9, str.UseVestige.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x150]
call fcn.180008b90
xor ebx, ebx
cmp word [rbp + 0x150], bx
jne 0x18000bf72
mov r8d, ebx
jmp 0x18000bf8a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x18000bf80
lea rcx, [rdi + 0xc0]
lea rdx, [rbp + 0x150]
call fcn.180008580
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.18001c150
lea r9, str.UseCache.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x360]
call fcn.180008b90
cmp word [rbp + 0x360], bx
jne 0x18000bfde
mov r8, rbx
jmp 0x18000bffa
lea rax, [rbp + 0x360]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x18000bff0
lea rcx, [rdi + 0xe0]
lea rdx, [rbp + 0x360]
call fcn.180008580
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.18001c150
lea rdx, str.OdPath
lea rcx, [rsp + 0x20]
call fcn.180011520
cmp qword [rax + 0x18], 8
jb 0x18000c03c
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x180036ed8]
lea rcx, [rbp + 0x570]
call fcn.180008b90
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x18000c06f
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.180008740
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000c08c
lea rcx, [rbp + 0x570]
call fcn.180011220
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.18001c150
lea r9, str.UseCache.ini
lea r8, [rbp + 0x570]
lea rdx, str._s_s
lea rcx, [rbp + 0x780]
call fcn.180008b90
cmp word [rbp + 0x780], bx
je 0x18000c0df
lea rax, [rbp + 0x780]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18000c0d5
lea rcx, [rdi + 0x100]
mov r8, rbx
lea rdx, [rbp + 0x780]
call fcn.180008580
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.180019490
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x180010e80
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov eax, 0x1070
call fcn.180019420
sub rsp, rax
mov rax, qword [0x18004f0b0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rsi, rcx
mov rdi, rdx
xor ecx, ecx
call fcn.180021510
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.18002186c
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rbx]
lea rdx, str.__d__d__d__d__d__d___d_:_s
mov r9d, dword [rbx + 0x10]
mov r8d, dword [rbx + 0x14]
inc r9d
mov qword [rsp + 0x48], rdi
add r8d, 0x76c
mov dword [rsp + 0x40], eax
mov eax, dword [rbx + 0xc]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x30], ecx
mov ecx, dword [rbx + 8]
mov dword [rsp + 0x28], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.180010ce0
mov rcx, rsi
xor edi, edi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, 1
lea rdx, [0x1800375a8]
test eax, eax
mov rcx, rsi
cmovne edi, ebp
call fcn.180021a00
mov rbx, rax
test rax, rax
je 0x180010fd3
test edi, edi
jne 0x180010f64
mov eax, 0xfeff
lea r8d, [rbp + 1]
mov r9, rbx
mov word [rsp + 0x54], ax
mov edx, ebp
lea rcx, [rsp + 0x54]
call fcn.180020974
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180010f70
add eax, eax
lea rcx, [rsp + 0x60]
movsxd r8, eax
mov r9, rbx
mov rdx, rbp
call fcn.180020974
mov eax, 0xd
lea rcx, [rsp + 0x50]
mov r9, rbx
mov word [rsp + 0x50], ax
mov rdx, rbp
lea r8d, [rax - 0xb]
call fcn.180020974
mov eax, 0xa
lea rcx, [rsp + 0x50]
mov r9, rbx
mov word [rsp + 0x50], ax
mov rdx, rbp
lea r8d, [rax - 8]
call fcn.180020974
mov rcx, rbx
call fcn.1800206c8
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.180019490
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret

Function at 0x180011220
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 0x180011240
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1800194bc
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 0x180011270
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x1800112df
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x1800112cd
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1800112c8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1800112d7
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x1800112a0
jmp 0x1800112da
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.1800194b4
mov rbx, qword [rsp + 0x48]
mov eax, ebp
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret