Function at 0x1002c05c
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x80
mov eax, 0x10040643
call fcn.1003d86f
mov esi, ecx
mov dword [ebp - 0x54], esi
and dword [ebp - 4], 0
call fcn.1002be69
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
xor edx, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xd0]
sub eax, ecx
sar eax, 6
mov dword [ebp - 0x40], edx
test eax, eax
je 0x1002c2c9
jmp 0x1002c0b4
xor edx, edx
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x1002c1ba
mov word [ebp - 0x4c], 0x6d
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x4b], dl
lea edx, [ebp - 0x4b]
call fcn.1000afc7
test al, al
je 0x1002c10b
mov eax, dword [esi + 0xd0]
mov edx, dword [ebx + 0xc]
add eax, edi
cmp dword [eax + 0x3c], edx
jne 0x1002c2a3
mov edx, dword [ebp - 0x1c]
push eax
cmp edx, dword [ebp - 0x18]
je 0x1002c103
call fcn.1002f35d
add dword [ebp - 0x1c], 0x40
pop ecx
jmp 0x1002c2a3
push dword [ebp - 0x1c]
jmp 0x1002c1ad
mov word [ebp - 0x44], 0x1b
lea edx, [ebp - 0x43]
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x43], 0
call fcn.1000afc7
mov ecx, dword [esi + 0xd0]
test al, al
jne 0x1002c297
mov edx, dword [ebx + 0xc]
cmp dword [edi + ecx + 0x3c], edx
jne 0x1002c2a3
mov ecx, dword [edi + ecx + 0x1c]
call fcn.100083f8
mov edx, dword [esi + 0xd0]
mov ecx, eax
mov dword [ebp - 0x48], eax
mov edx, dword [edx + edi + 0x1c]
call fcn.1000841a
mov ecx, dword [esi + 0xd0]
mov dword [ebp - 0x50], eax
mov ecx, dword [edi + ecx + 0x1c]
dec ecx
cmp ecx, 0x5f5e0fe
ja 0x1002c188
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.10003929
mov byte [ebp - 4], 4
jmp 0x1002c22a
cmp dword [ebp - 0x48], 0
je 0x1002c2a3
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x58], esp
push eax
call fcn.10003929
mov byte [ebp - 4], 5
jmp 0x1002c284
push ecx
lea ecx, [ebp - 0x20]
call fcn.1002e95f
jmp 0x1002c2a3
jne 0x1002c297
mov word [ebp - 0x3c], 0x5e
lea ecx, [ebx + 0x10]
mov byte [ebp - 0x3b], dl
lea edx, [ebp - 0x3b]
call fcn.1000afc7
mov ecx, dword [esi + 0xd0]
test al, al
jne 0x1002c297
mov ecx, dword [edi + ecx + 0x1c]
call fcn.100083f8
mov edx, dword [esi + 0xd0]
mov ecx, eax
mov dword [ebp - 0x48], eax
mov edx, dword [edx + edi + 0x1c]
call fcn.1000841a
mov ecx, dword [esi + 0xd0]
mov dword [ebp - 0x50], eax
mov ecx, dword [ecx + edi + 0x1c]
dec ecx
cmp ecx, 0x5f5e0fe
ja 0x1002c269
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10003929
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xd0]
sub esp, 0x18
add eax, edi
mov ecx, esp
push eax
call fcn.10003929
mov byte [ebp - 4], 1
call fcn.1000ae87
add esp, 0x30
test al, al
je 0x1002c2a3
mov eax, dword [esi + 0xd0]
mov ecx, dword [ebp - 0x1c]
add eax, edi
push eax
cmp ecx, dword [ebp - 0x18]
je 0x1002c1ac
mov edx, ecx
jmp 0x1002c0f4
cmp dword [ebp - 0x48], 0
je 0x1002c2a3
sub esp, 0x18
lea eax, [ebx + 0x10]
mov ecx, esp
mov dword [ebp - 0x5c], esp
push eax
call fcn.10003929
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x48]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x50]
call fcn.1000870b
pop ecx
jmp 0x1002c23d
lea eax, [edi + ecx]
push eax
lea ecx, [ebp - 0x20]
call fcn.1002e330
mov eax, dword [esi + 0xd4]
add edi, 0x40
mov edx, dword [ebp - 0x40]
mov ecx, dword [esi + 0xd0]
inc edx
sub eax, ecx
mov dword [ebp - 0x40], edx
sar eax, 6
cmp edx, eax
jb 0x1002c0b2
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
sub eax, edi
sar eax, 6
test eax, eax
jne 0x1002c30c
push 0xc
lea edi, [esi + 0x80]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.1000c91c
lea edi, [edi + 4]
sub esi, 1
jne 0x1002c2de
mov esi, dword [ebp - 0x54]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xbc]
call fcn.1000d1a9
mov dword [esi + 0x18], 1
jmp 0x1002c96f
mov edx, dword [ebp - 0x1c]
mov ecx, edi
push 0x10027cc1
push eax
call fcn.1002e3c7
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x20]
sar eax, 6
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004d130]
divsd xmm0, qword [0x1004c720]
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 [0x1004d910]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x18], eax
imul eax, dword [ebx + 8], 0xc
mov dword [ebp - 0x58], eax
lea edx, [eax - 0xc]
mov dword [ebp - 0x48], edx
cmp edx, eax
jge 0x1002c961
push 0xffffffffffffffc0
pop edi
mov eax, edx
shl eax, 6
push 0x7c
mov dword [ebp - 0x3c], eax
pop edx
mov ecx, dword [ebp - 0x1c]
add edx, 4
add edi, 0x40
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edi
cmp edx, 0xac
jg 0x1002c961
mov edx, dword [ebp - 0x20]
sub ecx, edx
sar ecx, 6
dec ecx
cmp dword [ebp - 0x48], ecx
jle 0x1002c3bc
xor dl, dl
jmp 0x1002c939
mov ecx, dword [eax + edx + 0x1c]
call fcn.100083f8
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44], eax
mov ecx, dword [edx + ecx + 0x1c]
mov dword [ebp - 0x40], ecx
dec ecx
cmp ecx, 0x5f5e0fe
ja 0x1002c572
mov eax, dword [ebp - 0x20]
mov ecx, dword [edx + eax + 0x18]
mov eax, dword [esi + 0xc4]
mov dword [edi + eax], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [edx + eax + 0x1c]
add edx, 0x30
mov eax, dword [esi + 0xc4]
mov dword [edi + eax + 4], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 0xc4]
add eax, edx
add ecx, 8
push eax
add ecx, edi
call fcn.1000b233
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
lea edx, [edx + eax]
mov eax, dword [esi + 0xc4]
mov ecx, dword [edi + eax + 0x20]
call fcn.1000d186
mov esi, dword [esi + 0xc4]
mov edx, dword [edi + esi + 0xc]
sub edx, dword [edi + esi + 8]
sar edx, 2
call fcn.1000abd6
lea ecx, [eax - 1]
mov eax, dword [edi + esi + 8]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1002c56a
mov ecx, eax
call fcn.100083f8
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
je 0x1002c56a
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov edi, dword [ebp - 0x40]
mov ecx, esi
mov edx, edi
mov byte [ebp - 4], 6
call fcn.1000841a
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1002c4ae
cmp dword [eax + 0x3c], 0
je 0x1002c4ae
push edi
push eax
xor edx, edx
jmp 0x1002c4b3
push edi
push 0
mov edx, esi
lea ecx, [ebp - 0x78]
call fcn.100084ea
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.10008b15
lea ecx, [ebp - 0x78]
call fcn.10003b98
mov esi, dword [ebp - 0x54]
mov edi, dword [ebp - 0x4c]
mov eax, dword [esi + 0xc4]
mov ecx, dword [edi + eax + 0x38]
test ecx, ecx
je 0x1002c553
add ecx, 4
lea edx, [ebp - 0x38]
call fcn.1000a5dc
mov eax, dword [esi + 0xc4]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov eax, dword [edi + eax + 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 [eax + edi + 0x38]
and dword [eax + 0x68], 0
test edx, edx
je 0x1002c52b
movsx edx, word [edx + 0x4e]
movsx eax, word [ecx + 0x5e]
add edx, eax
jmp 0x1002c52f
movsx edx, word [ecx + 0x5e]
mov eax, dword [esi + 0xc4]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edi + eax + 0x38]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ecx + eax + 0x2c]
mov eax, dword [esi + 0xc4]
mov eax, dword [edi + eax + 0x38]
mov dword [eax + 0x44], ecx
mov ecx, dword [esi + 0xc4]
lea edx, [ebp - 0x38]
mov ecx, dword [edi + ecx + 0x34]
call fcn.1000cdf8
jmp 0x1002c6ce
mov esi, dword [ebp - 0x54]
jmp 0x1002c6da
test eax, eax
je 0x1002c3b5
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov edx, dword [ebp - 0x40]
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x44]
mov ecx, edi
call fcn.1000841a
mov edx, eax
mov dword [ebp - 0x40], edx
test edx, edx
je 0x1002c5c1
cmp dword [edx + 0x3c], 0
je 0x1002c5c1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
push dword [eax + ecx + 0x1c]
push edx
xor edx, edx
jmp 0x1002c5cf
mov eax, dword [ebp - 0x20]
mov edx, edi
mov ecx, dword [ebp - 0x3c]
push dword [ecx + eax + 0x1c]
push 0
lea ecx, [ebp - 0x78]
call fcn.100084ea
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.10008b15
lea ecx, [ebp - 0x78]
call fcn.10003b98
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [edx + eax + 0x18]
mov eax, dword [esi + 0xc4]
mov dword [edi + eax], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [edx + eax + 0x1c]
mov eax, dword [esi + 0xc4]
mov dword [edi + eax + 4], ecx
mov eax, dword [esi + 0xc4]
mov ecx, dword [eax + edi + 0x38]
test ecx, ecx
je 0x1002c690
add ecx, 4
lea edx, [ebp - 0x38]
call fcn.1000a5dc
mov eax, dword [esi + 0xc4]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov eax, dword [edi + eax + 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 0x1002c668
movsx edx, word [edx + 0x4e]
movsx eax, word [ecx + 0x5e]
add edx, eax
jmp 0x1002c66c
movsx edx, word [ecx + 0x5e]
mov eax, dword [esi + 0xc4]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edi + eax + 0x38]
mov dword [eax + 0x6c], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ecx + eax + 0x2c]
mov eax, dword [esi + 0xc4]
mov eax, dword [eax + edi + 0x38]
mov dword [eax + 0x44], ecx
mov ecx, dword [esi + 0xc4]
lea edx, [ebp - 0x38]
mov ecx, dword [edi + ecx + 0x34]
call fcn.1000cdf8
push dword [ebp - 0x40]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x78]
call fcn.1000870b
pop ecx
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [edi + ecx + 0x20]
call fcn.1000d186
lea ecx, [ebp - 0x78]
call fcn.10003b98
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.10003b98
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
cmp dword [edx + eax + 0x28], 1
jne 0x1002c76d
mov edx, dword [edx + eax + 0x24]
push ecx
lea ecx, [ebp - 0x90]
call fcn.1000af01
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x1002c708
mov eax, dword [eax]
movaps xmm0, xmmword [str.qQQ:2Q_]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x24], 0
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0xf
jb 0x1002c71a
sub esp, 0x18
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x33]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0x78]
push eax
call fcn.100039e3
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [edi + ecx + 0x24]
call fcn.1000d186
lea ecx, [ebp - 0x78]
call fcn.10003b98
lea ecx, [ebp - 0x90]
jmp 0x1002c7f5
cmp dword [edx + eax + 0x28], 2
jne 0x1002c7fe
mov edx, dword [edx + eax + 0x24]
push ecx
lea ecx, [ebp - 0x78]
call fcn.1000af01
pop ecx
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0xf
jbe 0x1002c792
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004d4a0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov byte [ebp - 0x24], 0
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0xf
jb 0x1002c7a4
sub esp, 0x18
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x33]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0x90]
push eax
call fcn.100039e3
add esp, 0x20
mov byte [ebp - 4], 0xc
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [ecx + edi + 0x24]
call fcn.1000d186
lea ecx, [ebp - 0x90]
call fcn.10003b98
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10003b98
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x78]
mov edx, dword [eax + edx + 0x20]
call fcn.1000af01
pop ecx
mov byte [ebp - 4], 0xd
cmp dword [eax + 0x14], 0xf
jbe 0x1002c81e
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004cdb0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov word [ebp - 0x24], 0x71
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x10
jb 0x1002c832
sub esp, 0x18
mov byte [ebp - 0x23], 0
lea eax, [ebp - 0x33]
mov ecx, esp
push eax
call fcn.10003d9a
lea eax, [ebp - 0x90]
push eax
call fcn.100039e3
add esp, 0x20
mov byte [ebp - 4], 0xe
mov edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [edi + ecx + 0x28]
call fcn.1000d186
lea ecx, [ebp - 0x90]
call fcn.10003b98
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10003b98
cmp dword [0x10057860], 0
mov dl, 1
je 0x1002c8de
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
mov eax, dword [ecx + eax + 0x28]
cmp eax, 1
jne 0x1002c8be
mov eax, dword [0x10057860]
mov edi, dword [ebp - 0x20]
mov eax, dword [eax + 0x4c]
cmp eax, dword [ecx + edi + 0x24]
mov edi, dword [ebp - 0x4c]
jae 0x1002c8de
xor dl, dl
jmp 0x1002c8de
cmp eax, 2
jne 0x1002c8de
mov eax, dword [0x10057860]
mov esi, dword [ebp - 0x20]
push 0
movzx edx, dl
mov eax, dword [eax + 0x50]
cmp eax, dword [ecx + esi + 0x24]
mov esi, dword [ebp - 0x54]
pop eax
cmovb edx, eax
mov ecx, dword [esi + 0xc4]
mov ecx, dword [ecx + edi + 0x24]
test dl, dl
je 0x1002c90b
mov edx, 0xff92fcaf
call fcn.1000d1cc
mov ecx, dword [esi + 0xc4]
mov dl, 2
mov ecx, dword [edi + ecx + 0x2c]
call fcn.1000c9f1
mov dl, 2
jmp 0x1002c928
mov edx, 0xfff78dad
call fcn.1000d1cc
mov ecx, dword [esi + 0xc4]
mov dl, 7
mov ecx, dword [edi + ecx + 0x2c]
call fcn.1000c9f1
mov dl, 7
mov eax, dword [esi + 0xc4]
mov ecx, dword [edi + eax + 0x30]
call fcn.1000c9f1
mov dl, 1
mov ecx, dword [ebp - 0x50]
mov ecx, dword [esi + ecx]
call fcn.1000c91c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
inc edx
add eax, 0x40
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x3c], eax
cmp edx, dword [ebp - 0x58]
jge 0x1002c961
mov edx, dword [ebp - 0x50]
jmp 0x1002c38c
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xbc]
call fcn.1000d1a9
lea ecx, [ebp - 0x20]
call fcn.1002f924
lea ecx, [ebx + 0x10]
call fcn.10003b98
mov ecx, dword [ebp - 0x14]
call fcn.1003d84d
ret 0x20