joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003610
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x27], rax
movsxd rbx, r8d
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x41], rcx
xor esi, esi
mov dword [rbp - 0x49], esi
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
test rdx, rdx
je 0x14000376f
test r8d, r8d
jle 0x14000376f
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
lea r15, [0x140000000]
lea rax, [r15 + 0x15c250]
mov qword [rbp - 0x39], rax
lea edx, [rsi + 0x10]
lea rcx, [rbp - 0x31]
call fcn.14000a1d0
nop
lea rax, [r15 + 0x15c418]
mov qword [rbp - 0x39], rax
lea edx, [rsi + 8]
lea rcx, [rbp - 0x19]
call fcn.14000a1d0
mov rax, qword [rbp - 9]
mov dword [rax], 0x6a09e667
mov dword [rax + 4], 0xbb67ae85
mov dword [rax + 8], 0x3c6ef372
mov dword [rax + 0xc], 0xa54ff53a
mov dword [rax + 0x10], 0x510e527f
mov dword [rax + 0x14], 0x9b05688c
mov dword [rax + 0x18], 0x1f83d9ab
mov dword [rax + 0x1c], 0x5be0cd19
lea rax, [r15 + 0x15c500]
mov qword [rbp - 0x39], rax
mov r8, rbx
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.14000a580
mov rax, qword [rbp - 0x39]
mov rbx, qword [rax + 0x60]
lea rcx, [rbp - 0x39]
call qword [rax + 0x28]
mov r8d, eax
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call rbx
nop
mov rbx, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400fc160
mov rcx, rbx
call fcn.1400f9580
mov rbx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x29]
lea r8, [r8*4]
xor edx, edx
mov rcx, rbx
call fcn.1400fc160
mov rcx, rbx
call fcn.1400f9580
nop
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rbp - 0x49], 2
mov r14d, gethostname
nop
movzx ebx, byte [rbp + rsi + 7]
movzx eax, bl
shr al, 4
mov ecx, 0x30
cmp al, 0xa
cmovae ecx, r14d
add cl, al
mov rdx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rdx, r8
jae 0x1400037d3
lea rax, [rdx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp r8, 0x10
jb 0x1400037c9
mov rax, qword [rdi]
mov byte [rax + rdx], cl
mov byte [rax + rdx + 1], 0
jmp 0x1400037df
movzx r9d, cl
mov rcx, rdi
call fcn.14000b780
and bl, 0xf
mov eax, 0x30
cmp bl, 0xa
cmovae eax, r14d
add al, bl
mov rdx, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rdx, r8
jae 0x14000381b
lea rcx, [rdx + 1]
mov qword [rdi + 0x10], rcx
mov rcx, rdi
cmp r8, 0x10
jb 0x140003811
mov rcx, qword [rdi]
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x140003827
movzx r9d, al
mov rcx, rdi
call fcn.14000b780
inc rsi
cmp rsi, 0x20
jl 0x140003790
mov rax, rdi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004350
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov byte [rcx + 0x10], r12b
lea rsi, [rcx + 0x18]
mov qword [rsi], r12
lea r14, [rcx + 0x20]
mov qword [r14], r12
lea edx, [r12 + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400043a8
cmp eax, 0x80010106
jne 0x140004518
jmp 0x1400043ac
mov byte [rbx + 0x10], 1
mov qword [rsp + 0x20], rsi
lea r9, [0x14014b1e8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14014b1d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140004508
mov r15, qword [rsi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
mov ecx, 0x18
call fcn.1400f9588
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14000441f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, str.ROOTCIMV2
call fcn.1400f9230
mov qword [rdi], rax
jmp 0x140004422
mov rdi, r12
mov qword [rsp + 0x88], rdi
test rdi, rdi
je 0x140004534
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r15
call rbp
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x14000449b
mov rcx, qword [rdi]
test rcx, rcx
je 0x14000447c
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14000448e
call fcn.1400f9580
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1400f9580
test ebp, ebp
jns 0x1400044b3
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400044b1
mov qword [rsi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
jmp 0x140004508
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140004518
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400044f6
mov qword [rsi], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rcx, qword [r14]
test rcx, rcx
je 0x140004508
mov qword [r14], r12
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
cmp byte [rbx + 0x10], 0
je 0x140004518
call qword [sym.imp.ole32.dll_CoUninitialize]
mov byte [rbx + 0x10], 0
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.1400f9220
int3
Function at 0x14000e2d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, r8
mov rax, rdx
mov rdi, rcx
mov byte [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000ddb0
mov rbp, rax
xor eax, eax
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], ax
mov qword [rsp + 0x28], rax
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], ax
lea r8, [rsp + 0x28]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14000e030
lea rcx, [rsp + 0x48]
call fcn.14000e1f0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.14000e1f0
mov rcx, qword [rdi]
mov qword [rdi + 8], rcx
mov r8, rbx
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000e456
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test eax, eax
je 0x14000e456
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000e456
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000e456
mov esi, ebx
mov rbx, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, rbx
sub rcx, rdx
cmp rsi, rcx
jae 0x14000e3d7
lea rbx, [rdx + rsi]
jmp 0x14000e409
jbe 0x14000e40d
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rsi, rax
jbe 0x14000e3f6
mov rdx, rsi
mov rcx, rdi
call fcn.1400110b0
mov rbx, qword [rdi + 8]
jmp 0x14000e40d
mov r8, rsi
sub r8, rcx
mov rcx, rbx
add rbx, r8
xor edx, edx
call fcn.1400fc160
mov qword [rdi + 8], rbx
mov rcx, qword [rdi]
sub rbx, rcx
test rsi, rsi
je 0x14000e456
test rcx, rcx
jne 0x14000e42a
call fcn.14010395c
mov dword [rax], socket
jmp 0x14000e451
cmp rbx, rsi
jb 0x14000e43c
mov r8, rsi
mov rdx, r14
call fcn.1400fbab0
jmp 0x14000e456
mov r8, rbx
xor edx, edx
call fcn.1400fc160
call fcn.14010395c
mov dword [rax], 0x22
call fcn.14010400c
mov rbx, qword [rdi + 8]
sub rbx, qword [rdi]
cmp byte [rsp + 0x20], 0
je 0x14000e46e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rcx, [rsp + 0x28]
call fcn.140008e70
nop
lea rcx, [rsp + 0x48]
call fcn.140008e70
mov rax, rbx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400f9560
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001c820
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
test cl, cl
jne 0x14001c95b
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400fc160
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
mov qword [rsp + 0x40], rbx
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], bx
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14001c893
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140008ee0
nop
mov qword [rsp + 0x20], rbx
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
mov qword [rbp - 0x80], rbx
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov r8d, 6
lea rdx, str.adppid
lea rcx, [rbp - 0x80]
call fcn.1400090e0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.14001b490
nop
lea rcx, [rbp - 0x80]
call fcn.140009080
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140024500
cmp qword [rax + 0x18], 8
jb 0x14001c927
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
lea rcx, [rsp + 0x60]
call fcn.140008e70
nop
lea rcx, [rsp + 0x20]
call fcn.140008e70
nop
lea rcx, [rsp + 0x40]
call fcn.140008e70
movzx eax, bl
jmp 0x14001c95e
movzx eax, cl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rbp
ret
Function at 0x14001d590
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov edi, 4
test ecx, ecx
cmovns edi, ecx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x14001d5df
mov eax, 6
jmp 0x14001d797
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400fc160
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov qword [rbp - 0x80], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], si
jne 0x14001d621
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140008ee0
nop
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], si
mov qword [rsp + 0x40], rsi
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov r8d, 8
lea rdx, str.adpdebug
lea rcx, [rsp + 0x40]
call fcn.1400090e0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14001b490
nop
lea rcx, [rsp + 0x40]
call fcn.140009080
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140024500
cmp qword [rax + 0x18], 8
jb 0x14001d6b9
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140008e70
nop
lea rcx, [rsp + 0x60]
call fcn.140008e70
mov eax, 5
cmp ebx, 1
cmove edi, eax
mov qword [rsp + 0x40], rsi
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], si
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x140167e50]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov esi, 6
mov r8d, esi
lea rdx, str.adpdev
lea rcx, [rsp + 0x60]
call fcn.1400090e0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14001b490
nop
lea rcx, [rsp + 0x60]
call fcn.140009080
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140024500
cmp qword [rax + 0x18], 8
jb 0x14001d766
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140008e70
nop
lea rcx, [rsp + 0x40]
call fcn.140008e70
cmp ebx, 1
cmove edi, esi
lea rcx, [rbp - 0x80]
call fcn.140008e70
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400f9560
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140021b80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx ebx, dl
mov rdi, rcx
mov dword [rsp + 0x20], 0
cmp qword [rcx + 0x18], 8
jb 0x140021bb1
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140021c97
test al, 0x10
je 0x140021c97
test bl, bl
je 0x140021c8d
lea rax, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], 1
lea rax, [0x140021a00]
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x50], 0
xor edx, edx
xor ecx, ecx
call fcn.140023490
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.140023490
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140023570
mov byte [rsp + 0x50], 1
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400266a0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140021c59
cmp byte [rsp + 0x50], 0
je 0x140021c50
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140021c7e
cmp byte [rsp + 0x50], 0
je 0x140021c75
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.14001c750
mov rcx, rdi
call fcn.140025560
jmp 0x140021c9f
mov rcx, rdi
call fcn.140025e70
test al, al
mov eax, dword [rsp + 0x20]
je 0x140021ca9
inc eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140022570
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8a0
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400225af
mov rdx, qword [rcx]
mov qword [rdi], rbp
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x1400225d0
mov rcx, rdi
call fcn.140008ee0
mov dword [rsp + 0x20], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x1400225f7
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x1400226ab
mov word [rsp + 0x70], bp
lea rdx, [rsp + 0x70]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov qword [rsp + 0x28], rbp
movdqa xmm0, xmmword [0x140167e40]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], bp
lea rax, [rsp + 0x70]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140022640
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140008ee0
mov dword [rsp + 0x20], 3
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140024500
nop
cmp rdi, rax
je 0x140022696
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14002268a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rsp + 0x50]
call fcn.140008e70
nop
lea rcx, [rsp + 0x28]
call fcn.140008e70
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140025330
nop
cmp rdi, rax
je 0x1400226d8
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400226cc
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.140008ee0
nop
lea rcx, [rsp + 0x50]
call fcn.140008e70
mov rax, rdi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x8a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400229e0
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov dword [rsp + 0x30], 1
cmp qword [rcx + 0x18], 8
jb 0x140022a36
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022a45
test al, 0x10
jne 0x140022a55
test rbp, rbp
jns 0x140022a55
mov rcx, rbx
call fcn.140025ef0
mov rbp, rax
lea rdx, [0x14015d0c0]
mov rcx, rbx
call fcn.140026360
mov r14, rax
test rax, rax
je 0x140022b2a
mov qword [rsp + 0x40], rsi
xor r9d, r9d
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test rbp, rbp
jle 0x140022b21
mov r15, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r15
sub rcx, rdx
cmp rbp, rcx
jae 0x140022aaa
lea rax, [rdx + rbp]
jmp 0x140022adc
jbe 0x140022ae0
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbp, rax
jbe 0x140022ac5
mov rdx, rbp
mov rcx, rdi
call fcn.1400110b0
jmp 0x140022ae0
mov rbx, rbp
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.1400fc160
lea rax, [rbx + r15]
mov qword [rdi + 8], rax
mov rdx, qword [rdi]
test rdx, rdx
je 0x140022b0a
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022b0a
mov esi, dword [rsp + 0x40]
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
cmp rsi, rcx
jae 0x140022b21
lea rcx, [rax + rsi]
mov qword [rdi + 8], rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022da0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xb8
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rbp - 1], rax
mov qword [rbp - 0x29], r9
mov r13, r8
mov qword [rbp - 0x79], rdx
mov rdi, rcx
mov qword [rbp - 0x71], rcx
mov rax, qword [rbp + 0x77]
mov r14, qword [rbp + 0x7f]
xor ebx, ebx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x11], rbx
mov qword [rbp - 9], 7
mov word [rbp - 0x21], bx
test rax, rax
je 0x140022e53
lea r8, str..saving
cmp word [rax], bx
cmovne r8, rax
mov rdx, rcx
lea rcx, [rbp - 0x49]
call fcn.140023a40
nop
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.140023840
nop
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rdx, qword [rbp - 0x69]
mov r8, qword [rbp - 0x59]
lea rcx, [rbp - 0x21]
call fcn.140008ee0
nop
lea rcx, [rbp - 0x69]
call fcn.140008e70
nop
lea rcx, [rbp - 0x49]
call fcn.140008e70
lea r12, [rbp - 0x21]
cmp qword [rbp - 0x11], 0
cmove r12, rdi
test r14, r14
je 0x140022e6f
test r13, r13
js 0x140022e6f
xor r15b, r15b
jmp 0x140022e77
mov r15b, 1
test r14, r14
je 0x140022e7f
mov rsi, qword [r14]
test rsi, rsi
jne 0x140022eec
lea rdx, [rbp - 0x49]
mov rcx, rdi
call fcn.140024330
nop
mov rcx, rax
call fcn.140024460
nop
lea rcx, [rbp - 0x49]
call fcn.140008e70
lea rdx, [0x14015d0c4]
mov rcx, r12
call fcn.140026360
mov rsi, rax
test r14, r14
je 0x140022eb8
mov qword [r14], rax
test rsi, rsi
je 0x140022f67
mov rax, qword [rbp - 0x29]
mov qword [rbp - 0x29], rbx
lea r8, [rbp - 0x29]
mov rcx, rsi
test rax, rax
jns 0x140022ee0
mov r9d, 2
mov rdx, rbx
jmp 0x140022ee6
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor dil, dil
test r13, r13
js 0x140022f29
mov rax, qword [rbp - 0x79]
test rax, rax
je 0x140022f1f
mov dword [rbp - 0x29], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x29]
mov r8d, r13d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, dword [rbp - 0x29]
jne 0x140022f22
mov rax, rbx
test rax, rax
setne dil
test r15b, r15b
je 0x140022f8e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne al
movzx edx, al
movzx eax, dil
test dil, dil
cmovne edx, eax
movzx edi, dl
xor r8d, r8d
mov edx, dword [0x14018acc0]
mov rcx, r12
call fcn.140025970
test r14, r14
je 0x140022f6f
mov qword [r14], rbx
jmp 0x140022f6f
xor dil, dil
test r15b, r15b
je 0x140022f8e
test dil, dil
je 0x140022f8e
cmp qword [rbp - 0x11], 0
je 0x140022f8e
mov r8b, 1
mov rdx, qword [rbp - 0x71]
lea rcx, [rbp - 0x21]
call fcn.140026100
movzx edi, al
lea rcx, [rbp - 0x21]
call fcn.140008e70
movzx eax, dil
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400f9560
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140024460
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140024473
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x1400244ad
cmp rcx, 8
jb 0x14002448b
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400244a5
test al, 0x10
je 0x1400244a5
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
mov rdx, rbx
cmp rcx, 8
jb 0x1400244be
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete dil
test eax, eax
jne 0x1400244e4
mov edx, dword [0x14018acc0]
xor r8d, r8d
mov rcx, rbx
call fcn.140025970
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140024bb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14018a090]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140024ca4
mov rax, qword [rsp + 0x50]
lea rdx, [0x14015c818]
test rax, rax
cmovne rdx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], 7
mov word [rsp + 0x28], di
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140024c50
lea rcx, [rsp + 0x28]
call fcn.140008ee0
nop
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x140024c8f
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.140008ee0
nop
lea rcx, [rsp + 0x28]
call fcn.140008e70
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f9560
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140025560
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x140025577
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x1400255d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1400255d4
xor r8d, r8d
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140025970
mov edx, dword [0x14018acc0]
xor r8d, r8d
mov rcx, rbx
call fcn.140025970
cmp qword [rbx + 0x18], 8
jb 0x1400255ba
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
movzx eax, dil
add rsp, 0x20
pop rdi
ret