joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044930
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x1800449e5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x1800449b1
lea rcx, [0x180116d80]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800449d0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800449d0
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x1800449d0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x180177600], 0
jne 0x180044a30
lea rcx, [0x180116d80]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180044a20
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801775f8], rax
mov byte [0x180177600], 1
jmp 0x180044a37
mov rax, qword [0x1801775f8]
mov byte [0x180177600], 1
jmp 0x180044a37
mov rax, qword [0x1801775f8]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x1800449ba
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x180044b60
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.180044a60
mov ebx, eax
test eax, eax
jne 0x180044c77
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180044c51
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180044b60
mov ebx, eax
test eax, eax
jne 0x180044c77
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180044c00
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180044c66
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.180044930
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180044c87
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800468e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r11d, r11d
mov dword [rbp - 0x40], 0x31005a
lea r10, [0x180177608]
mov dword [rbp - 0x3c], 0x480032
lea r9, [rbp - 0x40]
mov dword [rbp - 0x38], 0x6f006f
mov dword [rbp - 0x34], 0x43006b
mov rcx, r10
lea r8d, [r11 + 0x19]
mov dword [rbp - 0x30], 0x6d006f
mov dword [rbp - 0x2c], 0x6c0070
sub r9, r10
mov dword [rbp - 0x28], 0x740065
mov dword [rbp - 0x24], 0x640065
mov dword [rbp - 0x20], 0x750053
mov dword [rbp - 0x1c], 0x630063
mov dword [rbp - 0x18], 0x730065
mov dword [rbp - 0x14], 0x73
lea rax, [r8 + 0x7fffffe5]
test rax, rax
je 0x180046986
movzx edx, word [r9 + rcx]
test dx, dx
je 0x180046986
mov word [rcx], dx
add rcx, 2
sub r8, 1
jne 0x180046963
test r8, r8
lea rdx, [rcx - 2]
mov rax, r10
cmovne rdx, rcx
mov word [rdx], r11w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800a5130
add rsp, 0x40
pop rbp
ret
Function at 0x18004be00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x18004ac20]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call fcn.1800d76ec
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x18004d270
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x1080
call fcn.1800a51e0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x10a0], rbx
mov rax, qword [0x180168908]
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.1800d4600
mov dword [rsp + 0x30], 0x800
lea rdx, str.TK8Fj70YG_v_3_vPPg7Vdm30XuBkLQEO1THF4mZ06i_foDUuatiCLqo3UQuDlAcNYT9wv6OGo2LxfcPIj7LcA
lea rcx, [rsp + 0x48]
call fcn.18006e420
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 0x18004d358
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 0x18004d358
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18004d424
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rax, [rsp + 0x70]
cmp rax, 0x10000
jae 0x18004d395
lea rax, [rsp + 0x70]
movzx edx, ax
mov rcx, rbx
call fcn.180012580
jmp 0x18004d3bc
lea rcx, [rsp + 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x18004d3a1
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.180009210
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x18004d3fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004d3f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004d41e
call fcn.1800a4c5c
mov rax, rbx
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x10a0]
add rsp, 0x1080
pop rdi
ret
call fcn.1800d79f8
nop
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x18004de80
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 0x18004debc
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.18004d270
nop
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18004e044
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 0x18004df18
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.180009160
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x18004e02e
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.1800d7f80
test eax, eax
js 0x18004e039
cmp eax, dword [rbx - 0xc]
jg 0x18004e039
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x18004dfe4
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18004dfe4
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18004dfe4
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.180036030
lea r9, [r15 + 0x78]
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x80]
mov rcx, r15
call fcn.18004d430
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18004d1f0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.18005efd0
mov dword [r15 + 0x50], 1
jmp 0x18004dfea
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004e009
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 0x18004e026
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x18004dea8
mov ecx, 0x80070057
call fcn.180008c20
int3
mov ecx, 0x80070057
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x18004ed10
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
mov eax, 0x1080
call fcn.1800a51e0
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1090], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rbx, rdx
mov qword [rsp + 0x40], rdx
lea rdi, [0x180177690]
cmp word [0x180177690], 0
jne 0x18004ee76
mov dword [rsp + 0x34], 1
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x70]
call fcn.1800d4600
mov dword [rsp + 0x30], 0x800
lea rdx, str.TK8Fj70YG_v_3_vPPg7Vdm30XuBkLQEO1THF4mZ06i_foDUuatiCLqo3UQuDlAc1wuD5hVjglIbaOJeXMCQ
lea rcx, [rsp + 0x48]
call fcn.18006e420
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 0x18004edf1
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 0x18004ee24
movzx eax, word [r8 + rcx]
test ax, ax
je 0x18004ee24
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x18004ee01
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 0x18004ee76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ee71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004eef8
call fcn.1800a4c5c
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18004eeed
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
cmp rdi, 0x10000
jae 0x18004eea6
movzx edx, di
mov rcx, rbx
call fcn.180012580
jmp 0x18004eec9
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x18004eeb0
mov r8d, ecx
mov rdx, rdi
mov rcx, rbx
call fcn.180009210
nop
mov rax, rbx
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1080
pop rdi
ret
mov ecx, 0x80004005
call fcn.180008c20
int3
call fcn.1800d79f8
int3
Function at 0x18004f740
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 0x18004f77c
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.18004ed10
nop
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18004f8fd
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 0x18004f7d8
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.180009160
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x18004f8e7
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.1800d7f80
test eax, eax
js 0x18004f8f2
cmp eax, dword [rbx - 0xc]
jg 0x18004f8f2
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x18004f89d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x18004f89d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x18004f89d
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.180036030
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x78]
mov rcx, r15
call fcn.18004ef00
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18004d1f0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.18005efd0
mov dword [r15 + 0x50], 1
jmp 0x18004f8a3
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x18004f8c2
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 0x18004f8df
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x18004f768
mov ecx, 0x80070057
call fcn.180008c20
int3
mov ecx, 0x80070057
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x180050230
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
lea rdi, [0x1801778a0]
cmp word [0x1801778a0], 0
jne 0x1800502f3
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1800d4600
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 0x1800502e3
movzx ecx, word [r8 + rax]
test cx, cx
je 0x1800502e3
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x1800502c0
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x18005036d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
cmp rdi, 0x10000
jae 0x180050323
movzx edx, di
mov rcx, rbx
call fcn.180012580
jmp 0x180050349
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x180050330
mov r8d, ecx
mov rdx, rdi
mov rcx, rbx
call fcn.180009210
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x180050bc0
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 0x180050bfc
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.180050230
nop
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x180050d7d
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 0x180050c58
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.180009160
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x180050d67
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.1800d7f80
test eax, eax
js 0x180050d72
cmp eax, dword [rbx - 0xc]
jg 0x180050d72
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x180050d1d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180050d1d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x180050d1d
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.180036030
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x78]
mov rcx, r15
call fcn.180050380
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18004d1f0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.18005efd0
mov dword [r15 + 0x50], 1
jmp 0x180050d23
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180050d42
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 0x180050d5f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x180050be8
mov ecx, 0x80070057
call fcn.180008c20
int3
mov ecx, 0x80070057
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x180052490
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x260], rbx
mov rax, qword [0x180168908]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
lea rdi, [0x180177ab0]
cmp word [0x180177ab0], 0
jne 0x180052553
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.1800d4600
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 0x180052543
movzx ecx, word [r8 + rax]
test cx, cx
je 0x180052543
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x180052520
lea rcx, [rax - 2]
test rdx, rdx
cmovne rcx, rax
xor eax, eax
mov word [rcx], ax
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x1800525cd
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
cmp rdi, 0x10000
jae 0x180052583
movzx edx, di
mov rcx, rbx
call fcn.180012580
jmp 0x1800525a9
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x180052590
mov r8d, ecx
mov rdx, rdi
mov rcx, rbx
call fcn.180009210
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800a5130
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x180052e20
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 0x180052e5c
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.180052490
nop
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x180052fdd
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 0x180052eb8
mov edx, 0x104
lea rcx, [rsp + 0x78]
call fcn.180009160
mov rbx, qword [rsp + 0x78]
cmp dword [rbx - 0xc], 0x104
jl 0x180052fc7
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.1800d7f80
test eax, eax
js 0x180052fd2
cmp eax, dword [rbx - 0xc]
jg 0x180052fd2
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
cmp dword [rbx - 0x10], r14d
je 0x180052f7d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180052f7d
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x180052f7d
lea rdx, [rsp + 0x70]
lea rcx, [r15 + 0x60]
call fcn.180036030
lea r8, [r15 + 0x70]
lea rdx, [r15 + 0x78]
mov rcx, r15
call fcn.1800525e0
mov rsi, qword [r15 + 0x68]
mov rbp, qword [r15 + 0x60]
lea rdi, [r15 + 0x58]
call fcn.18004d1f0
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r9d, [r14 + 0x11]
mov r8, rsi
mov rdx, rbp
call fcn.18005efd0
mov dword [r15 + 0x50], 1
jmp 0x180052f83
mov r14d, 0x80004005
lea rdx, [rbx - 0x18]
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180052fa2
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 0x180052fbf
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r14d
jmp 0x180052e48
mov ecx, 0x80070057
call fcn.180008c20
int3
mov ecx, 0x80070057
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
int3
Function at 0x1800548f0
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 0x180054934
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.180053ae0
nop
call fcn.180009090
mov rcx, rax
test rax, rax
je 0x180054aed
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 0x18005499b
mov edx, 0x104
lea rcx, [rsp + 0x88]
call fcn.180009160
mov rbx, qword [rsp + 0x88]
cmp dword [rbx - 0xc], 0x104
jl 0x180054ad7
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.1800d7f80
test eax, eax
js 0x180054ae2
cmp eax, dword [rbx - 0xc]
jg 0x180054ae2
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r15w
lea r14, [r15 - 1]
cmp dword [rbx - 0x10], r15d
je 0x180054a8c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180054a8c
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x180054a8c
lea rdx, [rsp + 0x80]
lea rcx, [r13 + 0x60]
call fcn.180036030
mov rax, r14
inc rax
cmp word [r12 + rax*2], r15w
jne 0x180054a33
mov r8d, eax
mov rdx, r12
lea rcx, [r13 + 0x68]
call fcn.180009210
lea rdx, [r13 + 0x70]
mov rcx, r13
call fcn.180053ed0
mov rsi, qword [r13 + 0x68]
mov rbp, qword [r13 + 0x60]
lea rdi, [r13 + 0x58]
call fcn.18004d1f0
mov rcx, rax
mov qword [rsp + 0x20], rdi
mov r9d, 0x11
mov r8, rsi
mov rdx, rbp
call fcn.18005efd0
mov dword [r13 + 0x50], 1
jmp 0x180054a92
mov r15d, 0x80004005
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180054aad
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 0x180054acf
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, r15d
jmp 0x18005491c
mov ecx, 0x80070057
call fcn.180008c20
int3
mov ecx, 0x80070057
call fcn.180008c20
nop
mov ecx, 0x80004005
call fcn.180008c20
int3