joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140020e10
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x140020cf7
mov rax, qword [0x14004b050]
cmp qword [rsp + 0x20], rax
jb 0x140020c54
mov rax, qword [0x14004b058]
cmp qword [rsp + 0x20], rax
ja 0x140020c54
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140020c16
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140020c83
jmp 0x140020cf7
cmp dword [rsp + 0x50], 0x10000
jne 0x140020cda
cmp qword [rsp + 0x48], 0x10000
jb 0x140020cda
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140020cc8
mov rax, qword [rsp + 0x28]
jmp 0x140020cf9
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140020cf2
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140020e10
mov qword [rsp + 0x20], rax
jmp 0x140020c16
xor eax, eax
add rsp, 0x68
ret

Function at 0x140020d00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.140020e50
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140020e03
mov rax, qword [0x14004b050]
cmp qword [rsp + 0x20], rax
jb 0x140020d5b
mov rax, qword [0x14004b058]
cmp qword [rsp + 0x20], rax
ja 0x140020d5b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140020d1d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140020d8a
jmp 0x140020e03
cmp dword [rsp + 0x50], 0x10000
jne 0x140020de1
cmp qword [rsp + 0x48], 0x10000
jb 0x140020de1
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140020dcf
mov rax, qword [rsp + 0x28]
jmp 0x140020e05
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140020dfe
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140020e50
mov qword [rsp + 0x20], rax
jmp 0x140020d1d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400250c8
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 0x140025102
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140025107
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 0x140025150
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140040410]
cmp byte [rcx + rax], 0
je 0x140025150
dec r8
sub rdx, 1
jne 0x140025136
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400268d8
Capabilities:
Parse pe header

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

Function at 0x140026c20
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400275c0
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.1400275c0
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.1400275c0
mov ecx, dword [0x14004cc70]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x10
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.140028940
call fcn.1400275c0
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret
Function at 0x140029bd0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x14004b140]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140029c0c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.140026780
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140029cc8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140029d2e
test ebx, ebx
jne 0x140029d2e
lea ecx, [rax + 2]
call fcn.140026780
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.140025cd0
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x1400357c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x14004b140]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x14003582c
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x14003582c
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x14003587f
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x140035810
mov rcx, qword [0x14004cba8]
test rcx, rcx
jne 0x140035862
call fcn.140036770
mov rcx, rax
lea rdx, [0x1400414c0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x14004cba8], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x140035963
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x140035965
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x14003598a
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x14003582c
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14003582c
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x14003582c
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x140035953
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x140035931
jmp 0x14003582c
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x14003582c
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.140025cd0
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140025e24
int3

Function at 0x140035df0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140035e52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140035e52
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x140035e52
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x140035e52
cmp dword [rdx + 0x84], 0xe
jbe 0x140035e52
cmp dword [rdx + 0xf8], 0
je 0x140035e52
mov ecx, ebx
call fcn.140035cb0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14004cbc0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140035b30
cmp dword [rsp + 0x60], 0
jne 0x140035e95
mov ecx, ebx
call fcn.140035c60
int3
add rsp, 0x40
pop rbx
ret
Function at 0x140035ee0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140035f3c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140035f3c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140035f3c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140035f3c
cmp dword [rcx + 0x84], 0xe
jbe 0x140035f3c
cmp dword [rcx + 0xf8], 0
je 0x140035f3c
mov ecx, ebx
call fcn.140035cb0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x14004cbc0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.140035b30
cmp dword [rsp + 0x60], 0
jne 0x140035f7f
mov ecx, ebx
call fcn.140035c60
int3
add rsp, 0x40
pop rbx
ret
Function at 0x180003a50
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 [0x1800470b0]
xor rax, rsp
mov qword [rbp + 0x780], rax
mov edi, r9d
mov r14, r8
mov rsi, rdx
mov rbx, rcx
lea r9, [rcx + 0xb8]
cmp qword [r9 + 0x18], 8
jb 0x180003a9f
mov r9, qword [r9]
mov r8d, edi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, edi
jne 0x180003c1b
mov qword [rsp + 0x50], 7
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
xor r8d, r8d
lea rdx, [0x180030910]
lea rcx, [rsp + 0x38]
call fcn.180002fc0
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x80]
call fcn.180016ed0
mov r8d, edi
lea rdx, [0x1800307c8]
lea rcx, [rbp - 0x80]
call fcn.180003240
lea rax, [rbp - 0x80]
mov r9, r14
mov r8, rsi
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x20], rax
cmp byte [rbx + 9], r15b
je 0x180003b76
call fcn.180003910
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180003b74
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180003b52
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180003110
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180002b20
nop
jmp 0x180003bc7
call fcn.180003a10
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x180003bc7
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180003ba5
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180003110
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], r15
mov word [rsp + 0x38], r15w
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180002b20
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x180003be4
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.180003110
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.180019214
mov ebx, eax
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180003c19
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180003110
mov eax, ebx
mov rcx, qword [rbp + 0x780]
xor rcx, rsp
call fcn.180013f70
add rsp, 0x898
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180003c40
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 [0x1800470b0]
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.180016ed0
lea rax, [rbp + 0xb8]
cmp qword [rax + 0x18], 8
jb 0x180003cad
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 0x180003ce6
mov rax, qword [rbx]
jmp 0x180003ce9
mov rax, rbx
mov word [rax], di
cmp word [rsp + 0x70], di
je 0x180003d0a
lea rax, [rsp + 0x70]
or rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x180003d00
mov r8, rdi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180002fc0
mov dword [rsp + 0x30], 1
cmp qword [rbx + 0x18], 8
jb 0x180003d2e
mov rax, qword [rbx]
jmp 0x180003d31
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 0x180003d56
add rax, 2
test edx, edx
jne 0x180003d40
test r10d, r10d
jne 0x180003da8
mov qword [rsp + 0x20], rsi
mov r9, r15
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
cmp byte [rbp + 9], r10b
je 0x180003d7b
call fcn.180003910
jmp 0x180003d80
call fcn.180003a10
mov rdx, rax
mov rcx, rbx
call fcn.180002a70
mov r8, qword [rsp + 0x60]
cmp r8, 8
jb 0x180003da8
inc r8
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x48]
call fcn.180003110
mov rax, rbx
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.180013f70
add rsp, 0x888
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004eb0
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 [0x1800470b0]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180016ed0
cmp qword [rdi + 0x50], 8
lea r8, [rdi + 0x38]
jb 0x180004efe
mov r8, qword [r8]
lea r9, str.Config
lea rdx, [0x1800309f0]
lea rcx, [rsp + 0x40]
call fcn.180003240
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180004f2f
lea rcx, [rsp + 0x40]
call fcn.18000aaf0
xor edx, edx
lea rcx, [rbp + 0x150]
mov r8d, 0x208
call fcn.180016ed0
lea r9, str.UseVestige.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x150]
call fcn.180003240
xor ebx, ebx
cmp word [rbp + 0x150], bx
jne 0x180004f72
mov r8d, ebx
jmp 0x180004f8a
lea rax, [rbp + 0x150]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004f80
lea rcx, [rdi + 0xb8]
lea rdx, [rbp + 0x150]
call fcn.180002fc0
xor edx, edx
lea rcx, [rbp + 0x360]
mov r8d, 0x208
call fcn.180016ed0
lea r9, str.UseCache.ini
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rbp + 0x360]
call fcn.180003240
cmp word [rbp + 0x360], bx
jne 0x180004fde
mov r8, rbx
jmp 0x180004ffa
lea rax, [rbp + 0x360]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x180004ff0
lea rcx, [rdi + 0xd8]
lea rdx, [rbp + 0x360]
call fcn.180002fc0
xor edx, edx
lea rcx, [rbp + 0x570]
mov r8d, 0x208
call fcn.180016ed0
lea rdx, str.BjtPath
lea rcx, [rsp + 0x20]
call fcn.18000b010
cmp qword [rax + 0x18], 8
jb 0x18000503c
mov rax, qword [rax]
mov r8, rax
lea rdx, [0x180030a50]
lea rcx, [rbp + 0x570]
call fcn.180003240
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x18000506f
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.180003110
lea rcx, [rbp + 0x570]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000508c
lea rcx, [rbp + 0x570]
call fcn.18000aaf0
xor edx, edx
lea rcx, [rbp + 0x780]
mov r8d, 0x208
call fcn.180016ed0
lea r9, str.UseCache.ini
lea r8, [rbp + 0x570]
lea rdx, str._s_s
lea rcx, [rbp + 0x780]
call fcn.180003240
cmp word [rbp + 0x780], bx
je 0x1800050df
lea rax, [rbp + 0x780]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800050d5
lea rcx, [rdi + 0xf8]
mov r8, rbx
lea rdx, [rbp + 0x780]
call fcn.180002fc0
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.180013f70
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x18000a750
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.180013fd0
sub rsp, rax
mov rax, qword [0x1800470b0]
xor rax, rsp
mov qword [rsp + 0x1060], rax
mov rsi, rcx
mov rdi, rdx
xor ecx, ecx
call fcn.18001bee4
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call fcn.18001c72c
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.18000a5b0
mov rcx, rsi
xor edi, edi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, 1
lea rdx, [0x1800311b0]
test eax, eax
mov rcx, rsi
cmovne edi, ebp
call fcn.18001c404
mov rbx, rax
test rax, rax
je 0x18000a8a3
test edi, edi
jne 0x18000a834
mov eax, 0xfeff
lea r8d, [rbp + 1]
mov r9, rbx
mov word [rsp + 0x54], ax
mov edx, ebp
lea rcx, [rsp + 0x54]
call fcn.1800186d8
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x18000a840
add eax, eax
lea rcx, [rsp + 0x60]
movsxd r8, eax
mov r9, rbx
mov rdx, rbp
call fcn.1800186d8
mov eax, 0xd
lea rcx, [rsp + 0x50]
mov r9, rbx
mov word [rsp + 0x50], ax
mov rdx, rbp
lea r8d, [rax - 0xb]
call fcn.1800186d8
mov eax, 0xa
lea rcx, [rsp + 0x50]
mov r9, rbx
mov word [rsp + 0x50], ax
mov rdx, rbp
lea r8d, [rax - 8]
call fcn.1800186d8
mov rcx, rbx
call fcn.18001842c
mov rcx, qword [rsp + 0x1060]
xor rcx, rsp
call fcn.180013f70
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1070
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000aaf0
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 0x18000ab10
lea eax, [rdi + 1]
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.180014024
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 0x18000ab40
xor r14d, r14d
movsxd rdi, edi
mov ebx, r14d
lea ebp, [r14 + 1]
test rdi, rdi
js 0x18000abaf
mov qword [rsp + 0x40], r15
mov r15d, 0x5c
nop dword [rax]
cmp word [rsi + rbx*2], r15w
jne 0x18000ab9d
mov rcx, rsi
mov word [rsi + rbx*2], r14w
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000ab98
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18000aba7
mov word [rsi + rbx*2], r15w
inc rbx
cmp rbx, rdi
jle 0x18000ab70
jmp 0x18000abaa
mov ebp, r14d
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.180013e5c
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 0x18000abd0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800470b0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x290], rbx
mov rsi, rdx
xor bl, bl
mov rbp, rcx
call fcn.18000af40
xor edi, edi
test al, al
je 0x18000ac6c
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.18000ae50
test al, al
je 0x18000ac6c
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 0x18000ac80
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 0x18000ac91
test eax, eax
je 0x18000ad4f
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x18000acb0
mov eax, dword [0x180030914]
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 0x18000acd0
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 0x18000ace0
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x18000ad00
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000ad25
lea rcx, [rsp + 0x40]
call fcn.18000aaf0
cmp word [rsp + 0x40], di
je 0x18000ad3f
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x18000ad35
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.180002fc0
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180013f70
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000af40
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x1800470b0]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x1800483b0]
test al, al
jne 0x18000aff2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180016ed0
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 0x18000afeb
lea rcx, [rsp + 0x20]
call fcn.18001c140
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x20]
call fcn.180017218
test rax, rax
jne 0x18000afcb
lea rdx, str.documents_and_settingslocalservice
lea rcx, [rsp + 0x20]
call fcn.180017218
test rax, rax
je 0x18000afeb
mov al, 1
mov byte [0x1800483b0], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180013f70
add rsp, 0x248
ret
movzx eax, byte [0x1800483b0]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180013f70
add rsp, 0x248
ret