Function at 0x1002af82
Capabilities:
Encode data using xor

Disassembly:
push 0xec
mov eax, 0x100484d2
call fcn.10044ac9
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov dword [0x1005b500], eax
test ecx, ecx
je 0x1002b7f3
xor ebx, ebx
inc ebx
cmp dword [ebp + 0xc], ebx
jne 0x1002b7f3
cmp dword [0x1005afc0], 0
je 0x1002b7f3
cmp dword [edi + 4], 0
je 0x1002afd5
cmp ecx, dword [edi + 4]
jne 0x1002afd5
mov ecx, edi
call fcn.10029089
jmp 0x1002b0d4
mov eax, dword [edi + 0x138]
test eax, eax
je 0x1002aff4
cmp ecx, eax
jne 0x1002aff4
mov eax, dword [edi + 0x148]
cmp eax, ebx
jbe 0x1002b0d4
dec eax
jmp 0x1002b015
mov eax, dword [edi + 0x13c]
test eax, eax
je 0x1002b02b
cmp ecx, eax
jne 0x1002b02b
mov eax, dword [edi + 0x148]
cmp eax, dword [edi + 0x14c]
jae 0x1002b0d4
inc eax
mov dword [edi + 0x148], eax
mov ecx, edi
movzx eax, al
push eax
call fcn.1002bb16
jmp 0x1002b0d4
mov eax, dword [edi + 0x160]
sub eax, dword [edi + 0x15c]
push 0x68
pop esi
cdq
idiv esi
mov dword [ebp - 0xc8], esi
test eax, eax
je 0x1002b0d4
push 4
lea eax, [edi + 0x30]
xor esi, esi
pop edx
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
cmp dword [eax], 0
je 0x1002b0c0
cmp ecx, dword [eax]
jne 0x1002b0c0
mov ebx, dword [eax - 0x14]
mov eax, dword [edi + 0x160]
sub eax, dword [edi + 0x15c]
cdq
idiv dword [ebp - 0xc8]
test eax, eax
jle 0x1002b0af
mov ecx, dword [edi + 0x15c]
add ecx, 0x18
cmp dword [ecx], ebx
je 0x1002b0db
push 0x68
pop eax
add ecx, eax
inc esi
mov eax, dword [edi + 0x160]
sub eax, dword [edi + 0x15c]
cdq
idiv dword [ebp - 0xc8]
cmp esi, eax
jl 0x1002b08b
mov ecx, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
inc ebx
mov eax, dword [ebp - 0xbc]
mov edx, dword [ebp - 0xc0]
add eax, 0x18
sub edx, 1
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xc0], edx
jne 0x1002b05f
mov al, bl
jmp 0x1002b7f5
or dword [ebp - 0xc4], 0xffffffff
xor edx, edx
mov dword [edi + 0x144], ebx
mov eax, dword [edi + 0x15c]
imul ebx, esi, 0x68
mov dword [ebp - 0x9c], ebx
cmp byte [ebx + eax + 0x64], 2
jne 0x1002b186
movaps xmm0, xmmword [0x1004de60]
mov ecx, edx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x55534e5b
mov word [ebp - 0x14], 0x6754
mov byte [ebp - 0x12], dl
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x15
jb 0x1002b121
lea eax, [ebp - 0x27]
mov byte [ebp - 0x12], dl
push eax
lea ecx, [ebp - 0xe0]
call fcn.100012e0
lea eax, [ebp - 0xe0]
xor esi, esi
push eax
push dword [edi + 0x7c]
mov dword [ebp - 4], esi
call fcn.1000f1a6
or dword [ebp - 4], 0xffffffff
xor eax, eax
pop ecx
pop ecx
push esi
inc eax
lea ecx, [ebp - 0xe0]
push eax
call fcn.10001cd4
push 0xff5cb9fe
push dword [edi + 0x7c]
call fcn.1000f180
mov dword [ebp - 0xc4], 0xff808080
jmp 0x1002b212
mov cl, 0x77
mov dword [ebp - 0xb8], 0x19222c77
mov dword [ebp - 0xb4], 0x57051213
mov eax, edx
mov dword [ebp - 0xb0], 0x2a0e1600
mov byte [ebp - 0xac], dl
xor byte [ebp + eax - 0xb7], cl
inc eax
cmp eax, 0xb
jae 0x1002b1c3
mov cl, byte [ebp - 0xb8]
jmp 0x1002b1ae
lea eax, [ebp - 0xb7]
mov byte [ebp - 0xac], dl
push eax
lea ecx, [ebp - 0xe0]
call fcn.100012e0
lea eax, [ebp - 0xe0]
xor esi, esi
push eax
push dword [edi + 0x7c]
inc esi
mov dword [ebp - 4], esi
call fcn.1000f1a6
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0xe0]
call fcn.10001cd4
push 0xffc4fc03
push dword [edi + 0x7c]
call fcn.1000f180
pop ecx
pop ecx
lea esi, [ebx + 0x58]
mov dword [ebp - 0x5c], 0x48
lea ecx, [edi + 0x84]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ecx
lea ebx, [edi + 0xa8]
mov dword [ebp - 0x98], 4
mov eax, dword [edi + 0x15c]
xor edx, edx
cmp word [esi + eax - 0x10], dx
je 0x1002b53a
mov cl, 0x15
mov dword [ebp - 0x88], 0x7e7b4015
mov dword [ebp - 0x84], 0x7b627a7b
mov eax, edx
mov byte [ebp - 0x80], dl
xor byte [ebp + eax - 0x87], cl
inc eax
cmp eax, 7
jae 0x1002b27d
mov cl, byte [ebp - 0x88]
jmp 0x1002b268
lea eax, [ebp - 0x87]
mov byte [ebp - 0x80], dl
push eax
lea ecx, [ebp - 0x40]
call fcn.100012e0
xor eax, eax
mov word [ebp - 0x60], 0x45
mov byte [ebp - 0x5f], al
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x5f]
mov dword [ebp - 4], 2
push eax
call fcn.100012e0
mov eax, dword [edi + 0x15c]
add eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
movzx eax, word [ecx + eax]
push eax
call fcn.10006369
pop ecx
test eax, eax
je 0x1002b302
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1002b2e7
push 0xffffffffffffffff
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10001d29
xor eax, eax
inc eax
push eax
push dword [ebx]
call fcn.1000e8b6
xor eax, eax
push eax
push dword [ebx + 4]
call fcn.1000e8b6
jmp 0x1002b3c0
mov eax, dword [edi + 0x15c]
xor ecx, ecx
inc ecx
cmp word [esi + eax - 0x10], cx
jne 0x1002b3c3
mov esi, dword [0x1005afc0]
mov ecx, esi
call fcn.1001403c
xor edx, edx
cmp byte [esi + 0x34], 1
mov eax, edx
jne 0x1002b36f
mov cl, 0x4f
mov dword [ebp - 0xa8], 0x6f230a4f
mov dword [ebp - 0xa4], 0x2e3d2002
mov word [ebp - 0xa0], 0x2b
xor byte [ebp + eax - 0xa7], cl
inc eax
cmp eax, 8
jae 0x1002b361
mov cl, byte [ebp - 0xa8]
jmp 0x1002b34c
mov byte [ebp - 0x9f], dl
lea esi, [ebp - 0xa7]
jmp 0x1002b396
mov cl, 0x6c
mov dword [ebp - 0x7c], 0x1e0d276c
mov word [ebp - 0x78], 0x1f19
mov byte [ebp - 0x76], dl
xor byte [ebp + eax - 0x7b], cl
inc eax
cmp eax, 5
jae 0x1002b390
mov cl, byte [ebp - 0x7c]
jmp 0x1002b381
mov byte [ebp - 0x76], dl
lea esi, [ebp - 0x7b]
push esi
call fcn.10001edd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.10001dbf
xor eax, eax
inc eax
push eax
push dword [ebx + 4]
call fcn.1000e8b6
xor eax, eax
push eax
push dword [ebx]
call fcn.1000e8b6
mov esi, dword [ebp - 0x74]
add esp, 0x10
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xe0]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.100012e0
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 4
push eax
push dword [ebx + 8]
call fcn.1000f1a6
pop ecx
pop ecx
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0xe0]
push eax
call fcn.10001cd4
push dword [ebp - 0xc4]
push dword [ebx + 8]
call fcn.1000f180
pop ecx
pop ecx
mov ecx, dword [edi + 0x15c]
xor edx, edx
movzx eax, word [ecx + esi]
push eax
movzx eax, word [ecx + esi - 8]
mov cl, 0x43
push eax
mov dword [ebp - 0x94], 0x63276643
mov eax, edx
mov dword [ebp - 0x90], 0x2766636c
mov byte [ebp - 0x8c], dl
xor byte [ebp + eax - 0x93], cl
inc eax
cmp eax, 7
jae 0x1002b459
mov cl, byte [ebp - 0x94]
jmp 0x1002b444
sub esp, 0x18
mov byte [ebp - 0x8c], dl
lea eax, [ebp - 0x93]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x28]
push eax
call fcn.1001b71b
add esp, 0x24
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x1002b488
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xe0]
call fcn.100012e0
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 6
push eax
push dword [ebx + 0xc]
call fcn.1000f1a6
pop ecx
pop ecx
xor eax, eax
lea ecx, [ebp - 0xe0]
push eax
inc eax
push eax
call fcn.10001cd4
xor eax, eax
mov byte [ebp - 4], 3
push eax
inc eax
lea ecx, [ebp - 0x28]
push eax
call fcn.10001cd4
mov eax, dword [edi + 0x15c]
movzx eax, word [esi + eax]
push eax
xor eax, eax
push eax
push dword [ebx + 0x10]
call fcn.1000eeef
mov eax, dword [edi + 0x15c]
and dword [esp + 8], 0
and dword [esp + 4], 0
movzx eax, word [esi + eax - 8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
push dword [ebx + 0x10]
call fcn.1000eea9
xor eax, eax
inc eax
push eax
mov eax, dword [ebp - 0x70]
push dword [eax]
call fcn.1000e8b6
add esp, 0x18
lea ecx, [ebp - 0x58]
xor eax, eax
push eax
inc eax
push eax
call fcn.10001cd4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
xor eax, eax
push eax
inc eax
push eax
call fcn.10001cd4
jmp 0x1002b544
push edx
push dword [ecx]
call fcn.1000e8b6
pop ecx
pop ecx
mov ecx, dword [ebp - 0x70]
add esi, 2
add dword [ebp - 0x5c], 2
add ecx, 4
add ebx, 0x14
mov dword [ebp - 0x74], esi
sub dword [ebp - 0x98], 1
mov dword [ebp - 0x70], ecx
jne 0x1002b23a
mov ecx, dword [ebp - 0x9c]
lea eax, [edi + 0x94]
add ecx, 0x34
mov dword [ebp - 0x5c], eax
lea esi, [edi + 0xf8]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x74], 5
mov eax, dword [edi + 0x15c]
mov ebx, dword [eax + ecx - 0x14]
mov eax, dword [eax + ecx]
mov ecx, 0x35a4f8a0
mov dword [ebp - 0x9c], eax
lea eax, [ebx - 1]
cmp eax, 0x5f5e0fe
cmovbe ebx, ecx
push ebx
call fcn.100062d1
mov dword [ebp - 0x70], eax
pop ecx
test eax, eax
je 0x1002b6f3
xor eax, eax
mov word [ebp - 0x64], 0x1a
mov byte [ebp - 0x63], al
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x63]
push eax
call fcn.100012e0
mov eax, dword [ebp - 0x70]
push ebx
mov dword [ebp - 4], 7
movzx eax, byte [eax + 4]
push eax
call fcn.10006302
pop ecx
pop ecx
xor ecx, ecx
mov dword [ebp - 0xc4], eax
test eax, eax
je 0x1002b62a
cmp dword [eax + 0x48], ecx
je 0x1002b62a
push ebx
push eax
push ecx
lea eax, [ebp - 0x58]
push eax
call fcn.100073aa
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10001cd4
mov ebx, dword [ebp - 0x70]
jmp 0x1002b652
push ebx
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0x58]
push ecx
push ebx
push eax
call fcn.100073aa
add esp, 0x10
lea ecx, [ebp - 0x28]
push eax
call fcn.10006163
xor eax, eax
lea ecx, [ebp - 0x58]
push eax
inc eax
push eax
call fcn.10001cd4
mov eax, dword [esi]
test eax, eax
je 0x1002b6bf
lea ecx, [ebp - 0x28]
add eax, 4
push ecx
push eax
call fcn.1000aa9f
mov eax, dword [esi]
mov edx, dword [ebp - 0x9c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc4]
mov dword [eax + 0x50], ebx
mov eax, dword [esi]
mov dword [eax + 0x54], ecx
mov eax, dword [esi]
mov dword [eax + 0x58], edx
test ecx, ecx
je 0x1002b692
movsx ecx, word [ecx + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x1002b696
movsx ecx, word [ebx + 0x66]
mov eax, dword [esi]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi]
cmp dword [eax], 0
je 0x1002b6bf
lea ecx, [ebp - 0x28]
push ecx
push dword [eax]
call fcn.1000ed98
mov eax, dword [esi]
xor ebx, ebx
inc ebx
push ebx
push dword [eax]
call fcn.1000e8b6
add esp, 0x10
jmp 0x1002b6c2
xor ebx, ebx
inc ebx
push dword [ebp - 0x9c]
push dword [esi + 4]
call fcn.1000f23a
mov eax, dword [ebp - 0x5c]
push ebx
push dword [eax]
call fcn.1000e8b6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
add esp, 0x10
xor eax, eax
push eax
push ebx
call fcn.10001cd4
jmp 0x1002b7c9
mov eax, dword [ebp - 0x5c]
xor ebx, ebx
push ebx
push dword [eax]
call fcn.1000e8b6
push ebx
push dword [esi + 4]
call fcn.1000f23a
add esp, 0x10
cmp dword [esi], ebx
je 0x1002b7c6
lea eax, [ebp - 0x67]
mov word [ebp - 0x68], 3
push eax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 0x67], bl
call fcn.100012e0
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 8
push eax
mov eax, dword [esi]
add eax, 4
push eax
call fcn.1000aa9f
or dword [ebp - 4], 0xffffffff
xor eax, eax
pop ecx
pop ecx
push ebx
inc eax
lea ecx, [ebp - 0xe0]
push eax
call fcn.10001cd4
mov eax, dword [esi]
mov dword [eax + 0x50], ebx
mov eax, dword [esi]
mov dword [eax + 0x54], ebx
mov eax, dword [esi]
mov dword [eax + 0x58], ebx
mov eax, dword [esi]
mov dword [eax + 0x5c], ebx
mov eax, dword [esi]
cmp dword [eax], ebx
je 0x1002b7c6
lea eax, [ebp - 0x6b]
mov word [ebp - 0x6c], 0x11
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 0x6b], bl
call fcn.100012e0
lea eax, [ebp - 0xf8]
mov dword [ebp - 4], 9
push eax
mov eax, dword [esi]
push dword [eax]
call fcn.1000ed98
or dword [ebp - 4], 0xffffffff
xor eax, eax
pop ecx
pop ecx
push ebx
inc eax
lea ecx, [ebp - 0xf8]
push eax
call fcn.10001cd4
mov eax, dword [esi]
push ebx
push dword [eax]
call fcn.1000e8b6
pop ecx
pop ecx
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x98]
add esi, 0xc
add dword [ebp - 0x5c], 4
add ecx, 4
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x98], ecx
jne 0x1002b58c
mov ecx, dword [ebp + 8]
xor esi, esi
jmp 0x1002b0b4
xor al, al
call fcn.10044a84
ret 8