Function at 0x1002d8e0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov eax, dword [esp + 0x24]
xor edx, edx
push ebx
push ebp
mov ebp, dword [ecx + 0xbc]
mov dword [esp + 0x14], ebp
push esi
test eax, eax
je 0x1002d8fc
mov edx, dword [eax]
mov dword [esp + 0x30], 0
add eax, 4
je 0x1002d90f
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
xor ebx, ebx
add eax, 4
je 0x1002d918
mov ebx, dword [eax]
push edi
xor edi, edi
add eax, 4
je 0x1002d922
mov edi, dword [eax]
mov ecx, dword [ebp]
mov esi, dword [ebp + 8]
add ecx, edx
add esi, ebx
movzx edx, cl
mov eax, ecx
mov ebx, ecx
shr eax, 0x10
mov dword [esp + 0x20], eax
rol ecx, 8
movzx eax, cl
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0xc]
add ecx, edi
shr ebx, 8
mov edi, dword [eax*4 + 0x10070aa0]
xor edi, ecx
movzx eax, bl
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
add ebp, edi
mov ecx, dword [ecx + 4]
add ecx, dword [esp + 0x34]
xor ecx, dword [edx*4 + 0x100706a0]
add ecx, dword [eax*4 + 0x10070aa0]
mov eax, dword [esp + 0x20]
mov edx, ecx
movzx eax, al
mov dword [esp + 0x34], ecx
rol ecx, 8
mov ebx, dword [eax*4 + 0x100706a0]
movzx eax, dl
add ebx, esi
xor ebx, dword [eax*4 + 0x100706a0]
mov eax, edx
shr eax, 8
movzx eax, al
shr edx, 0x10
mov eax, dword [eax*4 + 0x10070aa0]
add ebx, eax
mov eax, ebx
rol eax, 8
mov dword [esp + 0x18], eax
movzx eax, dl
mov edx, dword [eax*4 + 0x100706a0]
movzx eax, bl
add edx, edi
xor edx, dword [eax*4 + 0x100706a0]
mov eax, ebx
shr eax, 8
movzx eax, al
add edx, dword [eax*4 + 0x10070aa0]
mov eax, edx
mov dword [esp + 0x24], edx
rol eax, 8
mov dword [esp + 0x34], eax
movzx eax, cl
mov esi, dword [eax*4 + 0x10070aa0]
mov eax, ebx
shr eax, 0x10
xor esi, ebp
movzx eax, al
add esi, dword [eax*4 + 0x100706a0]
movzx eax, dl
xor esi, dword [eax*4 + 0x100706a0]
mov eax, edx
shr eax, 8
lea edx, [ebx + ecx]
mov ebx, dword [esp + 0x34]
movzx eax, al
add esi, dword [eax*4 + 0x10070aa0]
mov ecx, esi
mov dword [esp + 0x20], esi
rol ecx, 8
movzx eax, cl
mov edi, dword [eax*4 + 0x10070aa0]
mov eax, dword [esp + 0x18]
xor edi, ebx
movzx eax, al
lea esi, [edi + ecx]
mov eax, dword [eax*4 + 0x10070aa0]
xor eax, edx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
mov edx, dword [esp + 0x34]
add edx, dword [eax*4 + 0x100706a0]
movzx eax, cl
xor edx, dword [eax*4 + 0x100706a0]
mov eax, ecx
shr eax, 8
movzx eax, al
shr ecx, 0x10
add edx, dword [eax*4 + 0x10070aa0]
movzx eax, bl
mov dword [esp + 0x34], edx
mov ebx, dword [eax*4 + 0x10070aa0]
xor ebx, dword [esp + 0x18]
movzx eax, cl
mov ecx, edx
rol ecx, 8
add ebx, dword [eax*4 + 0x100706a0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x100706a0]
mov eax, edx
shr eax, 8
movzx eax, al
add ebx, dword [eax*4 + 0x10070aa0]
movzx eax, cl
add ecx, ebx
mov dword [esp + 0x18], ebx
mov edx, dword [eax*4 + 0x10070aa0]
mov eax, ebx
shr eax, 0x10
xor edx, esi
movzx eax, al
mov esi, dword [eax*4 + 0x100706a0]
mov eax, dword [esp + 0x34]
add esi, edx
shr eax, 0x10
mov edx, ebx
movzx eax, al
rol edx, 8
mov dword [esp + 0x24], edx
mov ebx, dword [eax*4 + 0x100706a0]
mov eax, dword [esp + 0x18]
add ebx, edi
movzx eax, al
xor ebx, dword [eax*4 + 0x100706a0]
mov eax, dword [esp + 0x18]
shr eax, 8
movzx eax, al
add ebx, dword [eax*4 + 0x10070aa0]
movzx eax, dl
mov edx, dword [eax*4 + 0x10070aa0]
mov eax, ebx
shr eax, 0x10
xor edx, ecx
movzx eax, al
mov ecx, ebx
rol ecx, 8
mov dword [esp + 0x14], ecx
add edx, dword [eax*4 + 0x100706a0]
movzx eax, bl
shr ebx, 8
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0x20], edx
mov eax, dword [eax*4 + 0x100706a0]
xor eax, esi
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x18]
movzx eax, bl
mov ebx, dword [esp + 0x1c]
add esi, dword [eax*4 + 0x10070aa0]
movzx eax, cl
mov eax, dword [eax*4 + 0x10070aa0]
xor eax, dword [esp + 0x24]
add ebx, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ebx
nop dword [eax]
mov ecx, dword [ebx + 4]
lea edi, [esp + 0x14]
mov ebp, dword [ebx]
mov eax, esi
rol eax, 0xd
add ebp, esi
imul ecx, eax
lea esi, [esp + 0x10]
rol ecx, 0xa
cmp edx, 8
mov ebx, ecx
mov dword [esp + 0x18], ecx
cmovae esi, edi
movzx ecx, cl
mov edi, dword [esp + 0x18]
mov edx, ebp
and edx, 0x1ff
ror ebx, 5
and ecx, 0x1f
mov edx, dword [edx*4 + 0x100706a0]
xor edx, ebx
xor edx, edi
rol edx, cl
lea ecx, [esp + 0x14]
add dword [esi], edx
lea esi, [esp + 0x10]
mov edx, dword [esp + 0x20]
cmp edx, 8
cmovae ecx, esi
inc edx
mov dword [esp + 0x20], edx
xor dword [ecx], edi
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x18]
movzx ecx, bl
mov ebx, dword [esp + 0x24]
and ecx, 0x1f
rol ebp, cl
add ebx, 8
mov ecx, dword [esp + 0x14]
add edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
cmp edx, 0x10
jb 0x1002db90
mov edx, esi
shr esi, 0x18
mov ecx, edx
mov ebx, edx
ror ecx, 8
mov dword [esp + 0x18], ecx
movzx ebp, cl
movzx ecx, dl
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x34]
sub ebp, dword [esi*4 + 0x100706a0]
mov ecx, dword [ecx*4 + 0x10070aa0]
mov esi, ebp
xor ecx, edi
mov dword [esp + 0x34], ebp
mov edx, ecx
mov ebp, dword [esp + 0x24]
mov edi, ecx
ror edx, 8
mov dword [esp + 0x10], edx
mov edx, ecx
movzx ecx, cl
shr edx, 0x10
shr ebx, 0x10
shr edi, 0x18
xor esi, dword [ecx*4 + 0x10070aa0]
mov ecx, esi
mov dword [esp + 0x34], esi
sub ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
movzx ecx, dl
mov edx, dword [esp + 0x18]
sub edx, dword [ecx*4 + 0x10070aa0]
mov ecx, dword [esp + 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x100706a0]
mov ecx, dword [esp + 0x34]
shr ecx, 0x18
sub edx, dword [ecx*4 + 0x100706a0]
mov ecx, dword [esp + 0x34]
ror ecx, 8
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x34]
shr ecx, 0x10
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x14]
movzx ecx, dl
mov dword [esp + 0x28], ecx
movzx ecx, bl
sub eax, dword [ecx*4 + 0x10070aa0]
xor eax, dword [ebp*4 + 0x100706a0]
sub eax, dword [edi*4 + 0x100706a0]
mov ecx, dword [esp + 0x34]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10070aa0]
sub eax, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
mov ebx, eax
ror ecx, 8
movzx eax, al
mov dword [esp + 0x34], ecx
mov ebp, dword [esp + 0x34]
movzx edi, cl
mov ecx, dword [eax*4 + 0x10070aa0]
xor ecx, dword [esp + 0x18]
mov eax, ecx
shr edx, 0x18
ror eax, 8
mov esi, ecx
mov dword [esp + 0x24], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ebx, 0x10
shr esi, 0x18
mov dword [esp + 0x2c], edi
sub ebp, dword [eax*4 + 0x10070aa0]
mov eax, dword [esp + 0x24]
movzx eax, al
xor ebp, dword [eax*4 + 0x100706a0]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
movzx eax, al
sub edi, dword [eax*4 + 0x10070aa0]
mov eax, dword [esp + 0x28]
xor edi, dword [eax*4 + 0x100706a0]
mov eax, edi
mov dword [esp + 0x10], edi
sub eax, dword [edx*4 + 0x100706a0]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x2c]
movzx eax, cl
mov ecx, dword [esp + 0x10]
xor ecx, dword [eax*4 + 0x10070aa0]
mov eax, ecx
mov dword [esp + 0x10], ecx
shr eax, 0x18
sub ebp, dword [eax*4 + 0x100706a0]
mov eax, ecx
ror eax, 8
mov dword [esp + 0x18], eax
movzx edx, al
movzx eax, bl
mov ebx, dword [esp + 0x14]
shr ecx, 0x10
sub ebx, dword [eax*4 + 0x10070aa0]
xor ebx, dword [edi*4 + 0x100706a0]
sub ebx, dword [esi*4 + 0x100706a0]
mov eax, dword [esp + 0x10]
movzx eax, al
xor ebx, dword [eax*4 + 0x10070aa0]
sub ebx, dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x24]
ror eax, 8
mov dword [esp + 0x34], eax
movzx eax, cl
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
sub ebx, dword [eax*4 + 0x10070aa0]
mov eax, ecx
xor ebx, dword [edx*4 + 0x100706a0]
mov edx, dword [esp + 0x18]
shr eax, 0x18
sub ebx, dword [eax*4 + 0x100706a0]
mov eax, ecx
shr eax, 0x10
movzx eax, al
sub edx, dword [eax*4 + 0x10070aa0]
mov eax, dword [esp + 0x34]
movzx eax, al
xor edx, dword [eax*4 + 0x100706a0]
movzx eax, cl
mov ecx, dword [eax*4 + 0x10070aa0]
xor ecx, ebp
sub ecx, ebx
mov eax, ecx
shr eax, 0x18
sub edx, dword [eax*4 + 0x100706a0]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x18], edx
mov edx, ecx
ror edx, 8
sub esi, dword [eax*4 + 0x10070aa0]
movzx eax, dl
xor esi, dword [eax*4 + 0x100706a0]
movzx eax, cl
mov dword [esp + 0x34], esi
mov edi, dword [eax*4 + 0x10070aa0]
mov eax, dword [esp + 0x1c]
xor edi, ebx
mov ebx, esi
mov esi, dword [esp + 0x18]
sub edx, dword [eax + 0x9c]
sub ebx, dword [eax + 0x98]
sub edi, dword [eax + 0x90]
mov dword [esp + 0x34], edx
sub esi, dword [eax + 0x94]
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1002decd
mov eax, dword [eax]
xor edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x1002ded7
mov dword [ecx], edi
add ecx, 4
lea edx, [eax + 4]
test eax, eax
pop edi
cmove edx, eax
test edx, edx
je 0x1002dee9
xor esi, dword [edx]
test ecx, ecx
je 0x1002deef
mov dword [ecx], esi
lea esi, [ecx + 4]
test edx, edx
lea ecx, [edx + 4]
cmove ecx, edx
test ecx, ecx
je 0x1002df00
xor ebx, dword [ecx]
test esi, esi
je 0x1002df06
mov dword [esi], ebx
mov eax, dword [esp + 0x30]
lea edx, [ecx + 4]
add esi, 4
test ecx, ecx
cmove edx, ecx
mov ecx, eax
test edx, edx
je 0x1002df1f
mov eax, dword [edx]
xor eax, ecx
test esi, esi
je 0x1002df25
mov dword [esi], eax
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc