Function at 0x446580
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x280
mov ebx, dword [0x45bbd4]
mov ebp, dword [0x45bbd0]
mov eax, ebp
or eax, ebx
jne 0x44664e
mov dword [esp + 0x50], 0xf76a099a
mov dword [esp + 0x54], 0xf366f558
mov dword [esp + 0x58], 0xff2cf164
mov dword [esp + 0x5c], 0xfb6efd50
mov dword [esp + 0x60], 0xe7e6f96c
mov dword [esp + 0x64], 0
mov dword [esp + 0x150], 0
mov eax, dword [esp + 0x150]
cmp eax, 0x17
ja 0x44662a
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x150]
movzx eax, byte [esp + eax + 0x50]
push dword [esp + 0x150]
push eax
call fcn.004470c0
add esp, 8
mov ecx, dword [esp + 0x150]
mov byte [esp + ecx + 0x50], al
inc dword [esp + 0x150]
mov eax, dword [esp + 0x150]
cmp eax, 0x18
jb 0x4465f0
lea eax, [esp + 0x50]
push eax
call fcn.004461d0
add esp, 4
mov ebp, eax
mov dword [0x45bbd4], edx
mov dword [0x45bbd0], eax
or eax, edx
je 0x446728
mov ebx, edx
lea eax, [esp + 0x240]
push 0x40
push eax
push ebx
push ebp
call fcn.00445f40
add esp, 0x10
test eax, eax
js 0x446728
mov eax, dword [esp + 0x27c]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x150]
push 0xf0
push edx
push ecx
push eax
call fcn.00445f40
add esp, 0x10
xor edi, edi
test eax, eax
js 0x44672a
cmp dword [esp + 0x1c4], 0
je 0x44672a
mov eax, dword [esp + 0x1c0]
mov esi, 0
test eax, eax
je 0x44672c
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x28]
push 0x28
push edx
push ecx
push eax
call fcn.00445f40
add esp, 0x10
test eax, eax
js 0x446728
mov ecx, dword [esp + 0x3c]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x4466f1
mov eax, esi
push eax
call fcn.0040c6f0
add esp, 4
mov edx, dword [esp + 0x44]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push ecx
push edx
call fcn.00445f40
add esp, 0x10
test eax, eax
js 0x44673b
mov eax, dword [esp + 0x3c]
test eax, eax
jns 0x446744
mov eax, 0xffffffff
jmp 0x446746
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x280
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x446977
add eax, eax
push eax
call fcn.0040c6f0
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 + 8], eax
push eax
push edx
push ecx
call fcn.00445f40
add esp, 0x10
test eax, eax
js 0x446967
mov ecx, dword [esp + 0x40]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x446792
mov eax, esi
push eax
call fcn.0040c6f0
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x48]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.00445f40
add esp, 0x10
test eax, eax
mov dword [esp + 8], edi
js 0x446955
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jb 0x4467ce
mov esi, eax
test esi, esi
je 0x446955
xor eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
jmp 0x446811
mov edx, 0xb14a5e2
cmp edx, dword [esp + 0x294]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
je 0x446988
mov eax, dword [esp + 0x10]
inc eax
cmp eax, esi
je 0x446955
mov dword [esp + 0x10], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00445f40
add esp, 0x10
test eax, eax
jns 0x44683e
cmp eax, 0x8000000d
jne 0x446804
mov ebx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, eax
cmp byte [esp + ebx + 0x51], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0x446850
mov dword [esp + 0x14], 0x9e9e980f
mov word [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x4468a6
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x14]
push dword [esp]
push eax
call fcn.00447150
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x446880
test ebx, ebx
je 0x4467e6
mov eax, dword [esp + 0x14]
lea edx, [ebx - 1]
mov ebp, 0xb14a5e2
lea ecx, [esp + 0x50]
cmp edx, 7
jb 0x44691f
mov edx, esi
and edx, 0xfffffff8
nop
nop
nop
nop
nop
nop
nop
nop
movsx edi, byte [ecx]
xor edi, ebp
imul edi, eax
movsx ebp, byte [ecx + 1]
xor ebp, edi
imul ebp, eax
movsx edi, byte [ecx + 2]
xor edi, ebp
imul edi, eax
movsx ebp, byte [ecx + 3]
xor ebp, edi
imul ebp, eax
movsx edi, byte [ecx + 4]
xor edi, ebp
imul edi, eax
movsx ebp, byte [ecx + 5]
xor ebp, edi
imul ebp, eax
movsx edi, byte [ecx + 6]
xor edi, ebp
imul edi, eax
movsx ebp, byte [ecx + 7]
xor ebp, edi
imul ebp, eax
add ecx, 8
add edx, 0xfffffff8
jne 0x4468d0
mov edx, ebp
test bl, 7
mov edi, dword [esp + 8]
je 0x4467eb
and esi, 7
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx edx, byte [ecx + ebx]
xor edx, ebp
imul edx, eax
inc ebx
mov ebp, edx
cmp esi, ebx
jne 0x446940
jmp 0x4467eb
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0040c700
add esp, 4
jmp 0x44696b
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.0040c700
add esp, 4
push dword [esp + 0xc]
call fcn.0040c700
add esp, 4
jmp 0x44672c
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0xc]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x446959