Function at 0x18000f8b0
Capabilities:
Check if file exists
Encode data using xor
Extract resource via kernel32 functions
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x180092078]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r12, rdx
movzx r14d, cl
xor r13d, r13d
mov dword [rsp + 0x68], r13d
mov dword [rbp - 0x80], r13d
lea r8, [0x180052648]
lea rdx, str.__MAIN__
mov rcx, qword [0x1800a6d60]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
lea rbx, [r13 - 1]
lea r15d, [r13 + 1]
test rax, rax
je 0x18000fa14
mov rdx, rax
mov rcx, qword [0x1800a6d60]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rdi
mov rcx, qword [0x1800a6d60]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, 0x400
cmp eax, esi
cmovb esi, eax
mov dword [rbp - 0x80], esi
mov qword [rsp + 0x70], r13
lea ecx, [r13 + 0x11]
mov r8d, esi
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov rdi, rax
mov qword [rsp + 0x70], rax
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
movsxd r8, esi
mov rdx, rbx
mov rcx, qword [rdi + 0x10]
call fcn.180029a20
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
nop
lea rdx, [rbp - 0x78]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov r10d, r13d
movsxd r11, dword [rdi + 0x18]
test r11, r11
jle 0x18000f9eb
mov r9d, r13d
nop dword [rax]
mov r8, qword [rbp - 0x78]
mov eax, r10d
cdq
idiv dword [0x180092008]
movsxd rcx, edx
mov rax, qword [section..data]
movzx ecx, byte [rcx + rax]
xor byte [r8 + r9], cl
inc r10d
inc r9
cmp r9, r11
jl 0x18000f9c0
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov r8d, dword [rbp - 0x80]
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x50]
call fcn.180029a20
nop
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x18000fd04
mov qword [rsp + 0x70], r13
mov rdi, rbx
mov qword [rsp + 0x70], rbx
lea rcx, [rbp - 0x70]
call fcn.18000ed60
nop
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov r8d, 4
lea rdx, str..dna
lea rcx, [rsp + 0x48]
call fcn.18000bc80
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18000faa7
dec rcx
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea rdx, [r8 + rax*2]
cmp word [rdx], 0x2e
je 0x18000fa9f
nop dword [rax]
cmp rdx, r8
je 0x18000faa7
sub rdx, 2
cmp word [rdx], 0x2e
jne 0x18000fa90
sub rdx, r8
sar rdx, 1
jmp 0x18000faaa
mov rdx, rbx
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r9, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.1800158d0
nop
lea rcx, [rsp + 0x48]
call fcn.180001820
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001011c
test al, 0x10
jne 0x18001011c
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov rbx, qword [rbp - 0x60]
lea rsi, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rsi, qword [rbp - 0x70]
movabs rdi, 0x7ffffffffffffffe
cmp rbx, rdi
ja 0x1800101d0
mov qword [rsp + 0x60], 7
cmp rbx, 8
jae 0x18000fb5e
mov qword [rsp + 0x58], rbx
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.180029a20
jmp 0x18000fbb8
mov rax, rbx
or rax, 7
cmp rax, rdi
ja 0x18000fb7a
mov rdi, rax
cmp rax, 0xa
mov eax, 0xa
cmovb rdi, rax
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180001b00
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdi
lea r8, [rbx*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.180029a20
lea rax, [rsp + 0x48]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r15d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov qword [rsp + 0x70], rax
cmp rax, 0xffffffffffffffff
jne 0x18000fc47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x18000fc1c
movzx ebx, ax
or ebx, 0x80070000
lea rcx, [rsp + 0x48]
call fcn.180001820
test ebx, ebx
jns 0x18000fc51
test r14b, r14b
je 0x180010139
mov r9d, ebx
mov edx, 0x6a
lea ecx, [rdx - 1]
lea r8d, [rdx + 1]
jmp 0x180010133
lea rcx, [rsp + 0x48]
call fcn.180001820
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x80]
mov r8d, 0x400
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000fca4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18000fc85
movzx eax, ax
or eax, 0x80070000
test eax, eax
jns 0x18000fca4
test r14b, r14b
je 0x180010139
mov r9d, eax
mov edx, 0x6a
lea ecx, [rdx - 1]
lea r8d, [rdx + 1]
jmp 0x180010133
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x18000fce4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000fcdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800101ca
call fcn.180027be4
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
cmp rdi, 0xffffffffffffffff
je 0x18000fd04
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rbp - 0x80]
cmp ecx, 3
jb 0x18000fe2f
movzx eax, byte [rbp - 0x50]
cmp al, 0xef
je 0x18000fe2f
cmp al, 0xff
jne 0x18000fd26
cmp byte [rbp - 0x4f], 0xfe
jmp 0x18000fd32
cmp al, 0xfe
jne 0x18000fe2f
cmp byte [rbp - 0x4f], 0xff
jne 0x18000fe2f
mov rsi, rcx
shr rsi, 1
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x58], 7
lea rcx, [rbp - 0x70]
cmp rsi, 8
jae 0x18000fd78
mov qword [rbp - 0x60], rsi
lea rdi, [rsi + rsi]
mov r8, rdi
lea rdx, [rbp - 0x50]
call fcn.180029a20
mov word [rbp + rdi - 0x70], r13w
jmp 0x18000fdca
mov rdi, rsi
or rdi, 7
cmp rdi, 0xa
mov eax, 0xa
cmovb rdi, rax
mov rdx, rdi
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
call fcn.180001b00
mov rbx, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rdi
lea rdi, [rsi + rsi]
mov r8, rdi
lea rdx, [rbp - 0x50]
mov rcx, rax
call fcn.180029a20
mov word [rdi + rbx], r13w
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.18000185c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x18000fe17
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000fe12
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800101d6
call fcn.180027be4
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
mov qword [rbp - 0x60], r13
xor eax, eax
jmp 0x18001019a
mov rsi, rcx
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x58], SafeArrayUnlock
cmp rcx, 0x10
lea rcx, [rbp - 0x70]
jae 0x18000fe67
mov qword [rbp - 0x60], rsi
mov r8, rsi
lea rdx, [rbp - 0x50]
call fcn.180029a20
mov byte [rbp + rsi - 0x70], 0
jmp 0x18000feb3
mov rbx, rsi
or rbx, 0xf
mov eax, reloc.OLEAUT32.dll_SafeArrayAccessData
cmp rbx, rax
cmovb rbx, rax
mov rdx, rbx
add rdx, 1
mov rax, 0xffffffffffffffff
cmovb rdx, rax
call fcn.1800046dc
mov rdi, rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rbx
mov r8, rsi
lea rdx, [rbp - 0x50]
mov rcx, rax
call fcn.180029a20
mov byte [rdi + rsi], 0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov dword [rsp + 0x68], r15d
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r8, qword [rbp - 0x70]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov rsi, 0xffffffffffffffff
mov r9d, esi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
cmp ebx, 1
jle 0x180010061
mov r8, qword [rsp + 0x58]
cmp rbx, r8
ja 0x18000ff3d
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x58], rbx
mov word [rcx + rbx*2], r13w
jmp 0x18000ff9e
mov rdx, rbx
sub rdx, r8
mov rcx, qword [rsp + 0x60]
mov rax, rcx
sub rax, r8
cmp rdx, rax
ja 0x18000ff85
mov qword [rsp + 0x58], rbx
lea r9, [rsp + 0x48]
cmp rcx, 8
cmovae r9, qword [rsp + 0x48]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x18000ff7a
movzx eax, r13w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], r13w
jmp 0x18000ff9e
mov word [rsp + 0x20], r13w
mov r9, rdx
movzx r8d, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.18000c120
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
lea r8, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r8, qword [rbp - 0x70]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, esi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rcx, eax
mov r8, qword [rsp + 0x58]
cmp rcx, r8
ja 0x180010000
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rcx
mov word [rax + rcx*2], r13w
jmp 0x180010061
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0x60]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x180010048
mov qword [rsp + 0x58], rcx
lea r9, [rsp + 0x48]
cmp rdi, 8
cmovae r9, qword [rsp + 0x48]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x18001003d
movzx eax, r13w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], r13w
jmp 0x180010061
mov word [rsp + 0x20], r13w
mov r9, rdx
movzx r8d, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.18000c120
lea rdx, [rsp + 0x48]
mov rcx, r12
call fcn.18000185c
and r15d, 0xfffffffe
mov dword [rsp + 0x68], r15d
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1800100b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800100b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800101dc
call fcn.180027be4
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r13w
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x180010108
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010103
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800101e2
call fcn.180027be4
mov qword [rbp - 0x58], SafeArrayUnlock
mov byte [rbp - 0x70], 0
mov qword [rbp - 0x60], r13
xor eax, eax
jmp 0x18001019a
test r14b, r14b
je 0x180010139
mov edx, 0x67
lea ecx, [rdx - 1]
mov r9d, 0x80004005
lea r8d, [rdx + 1]
call fcn.180010f40
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x180010175
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180010170
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800101ca
call fcn.180027be4
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
cmp rdi, 0xffffffffffffffff
je 0x180010195
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.180028080
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18002e3bc
nop
call fcn.180001488
nop
call fcn.18002e3bc
nop
call fcn.18002e3bc
nop
call fcn.18002e3bc
int3