Function at 0x7c99e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x28a8
call fcn.00aa20e0
mov eax, dword [esp + 0x28a8]
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x28c0]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28c4]
shl eax, 2
mov dword [esp], eax
call fcn.0090e350
mov edi, dword [esp + 0x28c4]
test edi, edi
mov ebx, eax
mov dword [esp + 0x28a8], eax
jle 0x7c9a4c
xor ecx, ecx
mov eax, dword [esi + ecx*4]
mov edx, eax
add eax, eax
sar edx, 0x1f
xor edx, eax
mov dword [ebx + ecx*4], edx
add ecx, 1
cmp ecx, dword [esp + 0x28c4]
jne 0x7c9a31
movzx ecx, byte [esp + 0x14]
mov ebp, 1
shl ebp, cl
test ebp, ebp
jle 0x7c9aad
mov eax, dword [esp + 0x28c8]
lea edx, [ebx + eax*4]
mov eax, dword [esp + 0x28c4]
sar eax, cl
lea edi, [eax*4]
mov eax, dword [esp + 0x14]
lea esi, [ebx + edi]
mov ebx, 1
shl eax, 0xa
lea ecx, [esp + eax + 0x44]
cmp esi, edx
mov dword [ecx + ebx*4 - 4], 0
jbe 0x7c9aa2
mov eax, dword [edx]
add edx, 4
add dword [ecx + ebx*4 - 4], eax
cmp esi, edx
ja 0x7c9a95
cmp ebx, ebp
je 0x7c9aad
add esi, edi
add ebx, 1
jmp 0x7c9a89
mov edi, dword [esp + 0x14]
sub edi, 1
cmp dword [esp + 0x18], edi
jg 0x7c9b0b
mov eax, dword [esp + 0x14]
shl eax, 0xa
lea ebp, [eax - 0x400]
lea ebx, [esp + ebp + 0x44]
mov esi, 1
mov ecx, edi
shl esi, cl
test esi, esi
jle 0x7c9af6
lea eax, [esp + 0x444]
xor edx, edx
lea ecx, [ebp + eax]
mov eax, dword [ecx + edx*8]
add eax, dword [ecx + edx*8 + 4]
mov dword [ebx + edx*4], eax
add edx, 1
cmp edx, esi
jne 0x7c9ae5
sub edi, 1
sub ebx, 0x400
sub ebp, 0x400
cmp dword [esp + 0x18], edi
jle 0x7c9acb
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + edx*4 + 0x2884], 0xffffffff
cmp edx, ecx
mov dword [esp + 0x24], edx
jg 0x7c9e0e
mov eax, edx
shl eax, 0xa
lea eax, [esp + eax + 0x44]
mov dword [esp + 0x34], eax
mov dword [esp + 0x20], edx
movzx ecx, byte [esp + 0x20]
mov dword [esp + 0x2c], 1
shl dword [esp + 0x2c], cl
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x28], 0
test ebx, ebx
jle 0x7c9da2
mov eax, dword [esp + 0x28c4]
mov dword [esp + 0x30], 0
sar eax, cl
mov edi, eax
sub edi, dword [esp + 0x28c8]
mov dword [esp + 0x38], eax
jmp 0x7c9d8e
mov edx, dword [esp + 0x30]
mov eax, edi
mov ecx, dword [esp + 0x34]
sar eax, 1
mov esi, dword [ecx + edx*4]
lea edx, [edi + edi]
xor ecx, ecx
lea ebp, [edx + edi]
sub esi, eax
lea eax, [esi + edi]
mov dword [esp + 0x2848], eax
mov eax, esi
shr eax, 1
add eax, edx
cmp eax, dword [esp + 0x2848]
mov dword [esp + 0x284c], eax
mov eax, esi
setb cl
shr eax, 2
add eax, ebp
mov dword [esp + 0x2850], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9bd9
mov ecx, 2
mov eax, esi
shr eax, 3
lea edx, [edi*4]
add eax, edx
mov dword [esp + 0x2854], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9bfc
mov ecx, 3
mov eax, esi
add edx, edi
shr eax, 4
add eax, edx
mov dword [esp + 0x2858], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
mov dword [esp + 0x10], edx
jae 0x7c9c1e
mov ecx, 4
mov eax, esi
shr eax, 5
lea eax, [eax + ebp*2]
mov dword [esp + 0x285c], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9c3b
mov ecx, 5
lea ebx, [edi*8]
mov eax, esi
mov edx, ebx
shr eax, 6
sub edx, edi
add eax, edx
mov dword [esp + 0x2860], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9c62
mov ecx, 6
mov eax, esi
shr eax, 7
add eax, ebx
mov dword [esp + 0x2864], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9c7e
mov ecx, 7
mov eax, esi
shr eax, 8
lea edx, [ebx + edi]
add eax, edx
mov dword [esp + 0x2868], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9c9d
mov ecx, 8
mov edx, dword [esp + 0x10]
mov eax, esi
shr eax, 9
add edx, edx
add eax, edx
mov dword [esp + 0x286c], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9cbf
mov ecx, 9
mov eax, esi
add edx, edi
shr eax, 0xa
add eax, edx
mov dword [esp + 0x2870], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9cdd
mov ecx, 0xa
mov eax, esi
shr eax, 0xb
lea edx, [ebp*4]
add eax, edx
mov dword [esp + 0x2874], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9d00
mov ecx, 0xb
mov eax, esi
add edx, edi
shr eax, 0xc
add eax, edx
mov dword [esp + 0x2878], eax
lea ebp, [edi + edi]
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9d21
mov ecx, 0xc
mov ebx, edi
mov eax, esi
shl ebx, 4
mov edx, ebx
shr eax, 0xd
sub edx, ebp
add eax, edx
mov dword [esp + 0x287c], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9d46
mov ecx, 0xd
mov eax, esi
sub ebx, edi
shr eax, 0xe
add eax, ebx
mov dword [esp + 0x2880], eax
cmp eax, dword [esp + ecx*4 + 0x2848]
jae 0x7c9d64
mov ecx, 0xe
mov eax, dword [esp + 0x30]
mov edx, esi
shr edx, cl
add dword [esp + 0x30], 1
mov dword [esp + eax*4 + 0x2448], ecx
lea eax, [ecx + 1]
imul eax, edi
add edx, eax
add dword [esp + 0x28], edx
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x30], edx
je 0x7c9da2
cmp dword [esp + 0x30], 1
jne 0x7c9b83
mov edi, dword [esp + 0x38]
jmp 0x7c9b83
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + ecx*4 + 0x2884], eax
cmp eax, dword [esp + edx*4 + 0x2884]
ja 0x7c9df3
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2444], ecx
lea ecx, [esp + 0x2444]
mov dword [esp + 8], 0x404
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
add dword [esp + 0x20], 1
mov ecx, dword [esp + 0x20]
add dword [esp + 0x34], 0x400
cmp dword [esp + 0x14], ecx
jge 0x7c9b3b
lea eax, [esp + 0x28a8]
mov dword [esp], eax
call fcn.0090e390
mov edx, dword [esp + 0x24]
mov eax, dword [esp + edx*4 + 0x2884]
add esp, 0x28ac
pop ebx
pop esi
pop edi
pop ebp
ret