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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rsi, rdx
xor edi, edi
or qword [rbp - 0x19], 0xffffffffffffffff
lea r9d, [rdi + 3]
mov dword [rsp + 0x20], r9d
mov r8d, 0xc0000000
mov rdx, rcx
lea rcx, [rbp - 0x19]
call fcn.140021fb8
mov rbx, qword [rbp - 0x19]
test eax, eax
jne 0x1401bc2a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1401bc387
lea rcx, [rbp - 9]
call fcn.1401bd224
mov r11, qword [rsi]
mov rax, qword [r11 + 0x20]
mov r8d, dword [r11 + 0x30]
add r8d, 4
mov edx, dword [rax - 0x10]
lea rcx, [rbp - 0x19]
call fcn.1401bd024
mov dword [rbp + 0x7f], edi
mov dword [rbp + 0x77], edi
mov rax, qword [rsi]
mov edx, dword [rax + 0x30]
add edx, 0x108
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x77], edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x77]
mov r8d, 4
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11, qword [rsi]
mov edx, dword [r11 + 0x30]
add edx, 0x10c
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x77], edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x77]
mov r8d, 4
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r11, qword [rsi]
mov edx, dword [r11 + 0x30]
add edx, 0x118
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x77], edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x77]
mov r8d, 4
lea rdx, [rbp + 0x7f]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rbp - 9]
call fcn.1401bd2f4
nop
cmp rbx, 0xffffffffffffffff
je 0x1401bc396
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401bcc3c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x30], rcx
and dword [rbp - 0x50], 0
mov dword [rbp - 0x28], 0x64636261
mov dword [rbp - 0x24], 0x68676665
mov dword [rbp - 0x20], 0x6c6b6a69
mov dword [rbp - 0x1c], 0x706f6e6d
mov dword [rbp - 0x18], 0x74737271
mov dword [rbp - 0x14], 0x78777675
mov dword [rbp - 0x10], 0x3f5c7a79
lea rdx, [0x14034f3dc]
call fcn.14000cb18
mov dword [rbp - 0x50], 1
mov rax, qword [rdi]
lea rdx, [0x140377590]
mov rcx, rbx
cmp dword [rax + 0x2c], 0x1b
jle 0x1401bccd2
mov r8d, 0x3f
jmp 0x1401bccdc
movsxd rax, dword [rax + 0x2c]
movzx r8d, byte [rbp + rax - 0x28]
call fcn.14000d638
mov rax, qword [rdi]
mov r8d, dword [rax + 0x28]
lea rdx, [0x140350cf8]
mov rcx, rbx
call fcn.14000d638
mov r11, qword [rdi]
mov rdx, qword [r11 + 0x20]
lea rcx, [rbp - 0x48]
call fcn.14000cb18
nop
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x48]
call fcn.14008267c
nop
mov rax, qword [rbp - 0x40]
mov r8d, dword [rax - 0x10]
test r8d, r8d
jle 0x1401bcd32
mov rdx, rax
mov rcx, rbx
call fcn.14000c0c4
mov rax, qword [rbp - 0x40]
lea rdx, [rax - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401bcd50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x1401bcd6f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1401bcd9c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rbx, rcx
mov rdi, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerCLSID645FF040_5081_101B_9F08_00AA002F954EDefaultIcon
lea rcx, [rbp + 0x10]
call fcn.14000cb18
nop
mov rax, qword [rbx]
cmp dword [rax - 0x10], 0
je 0x1401bcdf5
mov rdi, 0xffffffff80000003
mov r8, rax
lea rdx, str._sSoftwareMicrosoftWindowsCurrentVersionExplorerCLSID645FF040_5081_101B_9F08_00AA002F954EDefaultIcon
lea rcx, [rbp + 0x10]
call fcn.14000d9c8
and qword [rbp - 0x30], 0
and dword [rbp - 0x28], 0
and qword [rbp - 0x20], 0
lea rax, vtable.Piriform::Registry::CRegKeyEx.0
mov qword [rbp - 0x38], rax
or eax, 0xffffffff
mov dword [rbp - 0x18], eax
mov dword [rbp - 0x14], eax
and dword [rbp - 0x10], 0
mov r9d, 0x2001f
mov r8, qword [rbp + 0x10]
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.1400114d4
or edi, 0xffffffff
test eax, eax
jne 0x1401bceaa
lea r9, [0x140330de8]
lea r8, str.Empty
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x38]
call fcn.140224ba8
mov rbx, qword [rbp + 0x18]
cmp dword [rbx - 0x10], 0
je 0x1401bce8f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9d, [rdi + 2]
xor r8d, r8d
lea rdx, [0x140330de8]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rbp + 0x18]
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401bceaa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x38]
call fcn.140224148
nop
mov rdx, qword [rbp + 0x10]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1401bced2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1401bcf24
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, r9d
mov rsi, rcx
mov rcx, qword [rcx]
mov rdi, r8
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x50], ebx
test edi, edi
je 0x1401bcf80
mov rcx, qword [rsi]
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1401bcfa4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, r9d
mov rsi, rcx
mov rcx, qword [rcx]
mov rdi, r8
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x50], ebx
test edi, edi
je 0x1401bd000
mov rcx, qword [rsi]
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1401bec04
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rdx
mov rbx, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rdx, qword [rbx + 0x48]
lea rcx, [rsp + 0x20]
call fcn.1401be994
nop
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401bec76
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp qword [rdi], 0
je 0x1401bed04
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000cb18
nop
mov rax, qword [rdi]
mov rdx, qword [rax + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14000f884
mov r11, qword [rdi]
mov rdx, qword [r11 + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14000f884
mov rbx, qword [rsp + 0x50]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
setne bl
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401bed06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401bed06
xor bl, bl
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401bed27
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1401bee34
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 8], 0
mov rbx, rcx
jne 0x1401beef3
lea rcx, str.combase.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx], rax
test rax, rax
je 0x1401beef3
lea rdx, str.RoInitialize
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.RoUninitialize
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WindowsCreateString
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.WindowsDeleteString
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.RoActivateInstance
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [rbx + 0x10], 0
mov qword [rbx + 0x30], rax
je 0x1401beeeb
cmp qword [rbx + 0x18], 0
je 0x1401beeeb
cmp qword [rbx + 0x20], 0
je 0x1401beeeb
cmp qword [rbx + 0x28], 0
je 0x1401beeeb
test rax, rax
je 0x1401beeeb
mov byte [rbx + 8], 1
jmp 0x1401beef3
mov rcx, rbx
call fcn.1401bee04
movzx eax, byte [rbx + 8]
add rsp, 0x20
pop rbx
ret

Function at 0x1401bfa80
Capabilities:
Check if file exists

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
mov rdx, rbx
lea rcx, [rbp + 0x28]
call fcn.14000cb18
nop
lea rdx, str.persistent.txt
lea rcx, [rbp + 0x28]
call fcn.14000f884
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1401bfb45
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.14000cb18
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.14000c244
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401bfb27
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.iconspersistent.txt
lea rcx, [rbp + 0x28]
call fcn.14000f884
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401bfb52
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.14000c244
mov r8, rdi
mov rdx, qword [rbp - 0x20]
mov rcx, rsi
call fcn.1401bf980
mov ebx, eax
mov rdx, qword [rbp + 0x28]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401bfb84
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401bfba3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x1401c0290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov r15, r8
mov r13, rdx
mov r14, rcx
xor ebx, ebx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, ebx
cmp eax, 0xffffffff
setne dil
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test edi, edi
je 0x1401c0404
lea r12, vtable.CppSQLite3DB.0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], 0x32
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.1401a9e20
mov r8, qword [r14 + 8]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1401aa200
nop
lea rcx, [rsp + 0x50]
call fcn.1401a94e0
cmp byte [rsp + 0x68], bl
jne 0x1401c03da
lea rdx, [0x140372a00]
lea rcx, [rsp + 0x50]
call fcn.1401a9b20
mov rdx, rax
lea rcx, [rsp + 0xc8]
call fcn.14000cb18
nop
xor eax, eax
lea rdi, [0x140330de8]
mov rsi, qword [rsp + 0xc8]
lea ecx, [rax + 1]
repe cmpsw word [rsi], word [rdi]
je 0x1401c037a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x1401c03a3
lea rdx, [rsp + 0xc8]
mov rcx, r15
call fcn.140053360
mov r8, rax
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.140018e00
lea rcx, [rsp + 0x50]
call fcn.1401aa0c0
nop
mov rdx, qword [rsp + 0xc8]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401c0326
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401c0326
lea rcx, [rsp + 0x50]
call fcn.1401a9f00
nop
jmp 0x1401c03f5
mov qword [rsp + 0x38], r12
lea rcx, [rsp + 0x38]
call fcn.1401a9d90
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1401c2e5c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r10d, edx
mov rbx, rcx
call fcn.1401c2cfc
mov r8d, 0x9e3779b9
mov edi, eax
mov r9d, eax
mov r11d, r8d
cmp eax, 0xc
jb 0x1401c2f91
mov eax, 0xaaaaaaab
mul edi
shr edx, 3
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
add r9d, 0xfffffff4
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 4]
add r8d, eax
movzx eax, byte [rbx + 0xa]
shl ecx, 8
add r8d, ecx
movzx ecx, byte [rbx + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 8]
add r10d, eax
movzx eax, byte [rbx + 2]
shl ecx, 8
add r10d, ecx
movzx ecx, byte [rbx + 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx]
add rbx, 0xc
shl ecx, 8
add ecx, eax
mov eax, r10d
shr eax, 0xd
sub ecx, r10d
sub ecx, r8d
sub r8d, r10d
add r11d, ecx
xor r11d, eax
sub r8d, r11d
mov eax, r11d
shl eax, 8
xor r8d, eax
sub r10d, r8d
mov eax, r8d
sub r10d, r11d
shr eax, 0xd
xor r10d, eax
sub r11d, r10d
mov eax, r10d
shr eax, 0xc
sub r11d, r8d
sub r8d, r10d
xor r11d, eax
sub r8d, r11d
mov eax, r11d
shl eax, 0x10
xor r8d, eax
sub r10d, r8d
mov eax, r8d
sub r10d, r11d
shr eax, 5
xor r10d, eax
sub r11d, r10d
mov eax, r10d
shr eax, 3
sub r11d, r8d
sub r8d, r10d
xor r11d, eax
sub r8d, r11d
mov eax, r11d
shl eax, 0xa
xor r8d, eax
sub r10d, r8d
mov eax, r8d
sub r10d, r11d
shr eax, 0xf
xor r10d, eax
dec rdx
jne 0x1401c2e92
add r10d, edi
cmp r9d, 6
ja 0x1401c2fc2
je 0x1401c300e
dec r9d
je 0x1401c303d
dec r9d
je 0x1401c3033
dec r9d
je 0x1401c3029
dec r9d
je 0x1401c301f
dec r9d
je 0x1401c3018
jmp 0x1401c3043
sub r9d, 7
je 0x1401c3004
dec r9d
je 0x1401c2ffa
dec r9d
je 0x1401c2ff0
dec r9d
je 0x1401c2fe6
dec r9d
jne 0x1401c3043
movzx eax, byte [rbx + 0xa]
shl eax, 0x18
add r10d, eax
movzx eax, byte [rbx + 9]
shl eax, 0x10
add r10d, eax
movzx eax, byte [rbx + 8]
shl eax, 8
add r10d, eax
movzx eax, byte [rbx + 7]
shl eax, 0x18
add r8d, eax
movzx eax, byte [rbx + 6]
shl eax, 0x10
add r8d, eax
movzx eax, byte [rbx + 5]
shl eax, 8
add r8d, eax
movzx eax, byte [rbx + 4]
add r8d, eax
movzx eax, byte [rbx + 3]
shl eax, 0x18
add r11d, eax
movzx eax, byte [rbx + 2]
shl eax, 0x10
add r11d, eax
movzx eax, byte [rbx + 1]
shl eax, 8
add r11d, eax
movzx eax, byte [rbx]
add r11d, eax
mov rbx, qword [rsp + 0x30]
sub r11d, r10d
mov eax, r10d
sub r11d, r8d
sub r8d, r10d
shr eax, 0xd
xor r11d, eax
sub r8d, r11d
mov eax, r11d
shl eax, 8
xor r8d, eax
sub r10d, r8d
mov eax, r8d
sub r10d, r11d
shr eax, 0xd
xor r10d, eax
sub r11d, r10d
mov eax, r10d
sub r11d, r8d
sub r8d, r10d
shr eax, 0xc
xor r11d, eax
sub r8d, r11d
mov eax, r11d
shl eax, 0x10
xor r8d, eax
sub r10d, r8d
mov eax, r8d
sub r10d, r11d
shr eax, 5
xor r10d, eax
sub r11d, r10d
mov eax, r10d
sub r11d, r8d
sub r8d, r10d
shr eax, 3
xor r11d, eax
sub r8d, r11d
mov eax, r11d
shl eax, 0xa
xor r8d, eax
sub r10d, r8d
shr r8d, 0xf
sub r10d, r11d
xor r10d, r8d
mov eax, r10d
add rsp, 0x20
pop rdi
ret
Function at 0x1401c37bc
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov esi, r9d
mov rbx, r8
mov r12, rcx
and dword [rbp - 0x20], 0
lea rcx, [rbp - 0x18]
call fcn.14000cb18
nop
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x20], rax
xor edx, edx
mov rcx, rbx
call fcn.1401c2e5c
mov edi, eax
shl rdi, 0x20
mov edx, 0x7416f295
mov rcx, rbx
call fcn.1401c2e5c
mov r11d, eax
or rdi, r11
mov r8d, edi
and r8d, 0xf
mov rbx, rdi
shr rbx, 4
and ebx, 0xf
shr rdi, 8
lea rdx, [0x140376bcc]
lea rcx, [rbp - 0x20]
call fcn.14000d9c8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.14000f884
lea rdx, [0x140350cfe]
lea rcx, [rbp - 0x20]
call fcn.14001c5ec
mov r8d, ebx
lea rdx, [0x140376bcc]
lea rcx, [rbp - 0x20]
call fcn.14000d9c8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.14000f884
lea rdx, [0x140350cfe]
lea rcx, [rbp - 0x20]
call fcn.14001c5ec
mov r9d, esi
mov r8, rdi
lea rdx, str._014llX__X
lea rcx, [rbp - 0x20]
call fcn.14000d9c8
mov rbx, qword [rbp - 0x20]
mov rdx, rbx
lea rcx, [rbp - 0x18]
call fcn.14000f884
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, r12
test eax, eax
jne 0x1401c3908
lea rdx, [0x140350cfe]
call fcn.14002e7e0
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401c3906
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1401c3930
lea rdx, [rbp - 0x18]
call fcn.14000c4d8
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401c3930
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x18]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1401c394e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r12
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret

Function at 0x1401c437c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rsi, rcx
mov ecx, 1
mov r12, r9
mov r13, r8
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov rcx, rbp
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
mov ecx, edi
cmp eax, 0xffffffff
setne bl
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test ebx, ebx
je 0x1401c43ec
and qword [rsi + 0x20], 0
lea r9, [0x14035a538]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r12
call fcn.1402e48d0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1401c440c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push r13
sub rsp, 0x80
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov r12, r9
mov r13, r8
mov rbx, rdx
mov rsi, rcx
lea rcx, [rax - 0x68]
call fcn.14000cb18
nop
lea rdx, [0x1403679e8]
lea rcx, [rsp + 0x20]
call fcn.14000f884
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1401c455b
test rbx, rbx
jne 0x1401c4474
xor ecx, ecx
jmp 0x1401c4486
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8d, ecx
mov rdx, rbx
lea rcx, [rsi + 0x30]
call fcn.14000c9f8
mov qword [rsi + 0x18], r13
mov qword [rsi + 0x20], r12
mov rax, qword [rsp + 0xb0]
mov qword [rsi + 0x28], rax
lea rbx, vtable.CppSQLite3DB.0
mov qword [rsp + 0x30], rbx
and qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0x32
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.1401a9e20
lea r8, [rsp + 0x30]
xor edx, edx
lea ecx, [rdx + 4]
call fcn.14022e9d4
test al, al
je 0x1401c4542
lea r8, str.select_clientID_Key_Generation_DataSize_from_moz_cache_
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1401aa200
nop
lea rcx, [rsp + 0x48]
call fcn.1401a94e0
cmp byte [rsp + 0x60], 0
jne 0x1401c4537
mov rax, qword [rsi + 0x10]
lea rcx, [rsi + 0x10]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
je 0x1401c4537
mov rax, qword [rsi + 0x10]
lea rdx, [rsp + 0x48]
lea rcx, [rsi + 0x10]
call qword [rax]
lea rcx, [rsp + 0x48]
call fcn.1401aa0c0
jmp 0x1401c44fc
lea rcx, [rsp + 0x48]
call fcn.1401a9f00
nop
jmp 0x1401c454b
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x30]
call fcn.1401a9d90
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401c457b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret