joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14013839c
Capabilities:
Encode data using xor

Disassembly:
xchg rdi, rbx
mov qword [rsp + 8], rdi
xchg rbx, rdi
xchg rsi, rbx
mov qword [rsp + 0x10], rbx
xchg rsi, rbx
mov qword [rsp + 0x18], rdi
mov dword [rsp - 0x40], 0x4744ab85
push rbp
nop
mov qword [rsp - 8], r12
sub rsp, 8
push r14
mov r10, r10
xchg rdx, rbp
mov rdx, rsp
xchg rbp, rdx
neg rsp
sub rsp, 0xffffffffffffff90
neg rsp
xchg r10, rdi
mov r10, r8
xchg rdi, r10
xchg r14, r10
mov r10, rdx
xchg r14, r10
xchg rcx, rsi
mov rcx, rsi
xchg rcx, rsi
movabs r12, 0x55056d9c4044aa41
sub r12, 0x29ee16c9
xor r12, 0x4ed7b878
sub r12, 0x1abe268e
cmp r9d, 0x60001
jne 0x1401385b0
mov dword [rsp - 0x20], esi
mov dword [rbp - 0x40], 0x7376e9f3
sub dword [rbp - 0x40], 0x4ed724f6
xor dword [rbp - 0x40], 0x3ea436fe
add dword [rbp - 0x40], 0xd079d079
xor edx, edx
mov dword [rsp - 0x2c], 0x6fcecb8a
mov dword [rbp - 0x3c], 0x6657ad0
add dword [rbp - 0x3c], 0x3efca65b
xor dword [rbp - 0x3c], 0x5d32bb
sub dword [rbp - 0x3c], 0x1a266abc
mov dword [rbp - 0x38], 0x3adcea27
add dword [rbp - 0x38], 0x12af83da
sub dword [rbp - 0x38], 0x2d92de5c
add dword [rbp - 0x38], 0xaf8f39f0
mov ecx, edx
mov dword [rsp - 0x3c], ebp
mov eax, 0x2eac8bf0
xor eax, 0xb399708
sub eax, 0x16a8def3
add eax, 0x320dc438
rol eax, cl
mov dword [rsp - 0x14], edi
xor al, byte [rbp + rdx - 0x40]
mov byte [rbp + rdx - 0x34], al
inc rdx
cmp rdx, 0xc
mov dword [rsp - 0x2c], edx
jb 0x14013848b
mov r9d, 0x6ca7e534
xor r9d, 0xa8a4e33
sub r9d, 0xaccd146
sub r9d, 0x509aee9
xor r9d, 0x56572527
mov qword [rsp + 0x20], 0x400e4afc
xor qword [rsp + 0x20], 0x63ee0225
xor qword [rsp + 0x20], 0x450481e7
sub qword [rsp + 0x20], 0x4d875e28
sub qword [rsp + 0x20], 0x195d6b0a
lea r8, [rbp - 0x34]
xchg rsp, rsp
xchg rdx, rsp
mov rsp, rdi
xchg rsp, rdx
xchg r12, r14
mov rcx, r12
xchg r12, r14
call fcn.140135864
mov rbx, rax
mov dword [rsp - 0x34], edi
lea rdi, [rbp - 0x34]
xor eax, eax
lea ecx, [rax + 0xc]
mov dword [rsp - 0x1c], esi
rep stosb byte [rdi], al
test rbx, rbx
je 0x1401385f5
lea rdx, [rbp - 0x28]
mov dword [rsp - 0x30], ebp
lea rcx, [rbx + 0xc]
call fcn.140090774
test dword [rbp - 7], 0x1000
jne 0x1401385f5
xchg r9, r9
cmp byte [rbp - 0x1d], 0xe8
jne 0x1401385f5
lea rdx, [rbx + 0xc]
mov r8, r8
mov rcx, r14
call fcn.140085ed0
movzx edx, byte [rbp - 0x28]
mov dword [rsp - 0x3c], 0x4c468a56
add edx, dword [rbp - 0x13]
add edx, eax
mov rax, qword [rsi + 8]
xor rax, r12
mov dword [rsp - 0x38], esi
add rdx, rax
xor rdx, r12
mov qword [rsi + 0x20], rdx
cmp qword [rsi + 0x20], r12
xchg rbx, rbx
setne al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov dword [rsp - 0x20], ebp
mov rdi, qword [r11 + 0x30]
xchg r11, rsp
mov r11, rsp
xchg r11, rsp
nop
mov r14, qword [rsp]
add rsp, 8
nop
mov r12, qword [rsp]
add rsp, 8
nop
add rsp, 8
mov rbp, qword [rsp - 8]
ret
xor al, al
jmp 0x1401385ba
Function at 0x180006ec0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x180006ef8
lea rax, [rcx + 0x18]
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180006f80]
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call fcn.1800bebdc
mov qword [rbx + 0x10], rax
add rsp, 0x30
pop rbx
ret

Function at 0x180006f10
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov dword [rcx + 8], 1
movzx edi, dl
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x18], eax
je 0x180006f6b
test dil, dil
je 0x180006f6b
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x180006f6b
mov edx, esi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180006f6b
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18000a4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x1080
call fcn.18008c6b0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x34], 1
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x70]
call fcn.1800bbd80
mov dword [rsp + 0x30], 0x800
lea rdx, str.TK8Fj70YG_v_3_vPPg7Vdm30XuBkLQEO1THF4mZ06i_foDUuatiCLqo3UQuDlAcNYT9wv6OGo2LxfcPIj7LcA
lea rcx, [rsp + 0x48]
call fcn.180057cf0
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, str.InstallLocation
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18000a5a8
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.User_DataDefault
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov rdx, qword [rdi + 0x98]
cmp dword [rdx - 0x10], 0
je 0x18000a5a8
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18000a674
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rax, [rsp + 0x70]
cmp rax, 0x10000
jae 0x18000a5e5
lea rax, [rsp + 0x70]
movzx edx, ax
mov rcx, rbx
call fcn.18000af40
jmp 0x18000a60c
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x18000a5f1
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.18000b310
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x18000a64a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000a645
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000a66e
call fcn.18008c16c
mov rax, rbx
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.18008c720
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1080
pop rdi
ret
call fcn.1800beee8
nop
mov ecx, 0x80004005
call fcn.180009990
int3
Function at 0x18000b480
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r15, rcx
cmp dword [rcx + 0x50], 0
je 0x18000b4bc
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x70]
call fcn.18000a4c0
nop
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18000b644
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov rdi, qword [r15 + 0x68]
mov rsi, qword [rsp + 0x70]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x18000b518
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.18000b0d0
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x18000b62e
mov dword [rbx - 0x10], 0x104
xor r14d, r14d
mov word [rbx + 0x208], r14w
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800bf270
test eax, eax
js 0x18000b639
cmp eax, dword [rbx - 0xc]
jg 0x18000b639
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x18000b5e4
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000b5e4
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18000b5e4
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.1800091c0
lea r9, [r15 + 0x78]
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x80]
mov rcx, r15
call fcn.18000a680
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18000a370
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.180020b70
mov dword [r15 + 0x50], 1
jmp 0x18000b5ea
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000b609
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x18000b626
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x18000b4a8
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3
Function at 0x18000b860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18000b8d5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18000b8d5
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18000b8c5
nop
cmp rbx, rcx
jae 0x18000b8d5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18000b8b0
cmp rbx, rcx
jae 0x18000b8d5
cmp word [rbx], 0
je 0x18000b8d5
mov rax, rbx
jmp 0x18000b8d7
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000dca0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x1080
call fcn.18008c6b0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1090], rbx
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
lea rdi, [0x180154920]
cmp word [0x180154920], 0
jne 0x18000de06
mov dword [rsp + 0x34], 1
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x70]
call fcn.1800bbd80
mov dword [rsp + 0x30], 0x800
lea rdx, str.TK8Fj70YG_v_3_vPPg7Vdm30XuBkLQEO1THF4mZ06i_foDUuatiCLqo3UQuDlAc1wuD5hVjglIbaOJeXMCQ
lea rcx, [rsp + 0x48]
call fcn.180057cf0
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
lea r8, str.InstallLocation
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18000dd81
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.User_DataDefault
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, 0x104
mov rcx, rdi
lea r8, [rsp + 0x70]
sub r8, rdi
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x18000ddb4
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18000ddb4
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18000dd91
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
xor ecx, ecx
mov word [rax], cx
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x18000de06
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000de01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000de88
call fcn.18008c16c
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18000de7d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
cmp rdi, 0x10000
jae 0x18000de36
movzx edx, di
mov rcx, rbx
call fcn.18000af40
jmp 0x18000de59
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x18000de40
mov r8d, ecx
mov rdx, rdi
mov rcx, rbx
call fcn.18000b310
nop
mov rax, rbx
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.18008c720
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1080
pop rdi
ret
mov ecx, 0x80004005
call fcn.180009990
int3
call fcn.1800beee8
int3
Function at 0x18000e6d0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r15, rcx
cmp dword [rcx + 0x50], 0
je 0x18000e70c
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x70]
call fcn.18000dca0
nop
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18000e88d
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov rdi, qword [r15 + 0x68]
mov rsi, qword [rsp + 0x70]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x18000e768
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.18000b0d0
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x18000e877
mov dword [rbx - 0x10], 0x104
xor r14d, r14d
mov word [rbx + 0x208], r14w
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800bf270
test eax, eax
js 0x18000e882
cmp eax, dword [rbx - 0xc]
jg 0x18000e882
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x18000e82d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000e82d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18000e82d
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.1800091c0
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x78]
mov rcx, r15
call fcn.18000de90
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18000a370
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.180020b70
mov dword [r15 + 0x50], 1
jmp 0x18000e833
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000e852
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x18000e86f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x18000e6f8
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3
Function at 0x18000f1c0
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
lea rdi, [0x180154b30]
cmp word [0x180154b30], 0
jne 0x18000f283
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1800bbd80
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str.GoogleChromeUser_DataDefault
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, 0x104
mov rax, rdi
lea r8, [rsp + 0x30]
sub r8, rdi
nop dword [rax]
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x18000f273
movzx ecx, word [r8 + rax]
test cx, cx
je 0x18000f273
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x18000f250
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18000f2fd
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
cmp rdi, 0x10000
jae 0x18000f2b3
movzx edx, di
mov rcx, rbx
call fcn.18000af40
jmp 0x18000f2d9
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x18000f2c0
mov r8d, ecx
mov rdx, rdi
mov rcx, rbx
call fcn.18000b310
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18008c720
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
mov ecx, 0x80004005
call fcn.180009990
int3
Function at 0x18000fb50
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r15, rcx
cmp dword [rcx + 0x50], 0
je 0x18000fb8c
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x70]
call fcn.18000f1c0
nop
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18000fd0d
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov rdi, qword [r15 + 0x68]
mov rsi, qword [rsp + 0x70]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x18000fbe8
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.18000b0d0
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x18000fcf7
mov dword [rbx - 0x10], 0x104
xor r14d, r14d
mov word [rbx + 0x208], r14w
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800bf270
test eax, eax
js 0x18000fd02
cmp eax, dword [rbx - 0xc]
jg 0x18000fd02
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x18000fcad
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18000fcad
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18000fcad
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.1800091c0
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x78]
mov rcx, r15
call fcn.18000f310
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18000a370
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.180020b70
mov dword [r15 + 0x50], 1
jmp 0x18000fcb3
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18000fcd2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x18000fcef
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x18000fb78
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3
Function at 0x180010640
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, qword [0x180146748]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
lea rdi, [0x180154d40]
cmp word [0x180154d40], 0
jne 0x180010703
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1800bbd80
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str...LocalMicrosoftEdgeUser_DataDefault
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, 0x104
mov rax, rdi
lea r8, [rsp + 0x30]
sub r8, rdi
nop dword [rax]
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x1800106f3
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1800106f3
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1800106d0
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18001077d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
cmp rdi, 0x10000
jae 0x180010733
movzx edx, di
mov rcx, rbx
call fcn.18000af40
jmp 0x180010759
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x180010740
mov r8d, ecx
mov rdx, rdi
mov rcx, rbx
call fcn.18000b310
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18008c720
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
mov ecx, 0x80004005
call fcn.180009990
int3
Function at 0x180010fd0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov r15, rcx
cmp dword [rcx + 0x50], 0
je 0x18001100c
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x70]
call fcn.180010640
nop
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x18001118d
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
mov rdi, qword [r15 + 0x68]
mov rsi, qword [rsp + 0x70]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x180011068
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.18000b0d0
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x180011177
mov dword [rbx - 0x10], 0x104
xor r14d, r14d
mov word [rbx + 0x208], r14w
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800bf270
test eax, eax
js 0x180011182
cmp eax, dword [rbx - 0xc]
jg 0x180011182
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x18001112d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18001112d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18001112d
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.1800091c0
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x78]
mov rcx, r15
call fcn.180010790
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18000a370
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.180020b70
mov dword [r15 + 0x50], 1
jmp 0x180011133
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180011152
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x18001116f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x180010ff8
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3
Function at 0x180012de0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov r13, rcx
cmp dword [rcx + 0x50], 0
je 0x180012e24
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x80]
call fcn.180011c90
nop
call fcn.18000a3f0
mov rcx, rax
test rax, rax
je 0x180012fdd
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x88], rbx
mov rdi, qword [rsp + 0x80]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x180012e8b
mov edx, 0x104
lea rcx, [rsp + 0x88]
call fcn.18000b0d0
mov rbx, qword [rsp + 0x88]
cmp dword [rbx - 0xc], 0x104
jl 0x180012fc7
mov dword [rbx - 0x10], 0x104
xor r15d, r15d
mov word [rbx + 0x208], r15w
lea r12, str.prefs.js
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1800bf270
test eax, eax
js 0x180012fd2
cmp eax, dword [rbx - 0xc]
jg 0x180012fd2
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
lea r14, [r15 - 1]
cmp dword [rbx - 0x10], r15d
je 0x180012f7c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180012f7c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x180012f7c
lea rdx, [rsp + 0x80]
lea rcx, [r13 + 0x60]
call fcn.1800091c0
mov rax, r14
inc rax
cmp word [r12 + rax*2], r15w
jne 0x180012f23
mov r8d, eax
mov rdx, r12
lea rcx, [r13 + 0x68]
call fcn.18000b310
lea rdx, [r13 + 0x70]
mov rcx, r13
call fcn.180012080
mov rsi, qword [r13 + 0x68]
mov rbp, qword [r13 + 0x60]
lea rdi, [r13 + 0x58]
call fcn.18000a370
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov r9d, 0x11
mov r8, rsi
mov rdx, rbp
call fcn.180020b70
mov dword [r13 + 0x50], 1
jmp 0x180012f82
mov r15d, 0x80004005
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180012f9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x180012fbf
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r15d
jmp 0x180012e0c
mov ecx, 0x80070057
call fcn.180009990
int3
mov ecx, 0x80070057
call fcn.180009990
nop
mov ecx, 0x80004005
call fcn.180009990
int3