joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400037d0
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
call fcn.140003a40
mov rdi, rax
test rax, rax
je 0x140003924
xor esi, esi
cmp dword [rax], esi
jbe 0x140003861
lea rbx, [rax + 8]
movzx r9d, word [rbx + 0x26]
lea r8, [0x1400042f0]
xor edx, edx
add r9, 0x28
add r9, rbx
lea ecx, [rdx + 0x52]
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
movzx edx, word [rbx + 0x26]
lea rcx, [rbx + 0x28]
add rcx, rdx
lea rax, [rcx - 0x41]
cmp rax, 0x19
ja 0x140003840
lea rcx, [rbx + 0x48]
add rcx, rdx
mov rdx, rbp
call fcn.140003f80
test al, al
je 0x14000393f
mov eax, dword [rdi]
inc rsi
add rbx, 0x128
cmp rsi, rax
jb 0x140003806
mov rax, qword [0x140007110]
test rax, rax
jne 0x140003919
mov rdx, qword [0x140007130]
test rdx, rdx
jne 0x14000388b
mov rdx, qword [0x140007128]
mov qword [0x140007130], rdx
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r10d, dword [rcx + 0x1c]
mov r8d, dword [rcx + 0x20]
add r10, rdx
mov r11d, dword [rcx + 0x24]
add r8, rdx
mov ebx, dword [rcx + 0x18]
add r11, rdx
xor edx, edx
test ebx, ebx
je 0x14000390f
movabs rbp, 0xcbf29ce484222325
movabs rsi, 0x7f6272c86a6eeadc
movabs r15, 0x100000001b3
mov ecx, dword [r8]
mov r9, rbp
add rcx, qword [0x140007130]
mov al, byte [rcx]
test al, al
je 0x140003905
inc rcx
movsx rax, al
xor r9, rax
imul r9, r15
mov al, byte [rcx]
test al, al
jne 0x1400038e8
cmp r9, rsi
je 0x140003a1c
inc edx
add r8, 4
cmp edx, ebx
jb 0x1400038d5
int3
mov qword [0x140007110], rax
xor edx, edx
mov rcx, rdi
call qword [0x140005020]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rax, qword [0x140007110]
mov r14, qword [rbx + 0x10]
test rax, rax
jne 0x1400039f7
mov rdx, qword [0x140007130]
test rdx, rdx
jne 0x14000396d
mov rdx, qword [0x140007128]
mov qword [0x140007130], rdx
movsxd rax, dword [rdx + 0x3c]
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r9d, dword [rcx + 0x1c]
mov r8d, dword [rcx + 0x20]
add r9, rdx
mov r10d, dword [rcx + 0x24]
add r8, rdx
mov ebx, dword [rcx + 0x18]
add r10, rdx
xor edx, edx
test ebx, ebx
je 0x1400039ed
movabs rbp, 0xcbf29ce484222325
movabs rsi, 0x7f6272c86a6eeadc
movabs r15, 0x100000001b3
mov ecx, dword [r8]
mov r11, rbp
add rcx, qword [0x140007130]
mov al, byte [rcx]
test al, al
je 0x1400039e3
inc rcx
movsx rax, al
xor r11, rax
imul r11, r15
mov al, byte [rcx]
test al, al
jne 0x1400039ca
cmp r11, rsi
je 0x140003a0a
inc edx
add r8, 4
cmp edx, ebx
jb 0x1400039b7
int3
mov qword [0x140007110], rax
xor edx, edx
mov rcx, rdi
call qword [0x140005020]
mov rax, r14
jmp 0x140003926
movzx ecx, word [r10 + rdx*2]
mov eax, dword [r9 + rcx*4]
add rax, qword [0x140007130]
jmp 0x1400039f0
movzx ecx, word [r11 + rdx*2]
mov eax, dword [r10 + rcx*4]
add rax, qword [0x140007130]
jmp 0x140003912
Function at 0x1400078a8
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140030470]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.14000173c
lea r8, [0x140027658]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400017c8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r13, [0x140027618]
mov rbx, rax
test rax, rax
jne 0x140007960
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140007a66
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
mov r8, r13
call fcn.140002634
mov esi, eax
jmp 0x140007a47
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140002988
mov esi, eax
test eax, eax
jns 0x1400079a1
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xcf
call fcn.1400025fc
mov rcx, rbx
call fcn.1400026bc
jmp 0x140007a47
lea r8, [0x140027660]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400017c8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400079ed
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, 0xd5
call fcn.140002634
mov esi, eax
jmp 0x140007994
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140002988
mov esi, eax
test eax, eax
jns 0x140007a24
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xd7
call fcn.1400025fc
mov rcx, rdi
call fcn.1400026bc
jmp 0x140007994
mov rcx, rdi
call fcn.1400026bc
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.1400026bc
xor esi, esi
test esi, esi
jns 0x140007a66
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x62
call fcn.1400025fc
mov eax, esi
jmp 0x140007a6b
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140023ec0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x140007d34
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
mov r9d, 2
mov qword [0x140031580], 0xc
lea rax, [0x14001e0e0]
mov ecx, 0x400
lea r8, [rsp + 0x30]
mov qword [0x140031570], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
cmp word [rsp + 0x30], 0x31
jne 0x140007d9b
mov eax, 0x3e8
mov dword [0x140031530], 0xa006
mov dword [0x140031550], eax
mov dword [0x140031558], eax
mov eax, 0x2ee
jmp 0x140007dbb
mov eax, 0x9c4
mov dword [0x140031530], 0xa00a
mov dword [0x140031550], eax
mov dword [0x140031558], eax
mov eax, 0x7d0
mov dword [0x140031554], eax
mov dword [0x14003154c], eax
add rsp, 0x28
ret
Function at 0x140008070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140030470]
xor rax, rsp
mov qword [rsp + 0x450], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
mov ebx, dword [0x1400315e8]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140008125
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jle 0x140008116
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x140008116
cmp edx, 1
ja 0x14000810a
mov ebx, dword [0x1400315e8]
jmp 0x140008116
lea rcx, [rsp + 0x50]
call fcn.140007f84
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140023ec0
mov rbx, qword [rsp + 0x478]
add rsp, 0x460
pop rdi
ret
Function at 0x14000e408
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140030470]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r9d, 0x10
lea r8, [rsp + 0x20]
lea edx, [r9 + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
je 0x14000e44d
mov eax, 0x800
test word [rsp + 0x2e], ax
je 0x14000e44d
mov ecx, 1
mov eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023ec0
add rsp, 0x58
ret

Function at 0x14000e468
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x340]
sub rsp, 0x440
mov rax, qword [0x140030470]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov edi, ecx
xor edx, edx
lea rcx, [rbp + 0x90]
mov r8d, 0x294
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x38]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
nop dword [rax + rax]
mov ecx, 0x400
mov dword [rsp + 0x30], ebx
call fcn.14000e408
test eax, eax
je 0x14000e52d
lea r9d, [rbx + 1]
mov edx, 0x20001009
lea r8, [rsp + 0x30]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
cmp eax, ebx
jne 0x14000e50e
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
nop dword [rax + rax]
movzx ecx, ax
call fcn.14000e408
jmp 0x14000e51f
cmp eax, 0x17
ja 0x14000e528
mov ecx, 0x800540
bt ecx, eax
jae 0x14000e528
mov eax, ebx
mov ebx, 0x21
test eax, eax
jne 0x14000e52d
mov ebx, 0x11
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 0x50
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
mov edx, ebx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetDateFormatW]
nop dword [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x28], 0x50
lea rax, [rsp + 0x50]
mov ecx, 0x400
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_GetTimeFormatW]
nop dword [rax + rax]
mov ebx, 0x14a
test edi, edi
je 0x14000e5a6
lea r8, [0x140027bd0]
mov edx, ebx
lea rcx, [rbp + 0x90]
call fcn.1400017c8
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.1400017c8
lea r8, [0x140027bd8]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.1400017c8
lea r8, [rbp - 0x10]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.1400017c8
test edi, edi
je 0x14000e5fd
lea r8, [0x140027bd0]
mov rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.1400017c8
mov rcx, qword [0x140032588]
lea r9, [rbp + 0x90]
mov edx, 0xc2
mov r8d, 1
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov ecx, edi
call fcn.140020674
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.140023ec0
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000e654
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov r13, qword [0x140031500]
xor edi, edi
mov r15, r9
mov r12d, r8d
mov esi, edx
cmp dword [rsp + 0xa0], edi
jne 0x14000e691
lea eax, [rdi + 1]
jmp 0x14000e790
mov rbx, rdi
cmp esi, 0xfde9
je 0x14000e6be
lea rcx, [0x1400314c8]
call fcn.14000c77c
lea rbx, [rsp + 0x80]
test al, al
je 0x14000e6be
cmp esi, 0xd698
cmove rbx, rdi
mov r9d, dword [rsp + 0xa0]
mov r8, r15
mov qword [rsp + 0x38], rbx
mov edx, r12d
mov qword [rsp + 0x30], rdi
mov ecx, esi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov ebp, eax
test eax, eax
jne 0x14000e6fa
xor eax, eax
jmp 0x14000e790
lea edx, [rax + 1]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14000e727
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14000e6f3
mov r9d, dword [rsp + 0xa0]
mov r8, r15
mov qword [rsp + 0x38], rbx
mov edx, r12d
and qword [rsp + 0x30], 0
mov ecx, esi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000e77f
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14000e7b0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x28
cmp dword [0x14003236c], 0
je 0x14000e7fa
cmp dword [0x140032130], 0
je 0x14000e7d4
mov ecx, 0x50200104
add rsp, 0x28
jmp fcn.14001cf3c
mov r9d, dword [0x1400320fc]
mov edx, 0xb1
mov r8d, dword [0x1400320f8]
mov rcx, qword [0x140032588]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
add rsp, 0x28
ret
Function at 0x1400104a0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
add rsp, 0x38
ret

Function at 0x1400104d8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor eax, eax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test r8, r8
je 0x140010509
movsxd rdx, r9d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
nop dword [rax + rax]
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001054c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
mov ebx, r8d
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x30], 4
test rcx, rcx
je 0x1400105a3
lea rax, [r11 - 0x18]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [r11 + 8]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400105a3
cmp dword [rsp + 0x50], 4
jne 0x1400105a3
mov ebx, dword [rsp + 0x68]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x1400105b4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov dword [r11 + 0x18], r8d
push rbp
mov rbp, rsp
sub rsp, 0x40
xor eax, eax
mov dword [rbp + 0x20], 1
and dword [rbp + 0x10], eax
mov rbx, rdx
and qword [rbp - 8], rax
mov dword [rbp - 0x10], eax
mov dword [rbp + 0x28], 4
test rcx, rcx
je 0x140010619
lea rax, [rbp + 0x28]
xor r8d, r8d
mov qword [r11 - 0x20], rax
lea r9, [rbp + 0x10]
lea rax, [rbp + 0x20]
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140010616
cmp dword [rbp + 0x10], 4
je 0x14001067b
mov eax, dword [rbp - 0x10]
lea r8, [rbp - 8]
mov dword [rbp + 0x20], eax
lea rdx, str.SoftwareMicrosoftNotepad
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x14001067b
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rbp + 0x20]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
Function at 0x140010690
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
movsxd rdi, dword [rsp + 0x60]
xor ebp, ebp
mov dword [rsp + 0x40], ebp
mov rbx, r9
mov word [r9], bp
mov rsi, r8
lea eax, [rdi + rdi]
mov dword [rsp + 0x60], eax
test rcx, rcx
je 0x1400106ef
lea rax, [r11 + 0x28]
xor r8d, r8d
mov qword [r11 - 0x10], rax
lea r9, [r11 + 8]
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400106ef
cmp dword [rsp + 0x40], 1
je 0x140010700
mov r8, rdi
mov rdx, rsi
add r8, r8
mov rcx, rbx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400115c4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rdi, rcx
mov rdx, rcx
xor esi, esi
lea rcx, str._.SETUP
mov ebx, esi
call fcn.1400110dc
test eax, eax
jne 0x140011792
mov rcx, qword [0x140032598]
xor edx, edx
mov dword [0x140032370], 1
call qword [sym.imp.USER32.dll_GetSystemMenu]
nop dword [rax + rax]
mov rcx, qword [0x140031670]
lea rdx, str.SlipUpAcc
mov qword [0x140031600], rax
call qword [sym.imp.USER32.dll_LoadAcceleratorsW]
nop dword [rax + rax]
mov rcx, qword [0x140032598]
lea edx, [rsi - 0x10]
mov r8d, 0xfd0000
mov qword [0x1400315f0], rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
nop dword [rax + rax]
lea rcx, [rdi + 0xe]
cmp word [rcx], 0x20
je 0x14001166c
cmp word [rcx], 9
jne 0x140011672
add rcx, 2
jmp 0x140011660
cmp word [rcx], si
je 0x1400117e7
lea rdx, [rbp + 0x18]
mov qword [rbp + 0x18], rsi
call fcn.140011150
mov rcx, qword [rbp + 0x18]
mov edi, 3
mov qword [rsp + 0x30], rsi
mov r8d, edi
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x140031500], rax
cmp rax, 0xffffffffffffffff
jne 0x1400117aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, qword [rbp + 0x18]
mov rdx, qword [0x140030630]
mov rcx, qword [0x140032598]
cmp eax, 2
je 0x140011721
mov dword [rsp + 0x20], 0x31
cmp eax, 5
je 0x140011718
cmp eax, 0x7b
je 0x14001170f
mov r8, qword [0x140030670]
call fcn.14000bd64
mov ebx, eax
jmp 0x140011773
mov r8, qword [0x140030610]
jmp 0x140011706
mov r8, qword [0x140030598]
jmp 0x140011706
mov r8, qword [0x140030668]
mov dword [rsp + 0x20], 0x33
call fcn.14000bd64
mov ebx, eax
cmp eax, 6
jne 0x140011773
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov r8d, edi
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x140031500], rax
cmp qword [0x140031500], 0xffffffffffffffff
jne 0x1400117aa
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140011792
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
mov edx, dword [0x140032100]
lea rcx, [rbp + 0x18]
xor r8d, r8d
call fcn.14000f1ac
test al, al
jne 0x1400117c9
mov rcx, qword [rbp + 0x18]
call fcn.14000fddc
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400117de
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp ebx, 2
jne 0x1400117e7
mov eax, ebx
jmp 0x140011794
mov eax, 6
jmp 0x140011794
Function at 0x1400117f4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov ebp, edx
mov rbx, rcx
mov rdx, rcx
mov edi, 1
lea rcx, [0x140028138]
call fcn.1400110dc
xor r14d, r14d
test eax, eax
jne 0x140011849
add rbx, 6
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140011839
cmp ax, 9
jne 0x14001183f
add rbx, 2
jmp 0x14001182a
mov edi, r14d
mov esi, 2
jmp 0x14001187b
mov rdx, rbx
lea rcx, [0x140028140]
call fcn.1400110dc
test eax, eax
jne 0x1400118ec
add rbx, 4
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140011873
cmp ax, 9
jne 0x140011879
add rbx, 2
jmp 0x140011864
mov esi, edi
test ax, ax
je 0x1400118ec
mov rcx, qword [0x140032598]
mov edx, ebp
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x70], r14
mov rcx, rbx
call fcn.140011150
add rax, 2
test edi, edi
jne 0x14001194d
movzx ecx, word [rax]
test cx, cx
je 0x1400118d6
cmp cx, 0x20
je 0x1400118c7
cmp cx, 9
jne 0x1400118d0
add rax, 2
movzx ecx, word [rax]
jmp 0x1400118bb
cmp cx, 0x22
je 0x140011902
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400118ec
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, [rax + 2]
mov eax, r14d
lea r9, [0x140031810]
jmp 0x140011931
cmp cx, 0x22
je 0x140011939
lea r8d, [rax + 1]
cmp r8d, 0x100
jae 0x140011939
mov word [r9 + rax*2], cx
add rdx, 2
mov eax, r8d
movzx ecx, word [rdx]
test cx, cx
jne 0x140011912
add rax, rax
cmp rax, 0x200
jae 0x140011a34
mov word [rax + r9], r14w
mov rcx, qword [rsp + 0x70]
mov r8d, 3
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [0x140031500], rax
cmp rax, 0xffffffffffffffff
jne 0x140011a0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1400119c3
cmp eax, 5
je 0x1400119ba
cmp eax, 0x41
je 0x1400119ba
mov r8, qword [0x140030610]
cmp eax, 0x7b
cmovne r8, qword [0x140030670]
jmp 0x1400119ca
mov r8, qword [0x140030598]
jmp 0x1400119ca
mov r8, qword [0x140030668]
mov r9, qword [rsp + 0x70]
mov rdx, qword [0x140030630]
mov rcx, qword [0x140032598]
mov dword [rsp + 0x20], 0x30
call fcn.14000bd64
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140011a00
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, 1
jmp 0x1400118ee
mov edx, dword [0x140032100]
lea rcx, [rsp + 0x70]
xor r8d, r8d
call fcn.14000f1ac
test al, al
jne 0x140011a2b
mov rcx, qword [rsp + 0x70]
call fcn.14000fddc
mov ecx, esi
call fcn.14001e98c
jmp 0x1400119ea
call fcn.140024028
int3
Function at 0x14001f008
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebp, ebp
lea r14, [rcx + 8]
mov qword [r14], rbp
lea rax, [0x140026130]
mov qword [rcx], rax
lea r9, [r11 + 8]
mov rax, qword [rdx]
mov rsi, rcx
mov qword [rcx + 0x10], rax
xor r8d, r8d
mov qword [rdx], rbp
xor edx, edx
mov byte [rcx + 0x18], bpl
lea rcx, [0x14002ac10]
mov qword [r11 + 8], rbp
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x14001f0d6
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x14001f0ec
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rdx + rdi*2], bp
jne 0x14001f071
lea r8, [rdi + 9]
lea rcx, [rsp + 0x20]
call fcn.14000e2e4
mov rbx, qword [rsp + 0x20]
lea r8, [0x140028298]
mov edx, 9
lea rcx, [rbx + rdi*2]
call fcn.14000173c
test eax, eax
js 0x14001f0c2
lea rax, [rsp + 0x20]
cmp r14, rax
je 0x14001f0c2
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14000c6c8
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x14001f0d6
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001f0ec
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x58]
mov rax, rsi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret