Function at 0x140232150
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rbp, qword [rcx + 0x10]
xor r12d, r12d
movaps xmmword [rsp + 0x50], xmm6
mov r14, rcx
mov qword [rsp + 0x38], rbp
mov r15d, r12d
mov dword [rsp + 0x20], r12d
cmp dword [rbp + 0x2c], r12d
jle 0x140232a45
movsd xmm6, qword [0x14036e820]
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x10]
mov r8d, r15d
call fcn.140233170
mov r13, rax
mov qword [r14 + 0x18], rax
test rax, rax
je 0x140232abb
call fcn.140242950
cmp eax, 0xa
jl 0x1402321d1
mov rcx, r14
call fcn.140231f10
cmp dword [r13 + 0x38], 0
mov r10, qword [r13 + 0x40]
mov edi, r12d
jle 0x14023226d
add r10, 0x10
nop word [rax + rax]
movsxd rax, edi
imul rcx, rax, 0xd8
mov rax, qword [rbp + 0x38]
cmp dword [rcx + rax + 8], 0
jne 0x14023225e
movzx ecx, byte [rcx + rax + 4]
mov rax, qword [r10]
mov r11d, 1
dec ecx
mov ebx, r12d
shl r11d, cl
cmp dword [rax + 0x14], 0
jle 0x14023225e
mov ecx, dword [rax + 0x18]
mov r9, r12
mov r8d, r12d
test ecx, ecx
jle 0x140232250
mov rdx, r12
mov rax, qword [rax + 0x20]
inc r8d
lea rdx, [rdx + 4]
mov rcx, qword [rax + r9]
sub dword [rcx + rdx - 4], r11d
mov rax, qword [r10]
mov ecx, dword [rax + 0x18]
cmp r8d, ecx
jl 0x140232231
mov rax, qword [r10]
inc ebx
add r9, 8
cmp ebx, dword [rax + 0x14]
jl 0x140232227
inc edi
add r10, 0x218
cmp edi, dword [r13 + 0x38]
jl 0x1402321f0
cmp dword [r13 + 0x28], 0
jne 0x1402322aa
mov rbx, qword [r13 + 0x40]
movsxd rax, dword [r13 + 0x38]
imul rdi, rax, 0x218
add rdi, rbx
cmp rbx, rdi
je 0x1402322aa
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov edx, InitCommonControls
call fcn.1402057e0
add rbx, 0x218
cmp rbx, rdi
jne 0x140232290
movzx ecx, byte [r13 + 0x1c]
dec ecx
je 0x1402322d4
dec ecx
jne 0x1402322ef
mov rcx, qword [r13 + 0x40]
mov r8, qword [rcx + 0x440]
mov rdx, qword [rcx + 0x228]
mov rcx, qword [rcx + 0x10]
call fcn.140246f20
jmp 0x1402322ef
mov rcx, qword [r13 + 0x40]
mov r8, qword [rcx + 0x440]
mov rdx, qword [rcx + 0x228]
mov rcx, qword [rcx + 0x10]
call fcn.140246bd0
mov rax, qword [r14]
mov edi, r12d
cmp dword [rax + 0x10], 0
jle 0x140232324
mov rbx, r12
nop
mov rcx, qword [r13 + 0x40]
mov rdx, qword [rbx + rcx + 0x10]
mov rcx, qword [rbx + rcx + 0x20]
call fcn.140244440
mov rax, qword [r14]
inc edi
lea rbx, [rbx + 0x218]
cmp edi, dword [rax + 0x10]
jl 0x140232300
mov rsi, qword [r13 + 0x40]
movsxd rax, dword [r13 + 0x38]
xor ebx, ebx
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0xb8], ebx
imul r12, rax, 0x218
add r12, rsi
mov qword [rsp + 0x40], r12
cmp rsi, r12
je 0x1402325b9
lea rcx, [rsi + 0x148]
xor edi, edi
xor edx, edx
mov r8d, 0xc8
xor r15d, r15d
mov dword [rsp + 0xc0], edi
call sub.MSVCR120.dll_memset
mov rax, qword [rsi + 8]
xor edx, edx
mov ecx, edx
mov dword [rsp + 0xc8], edx
cmp dword [rsi], edx
jle 0x14023255e
add rax, 0x38
mov qword [rsp + 0x28], rax
mov rbx, qword [rax]
test rbx, rbx
jne 0x1402323b3
test ecx, ecx
mov eax, 1
mov r8d, 3
cmovne eax, r8d
add r15d, eax
jmp 0x140232533
movsxd rax, dword [rax - 8]
lea r12, [rax + rax*2]
shl r12, 4
add r12, rbx
cmp rbx, r12
je 0x140232533
movsxd r14, r15d
add r14, 0xa4
lea r14, [rsi + r14*2]
nop dword [rax]
mov rsi, qword [rbx + 8]
test rsi, rsi
jne 0x1402323f5
inc r15d
add r14, 2
jmp 0x14023251a
mov ebp, dword [rsi + 0x14]
mov edi, edx
mov r8d, edx
test ebp, ebp
je 0x14023243e
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x140232436
mov rax, qword [rsi + 0x20]
mov ecx, r8d
mov r10, r11
mov r9, qword [rax + rcx*8]
nop dword [rax + rax]
mov eax, dword [r9]
lea r9, [r9 + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, edi
cmovg edi, eax
dec r10
jne 0x140232420
inc r8d
cmp r8d, ebp
jb 0x140232405
cmp dword [r13 + 0x28], 0
mov ecx, edi
je 0x140232451
call fcn.140250600
lea edx, [rax + 1]
jmp 0x140232459
call fcn.140250600
lea edx, [rax - 0xc]
mov edi, dword [rsp + 0xc0]
movsxd rax, dword [rsp + 0xb8]
mov rbp, qword [rsp + 0x38]
imul r9, rax, 0xd8
mov rax, qword [rbp + 0x38]
mov r8d, dword [rbx + 0x24]
movzx ecx, byte [rax + r9 + 4]
sub edx, ecx
sub edx, r8d
inc edx
cmp edx, edi
cmovg edi, edx
cmp dword [r13 + 0x28], 0
mov dword [rsp + 0xc0], edi
jne 0x1402324be
lea ecx, [r8 + 1]
mov eax, 1
shl eax, cl
movsxd rcx, dword [rbx + 0x20]
shl eax, 0xd
cdqe
shl rax, 0xd
cqo
idiv rcx
mov dword [rbx + 0x18], eax
jmp 0x1402324c5
mov dword [rbx + 0x18], 0x2000
mov rax, qword [rbp + 0x38]
mov ecx, dword [rbx + 0x18]
movzx edx, byte [rax + r9 + 4]
add edx, r8d
call fcn.140231d80
mov ecx, eax
mov dword [rbx + 0x1c], eax
movzx eax, byte [rbp + 0xe4]
dec eax
sar ecx, 0xb
add ecx, eax
mov dword [rbx + 0x14], ecx
cmp dword [r13 + 0x28], 0
jne 0x140232508
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140232508
mov edx, dword [rbx + 0x18]
call fcn.1402335c0
movzx eax, word [rbx + 0x1c]
add r14, 2
inc r15d
mov word [r14 - 2], ax
xor edx, edx
add rbx, 0x30
cmp rbx, r12
jne 0x1402323e0
mov ecx, dword [rsp + 0xc8]
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
inc ecx
add rax, 0x48
mov dword [rsp + 0xc8], ecx
mov qword [rsp + 0x28], rax
cmp ecx, dword [rsi]
jl 0x140232392
mov ebx, dword [rsp + 0xb8]
mov r12, qword [rsp + 0x40]
cmp dword [r13 + 0x28], 0
mov rcx, qword [rsi + 0x10]
jne 0x140232575
mov edx, 7
call fcn.140205b50
jmp 0x14023257f
mov edx, 6
call fcn.1402057e0
movzx eax, byte [rbp + 0xe4]
cmp edi, eax
jg 0x140232a5d
add rsi, 0x218
inc ebx
mov dword [rsp + 0xb8], ebx
mov qword [rsp + 0x30], rsi
cmp rsi, r12
jne 0x140232352
mov r14, qword [rsp + 0xb0]
mov r15d, dword [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call fcn.1402030b0
mov qword [r14 + 0x38], rax
test rax, rax
je 0x140232aaa
mov ecx, 0xff90
call fcn.1402369d0
mov qword [r14 + 0x30], rax
test rax, rax
je 0x140232a6b
mov word [rax + 8], r15w
mov word [rax + 0x10], Ordinal_261
xor r12d, r12d
mov dword [rax + 0xc], r12d
mov r8, qword [r14 + 0x30]
mov rdx, qword [r14 + 0x20]
mov rcx, qword [r14 + 0x38]
call fcn.140236b60
test eax, eax
jne 0x140232a99
mov rcx, qword [r14 + 0x30]
call fcn.140236a30
mov qword [r14 + 0x30], r12
mov ebx, r12d
cmp r12w, word [rbp + 0x30]
jae 0x140232730
nop dword [rax]
mov rcx, qword [r13 + 0x40]
movsxd rax, ebx
imul rdx, rax, 0x218
movzx eax, byte [rbp + 0x59]
cmp dword [rdx + rcx], eax
je 0x140232722
mov ecx, 0xff52
call fcn.1402369d0
mov r9, rax
mov qword [r14 + 0x30], rax
test rax, rax
je 0x140232a6b
mov rdx, qword [r13 + 0x40]
mov byte [rax + 0x10], r12b
mov r10d, r12d
movzx eax, byte [rdx]
dec al
mov byte [r9 + 0x11], al
movzx eax, byte [r13 + 0x15]
mov byte [r9 + 9], al
movzx eax, word [r13 + 0x18]
mov word [r9 + 0xa], ax
movzx eax, byte [rdx + 0x134]
sub al, 2
mov byte [r9 + 0x12], al
movzx eax, byte [rdx + 0x138]
sub al, 2
mov byte [r9 + 0x13], al
movzx eax, byte [rdx + reloc.mfc120u.dll_Ordinal_320]
mov byte [r9 + 0x14], al
movzx eax, byte [rdx + 0x18]
mov byte [r9 + 0x15], al
cmp byte [r13 + 0x1c], r12b
setne al
mov byte [r9 + 0xc], al
cmp dword [rdx], r12d
jle 0x1402326fc
mov r8, r12
add r9, 0x1d
mov rax, qword [rdx + 8]
inc r10d
lea r8, [r8 + 0x48]
movzx ecx, byte [rax + r8 - 0x38]
lea r9, [r9 + 2]
mov byte [r9 - 3], cl
mov rax, qword [rdx + 8]
movzx ecx, byte [rax + r8 - 0x34]
mov byte [r9 - 2], cl
cmp r10d, dword [rdx]
jl 0x1402326d0
mov r8, qword [r14 + 0x30]
mov rdx, qword [r14 + 0x20]
mov rcx, qword [r14 + 0x38]
call fcn.140236b60
test eax, eax
jne 0x140232a6b
mov rcx, qword [r14 + 0x30]
call fcn.140236a30
mov qword [r14 + 0x30], r12
movzx eax, word [rbp + 0x30]
inc ebx
cmp ebx, eax
jl 0x140232630
mov rdi, qword [r13 + 0x40]
mov esi, r12d
cmp r12w, word [rbp + 0x30]
jae 0x140232828
movsxd rax, esi
imul r8, rax, 0xd8
add r8, qword [rbp + 0x38]
movzx eax, word [r8 + 0xc]
cmp eax, dword [rdi + reloc.mfc120u.dll_Ordinal_324]
jne 0x14023279c
mov rdx, r12
mov r9d, eax
test rax, rax
jle 0x140232813
lea rcx, [rdi + 0x148]
sub r8, rdi
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx - 0x13a], ax
jne 0x14023279c
inc rdx
add rcx, 2
cmp rdx, r9
jl 0x140232780
jmp 0x140232813
mov ecx, 0xff5d
call fcn.1402369d0
mov rbx, rax
mov qword [r14 + 0x30], rax
test rax, rax
je 0x140232a6b
mov word [rax + 8], si
movzx eax, byte [rbp + 0xe4]
mov ecx, 2
mov byte [rbx + 0x20], al
mov eax, r12d
cmp dword [rdi + 0x18], eax
cmove eax, ecx
mov byte [rbx + 0x10], al
mov eax, dword [rdi + reloc.mfc120u.dll_Ordinal_324]
mov dword [rbx + 0x14], eax
lea rax, [rdi + 0x148]
mov qword [rbx + 0x18], rax
mov r8, qword [r14 + 0x30]
mov rdx, qword [r14 + 0x20]
mov rcx, qword [r14 + 0x38]
call fcn.140236b60
test eax, eax
jne 0x140232a6b
mov qword [rbx + 0x18], r12
mov rcx, qword [r14 + 0x30]
call fcn.140236a30
mov qword [r14 + 0x30], r12
movzx eax, word [rbp + 0x30]
inc esi
add rdi, 0x218
cmp esi, eax
jl 0x140232742
mov ecx, 0xff93
call fcn.1402369d0
mov qword [r14 + 0x30], rax
test rax, rax
je 0x140232a6b
mov rdx, qword [r14 + 0x20]
mov rcx, qword [r14 + 0x38]
mov r8, rax
call fcn.140236b60
test eax, eax
jne 0x140232a88
mov rcx, qword [r14 + 0x30]
call fcn.140236a30
mov rax, qword [r14 + 0x38]
mov qword [r14 + 0x30], r12
mov ebx, dword [rax + 0x58]
mov rcx, r14
call fcn.14024bd60
test eax, eax
jne 0x140232a81
mov rbp, qword [r14 + 0x10]
mov eax, dword [r13 + 0x10]
xorps xmm0, xmm0
sub eax, dword [r13 + 8]
mov ecx, dword [rbp + 0x10]
xorps xmm2, xmm2
sub ecx, dword [rbp + 8]
mov qword [rsp + 0x38], rbp
mov r8d, r12d
cvtsi2sd xmm2, rax
mov eax, dword [r13 + 0xc]
sub eax, dword [r13 + 4]
cvtsi2sd xmm0, rax
mov eax, dword [rbp + 0xc]
sub eax, dword [rbp + 4]
imul eax, ecx
mulsd xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mov eax, dword [rbp + 0xec]
divsd xmm2, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm2
cvttsd2si rax, xmm0
mov dword [r13 + 0x48], eax
mov eax, dword [r13 + 0x18]
dec eax
test eax, eax
jle 0x140232931
mov rdx, r12
nop
mov rax, qword [rbp + 0x50]
xorps xmm0, xmm0
inc r8d
lea rdx, [rdx + 4]
movd xmm1, dword [rdx + rax - 4]
mov eax, dword [r13 + 0x48]
cvtdq2pd xmm1, xmm1
cvtsi2sd xmm0, rax
mov rax, qword [r13 + 0x30]
mulsd xmm1, xmm6
mulsd xmm1, xmm0
cvttsd2si rcx, xmm1
mov dword [rdx + rax - 4], ecx
mov eax, dword [r13 + 0x18]
dec eax
cmp r8d, eax
jl 0x1402328f0
cmp dword [rbp + 0xe8], 0xffffffff
je 0x140232951
mov eax, dword [r14 + 0x2c]
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, xmm2
cvttsd2si rdx, xmm0
jmp 0x140232954
or edx, 0xffffffff
movsxd rcx, dword [r13 + 0x18]
mov rax, qword [r13 + 0x30]
mov r8d, r12d
mov dword [rax + rcx*4 - 4], edx
cmp dword [r13 + 0x18], r12d
jle 0x140232998
mov rcx, r12
nop dword [rax]
mov rdx, qword [r13 + 0x30]
mov eax, dword [rcx + rdx]
cmp eax, 0xffffffff
je 0x14023298b
cmp ebx, eax
jg 0x140232987
sub eax, ebx
mov dword [rcx + rdx], eax
jmp 0x14023298b
mov dword [rcx + rdx], r12d
inc r8d
add rcx, 4
cmp r8d, dword [r13 + 0x18]
jl 0x140232970
mov r8, qword [r13 + 0x30]
mov edx, dword [r13 + 0x18]
mov rcx, r14
call fcn.140233a20
test eax, eax
jne 0x140232a6b
mov rcx, r14
call fcn.140233150
test eax, eax
jne 0x140232a70
mov rcx, qword [r14 + 0x38]
call fcn.1402034a0
mov rcx, qword [r14 + 0x38]
xor r8d, r8d
lea edx, [r8 + 6]
mov ebx, eax
call fcn.140203400
test eax, eax
js 0x140232a6b
mov rcx, qword [r14 + 0x38]
mov edx, ebx
call fcn.140236d60
mov rcx, qword [r14 + 0x38]
xor r8d, r8d
xor edx, edx
call fcn.140203400
test eax, eax
js 0x140232a6b
mov rdx, qword [r14 + 0x38]
mov rcx, qword [r14 + 8]
or r8d, 0xffffffff
call fcn.140236b50
test eax, eax
jne 0x140232a6b
mov rcx, qword [r14 + 0x38]
add dword [r14 + 0x28], ebx
call fcn.140202a50
mov rcx, qword [r14 + 0x18]
mov qword [r14 + 0x38], r12
call fcn.140233440
inc r15d
mov qword [r14 + 0x18], r12
mov dword [rsp + 0x20], r15d
cmp r15d, dword [rbp + 0x2c]
jl 0x1402321a0
xor eax, eax
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, str.error:_too_few_guard_bits__need_at_least__d__n
mov edx, edi
call fcn.140242910
or eax, 0xffffffff
jmp 0x140232a47
lea rcx, str.dotile_failed_n
call fcn.140242910
or eax, 0xffffffff
jmp 0x140232a47
call qword [sym.imp.MSVCR120.dll_abort]
int3
lea rcx, str.cannot_write_SOD_marker_n
call fcn.140242910
or eax, 0xffffffff
jmp 0x140232a47
lea rcx, str.cannot_write_SOT_marker_n
call fcn.140242910
or eax, 0xffffffff
jmp 0x140232a47
lea rcx, str.cannot_open_tmp_file_n
call fcn.140242910
or eax, 0xffffffff
jmp 0x140232a47
call qword [sym.imp.MSVCR120.dll_abort]
int3