Function at 0x1001f590
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008320d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100a6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x3c], eax
mov edi, dword [0x100aa440]
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp edi, 0x1388
ja 0x1001f653
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001f623
push 4
push eax
call esi
test eax, eax
jne 0x1001f61d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x124]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001f61d
push 4
push eax
call esi
test eax, eax
jne 0x1001f61d
mov ecx, dword [ebp - 0x18]
push edi
call dword [0x1009e0dc]
mov edi, dword [0x100aa440]
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
mov dword ds:[0xbc675c], eax
fild dword ds:[0xbc6758]
mov edx, dword ds:[0xbc675c]
push edx
mov ecx, 0xc20ec0
fstp dword ds:[0xbc7c00]
call dword [0x1009b670]
mov eax, dword [ebp - 0x3c]
mov edi, dword [0x100aa45c]
test edi, edi
js 0x1001f912
cmp edi, 0x17
jg 0x1001f912
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001f6a0
push 4
push eax
call esi
test eax, eax
jne 0x1001f6a0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x124]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001f6a0
push 4
push eax
call esi
test eax, eax
jne 0x1001f6a0
mov ecx, dword [ebp - 0x18]
push edi
call dword [0x1009e0dc]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10045fe0
lea ecx, [ebp - 0x34]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x34], eax
mov dword [eax], ecx
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 4], 1
xor ecx, ecx
mov eax, dword [0x100aa45c]
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
push eax
cmp eax, 0xa
jge 0x1001f769
movaps xmm0, xmmword [0x1009feb0]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x7070d53
mov byte [ebp - 0x40], cl
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x13
jb 0x1001f720
sub esp, 0x1c
mov byte [ebp - 0x40], 0
mov edx, esp
lea ecx, [ebp - 0x53]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f760
jmp 0x1001f7c7
movaps xmm0, xmmword [0x1009fe30]
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x17171d
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x12
jb 0x1001f780
sub esp, 0x1c
mov byte [ebp - 0x41], 0
mov edx, esp
lea ecx, [ebp - 0x53]
xorps xmm0, xmm0
lea edi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f7c0
sub ecx, edi
lea eax, [ebp - 0x53]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x70]
push eax
call fcn.1000d820
mov edi, eax
add esp, 0x24
lea eax, [ebp - 0x34]
cmp eax, edi
je 0x1001f7fa
mov ecx, eax
call fcn.10002f50
push edi
lea ecx, [ebp - 0x34]
call fcn.10007c30
lea ecx, [ebp - 0x70]
call fcn.10002f50
mov eax, dword [ebp - 0x70]
push 8
push eax
mov dword [ebp - 0x70], 0
call fcn.10046080
mov eax, dword [ebp - 0x3c]
add esp, 8
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1001f8aa
push 4
push eax
call esi
test eax, eax
jne 0x1001f8aa
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
cmova ecx, dword [ebp - 0x30]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f840
sub ecx, edx
mov dword [ebp - 0x18], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x30]
push dword [ebp - 0x18]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0e0]
push edi
call fcn.10046080
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 4
mov eax, dword [0x100aa45c]
mov dword [ebp - 0x38], eax
test eax, eax
jle 0x1001f8ee
mov ecx, 0xd78c94
call fcn.10014390
mov edi, eax
test edi, edi
je 0x1001f8ee
push 4
push edi
call esi
test eax, eax
jne 0x1001f8ee
mov edi, dword [edi + 0x28]
test edi, edi
je 0x1001f8ee
push 4
push edi
call esi
test eax, eax
jne 0x1001f8ee
push eax
push dword [ebp - 0x38]
mov ecx, edi
push eax
push eax
push eax
call dword [0x1009e110]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x34]
push 8
push eax
mov dword [ebp - 0x34], 0
call fcn.10046080
add esp, 8
mov eax, dword [0x100aa460]
mov dword [ebp - 0x38], eax
dec eax
cmp eax, 9
ja 0x1001f9c1
mov edi, dword [ebp - 0x3c]
mov edi, dword [edi + 0x40]
test edi, edi
je 0x1001f955
push 4
push edi
call esi
test eax, eax
jne 0x1001f955
mov edi, dword [edi + 0x124]
test edi, edi
je 0x1001f955
push 4
push edi
call esi
test eax, eax
jne 0x1001f955
push dword [ebp - 0x38]
mov ecx, edi
call dword [0x1009e0dc]
mov edi, dword [ebp - 0x3c]
mov eax, dword [0x100aa460]
mov dword [ebp - 0x38], eax
mov edi, dword [edi + 0x44]
test edi, edi
je 0x1001f97b
push 4
push edi
call esi
test eax, eax
jne 0x1001f97b
push dword [ebp - 0x38]
mov ecx, edi
call dword [0x1009e0e4]
movd xmm0, dword [0x100aa460]
mov ecx, 0xd78d28
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x1009f950]
movss dword [ebp - 0x38], xmm0
movss dword [0x100a6b3c], xmm0
call fcn.10014390
test eax, eax
je 0x1001f9c1
lea edi, [eax + 0x1b8]
push 4
push edi
call esi
test eax, eax
jne 0x1001f9c1
movss xmm0, dword [ebp - 0x38]
movss dword [edi], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10045fd0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret