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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov r12d, r8d
lea r9d, [rax + rax]
mov eax, dword [rcx + 0x20]
mov rbp, rdx
lea rcx, [r9 + rax + 0x18]
call qword [fcn.1401448b4]
mov rdi, rax
test rax, rax
jne 0x14019a0f1
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp r12d, dword [rbx + 0x1c]
jbe 0x14019a135
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, r12d
mov rdx, rbp
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov ebp, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add rbp, qword [rdi + 0x10]
mov rcx, rbp
call qword [rbx + reloc.WS2_32.dll_recv]
mov r12d, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test r12, r12
je 0x14019a194
mov rsi, r12
nop dword [rax + rax]
movzx eax, byte [rbp]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
movzx r11d, byte [rbp]
lea rdx, [rsp + 0x40]
xor r11b, 0x5c
mov r8d, 1
inc rbp
mov byte [rsp + 0x40], r11b
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
dec r12
jne 0x14019a150
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14019a1d3
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1402050a9]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1402050aa]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14019a1a0
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r12
pop rdi
pop rbp
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x14019a2f6
call fcn.140145078
and dword [rax], 0
call fcn.140145058
mov ebx, reloc.WLDAP32.dll_Ordinal_22
mov dword [rax], ebx
call fcn.14014a258
mov eax, ebx
jmp 0x14019a346
test edx, 0xfffffff9
jne 0x14019a2d9
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14019a31f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140145098
call fcn.140145058
mov eax, dword [rax]
jmp 0x14019a346
test al, 0x10
jne 0x14019a344
test al, 1
je 0x14019a344
test bl, 2
je 0x14019a344
call fcn.140145078
mov dword [rax], 5
call fcn.140145058
mov dword [rax], reloc.WS2_32.dll_listen
jmp 0x14019a316
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000fe08
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
or rsi, 0xffffffffffffffff
xor r12d, r12d
mov r15, r8
mov rdi, rdx
mov qword [rbp - 0x50], rdx
test rdx, rdx
je 0x14000fe4a
cmp byte [rdx], r12b
jne 0x14000fe50
mov qword [rbp - 0x48], r12
jmp 0x14000fe60
mov rax, rsi
inc rax
cmp byte [rdx + rax], r12b
jne 0x14000fe53
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140012c04
cmp qword [rax + 0x18], 8
jb 0x14000fe77
mov rax, qword [rax]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp qword [rbp - 0x18], 8
mov r14d, eax
jb 0x14000fe98
mov rcx, qword [rbp - 0x30]
call fcn.14009bc2c
test r14d, r14d
jne 0x14000fea4
xor al, al
jmp 0x14000ffa5
test r15, r15
je 0x14000ffa3
mov eax, 2
mul r14
cmovo rax, rsi
mov rcx, rax
call fcn.14009b1fc
mov qword [rbp - 0x50], rdi
mov rbx, rax
test rdi, rdi
je 0x14000fed2
cmp byte [rdi], r12b
jne 0x14000fed8
mov qword [rbp - 0x48], r12
jmp 0x14000fee8
mov rax, rsi
inc rax
cmp byte [rdi + rax], r12b
jne 0x14000fedb
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140012c04
cmp qword [rax + 0x18], 8
jb 0x14000feff
mov rax, qword [rax]
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp qword [rbp - 0x18], 8
jb 0x14000ff1e
mov rcx, qword [rbp - 0x30]
call fcn.14009bc2c
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
cmp word [rbx], r12w
jne 0x14000ff3a
mov rsi, r12
jmp 0x14000ff44
inc rsi
cmp word [rbx + rsi*2], r12w
jne 0x14000ff3a
lea rcx, [rbp - 0x50]
mov r8, rsi
mov rdx, rbx
call fcn.140009524
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x30]
call fcn.140012c78
mov rcx, r15
mov rdx, rax
call fcn.140005cb0
cmp qword [rbp - 0x18], 0x10
jb 0x14000ff7b
mov rcx, qword [rbp - 0x30]
call fcn.14009bc2c
cmp qword [rbp - 0x38], 8
mov qword [rbp - 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x20], r12
mov byte [rbp - 0x30], r12b
jb 0x14000ff9b
mov rcx, qword [rbp - 0x50]
call fcn.14009bc2c
mov rcx, rbx
call fcn.14009ca30
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14009c5b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14001326c
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rdi, rcx
jb 0x140013285
mov rdi, qword [rcx]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor ebx, ebx
mov ebp, eax
test eax, eax
je 0x140013325
lea edx, [rbx + 1]
mov ecx, ebp
call fcn.14009d5a8
mov rsi, rax
test rax, rax
je 0x140013325
mov edx, dword [rsp + 0x40]
mov r9, rax
mov r8d, ebp
mov rcx, rdi
call sub.VERSION.dll_GetFileVersionInfoW
mov rcx, rsi
test eax, eax
je 0x140013320
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x50]
lea rdx, str.VarFileInfoTranslation
mov qword [rsp + 0x50], rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14001331d
cmp qword [rsp + 0x50], rbx
je 0x14001331d
lea ecx, [rbx + 0x20]
call fcn.14009bbc0
test rax, rax
je 0x140013318
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
movzx r9d, word [rcx + 2]
movzx r8d, word [rcx]
mov rcx, rax
call fcn.140013160
mov rbx, rax
mov rax, rbx
jmp 0x140013327
mov rcx, rsi
call fcn.14009c9f0
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400133cc
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x170], rax
movzx eax, word [rcx + 0x10]
mov r15, r8
mov r12, rdx
mov word [rsp + 0x50], ax
movzx eax, word [rcx + 0x14]
mov r14, rcx
mov word [rsp + 0x52], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, 0x4e4
mov word [rsp + 0x54], ax
movzx eax, word [r14 + 0x14]
mov word [rsp + 0x5a], bx
mov word [rsp + 0x56], ax
movzx eax, word [r14 + 0x10]
mov word [rsp + 0x58], ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rsp + 0x5e], bx
xor ebx, ebx
lea rdi, [rsp + 0x50]
mov word [rsp + 0x5c], ax
mov esi, ebx
movzx eax, word [rdi + 2]
movzx edx, word [rdi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
mov edx, 0x104
lea r9, str.StringFileInfo_04x_04x_ls
lea rcx, [rsp + 0x60]
mov r8d, edx
add esi, 2
lea rdi, [rdi + 4]
call fcn.14009d560
mov rcx, qword [r14 + 8]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x40], rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1400134b3
mov rdx, qword [rsp + 0x40]
test rdx, rdx
jne 0x1400134df
movsxd rax, esi
cmp rax, 8
jb 0x140013454
xor al, al
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14009c5b0
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp word [rdx], bx
je 0x1400134f4
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x1400134e8
mov rbx, rax
mov r8, rbx
mov rcx, r15
call fcn.140009524
mov al, 1
jmp 0x1400134be
Function at 0x140013a60
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rcx, qword [rcx]
xor edi, edi
test rcx, rcx
je 0x140013ab2
mov edx, dword [rbx + 8]
test edx, edx
js 0x140013ab2
lea rax, [r11 + 0x10]
lea r8, [rbx + 0xc]
lea r9, [r11 + 8]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], rdi
mov dword [rsp + 0x50], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140013ab2
mov al, 1
jmp 0x140013ab8
mov word [rbx + 0xc], di
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140013ac4
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xf50]
mov eax, 0x1050
call fcn.14009d600
sub rsp, rax
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0xf40], rax
lea rax, [rsp + 0x30]
mov rsi, r8
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0x800
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140013bd0
cmp dword [rsp + 0x34], 1
jne 0x140013b6f
cmp word [rsp + 0x40], bx
je 0x140013b5d
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140013b51
mov rbx, rax
lea rdx, [rsp + 0x40]
mov r8, rbx
mov rcx, rsi
call fcn.140009524
jmp 0x140013bd0
cmp dword [rsp + 0x34], 2
jne 0x140013bcb
lea rdx, [rbp + 0x740]
lea rcx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x30], eax
dec eax
cmp eax, 0x3ff
ja 0x140013bc4
cmp word [rbp + 0x740], bx
je 0x140013bbb
lea rcx, [rbp + 0x740]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140013baf
mov rbx, rax
lea rdx, [rbp + 0x740]
jmp 0x140013b62
mov edi, 0xea
jmp 0x140013bd0
mov edi, 0x3f4
mov eax, edi
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1050
pop rdi
pop rsi
pop rbp
ret

Function at 0x140013bf4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
mov rcx, qword [rcx]
and dword [rsp + 0x30], 0
lea rax, [r11 + 0x20]
mov rbx, r8
lea r9, [r11 + 8]
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x18]
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x68], 4
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013c5d
mov ecx, dword [rsp + 0x50]
add ecx, 0xfffffffd
cmp ecx, 1
ja 0x140013c58
cmp dword [rsp + 0x68], 4
jne 0x140013c58
mov ecx, dword [rsp + 0x30]
mov dword [rbx], ecx
jmp 0x140013c5d
mov eax, 0x3f4
add rsp, 0x40
pop rbx
ret
Function at 0x140017c04
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
cmp qword [0x1401c9ad0], rbx
je 0x140017c2b
xor al, al
jmp 0x140017cb7
mov ecx, gethostbyname
call fcn.14009bbc0
test rax, rax
je 0x140017c4d
xor edx, edx
mov rcx, rax
call fcn.140016c5c
mov qword [0x1401c9ad0], rax
jmp 0x140017c54
mov qword [0x1401c9ad0], rbx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
mov rdx, rax
cmp word [rax], bx
je 0x140017c85
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140017c79
mov rbx, rax
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.140009524
mov rcx, qword [0x1401c9ad0]
lea rdx, [rsp + 0x20]
call fcn.140018064
cmp qword [rsp + 0x38], 8
jb 0x140017cb5
mov rcx, qword [rsp + 0x20]
call fcn.14009bc2c
mov al, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009c5b0
add rsp, 0x50
pop rbx
ret

Function at 0x140018064
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp - 8], rax
xor ebx, ebx
mov rax, rdx
mov rdi, rcx
mov dword [rbp - 0x30], ebx
lea edx, [rbx + 3]
lea r8, [rbp - 0x28]
mov rcx, rax
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
call fcn.1400155ec
cmp qword [rbp - 0x18], rbx
je 0x1400180e9
cmp qword [rbp - 0x10], 8
lea rcx, [rbp - 0x28]
lea rdx, [rbp - 0x30]
cmovae rcx, qword [rbp - 0x28]
mov dword [rbp - 0x30], ebx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [rbp - 0x30]
mov rcx, rdi
mov r8, rax
mov rbx, rax
call fcn.140017e04
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp qword [rbp - 0x10], 8
jb 0x1400180f9
mov rcx, qword [rbp - 0x28]
call fcn.14009bc2c
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14001c930
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 0x10
mov r9, qword [rdx + 0x10]
jb 0x14001c942
mov rdx, qword [rdx]
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
test r9, r9
je 0x14001c970
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
inc rcx
xor r8, rax
imul r8, r10
cmp rcx, r9
jb 0x14001c953
mov rcx, r8
mov edx, 0x1f31d
shr rcx, 0x20
xor ecx, r8d
btr ecx, 0x1f
call fcn.14009d52c
mov qword [rsp + 0x38], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x38], 0xb14
sub ecx, eax
jns 0x14001c9a9
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret
Function at 0x14001f190
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, r8
mov rdi, rcx
mov dword [rsp + 0x48], ebx
test edx, edx
jne 0x14001f1bb
xor eax, eax
jmp 0x14001f276
mov ecx, dword [rcx + 0x330]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001f214
mov ecx, dword [rdi + 0x330]
call sub.KERNEL32.dll_TlsGetValue
mov rdx, qword [rsp + 0x38]
mov r8, qword [rax + 0x10]
test r8, r8
je 0x14001f20a
cmp edx, dword [r8 + 0x1e08]
jne 0x14001f20a
movzx ecx, word [rsp + 0x3c]
cmp rcx, qword [rax + 0x18]
jne 0x14001f20a
movzx eax, word [rsp + 0x3e]
imul rax, rax, 0x78
add rax, 8
add rax, r8
jmp 0x14001f20d
mov rax, rbx
test rax, rax
je 0x14001f219
jmp 0x14001f276
mov rdx, qword [rsp + 0x38]
test rsi, rsi
je 0x14001f234
cmp byte [rsi + 8], bl
jne 0x14001f234
mov rcx, qword [rsi]
call sub.KERNEL32.dll_EnterCriticalSection
mov rdx, qword [rsp + 0x38]
mov byte [rsi + 8], 1
mov r8, qword [rdi + 0x380]
test r8, r8
je 0x14001f26c
movzx eax, word [rsp + 0x3c]
cmp rax, qword [rdi + 0x388]
jne 0x14001f26c
cmp edx, dword [r8 + 0x1e08]
jne 0x14001f267
movzx eax, word [rsp + 0x3e]
imul rbx, rax, 0x78
add rbx, 8
add rbx, r8
mov rax, rbx
jmp 0x14001f276
mov rcx, qword [rdi + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002210c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov dword [rsp + 0x30], ebx
mov rsi, rcx
jb 0x14002213f
mov rbp, qword [rcx]
jmp 0x140022142
mov rbp, rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002216d
test al, 0x10
je 0x14002215b
mov al, 1
jmp 0x14002220d
test rdi, rdi
je 0x140022166
mov dword [rdi], 0xfffffff7
xor al, al
jmp 0x14002220d
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140010670
cmp qword [rsi + 0x18], 8
mov rax, qword [rsi + 0x10]
jb 0x14002218a
mov r9, qword [rsi]
jmp 0x14002218d
mov r9, rsi
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x38]
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.1400034bc
test eax, eax
jne 0x1400221b4
test rdi, rdi
je 0x140022201
mov dword [rdi], 0xfffffffc
jmp 0x140022201
lea rcx, [rsp + 0x38]
mov rdx, rdi
call 0x14002210c
test al, al
je 0x140022201
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400221ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0xb7
jne 0x1400221ef
mov rcx, rsi
call fcn.14002222c
test al, al
jne 0x1400221ff
test rdi, rdi
je 0x140022201
mov ecx, ebp
call fcn.140027094
mov dword [rdi], eax
jmp 0x140022201
mov bl, 1
lea rcx, [rsp + 0x38]
call fcn.14000f514
mov al, bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
jmp 0x14002210c
Function at 0x14002222c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14002223a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002224d
shr eax, 4
and eax, 1
jmp 0x14002224f
xor al, al
add rsp, 0x28
ret

Function at 0x140022254
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
lea rdx, [rbp - 0x80]
xor ebx, ebx
mov ecx, 0x104
mov word [rbp - 0x80], bx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140022333
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rbx
mov word [rsp + 0x20], bx
cmp word [rbp - 0x80], bx
je 0x1400222d1
lea rcx, [rbp - 0x80]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400222c5
mov rbx, rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.140009524
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140010230
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140010e98
mov rcx, rdi
mov rdx, rax
call fcn.1400102b0
lea rcx, [rsp + 0x40]
call fcn.14000f514
lea rcx, [rsp + 0x60]
call fcn.14000f514
cmp qword [rsp + 0x38], 8
jb 0x14002232f
mov rcx, qword [rsp + 0x20]
call fcn.14009bc2c
mov al, 1
jmp 0x140022335
xor al, al
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14009c5b0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14002235c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x180], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
mov rbx, rcx
lea edx, [r9 + 0x28]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
test eax, eax
js 0x140022410
cmp word [rsp + 0x70], si
je 0x140022410
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x1400223cf
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140009524
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140010230
cmp qword [rsp + 0x48], 8
jb 0x14002249d
mov rcx, qword [rsp + 0x30]
call fcn.14009bc2c
jmp 0x14002249d
lea rcx, [rsp + 0x50]
call fcn.140010298
lea rcx, [rsp + 0x50]
call fcn.1400224c4
test al, al
je 0x140022437
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140010200
jmp 0x140022493
lea rdx, [0x1400cc990]
lea rcx, [rsp + 0x30]
mov r8d, 3
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
call fcn.140009524
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140010230
cmp qword [rsp + 0x48], 8
jb 0x140022480
mov rcx, qword [rsp + 0x30]
call fcn.14009bc2c
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rsi
mov word [rsp + 0x30], si
lea rcx, [rsp + 0x50]
call fcn.14000f514
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14009c5b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400224c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
lea rdx, [rbp - 0x80]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x14002259b
xor r8d, r8d
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], r8
mov word [rsp + 0x20], r8w
cmp word [rbp - 0x80], r8w
je 0x14002253c
lea rcx, [rbp - 0x80]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r8w
jne 0x14002252f
mov r8, rax
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x20]
call fcn.140009524
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140010230
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140010e98
mov rcx, rbx
mov rdx, rax
call fcn.1400102b0
lea rcx, [rsp + 0x40]
call fcn.14000f514
lea rcx, [rsp + 0x60]
call fcn.14000f514
cmp qword [rsp + 0x38], 8
jb 0x140022597
mov rcx, qword [rsp + 0x20]
call fcn.14009bc2c
mov al, 1
jmp 0x14002259d
xor al, al
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rbp
ret

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

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x140022696
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add rsp, 0x28
ret