joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801668b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor esi, esi
lea rcx, [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x60], rsi
mov ebx, esi
mov qword [rsp + 0x58], rsi
lea r8d, [rsi + 0x5a]
call fcn.180233580
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x208
call fcn.180233580
lea rdx, [rsp + 0x7c]
lea rcx, [0x1802a59f0]
call fcn.180169880
test eax, eax
je 0x180166ac6
mov eax, dword [0x1802a5a48]
lea rdx, [rsp + 0x70]
movsd xmm0, qword [str.CLSID_]
xor r9d, r9d
mov dword [rsp + 0x78], eax
xor r8d, r8d
lea rax, [rsp + 0x50]
movsd qword [rsp + 0x70], xmm0
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffff80000000
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180166a9f
mov rcx, qword [rsp + 0x60]
lea rax, [0x1802a5a50]
mov qword [rsp + 0x308], r14
xor r8d, r8d
mov r14d, 1
mov dword [rsp + 0x28], 0x10
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180166a97
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rdx, str.InProcServer32
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180166a97
mov rcx, qword [0x180344358]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x300], rdi
mov edi, 0x104
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x103
mov r9d, r14d
lea ecx, [rax + 1]
cmovae ecx, edi
xor r8d, r8d
mov dword [rsp + 0x50], ecx
xor edx, edx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x300]
test eax, eax
jne 0x180166a97
mov rcx, qword [rsp + 0x58]
lea rax, str.Apartment
mov dword [rsp + 0x28], 0x14
lea rdx, str.ThreadingModel
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove ebx, r14d
mov r14, qword [rsp + 0x308]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x180166ab4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180166ac4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18016de50
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1802abc2c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbx + 0x30]
call fcn.180173390
mov r8, qword [rbx + 0x20]
cmp r8, 8
jb 0x18016de89
mov rdx, qword [rbx + 8]
lea rcx, [rbx + 8]
inc r8
call fcn.18005cac0
xor ecx, ecx
mov qword [rbx + 0x20], 7
cmp qword [rbx + 0x20], 8
mov qword [rbx + 0x18], rcx
jb 0x18016deab
mov rax, qword [rbx + 8]
mov word [rax], cx
add rsp, 0x20
pop rbx
ret
mov word [rbx + 8], cx
add rsp, 0x20
pop rbx
ret
Function at 0x180171b30
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xa8
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r9
mov r14, r8
mov rbx, rdx
mov r15, rcx
mov qword [rbp - 0x19], 7
xor edi, edi
mov qword [rbp - 0x21], rdi
mov word [rbp - 0x31], di
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rdi
mov dword [rbp - 0x11], edi
xor r8d, r8d
lea rdx, [0x1802abc2c]
lea rcx, [rbp - 0x31]
call fcn.18005c660
mov dword [rbp - 0x39], edi
lea rcx, [r15 + 0x2450]
mov dword [rbp - 0xd], 2
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x39]
mov r8, rbx
mov rdx, qword [rcx]
call fcn.1801b2730
mov dword [rbp - 0x39], edi
mov r9, qword [rbp - 9]
mov rax, r9
mov rcx, qword [rbp - 1]
cmp r9, rcx
je 0x180171c18
cmp dword [rax], 0
jne 0x180171be0
inc edi
mov dword [rbp - 0x39], edi
sub rax, 0xffffffffffffff80
cmp rax, rcx
jne 0x180171bd6
cmp r9, rcx
je 0x180171c18
add r9, 8
cmp qword [r9 + 0x18], 8
jb 0x180171bfe
mov rdx, qword [r9]
jmp 0x180171c01
mov rdx, r9
lea rcx, [r9 + 0x70]
call fcn.1801a9f10
sub r9, 0xffffffffffffff80
lea rax, [r9 - 8]
cmp rax, qword [rbp - 1]
jne 0x180171bf2
lea rcx, [rbp - 0x39]
call fcn.1801aa450
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 0x1020]
call fcn.1801a81a0
mov rbx, rax
test rax, rax
je 0x180171ca3
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov r9d, 1
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 0x1020]
call fcn.1801a8420
mov eax, dword [rbx + 6]
test eax, eax
je 0x180171ca3
nop dword [rax]
nop word [rax + rax]
mov ebx, eax
add rbx, qword [r15 + 0x1250]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov r9d, 1
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 0x1020]
call fcn.1801a8420
mov eax, dword [rbx + 6]
test eax, eax
jne 0x180171c70
cmp dword [r15 + 0x3fc0], 0
je 0x180171d33
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
cmp rax, 0x20
jae 0x180171d33
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 0x2870]
call fcn.1801a81a0
mov rbx, rax
test rax, rax
je 0x180171d33
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov r9d, 1
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 0x2870]
call fcn.1801a8420
mov eax, dword [rbx + 6]
test eax, eax
je 0x180171d33
mov ebx, eax
add rbx, qword [r15 + 0x2aa0]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov r9d, 1
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [r15 + 0x2870]
call fcn.1801a8420
mov eax, dword [rbx + 6]
test eax, eax
jne 0x180171d00
lea rcx, [0x1802abc2c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 9]
call fcn.180173390
mov r8, qword [rbp - 0x19]
cmp r8, 8
jb 0x180171d63
inc r8
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x31]
call fcn.18005cac0
mov eax, 1
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0xa8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180180190
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
sub rsp, 0x40
mov rbp, r9
mov rbx, r8
mov rdi, rcx
cmp r8, 0x20
jg 0x1801801bf
mov r8, qword [rsp + 0x80]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
jmp fcn.1801804d0
lea rax, [r8 + 1]
mov qword [rsp + 0x60], rsi
cqo
sub rax, rdx
sar rax, 1
mov rsi, rax
lea rcx, [rax + rax*8]
lea rax, [rdi + rcx*8]
mov rcx, rbp
mov qword [rsp + 0x70], rax
call fcn.1801802a0
mov rdx, qword [rsp + 0x70]
cmp rsi, rax
mov rax, qword [rsp + 0x80]
mov r9, rbp
mov qword [rsp + 0x20], rax
mov r8, rsi
mov rcx, rdi
jg 0x180180234
call fcn.1801806e0
mov rax, qword [rsp + 0x80]
sub rbx, rsi
mov rdx, qword [rsp + 0x68]
mov r8, rbx
mov rcx, qword [rsp + 0x70]
mov r9, rbp
mov qword [rsp + 0x20], rax
call fcn.1801806e0
jmp 0x18018025e
call fcn.180180190
mov rax, qword [rsp + 0x80]
sub rbx, rsi
mov rdx, qword [rsp + 0x68]
mov r8, rbx
mov rcx, qword [rsp + 0x70]
mov r9, rbp
mov qword [rsp + 0x20], rax
call fcn.180180190
mov rax, qword [rsp + 0x80]
mov r9, rsi
mov r8, qword [rsp + 0x68]
mov rcx, rdi
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbx
call fcn.1801807f0
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x1801804d0
Capabilities:
Print debug messages

Disassembly:
cmp rcx, rdx
je 0x1801806d3
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r8
mov r13, rdx
mov r15, rcx
lea r14, [rcx + 0x48]
cmp r14, rdx
je 0x1801806ad
xor ecx, ecx
mov rbx, r14
mov eax, dword [r14]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rcx
mov word [rbp - 0x31], cx
lea rdx, [r14 + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x31]
call fcn.18005cbe0
nop
mov eax, dword [r14 + 0x28]
mov dword [rbp - 0x11], eax
mov eax, dword [r14 + 0x2c]
mov dword [rbp - 0xd], eax
lea rdx, [r14 + 0x30]
lea rcx, [rbp - 9]
call fcn.180172dc0
nop
mov rdx, r15
lea rcx, [rbp - 0x39]
call qword [r12]
test al, al
je 0x1801805c8
lea r8, [r14 + 0x48]
mov rdx, r14
mov rcx, r15
call fcn.180181670
mov eax, dword [rbp - 0x39]
mov dword [r15], eax
lea rcx, [r15 + 8]
lea rax, [rbp - 0x31]
cmp rcx, rax
je 0x1801805b1
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x31]
call fcn.18005cbe0
mov eax, dword [rbp - 0x11]
mov dword [r15 + 0x28], eax
mov eax, dword [rbp - 0xd]
mov dword [r15 + 0x2c], eax
lea rcx, [r15 + 0x30]
jmp 0x180180661
lea rsi, [r14 - 0x48]
mov rdx, rsi
lea rcx, [rbp - 0x39]
call qword [r12]
test al, al
je 0x18018062f
lea rdi, [r14 - 0x40]
nop
mov eax, dword [rsi]
mov dword [rbx], eax
lea rcx, [rbx + 8]
cmp rcx, rdi
je 0x1801805fc
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.18005cbe0
mov eax, dword [rdi + 0x20]
mov dword [rbx + 0x28], eax
mov eax, dword [rdi + 0x24]
mov dword [rbx + 0x2c], eax
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x30]
call fcn.180172c60
mov rbx, rsi
sub rsi, 0x48
sub rdi, 0x48
mov rdx, rsi
lea rcx, [rbp - 0x39]
call qword [r12]
test al, al
jne 0x1801805e0
mov eax, dword [rbp - 0x39]
mov dword [rbx], eax
lea rcx, [rbx + 8]
lea rax, [rbp - 0x31]
cmp rcx, rax
je 0x180180651
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x31]
call fcn.18005cbe0
mov eax, dword [rbp - 0x11]
mov dword [rbx + 0x28], eax
mov eax, dword [rbp - 0xd]
mov dword [rbx + 0x2c], eax
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 9]
call fcn.180172c60
nop
lea rcx, [0x1802abc2c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 9]
call fcn.180173390
mov r8, qword [rbp - 0x19]
cmp r8, 8
jb 0x18018069b
inc r8
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x31]
call fcn.18005cac0
add r14, 0x48
cmp r14, r13
mov ecx, 0
jne 0x180180526
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1802037a0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801804d9
Capabilities:
Print debug messages

Disassembly:
cmp rcx, rdx
je 0x1801806d3
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rsp + 0xd8], rbx
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r12, r8
mov r13, rdx
mov r15, rcx
lea r14, [rcx + 0x48]
cmp r14, rdx
je 0x1801806ad
xor ecx, ecx
mov rbx, r14
mov eax, dword [r14]
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x21], rcx
mov word [rbp - 0x31], cx
lea rdx, [r14 + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x31]
call fcn.18005cbe0
nop
mov eax, dword [r14 + 0x28]
mov dword [rbp - 0x11], eax
mov eax, dword [r14 + 0x2c]
mov dword [rbp - 0xd], eax
lea rdx, [r14 + 0x30]
lea rcx, [rbp - 9]
call fcn.180172dc0
nop
mov rdx, r15
lea rcx, [rbp - 0x39]
call qword [r12]
test al, al
je 0x1801805c8
lea r8, [r14 + 0x48]
mov rdx, r14
mov rcx, r15
call fcn.180181670
mov eax, dword [rbp - 0x39]
mov dword [r15], eax
lea rcx, [r15 + 8]
lea rax, [rbp - 0x31]
cmp rcx, rax
je 0x1801805b1
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x31]
call fcn.18005cbe0
mov eax, dword [rbp - 0x11]
mov dword [r15 + 0x28], eax
mov eax, dword [rbp - 0xd]
mov dword [r15 + 0x2c], eax
lea rcx, [r15 + 0x30]
jmp 0x180180661
lea rsi, [r14 - 0x48]
mov rdx, rsi
lea rcx, [rbp - 0x39]
call qword [r12]
test al, al
je 0x18018062f
lea rdi, [r14 - 0x40]
nop
mov eax, dword [rsi]
mov dword [rbx], eax
lea rcx, [rbx + 8]
cmp rcx, rdi
je 0x1801805fc
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
call fcn.18005cbe0
mov eax, dword [rdi + 0x20]
mov dword [rbx + 0x28], eax
mov eax, dword [rdi + 0x24]
mov dword [rbx + 0x2c], eax
lea rdx, [rdi + 0x28]
lea rcx, [rbx + 0x30]
call fcn.180172c60
mov rbx, rsi
sub rsi, 0x48
sub rdi, 0x48
mov rdx, rsi
lea rcx, [rbp - 0x39]
call qword [r12]
test al, al
jne 0x1801805e0
mov eax, dword [rbp - 0x39]
mov dword [rbx], eax
lea rcx, [rbx + 8]
lea rax, [rbp - 0x31]
cmp rcx, rax
je 0x180180651
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x31]
call fcn.18005cbe0
mov eax, dword [rbp - 0x11]
mov dword [rbx + 0x28], eax
mov eax, dword [rbp - 0xd]
mov dword [rbx + 0x2c], eax
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 9]
call fcn.180172c60
nop
lea rcx, [0x1802abc2c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rbp - 9]
call fcn.180173390
mov r8, qword [rbp - 0x19]
cmp r8, 8
jb 0x18018069b
inc r8
mov rdx, qword [rbp - 0x31]
lea rcx, [rbp - 0x31]
call fcn.18005cac0
add r14, 0x48
cmp r14, r13
mov ecx, 0
jne 0x180180526
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1802037a0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801818f0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rcx]
mov dword [rsp + 0x30], eax
lea rbp, [rcx + 8]
mov qword [r11 - 0x58], 7
xor eax, eax
mov qword [r11 - 0x60], rax
mov word [rsp + 0x38], ax
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
lea rcx, [r11 - 0x70]
call fcn.18005cbe0
nop
mov eax, dword [rsi + 0x28]
mov dword [rsp + 0x58], eax
mov eax, dword [rsi + 0x2c]
mov dword [rsp + 0x5c], eax
lea rdx, [rsi + 0x30]
lea rcx, [rsp + 0x60]
call fcn.180172dc0
nop
mov eax, dword [rbx]
mov dword [rsi], eax
lea rdi, [rbx + 8]
cmp rbp, rdi
je 0x180181994
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call fcn.18005cbe0
mov eax, dword [rbx + 0x28]
mov dword [rsi + 0x28], eax
mov eax, dword [rbx + 0x2c]
mov dword [rsi + 0x2c], eax
lea rdx, [rbx + 0x30]
lea rcx, [rsi + 0x30]
call fcn.180172c60
mov eax, dword [rsp + 0x30]
mov dword [rbx], eax
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x1801819d1
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.18005cbe0
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x28], eax
mov eax, dword [rsp + 0x5c]
mov dword [rbx + 0x2c], eax
lea rdx, [rsp + 0x60]
lea rcx, [rbx + 0x30]
call fcn.180172c60
nop
lea rcx, [0x1802abc2c]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x60]
call fcn.180173390
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180181a22
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.18005cac0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1801a3640
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x670
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov rbp, r8
lea rcx, [rsp + 0x450]
mov r8, rdx
mov rsi, rdx
lea rdx, str._sDIYconfig.ini
mov rdi, r9
call fcn.18005c530
lea rax, [rsp + 0x450]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x240]
lea r8, str.default.idx
mov dword [rsp + 0x20], 0x104
lea rdx, [0x1802b9480]
lea rcx, str.diymb
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [rsp + 0x240]
mov r8, rsi
lea rdx, str._sDIY_s
lea rcx, [rsp + 0x30]
call fcn.18005c530
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1801a37b7
mov qword [rsp + 0x690], rbx
xor ebx, ebx
cmp word [rsp + 0x30], bx
jne 0x1801a36fa
mov r8d, ebx
jmp 0x1801a370d
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1801a3703
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.18005c660
lea rax, [rsp + 0x450]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x240]
lea r8, str.default.dat
mov dword [rsp + 0x20], 0x104
lea rdx, [0x1802b94f8]
lea rcx, str.diymb
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea r9, [rsp + 0x240]
mov r8, rsi
lea rdx, str._sDIY_s
lea rcx, [rsp + 0x30]
call fcn.18005c530
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1801a37af
cmp word [rsp + 0x30], bx
je 0x1801a379a
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1801a3790
mov r8, rbx
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.18005c660
mov eax, 1
mov rbx, qword [rsp + 0x690]
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x670
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801a3c20
Capabilities:
Reference sql statements

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [rcx + 0xfd8]
cmp qword [rdx + 0x18], 0x10
jb 0x1801a3c5f
mov rdx, qword [rdx]
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
cmp byte [rdx], 0
jne 0x1801a3c80
xor r8d, r8d
jmp 0x1801a3c8e
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1801a3c84
lea rcx, [rsp + 0x28]
call fcn.18005a720
nop
xor edx, edx
mov r8d, 0xfa0
lea rcx, [rdi + 0x28]
call fcn.180233580
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae r8, qword [rsp + 0x28]
lea rdx, str.SELECT_count___FROM_sqlite_master_WHERE_typetable_AND_name_s_
lea rcx, [rdi + 0x28]
call fcn.18005b5f0
mov rcx, qword [rdi + 0xfc8]
mov rax, qword [rcx]
xor r9d, r9d
xor r8d, r8d
lea rdx, [rdi + 0x28]
call qword [rax + 0x60]
xor ebx, ebx
test eax, eax
setne bl
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x1801a3d41
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x1801a3d3c
test cl, 0x1f
je 0x1801a3d0f
call fcn.180234c4c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1801a3d1e
call fcn.180234c4c
int3
sub rcx, rax
cmp rcx, 8
jae 0x1801a3d2d
call fcn.180234c4c
int3
cmp rcx, 0x27
jbe 0x1801a3d39
call fcn.180234c4c
int3
mov rcx, rax
call fcn.180203788
test ebx, ebx
je 0x1801a3d52
mov dword [rsi], 1
mov eax, 1
jmp 0x1801a3d60
mov dword [rsi], 0
mov rcx, rdi
call fcn.1801a3d80
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1802037a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1801a7150
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.180233580
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x104
call fcn.180233580
xor esi, esi
or r9d, 0xffffffff
mov qword [rsp + 0x38], rsi
mov r8, rdi
mov qword [rsp + 0x30], rsi
xor edx, edx
mov dword [rsp + 0x28], esi
mov ecx, 0xfde9
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [rsp + 0x38], rsi
or r9d, 0xffffffff
add eax, 0x64
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov r8, rdi
lea rax, [rsp + 0x150]
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1801a7211
mov rcx, rdi
call fcn.1800675f0
lea r9, str.UserData.db
lea r8, [rsp + 0x150]
lea rdx, str._s_s
lea rcx, [rsp + 0x40]
call fcn.18005b5f0
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rdx
lea rdi, [0x1802ba018]
mov r9, rdi
mov qword [rsp + 0x20], rdi
mov r8d, 0xcea
lea rdx, [0x1802ad7e8]
mov rax, qword [rcx]
call qword [rax]
test eax, eax
jne 0x1801a7267
xor eax, eax
jmp 0x1801a72e5
mov rcx, qword [rbx + 8]
mov rdx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x68]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.180233580
lea r9, str.UserFreqData.db
lea r8, [rsp + 0x150]
lea rdx, str._s_s
lea rcx, [rsp + 0x40]
call fcn.18005b5f0
mov rcx, qword [rbx + 0x18]
lea r10, [rsp + 0x40]
mov qword [rsp + 0x28], r10
lea rdx, [0x1802ad7e8]
mov r9, rdi
mov qword [rsp + 0x20], rdi
mov r8d, 0xcea
mov rax, qword [rcx]
call qword [rax]
test eax, eax
je 0x1801a7263
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1802037a0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1801a7d80
Capabilities:
Check if file exists

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1801a7f00
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1801a7f00
mov qword [rsp + 0x78], 7
xor r14d, r14d
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
mov dword [rsp + 0x30], r14d
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rbx
call fcn.1801baa30
test eax, eax
jne 0x1801a7e09
mov ebx, r14d
jmp 0x1801a7edf
mov ecx, 0xa
call fcn.1800787b0
mov ebp, eax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.1801bb1b0
test eax, eax
jne 0x1801a7e45
mov ebx, r14d
jmp 0x1801a7eae
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, str.WanNengWBInput
lea rdx, str._s_s_Copy_d
lea rcx, [rsp + 0x80]
call fcn.18005c530
lea rbx, [rsi + 0x1410]
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x1801a7e8c
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18005cbe0
cmp qword [rbx + 0x18], 8
jb 0x1801a7e96
mov rbx, qword [rbx]
lea r8, [rsp + 0x80]
mov rdx, rbx
mov rcx, rsi
call fcn.1801a7ff0
mov ebx, 1
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x1801a7ecb
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.18005cac0
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x1801a7efc
inc r8
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.18005cac0
mov eax, ebx
jmp 0x1801a7f02
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1801a7f20
Capabilities:
Check if file exists
Get common file path
Move file

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x180332088]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp dword [rcx + 0x1408], 0
mov rbx, rcx
je 0x1801a7fd0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.180233580
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [rsp + 0x20], 0
jne 0x1801a7f7a
xor r9d, r9d
jmp 0x1801a7f8e
lea rax, [rsp + 0x20]
or r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], 0
jne 0x1801a7f83
add rbx, 0x1410
lea rdx, [rsp + 0x20]
mov rcx, rbx
xor r8d, r8d
call fcn.18005fea0
test rax, rax
jne 0x1801a7fd0
cmp qword [rbx + 0x18], 8
jb 0x1801a7fb4
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1801a7fd0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1802037a0
add rsp, 0x240
pop rbx
ret