Function at 0x14006b130
Capabilities:
Enumerate files on windows
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd60
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0xd50], rax
mov rbp, rcx
mov rax, qword [rcx + 0x40]
mov rdi, qword [rax + 0x178]
xor ebx, ebx
or rsi, 0xffffffffffffffff
test rdi, rdi
je 0x14006b224
mov rax, qword [rdi]
cmp dword [rax + 0x174], 3
jl 0x14006b224
call fcn.14009d5e8
mov r11, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x14006b1b9
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rax, [0x1400fb278]
mov qword [rsp + 0x20], rax
lea r9, str.InitScriptIF
lea r8, str.CScriptFileIF
lea rdx, str.__public___s::_s__s_
lea rcx, [rsp + 0x60]
call fcn.14000a800
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14002f200
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006b224
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r14d, ebx
mov rax, qword [rbp + 0x30]
mov r8, qword [rax + 0x128]
cmp dword [r8 - 0x10], ebx
cmove r8, rbx
mov edi, 0x104
mov rdx, rdi
lea rcx, [rsp + 0x300]
lea rax, [rsp + 0x300]
sub r8, rax
nop
nop
nop
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14006b285
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14006b285
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14006b260
jmp 0x14006b28a
test rdx, rdx
jne 0x14006b28e
sub rcx, 2
mov word [rcx], r14w
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0xb40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x510]
mov r8, rdi
lea rdx, [rsp + 0x930]
lea rcx, [rsp + 0x300]
call fcn.1400cddd0
test eax, eax
jne 0x14006b364
lea rax, str..dat
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x510]
lea r8, [rsp + 0x930]
mov rdx, rdi
lea rcx, [rsp + 0x720]
call fcn.1400ce8f0
test eax, eax
jne 0x14006b364
lea rcx, [rsp + 0x300]
lea rdx, [rsp + 0x720]
lea rax, [rsp + 0x300]
sub rdx, rax
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x14006b357
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14006b357
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x14006b333
jmp 0x14006b35c
test rdi, rdi
jne 0x14006b360
sub rcx, 2
mov word [rcx], r14w
mov edi, ebx
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
mov r15d, 1
cmp rax, 0xffffffffffffffff
je 0x14006b40a
nop
nop
test byte [rsp + 0xb0], 0x10
cmove edi, r15d
lea rdx, [rsp + 0xb0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14006b3b5
test edi, edi
je 0x14006b390
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x14006b40a
lea rdx, [rsp + 0x300]
mov rcx, rbp
call fcn.140079080
test eax, eax
je 0x14006b6c7
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x300]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x300]
lea rcx, [rbp + 0x28]
call fcn.140003940
mov r14d, r15d
jmp 0x14006b5e6
mov rax, qword [rbp + 0x30]
mov ecx, dword [rax]
shr rcx, 0x17
test r15b, cl
je 0x14006b6c7
call fcn.1400a02a0
mov r12, qword [rax + 0x18]
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rbx
mov rdi, rbx
mov qword [rsp + 0x98], rbx
mov r13d, ebx
mov dword [rsp + 0xa0], ebx
mov qword [rsp + 0x80], r12
test r12, r12
je 0x14006b4e9
lea r8, str.SETUPDAT
mov edx, 0x80
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x14006b4e9
mov qword [rsp + 0x88], rax
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x14006b4db
mov qword [rsp + 0x90], rax
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14006b4e3
mov r13d, eax
mov dword [rsp + 0xa0], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
cmovne rdi, rax
mov qword [rsp + 0x98], rdi
mov r15d, 1
jmp 0x14006b4e9
mov r15d, 1
jmp 0x14006b4e9
mov r15d, 1
mov r14d, ebx
test rdi, rdi
je 0x14006b55a
test r13d, r13d
je 0x14006b55a
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, r15d
mov edx, 0x40000000
lea rcx, [rsp + 0x300]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14006b554
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14006b55a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], r14d
lea r9, str.DAT.:_d
lea r8, str.InitScriptIF
lea rdx, str.CScriptFileIF
mov rcx, qword [rbp + 0x40]
call fcn.140080a70
test r14d, r14d
je 0x14006b5dd
lea rdx, [rsp + 0x300]
mov rcx, rbp
call fcn.140079080
mov r14d, eax
test eax, eax
je 0x14006b5c8
mov rcx, qword [rbp + 0x30]
movabs rax, 0x1000000000000
or qword [rcx], rax
lea r9, [0x140105188]
lea r8, str.InitScriptIF
lea rdx, str.CScriptFileIF
mov rcx, qword [rbp + 0x40]
call fcn.140080a70
mov r8d, r15d
lea rdx, [rsp + 0x300]
mov rcx, qword [rbp + 0x38]
call fcn.140011b70
nop
test r14d, r14d
je 0x14006b6c7
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
lea r8, str.PROFILE_DIR
lea rdx, [0x1401051d0]
call qword [rax + 0x38]
test eax, eax
je 0x14006b82b
call fcn.14009d5e8
mov rcx, rax
test rax, rax
setne bl
test ebx, ebx
jne 0x14006b623
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov rcx, qword [rbp + 8]
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
mov edx, r15d
call qword [rax + 0x108]
test eax, eax
je 0x14006b6a0
mov r8d, r15d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbp + 0x38]
call fcn.140011290
test eax, eax
je 0x14006b6a0
mov rbx, qword [rbp + 0x30]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14006b6a5
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rbx + 0xe8]
call fcn.140003940
movabs rdx, 0x2000000000000
or qword [rbx], rdx
mov rdx, qword [rsp + 0x58]
jmp 0x14006b6a5
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14006b82b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14006b82b
call fcn.14009d5e8
mov rdx, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x14006b6e6
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, str._1_is_missing.
test rdx, 0xffffffffffff0000
jne 0x14006b729
movzx edi, dx
mov ecx, edi
call fcn.1400a1868
test rax, rax
je 0x14006b746
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000a990
jmp 0x14006b746
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.140003940
nop
mov dword [rsp + 0x20], ebx
lea r9, [rsp + 0x300]
lea r8, [0x1400fc370]
lea rdx, [rsp + 0x50]
mov rcx, qword [rbp + 0x38]
call fcn.140010dd0
call fcn.14009d5e8
mov rdx, rax
mov ecx, ebx
test rax, rax
setne cl
test ecx, ecx
jne 0x14006b786
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax + 0x128]
cmp dword [rdx - 0x10], 0
cmove rdx, rbx
lea r8, [rsp + 0x68]
mov rcx, qword [rbp + 0x38]
call fcn.140011db0
mov rdi, qword [rsp + 0x68]
test eax, eax
je 0x14006b7da
mov r9d, 0x30
mov r8, rdi
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x14006b7f1
mov r9d, 0x30
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14006b80d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14006b82b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], r14d
lea r9, [0x1400fb428]
lea r8, str.InitScriptIF
lea rdx, str.CScriptFileIF
mov rcx, qword [rbp + 0x40]
call fcn.140080e70
mov eax, r14d
mov rcx, qword [rsp + 0xd50]
xor rcx, rsp
call fcn.1400cd6e0
lea r11, [rsp + 0xd60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret