Function at 0x1002b011
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x88
mov eax, 0x1003bd5f
call fcn.100391fe
mov esi, ecx
mov dword [ebp - 0x58], esi
and dword [ebp - 4], 0
call fcn.1002ae04
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
xor ecx, ecx
xor edx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x30], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
and dword [ebp - 0x54], edx
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xd4]
sub eax, dword [esi + 0xd0]
sar eax, 6
test eax, eax
je 0x1002b253
xor edi, edi
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x1002b0a3
lea eax, [ebp - 0x43]
mov word [ebp - 0x44], 0x36
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x43], 0
call fcn.10009659
test eax, eax
jne 0x1002b09e
mov eax, dword [esi + 0xd0]
mov ecx, dword [ebx + 0xc]
cmp dword [eax + edi + 0x3c], ecx
jne 0x1002b22c
jmp 0x1002b221
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x1002b155
lea eax, [ebp - 0x47]
mov word [ebp - 0x48], 0x67
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x47], 0
call fcn.10009659
test eax, eax
je 0x1002b21b
mov ecx, dword [esi + 0xd0]
mov ecx, dword [ecx + edi + 0x1c]
call fcn.100065c9
mov edx, dword [esi + 0xd0]
mov ecx, eax
mov dword [ebp - 0x4c], eax
mov edx, dword [edx + edi + 0x1c]
call fcn.100065e9
mov ecx, dword [esi + 0xd0]
mov dword [ebp - 0x3c], eax
cmp dword [ecx + edi + 0x1c], 0
jbe 0x1002b131
cmp dword [ecx + edi + 0x1c], 0x5f5e100
jae 0x1002b131
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10003ae8
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xd0]
sub esp, 0x18
add eax, edi
mov ecx, esp
push eax
call fcn.10003ae8
jmp 0x1002b20b
cmp dword [ebp - 0x4c], 0
je 0x1002b22c
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10003ae8
mov byte [ebp - 4], 3
jmp 0x1002b1fa
test eax, eax
jle 0x1002b21b
lea eax, [ebp - 0x3f]
mov word [ebp - 0x40], 0x21
push eax
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x3f], 0
call fcn.10009659
test eax, eax
je 0x1002b21b
mov eax, dword [esi + 0xd0]
mov ecx, dword [ebx + 0xc]
cmp dword [eax + edi + 0x3c], ecx
jne 0x1002b22c
mov ecx, dword [eax + edi + 0x1c]
call fcn.100065c9
mov edx, dword [esi + 0xd0]
mov ecx, eax
mov dword [ebp - 0x4c], eax
mov edx, dword [edx + edi + 0x1c]
call fcn.100065e9
mov ecx, dword [esi + 0xd0]
mov dword [ebp - 0x3c], eax
cmp dword [ecx + edi + 0x1c], 0
jbe 0x1002b1df
cmp dword [edi + ecx + 0x1c], 0x5f5e100
jae 0x1002b1df
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10003ae8
mov byte [ebp - 4], 4
jmp 0x1002b119
cmp dword [ebp - 0x4c], 0
je 0x1002b22c
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10003ae8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4c]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x3c]
call fcn.10006912
pop ecx
mov byte [ebp - 4], 1
call fcn.10009485
add esp, 0x30
test al, al
je 0x1002b22c
mov eax, dword [esi + 0xd0]
add eax, edi
lea ecx, [ebp - 0x38]
push eax
call fcn.1002d2e8
mov eax, dword [esi + 0xd4]
add edi, 0x40
mov ecx, dword [ebp - 0x54]
sub eax, dword [esi + 0xd0]
inc ecx
sar eax, 6
mov dword [ebp - 0x54], ecx
cmp ecx, eax
jb 0x1002b065
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edi, edx
sub edi, ecx
cmp edi, 0x40
jae 0x1002b293
push 0xc
lea edi, [esi + 0x80]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.1000b043
lea edi, [edi + 4]
sub esi, 1
jne 0x1002b265
mov esi, dword [ebp - 0x58]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xbc]
call fcn.1000b8c7
mov dword [esi + 0x18], 1
jmp 0x1002b8bf
lea eax, [ebp - 0x3c]
sar edi, 6
push eax
push edi
mov dword [ebp - 0x3c], 0x10026ca1
mov dword [ebp - 0x7c], edi
call fcn.1002d6de
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10047e50]
divsd xmm0, qword [0x100472b8]
movsd qword [ebp - 0x60], xmm0
fld qword [ebp - 0x60]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x60]
movsd xmm0, qword [ebp - 0x60]
andps xmm0, xmmword [0x100484b0]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x18], eax
imul eax, dword [ebx + 8], 0xc
lea edx, [eax - 0xc]
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x4c], edx
cmp edx, eax
jge 0x1002b8b1
mov eax, edx
lea ecx, [esi + 0x7c]
mov edx, dword [ebp - 0x38]
push 0xffffffffffffffc0
pop edi
mov dword [ebp - 0x48], ecx
shl eax, 6
lea ecx, [edx + 0x1c]
add ecx, eax
push 0xffffffffffffffe4
pop eax
sub eax, edx
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
add dword [ebp - 0x48], 4
add edi, 0x40
cmp edi, 0x2c0
jg 0x1002b8b1
mov eax, dword [ebp - 0x7c]
dec eax
cmp edx, eax
jle 0x1002b34b
xor dl, dl
jmp 0x1002b889
mov ecx, dword [ecx]
call fcn.100065c9
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov ecx, dword [edx]
test ecx, ecx
je 0x1002b4fb
cmp ecx, 0x5f5e100
jae 0x1002b4fb
mov ecx, dword [esi + 0xc4]
mov eax, dword [edx - 4]
add edx, dword [ebp - 0x3c]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 0xc4]
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + edx + 0x1c]
mov dword [ecx + edi + 4], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [esi + 0xc4]
add eax, 0x30
add eax, edx
add ecx, 8
push eax
add ecx, edi
call fcn.1002e6ee
mov ecx, dword [esi + 0xc4]
mov edx, dword [ebp - 0x40]
add edx, 0xffffffe4
mov ecx, dword [ecx + edi + 0x20]
call fcn.1000b8a4
mov eax, dword [esi + 0xc4]
mov esi, eax
mov edx, dword [eax + edi + 0xc]
sub edx, dword [eax + edi + 8]
sar edx, 2
call fcn.100091af
mov ecx, dword [esi + edi + 8]
mov eax, dword [ecx + eax*4 - 4]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1002b641
mov ecx, eax
call fcn.100065c9
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
je 0x1002b641
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 6
mov ecx, esi
mov edx, dword [ebp - 0x44]
call fcn.100065e9
mov dword [ebp - 0x50], eax
test eax, eax
je 0x1002b42d
cmp dword [eax + 0x3c], 0
je 0x1002b42d
push dword [ebp - 0x44]
xor edx, edx
push eax
jmp 0x1002b434
push dword [ebp - 0x44]
mov edx, esi
push 0
lea ecx, [ebp - 0x78]
call fcn.100066ad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10006e3f
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10003f4a
mov esi, dword [ebp - 0x58]
mov eax, dword [esi + 0xc4]
cmp dword [edi + eax + 0x38], 0
je 0x1002b4d4
mov ecx, dword [eax + edi + 0x38]
lea edx, [ebp - 0x2c]
add ecx, 4
call fcn.10008ace
mov eax, dword [esi + 0xc4]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov eax, dword [eax + edi + 0x38]
mov dword [eax + 0x60], ecx
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + edi + 0x38]
mov dword [eax + 0x64], edx
mov eax, dword [esi + 0xc4]
mov eax, dword [edi + eax + 0x38]
and dword [eax + 0x68], 0
test edx, edx
je 0x1002b4b0
movsx edx, word [edx + 0x4e]
movsx eax, word [ecx + 0x5e]
add edx, eax
jmp 0x1002b4b4
movsx edx, word [ecx + 0x5e]
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + edi + 0x38]
mov dword [eax + 0x6c], edx
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi + 0x38]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x44], eax
mov ecx, dword [esi + 0xc4]
lea edx, [ebp - 0x2c]
mov ecx, dword [ecx + edi + 0x34]
call fcn.1000b51f
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10003f4a
jmp 0x1002b644
test eax, eax
je 0x1002b344
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov edx, ecx
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.100065e9
mov ecx, eax
mov dword [ebp - 0x54], ecx
test ecx, ecx
je 0x1002b538
cmp dword [ecx + 0x3c], 0
je 0x1002b538
mov eax, dword [ebp - 0x40]
xor edx, edx
push dword [eax]
push ecx
jmp 0x1002b542
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
push dword [eax]
push 0
lea ecx, [ebp - 0x78]
call fcn.100066ad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10006e3f
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10003f4a
mov ecx, dword [esi + 0xc4]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx - 4]
mov dword [edi + ecx], eax
mov ecx, dword [esi + 0xc4]
mov eax, dword [edx]
mov dword [ecx + edi + 4], eax
mov eax, dword [esi + 0xc4]
cmp dword [edi + eax + 0x38], 0
je 0x1002b5fa
mov ecx, dword [eax + edi + 0x38]
lea edx, [ebp - 0x2c]
add ecx, 4
call fcn.10008ace
mov eax, dword [esi + 0xc4]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x54]
mov eax, dword [eax + edi + 0x38]
mov dword [eax + 0x60], ecx
mov eax, dword [esi + 0xc4]
mov eax, dword [edi + eax + 0x38]
mov dword [eax + 0x64], edx
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + edi + 0x38]
and dword [eax + 0x68], 0
test edx, edx
je 0x1002b5d6
movsx edx, word [edx + 0x4e]
movsx eax, word [ecx + 0x5e]
add edx, eax
jmp 0x1002b5da
movsx edx, word [ecx + 0x5e]
mov eax, dword [esi + 0xc4]
mov eax, dword [edi + eax + 0x38]
mov dword [eax + 0x6c], edx
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi + 0x38]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x44], eax
mov ecx, dword [esi + 0xc4]
lea edx, [ebp - 0x2c]
mov ecx, dword [edi + ecx + 0x34]
call fcn.1000b51f
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x78]
call fcn.10006912
pop ecx
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [ecx + edi + 0x20]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10003f4a
jmp 0x1002b4e6
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x40]
cmp dword [eax + 0xc], 1
jne 0x1002b6d6
mov edx, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x1002b66d
mov eax, dword [eax]
movaps xmm0, xmmword [0x100480b0]
xor edx, edx
push eax
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x18], 0
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0xf
jb 0x1002b67f
sub esp, 0x18
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x78]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [ecx + edi + 0x24]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x78]
call fcn.10003f4a
lea ecx, [ebp - 0x94]
jmp 0x1002b760
cmp dword [eax + 0xc], 2
jne 0x1002b770
mov edx, dword [eax + 8]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x1002b6f9
mov eax, dword [eax]
movaps xmm0, xmmword [0x10047dd0]
xor edx, edx
push eax
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x18], 0
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0xf
jb 0x1002b70b
sub esp, 0x18
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x94]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 0xc
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [ecx + edi + 0x24]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10003f4a
lea ecx, [ebp - 0x78]
push 0
push 1
mov byte [ebp - 4], 1
call fcn.10003f4a
mov eax, dword [ebp - 0x40]
mov edx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0x10
jb 0x1002b789
mov eax, dword [eax]
movaps xmm0, xmmword [0x10048120]
xor edx, edx
push eax
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0xf
mov cl, byte [ebp - 0x28]
xor byte [ebp + edx - 0x27], cl
inc edx
cmp edx, 0x10
jb 0x1002b79d
sub esp, 0x18
mov byte [ebp - 0x17], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x94]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 0xe
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [ecx + edi + 0x28]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10003f4a
mov edx, dword [0x100500a0]
test edx, edx
je 0x1002b851
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + 0xc], 1
jne 0x1002b81a
mov eax, dword [edx + 0x4c]
cmp eax, dword [ecx + 8]
jb 0x1002b828
cmp dword [ecx + 0xc], 2
jne 0x1002b851
mov eax, dword [edx + 0x50]
cmp eax, dword [ecx + 8]
jae 0x1002b851
mov ecx, dword [esi + 0xc4]
mov edx, 0xfff78dad
mov ecx, dword [ecx + edi + 0x24]
call fcn.1000b8ea
mov ecx, dword [esi + 0xc4]
mov dl, 7
mov ecx, dword [ecx + edi + 0x2c]
call fcn.1000b117
mov dl, 7
jmp 0x1002b878
mov ecx, dword [esi + 0xc4]
mov edx, 0xff92fcaf
mov ecx, dword [ecx + edi + 0x24]
call fcn.1000b8ea
mov ecx, dword [esi + 0xc4]
mov dl, 2
mov ecx, dword [ecx + edi + 0x2c]
call fcn.1000b117
mov dl, 2
mov ecx, dword [esi + 0xc4]
mov ecx, dword [ecx + edi + 0x30]
call fcn.1000b117
mov dl, 1
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
call fcn.1000b043
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, dword [ebp - 0x5c]
add ecx, 0x40
add eax, 0xc
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x40], ecx
cmp edx, eax
jl 0x1002b329
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xbc]
call fcn.1000b8c7
lea ecx, [ebp - 0x38]
call fcn.1002e8e4
push 0
push 1
lea ecx, [ebx + 0x10]
call fcn.10003f4a
mov ecx, dword [ebp - 0x14]
call fcn.100391d9
ret 0x20