Function at 0x40c7f2
Capabilities:
Encode data using xor

Disassembly:
pushfd
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
lea edi, [ebp + 4]
mov esi, dword [edi + 4]
sub edi, 4
push esi
push esi
mov dword [ebp - 0x10], esi
mov eax, 0x42814b96
mov eax, 0xfffffff
mov ebx, dword [0x402600]
mov edx, dword [esi]
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
pop ecx
pop ecx
mov ecx, dword [esi + 4]
and ecx, eax
and edx, eax
mov eax, 0x400000
add ecx, 0x400000
sub eax, ebx
mov dword [ebp - 0x14], eax
jne 0x40c8a0
and dword [ebp - 4], 0
test edx, edx
jbe 0x40ca9d
mov eax, dword [ebp - 4]
movzx eax, byte [eax + ecx]
add eax, 0x3abb15bf
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x3abb15bf
ror eax, 6
imul eax, eax, 0x3abb15bf
ror eax, 6
mov ebx, eax
imul eax, eax, 0x4166
rol eax, 0xf
ror ebx, 0xf
xor eax, ebx
add dword [ebp - 0x20], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], edx
mov dword [ebp - 0x1c], eax
jb 0x40c859
jmp 0x40ca9d
lea eax, [ecx + edx]
mov esi, dword [0x40003c]
mov dword [ebp - 0x18], eax
mov eax, ecx
sub eax, 0x400000
mov ebx, eax
and ebx, 0xfffff000
mov dword [ebp - 4], ebx
mov ebx, eax
sub ebx, dword [ebp - 4]
add eax, edx
mov edx, eax
and edx, 0xfffff000
sub eax, edx
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x4000a0]
mov esi, dword [esi + 0x4000a4]
add eax, 0x400000
add esi, eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], esi
jmp 0x40c8f7
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jae 0x40c8fb
add eax, dword [eax + 4]
cmp eax, esi
jne 0x40c8ed
and dword [ebp - 0x24], 0
cmp eax, esi
je 0x40c92e
mov edx, dword [ebp - 4]
cmp dword [eax], edx
jne 0x40c92e
mov edx, dword [eax + 4]
sub edx, 8
shr edx, 1
je 0x40c92e
mov esi, dword [ebp - 0x24]
movzx esi, word [eax + esi*2 + 8]
and esi, 0xfff
cmp esi, ebx
jae 0x40c92e
inc dword [ebp - 0x24]
cmp dword [ebp - 0x24], edx
jne 0x40c914
mov ebx, 0x3abb15bf
mov esi, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
je 0x40ca54
mov edx, dword [ebp - 0x34]
cmp dword [eax], edx
ja 0x40ca54
mov edx, dword [eax + 4]
add edx, 0xfffffff8
shr edx, 1
cmp esi, edx
jne 0x40c971
add eax, dword [eax + 4]
cmp eax, dword [ebp - 0x2c]
je 0x40ca54
mov edx, dword [ebp - 0x34]
cmp dword [eax], edx
ja 0x40ca54
xor esi, esi
jmp 0x40c94a
mov edx, dword [ebp - 0x34]
cmp dword [eax], edx
jne 0x40c98c
movzx edx, word [eax + esi*2 + 8]
and edx, 0xfff
cmp edx, dword [ebp - 0x30]
jae 0x40ca54
mov edx, esi
inc esi
test word [eax + edx*2 + 8], 0xf000
mov dword [ebp - 0x24], esi
je 0x40c936
mov esi, dword [eax]
movzx edx, word [eax + edx*2 + 8]
and edx, 0xfff
lea esi, [edx + esi + 0x400000]
xor edx, edx
mov dword [ebp - 4], esi
sub dword [ebp - 4], ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edx
je 0x40ca01
movzx edx, byte [edx + ecx]
add edx, ebx
add dword [ebp - 0x20], edx
add edx, dword [ebp - 0x1c]
imul edx, edx, 0x3abb15bf
ror edx, 6
imul edx, edx, 0x3abb15bf
ror edx, 6
mov esi, edx
imul esi, esi, 0x4166
rol esi, 0xf
ror edx, 0xf
xor esi, edx
mov edx, esi
add dword [ebp - 0x20], edx
mov edx, dword [ebp - 8]
inc edx
cmp edx, dword [ebp - 4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 8], edx
jb 0x40c9bf
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 8], ecx
movzx ecx, byte [ebp + esi - 8]
add ecx, ebx
add dword [ebp - 0x20], ecx
add ecx, dword [ebp - 0x1c]
imul ecx, ecx, 0x3abb15bf
ror ecx, 6
imul ecx, ecx, 0x3abb15bf
ror ecx, 6
mov edx, ecx
imul ecx, ecx, 0x4166
rol ecx, 0xf
ror edx, 0xf
xor ecx, edx
add dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
inc esi
cmp esi, 4
jb 0x40ca0e
mov ecx, dword [ebp - 0xc]
add ecx, 4
jmp 0x40c933
xor esi, esi
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x18], eax
je 0x40ca9a
movzx eax, byte [esi + ecx]
add eax, ebx
add dword [ebp - 0x20], eax
add eax, dword [ebp - 0x1c]
imul eax, eax, 0x3abb15bf
ror eax, 6
imul eax, eax, 0x3abb15bf
ror eax, 6
mov edx, eax
imul eax, eax, 0x4166
rol eax, 0xf
ror edx, 0xf
xor eax, edx
add dword [ebp - 0x20], eax
inc esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
jb 0x40ca60
mov esi, dword [ebp - 0x10]
add dword [edi + 8], 0x10
mov ecx, dword [esi + 0xc]
and ecx, 0xfffffff
mov eax, dword [ecx + 0x400000]
xor eax, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x400004]
xor ecx, dword [ebp - 0x1c]
or eax, ecx
je 0x40cb72
call fcn.004fdc7b
lea ecx, [edi + 0xc]
mov edx, 0xfffff000
and eax, edx
mov dword [ebp - 0x18], eax
and ecx, 0xfffffffc
lea eax, [ecx + 0xfff]
and eax, edx
mov dword [ebp - 0x10], eax
mov dword [edi + 8], 0x4b3c5b
xor eax, eax
mov edx, 0xffff
mov ebx, dword [0x51b214]
imul ebx, ebx, 0x343fd
add ebx, 0x269ec3
mov dword [0x51b214], ebx
shr ebx, 0x10
shl eax, 0x10
or eax, ebx
shr edx, 0x10
jne 0x40caf2
mov ebx, 0xffff
xor edx, edx
div ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
inc edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x18], 0
jmp 0x40cb3b
mov eax, dword [ebp - 0x18]
mov dword [ecx], eax
add ecx, 4
cmp ecx, dword [ebp - 0x10]
jb 0x40cb33
mov dword [edi + 8], 0x4b3c5b
mov eax, dword [ebp - 0x40]
mov esi, dword [esi + 8]
mov ecx, eax
and esi, 0xfffffff
mov dword [ebp - 0x3c], eax
shl ecx, 0x10
add esi, 0x400000
xor ecx, dword [esi]
xor ecx, dword [0x51b374]
xor ecx, eax
and dword [ebp - 0x40], 0
mov dword [ebp - 0x38], ecx
mov eax, 0x7d4b105c
mov ebx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov esp, ebp
pop ebp
popfd
ret