Function at 0x1001f607
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x98
mov eax, 0x1003f904
call fcn.1003d83f
mov esi, ecx
mov dword [ebp - 0x54], esi
cmp dword [0x10057860], 0
je 0x1001fb28
lea ecx, [esi + 0x158]
call fcn.100201d7
mov ecx, dword [esi + 0x14c]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x150]
sub eax, ecx
mov dword [ebp - 0x34], ecx
push 0x68
pop edi
cdq
idiv edi
xor edx, edx
mov dword [ebp - 0x70], edi
inc edx
mov dword [ebp - 0x50], 2
test eax, eax
jle 0x1001f7c6
xor eax, eax
mov edi, eax
cmp word [ecx + edi + 0x60], ax
je 0x1001f6e6
cmp byte [0x100578dc], 0
mov eax, dword [0x10057860]
mov dword [ebp - 0x30], eax
je 0x1001f6d2
mov ecx, 0x10b8134
call fcn.1000d24b
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1001f6ca
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001f6ca
mov eax, dword [ebp - 0x38]
add eax, 0xc88
push 4
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
test eax, eax
jne 0x1001f6d4
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
mov word [edx + 0x40], ax
jmp 0x1001f6d4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jmp 0x1001f6d4
mov edx, eax
mov ax, word [ecx + edi + 0x60]
cmp ax, word [edx + 0x40]
jne 0x1001f797
xor edx, edx
inc edx
mov eax, dword [esi + 0x14c]
mov dword [ebp - 0x34], eax
movzx eax, word [eax + edi + 0x60]
cmp ax, dx
je 0x1001f6ff
cmp ax, word [ebp - 0x50]
jne 0x1001f766
cmp byte [0x100578dc], 0
mov eax, dword [0x10057860]
mov dword [ebp - 0x30], eax
je 0x1001f758
mov ecx, 0x10b8134
call fcn.1000d24b
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1001f755
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001f755
mov eax, dword [ebp - 0x38]
add eax, 0x6dc
push 4
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1001f755
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ecx + 0x38], al
mov eax, ecx
jmp 0x1001f758
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
movzx eax, byte [eax + 0x38]
cmp word [ecx + edi + 0x60], ax
jne 0x1001f797
mov ecx, dword [esi + 0x14c]
lea eax, [esi + 0x158]
mov edx, dword [eax + 4]
add ecx, edi
push ecx
cmp edx, dword [eax + 8]
je 0x1001f78f
mov ecx, edx
call fcn.100206b8
push 0x68
pop ecx
add dword [esi + 0x15c], ecx
jmp 0x1001f797
push edx
mov ecx, eax
call fcn.1002051b
mov ecx, dword [esi + 0x14c]
push 0x68
pop eax
add edi, eax
inc dword [ebp - 0x3c]
mov eax, dword [esi + 0x150]
sub eax, ecx
mov dword [ebp - 0x34], ecx
cdq
idiv dword [ebp - 0x70]
push 0
cmp dword [ebp - 0x3c], eax
pop eax
push 1
pop edx
jl 0x1001f66a
push 0x68
pop edi
mov ecx, dword [esi + 0x158]
mov eax, dword [esi + 0x15c]
cmp ecx, eax
jne 0x1001f810
push 4
lea edi, [esi + 0xc]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.1000c8aa
lea edi, [edi + 4]
sub esi, 1
jne 0x1001f7dc
mov esi, dword [ebp - 0x54]
mov edx, dword [esi + 0x144]
mov ecx, dword [esi + 0x134]
call fcn.1000d137
mov dword [esi + 0x148], 1
jmp 0x1001fb28
sub eax, ecx
cdq
idiv edi
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004d170]
mulsd xmm0, qword [0x1004c710]
movsd qword [ebp - 0x78], xmm0
fld qword [ebp - 0x78]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x78]
movsd xmm0, qword [ebp - 0x78]
andps xmm0, xmmword [0x1004d940]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x148], eax
cmp dword [esi + 0x144], eax
jle 0x1001f870
mov dword [esi + 0x144], 1
movzx eax, byte [ebx + 8]
lea ecx, [esi + 8]
shl eax, 2
or edx, 0xffffffff
mov dword [ebp - 0x54], eax
add eax, 0xfffffffc
mov dword [ebp - 0x3c], eax
imul edi, eax, 0x68
lea eax, [esi + 0xc]
inc edx
add ecx, 4
add eax, 0x18
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
cmp edx, 4
jg 0x1001fb10
mov eax, dword [esi + 0x15c]
mov ecx, dword [esi + 0x158]
sub eax, ecx
cdq
idiv dword [ebp - 0x70]
dec eax
cmp dword [ebp - 0x3c], eax
jle 0x1001f8ce
mov ecx, dword [ebp - 0x34]
xor dl, dl
mov ecx, dword [ecx]
call fcn.1000c8aa
jmp 0x1001faf2
lea eax, [ecx + edi]
mov dword [ebp - 0x38], 0xffc4fc03
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003928
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [esi + 0x158]
cmp byte [eax + edi + 0x65], 2
jne 0x1001f943
movaps xmm0, xmmword [0x1004d450]
mov ecx, edx
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0x5b465341
mov dword [ebp - 0x58], 0x6f5c5d
mov al, byte [ebp - 0x6c]
xor byte [ebp + ecx - 0x6b], al
inc ecx
cmp ecx, 0x16
jb 0x1001f90e
lea ecx, [ebp - 0x6b]
mov byte [ebp - 0x55], dl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f924
sub ecx, edx
lea eax, [ebp - 0x6b]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100056aa
mov dword [ebp - 0x38], 0xff5cb9fe
jmp 0x1001f999
mov eax, dword [ebp - 0x50]
mov cl, 0x7b
mov byte [ebp - 0x41], al
mov eax, edx
mov dword [ebp - 0x4c], 0x2e205b7b
mov dword [ebp - 0x48], 0x91e1f15
mov word [ebp - 0x44], 0xc5b
mov byte [ebp - 0x42], 0x1a
mov word [ebp - 0x40], 0x26
xor byte [ebp + eax - 0x4b], cl
inc eax
cmp eax, 0xc
jae 0x1001f97a
mov cl, byte [ebp - 0x4c]
jmp 0x1001f96b
lea ecx, [ebp - 0x4b]
mov byte [ebp - 0x3f], dl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f983
sub ecx, edx
lea eax, [ebp - 0x4b]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100056aa
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x6c]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.10003d99
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
call fcn.1000d114
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.10003b97
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
call fcn.1000d15a
mov eax, dword [esi + 0x158]
movaps xmm0, xmmword [str._rAhha___i____i]
movups xmmword [ebp - 0x64], xmm0
movzx ecx, byte [edi + eax + 0x64]
movzx eax, byte [edi + eax + 0x63]
push ecx
push eax
xor ecx, ecx
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0xe
jb 0x1001f9f6
sub esp, 0x18
mov byte [ebp - 0x55], 0
lea eax, [ebp - 0x63]
mov ecx, esp
push eax
call fcn.10003d99
lea eax, [ebp - 0xa8]
push eax
call fcn.100039e2
add esp, 0x24
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], cl
cmp dword [eax + 0x14], 0xf
jbe 0x1001fa32
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x90]
call fcn.10003d99
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x90]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 4]
call fcn.1000d114
lea ecx, [ebp - 0x90]
call fcn.10003b97
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.10003b97
mov edx, dword [esi + 0x158]
lea ecx, [ebp - 0xa8]
mov dx, word [edx + edi + 0x60]
call fcn.1001bd54
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
jbe 0x1001fa8f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x90]
call fcn.10003d99
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x90]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 8]
call fcn.1000d114
lea ecx, [ebp - 0x90]
call fcn.10003b97
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0
call fcn.10003b97
mov eax, dword [esi + 0x158]
mov dl, 1
mov ecx, dword [ebp - 0x30]
mov eax, dword [eax + edi + 0x18]
mov dword [ecx - 8], eax
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
call fcn.1000c8aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10003b97
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x74]
inc eax
push 0x68
pop ecx
add edi, ecx
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x54]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
jl 0x1001f88c
mov edx, dword [esi + 0x144]
mov ecx, dword [esi + 0x134]
call fcn.1000d137
mov ecx, esi
call fcn.1001f02a
mov ecx, dword [ebp - 0x14]
call fcn.1003d81d
ret 4