Function at 0x4415f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x298
mov ebx, dword [0x457154]
mov ebp, dword [0x457150]
mov eax, ebp
or eax, ebx
jne 0x4416fc
mov dword [esp + 0x90], 0x9860b7e
mov dword [esp + 0x94], 0x5720774
mov dword [esp + 0x98], 0x1300370
mov dword [esp + 0x9c], 0x1d6a1f7c
mov dword [esp + 0xa0], 0x191a1b68
mov word [esp + 0xa4], 0
mov byte [esp + 0xa6], 0
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x50]
cmp eax, 0x16
ja 0x4416d5
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
movzx edx, byte [esp + ecx + 0x90]
mov ecx, eax
xor ecx, 0x13f04403
and eax, 0x13f04403
lea ecx, [ecx + eax*2]
lea eax, [ecx + edx]
and ecx, edx
mov edx, eax
xor edx, ecx
mov esi, ecx
not esi
and eax, esi
add eax, eax
sub eax, edx
mov edx, eax
not edx
and edx, ecx
and eax, esi
sub eax, edx
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x198]
add al, 0xf1
mov ecx, dword [esp + 0x50]
mov byte [esp + ecx + 0x90], al
inc dword [esp + 0x50]
mov eax, dword [esp + 0x50]
cmp eax, 0x17
jb 0x441670
lea eax, [esp + 0x90]
push eax
call fcn.00441410
add esp, 4
mov ebp, eax
mov dword [0x457154], edx
mov dword [0x457150], eax
or eax, edx
je 0x4417db
mov ebx, edx
lea eax, [esp + 0x50]
push 0x40
push eax
push ebx
push ebp
call fcn.004411a0
add esp, 0x10
test eax, eax
js 0x4417db
mov eax, dword [esp + 0x8c]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
lea edx, [esp + 0x90]
push 0x108
push edx
push ecx
push eax
call fcn.004411a0
add esp, 0x10
xor edi, edi
test eax, eax
js 0x4417dd
cmp dword [esp + 0x11c], 0
je 0x4417dd
mov eax, dword [esp + 0x118]
mov esi, 0
test eax, eax
je 0x4417df
mov edx, ebp
and edx, eax
mov ecx, edx
shr ecx, 0x1f
add edx, edx
xor eax, ebp
add eax, edx
adc ecx, ebx
lea edx, [esp + 0x28]
push 0x28
push edx
push ecx
push eax
call fcn.004411a0
add esp, 0x10
test eax, eax
js 0x4417db
mov ecx, dword [esp + 0x3c]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x4417a4
mov eax, esi
push eax
call fcn.0040c4b0
add esp, 4
mov edx, dword [esp + 0x44]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
call fcn.004411a0
add esp, 0x10
test eax, eax
js 0x4417ee
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0x4417f7
mov eax, 0xffffffff
jmp 0x4417f9
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x298
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x441a57
add eax, eax
push eax
call fcn.0040c4b0
add esp, 4
mov esi, dword [esp + 0x40]
add esi, esi
mov ecx, dword [esp + 0x4c]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push edx
push ecx
call fcn.004411a0
add esp, 0x10
test eax, eax
js 0x441a47
mov esi, dword [esp + 0x40]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x441843
lea eax, [esi*4]
push eax
call fcn.0040c4b0
add esp, 4
mov edi, eax
mov eax, esi
and eax, 4
mov ecx, esi
or esi, 4
imul esi, eax
xor eax, 4
and ecx, 0xfffffffb
imul ecx, eax
add esi, ecx
mov eax, dword [esp + 0x48]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.004411a0
add esp, 0x10
test eax, eax
mov dword [esp + 8], edi
js 0x441a35
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jb 0x441897
mov esi, eax
test esi, esi
je 0x441a35
xor eax, eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x4418da
mov ebx, 0xb14a5e2
cmp ebx, dword [esp + 0x2ac]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
je 0x441a68
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
je 0x441a35
mov dword [esp + 0x14], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x19c]
push edx
push ecx
push eax
call fcn.004411a0
add esp, 0x10
cmp eax, 0xbfffffff
ja 0x4418cd
mov ecx, 0xffffffff
xor edx, edx
nop
nop
nop
mov eax, edx
cmp byte [esp + ecx + 0x199], 0
lea ecx, [ecx + 1]
lea edx, [edx + 1]
jne 0x441910
mov dword [esp + 4], 0x161618b7
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 3
ja 0x441982
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 4]
mov ebx, edx
xor ebx, 0x8fb93446
and edx, 0xfb93446
lea edx, [ebx + edx*2]
lea ebx, [edx + esi]
and edx, esi
add edx, edx
sub ebx, edx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x24]
add dl, 0xa2
mov esi, dword [esp]
mov byte [esp + esi + 4], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 4
jb 0x441940
test ecx, ecx
je 0x4418af
mov edx, dword [esp + 4]
lea ebx, [ecx - 1]
mov ebp, 0xb14a5e2
lea esi, [esp + 0x198]
cmp ebx, 7
jb 0x441a03
mov ebx, eax
and ebx, 0xfffffff8
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx edi, byte [esi]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 1]
xor ebp, edi
imul ebp, edx
movsx edi, byte [esi + 2]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 3]
xor ebp, edi
imul ebp, edx
movsx edi, byte [esi + 4]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 5]
xor ebp, edi
imul ebp, edx
movsx edi, byte [esi + 6]
xor edi, ebp
imul edi, edx
movsx ebp, byte [esi + 7]
add esi, 8
xor ebp, edi
imul ebp, edx
add ebx, 0xfffffff8
jne 0x4419b0
mov edi, dword [esp + 8]
mov ebx, ebp
test cl, 7
je 0x4418b4
and eax, 7
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ebx, byte [esi + ecx]
xor ebx, ebp
imul ebx, edx
inc ecx
mov ebp, ebx
cmp eax, ecx
jne 0x441a20
jmp 0x4418b4
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0040c4c0
add esp, 4
jmp 0x441a4b
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.0040c4c0
add esp, 4
push dword [esp + 0x10]
call fcn.0040c4c0
add esp, 4
jmp 0x4417df
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x10]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x441a39