Function at 0x1002c570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b8c6
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100a1084]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x38], ebx
cmp dword [0x100a63bc], 0
je 0x1002ccec
push dword [ebp - 0x70]
mov edx, dword [ebx + 0x160]
lea esi, [ebx + 0x15c]
push ecx
mov ecx, dword [esi]
call fcn.1002e130
mov eax, dword [esi]
xor edi, edi
mov dword [esi + 4], eax
add esp, 8
mov ecx, dword [ebx + 0x154]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebx + 0x150]
imul ecx
mov dword [ebp - 0x34], edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1002c787
xor ebx, ebx
nop dword [eax + eax]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x150]
mov dword [ebp - 0x3c], eax
cmp byte [ebx + eax + 0x63], 0
je 0x1002c67c
cmp byte [0x100a6436], 0
mov eax, dword [0x100a63bc]
mov dword [ebp - 0x30], eax
je 0x1002c66c
mov ecx, 0xd78c9c
call fcn.10015da0
mov edi, eax
test edi, edi
je 0x1002c663
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c663
push 4
add edi, 0xb7c
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x38]
test eax, eax
jne 0x1002c666
mov ecx, dword [ebp - 0x30]
mov al, byte [edi]
mov byte [ecx + 0x3a], al
mov eax, ecx
jmp 0x1002c669
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
mov al, byte [eax + 0x3a]
cmp byte [ebx + ecx + 0x63], al
jne 0x1002c755
mov eax, dword [edx + 0x150]
mov dword [ebp - 0x3c], eax
mov al, byte [ebx + eax + 0x63]
cmp al, 1
je 0x1002c691
cmp al, 2
jne 0x1002c6f3
cmp byte [0x100a6436], 0
mov eax, dword [0x100a63bc]
mov dword [ebp - 0x30], eax
je 0x1002c6e7
mov ecx, 0xd78c9c
call fcn.10015da0
mov edi, eax
test edi, edi
je 0x1002c6e1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c6e1
push 4
add edi, 0x6a0
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edx, dword [ebp - 0x38]
test eax, eax
jne 0x1002c6e4
mov ecx, dword [ebp - 0x30]
mov al, byte [edi]
mov byte [ecx + 0x34], al
mov eax, ecx
jmp 0x1002c6e7
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
mov al, byte [eax + 0x34]
cmp byte [ebx + ecx + 0x63], al
jne 0x1002c752
mov edi, dword [edx + 0x150]
mov ecx, dword [esi + 4]
add edi, ebx
cmp edi, ecx
jae 0x1002c738
mov eax, dword [esi]
cmp eax, edi
ja 0x1002c738
sub edi, eax
mov eax, 0x4ec4ec4f
imul edi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ecx, dword [esi + 8]
jne 0x1002c728
push ecx
mov ecx, esi
call fcn.1002de90
imul eax, edi, 0x68
add eax, dword [esi]
push eax
push dword [esi + 4]
call fcn.1002e270
jmp 0x1002c74e
cmp ecx, dword [esi + 8]
jne 0x1002c745
push ecx
mov ecx, esi
call fcn.1002de90
push edi
push dword [esi + 4]
call fcn.1002e270
add dword [esi + 4], 0x68
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
inc edi
add ebx, 0x68
mov dword [ebp - 0x34], edi
mov ecx, dword [eax + 0x154]
sub ecx, dword [eax + 0x150]
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jl 0x1002c600
mov ebx, dword [ebp - 0x38]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x1002c7f2
lea edi, [ebx + 0xc]
mov ebx, 4
mov esi, dword [edi]
test esi, esi
je 0x1002c7b2
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c7b2
push eax
mov ecx, esi
call dword [0x10094488]
add edi, 4
sub ebx, 1
jne 0x1002c796
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0x148]
test esi, esi
je 0x1002c7e3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c7e3
push edi
mov ecx, esi
call dword [0x100944b4]
mov dword [ebx + 0x14c], 1
jmp 0x1002ccec
mov ecx, dword [esi + 4]
sub esp, 8
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10096270]
mulsd xmm0, qword [0x10095bb0]
movsd qword [ebp - 0x74], xmm0
fld qword [ebp - 0x74]
fstp qword [esp]
call fcn.10075430
fstp qword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x74]
movsd qword [esp], xmm0
call fcn.1002e4a0
add esp, 8
call fcn.10078710
mov dword [ebx + 0x14c], eax
cmp dword [ebx + 0x148], eax
jbe 0x1002c869
mov dword [ebx + 0x148], 1
mov edi, dword [ebp - 0x38]
or ecx, 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x68], 0
lea eax, [edi + 8]
add edi, 0xc
nop
inc ecx
add eax, 4
add edi, 0x18
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edi
cmp ecx, 4
jg 0x1002ccbc
mov ecx, dword [esi + 4]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
dec eax
add eax, edx
cmp dword [ebp - 0x68], eax
jle 0x1002c8e1
mov eax, dword [ebp - 0x34]
mov edi, dword [eax]
test edi, edi
je 0x1002cca4
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002cca1
push eax
mov ecx, edi
call dword [0x10094488]
jmp 0x1002cca1
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push 0xffffffffffffffff
add eax, ebx
mov dword [ebp - 0x3c], 0xffc4fc03
push 0
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10002470
mov dword [ebp - 4], 0
mov eax, dword [esi]
cmp byte [eax + ebx + 0x64], 2
jne 0x1002c976
movaps xmm0, xmmword [0x100963d0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x48554052
mov dword [ebp - 0x40], 0x7c4f4e
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x1002c936
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
jne 0x1002c951
xor ecx, ecx
jmp 0x1002c960
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c957
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10009c10
mov dword [ebp - 0x3c], 0xff5cb9fe
jmp 0x1002c9ce
mov cl, 0x43
mov dword [ebp - 0x64], 0x16186343
mov dword [ebp - 0x60], 0x3126272d
xor eax, eax
mov dword [ebp - 0x5c], 0x3a223463
mov word [ebp - 0x58], 0x1e
xor byte [ebp + eax - 0x63], cl
inc eax
cmp eax, 0xc
jae 0x1002c9a4
mov cl, byte [ebp - 0x64]
jmp 0x1002c995
cmp byte [ebp - 0x63], 0
mov byte [ebp - 0x57], 0
jne 0x1002c9b2
xor ecx, ecx
jmp 0x1002c9c1
lea ecx, [ebp - 0x63]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c9b8
sub ecx, edx
push ecx
lea eax, [ebp - 0x63]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10009c10
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x40], 0xf
cmovae edx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002c9f4
xor ecx, ecx
jmp 0x1002ca0c
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ca00
sub ecx, edi
mov edi, dword [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100028b0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x54]
mov ecx, dword [edi]
call fcn.10015b30
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002ca3d
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.10002790
mov edi, dword [edi]
test edi, edi
je 0x1002ca5b
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ca5b
push dword [ebp - 0x3c]
mov ecx, edi
call dword [0x100944b8]
mov ecx, dword [esi]
movaps xmm0, xmmword [0x10095c30]
movzx eax, byte [ecx + ebx + 0x62]
push eax
movzx eax, byte [ecx + ebx + 0x61]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x84], xmm0
nop dword [eax]
mov al, byte [ebp - 0x84]
xor byte [ebp + ecx - 0x83], al
inc ecx
cmp ecx, 0xe
jb 0x1002ca80
sub esp, 0x18
mov byte [ebp - 0x75], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
cmp dword [edx + 0x14], 0x10
jb 0x1002cab4
mov eax, dword [edx]
jmp 0x1002cab6
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x83], 0
jne 0x1002cac6
xor ecx, ecx
jmp 0x1002cad9
lea ecx, [ebp - 0x83]
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002cad0
sub ecx, edi
push ecx
lea eax, [ebp - 0x83]
mov ecx, edx
push eax
call fcn.100028b0
lea eax, [ebp - 0x9c]
push eax
call fcn.10005a00
add esp, 0x24
mov edx, eax
mov byte [ebp - 4], 2
cmp dword [edx + 0x14], 0x10
jb 0x1002cb05
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002cb20
xor ecx, ecx
jmp 0x1002cb2e
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002cb25
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100028b0
mov edi, dword [ebp - 0x30]
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 3
mov ecx, dword [edi - 4]
call fcn.10015b30
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002cb5f
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.10002790
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1002cb93
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.10002790
mov eax, dword [esi]
lea ecx, [ebp - 0x9c]
movzx edx, byte [eax + ebx + 0x63]
call fcn.1002a580
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0x10
jb 0x1002cbb3
mov edx, dword [edx]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp byte [edx], 0
jne 0x1002cbce
xor ecx, ecx
jmp 0x1002cbdf
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002cbd3
sub ecx, edi
mov edi, dword [ebp - 0x30]
push ecx
push edx
lea ecx, [ebp - 0x54]
call fcn.100028b0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x54]
mov ecx, dword [edi + 8]
call fcn.10015b30
mov eax, dword [ebp - 0x40]
cmp eax, 0x10
jb 0x1002cc0d
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.10002790
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], 0
mov byte [ebp - 0x54], 0
cmp eax, 0x10
jb 0x1002cc41
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.10002790
mov eax, dword [esi]
mov dword [ebp - 0x88], 0xf
mov dword [ebp - 0x8c], 0
mov byte [ebp - 0x9c], 0
mov eax, dword [eax + ebx + 0x18]
mov dword [edi - 8], eax
mov edi, dword [ebp - 0x34]
mov edi, dword [edi]
test edi, edi
je 0x1002cc85
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002cc85
push 1
mov ecx, edi
call dword [0x10094488]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1002cca1
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.10002790
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0x68]
add ebx, 0x68
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x70]
cmp ebx, 0x1a0
jl 0x1002c880
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebx + 0x134]
mov edi, dword [ebx + 0x148]
test esi, esi
je 0x1002cce5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002cce5
push edi
mov ecx, esi
call dword [0x100944b4]
mov ecx, ebx
call fcn.1002be20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003e245
mov esp, ebp
pop ebp
ret 4