Function at 0x4478b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x288
mov ebx, dword [0x45d62c]
mov ebp, dword [0x45d628]
mov eax, ebp
or eax, ebx
jne 0x44797e
mov dword [esp + 0x58], 0x3faa39aa
mov dword [esp + 0x5c], 0x238e3d98
mov dword [esp + 0x60], 0x27f4218c
mov dword [esp + 0x64], 0x2b862580
mov dword [esp + 0x68], 0x2f2e2984
mov dword [esp + 0x6c], 0
mov dword [esp + 0x158], 0
mov eax, dword [esp + 0x158]
cmp eax, 0x17
ja 0x44795a
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x158]
movzx eax, byte [esp + eax + 0x58]
push dword [esp + 0x158]
push eax
call fcn.004482f0
add esp, 8
mov ecx, dword [esp + 0x158]
mov byte [esp + ecx + 0x58], al
inc dword [esp + 0x158]
mov eax, dword [esp + 0x158]
cmp eax, 0x18
jb 0x447920
lea eax, [esp + 0x58]
push eax
call fcn.00447510
add esp, 4
mov ebp, eax
mov dword [0x45d62c], edx
mov dword [0x45d628], eax
or eax, edx
je 0x447a58
mov ebx, edx
lea eax, [esp + 0x248]
push 0x40
push eax
push ebx
push ebp
call fcn.00447320
add esp, 0x10
test eax, eax
js 0x447a58
mov eax, dword [esp + 0x284]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x158]
push 0xf0
push edx
push ecx
push eax
call fcn.00447320
add esp, 0x10
xor edi, edi
test eax, eax
js 0x447a5a
cmp dword [esp + 0x1cc], 0
je 0x447a5a
mov eax, dword [esp + 0x1c8]
mov esi, 0
test eax, eax
je 0x447a5c
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x30]
push 0x28
push edx
push ecx
push eax
call fcn.00447320
add esp, 0x10
test eax, eax
js 0x447a58
mov ecx, dword [esp + 0x44]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x447a21
mov eax, esi
push eax
call fcn.0040ca00
add esp, 4
mov edx, dword [esp + 0x4c]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
call fcn.00447320
add esp, 0x10
test eax, eax
js 0x447a6b
mov eax, dword [esp + 0x44]
test eax, eax
jns 0x447a74
mov eax, 0xffffffff
jmp 0x447a76
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x288
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x447cb6
add eax, eax
push eax
call fcn.0040ca00
add esp, 4
mov esi, dword [esp + 0x48]
mov ecx, esi
and ecx, 2
mov edx, esi
or esi, 2
imul esi, ecx
xor ecx, 2
and edx, 0xfffffffd
imul edx, ecx
add esi, edx
mov ecx, dword [esp + 0x54]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push edx
push ecx
call fcn.00447320
add esp, 0x10
test eax, eax
js 0x447ca6
mov ecx, dword [esp + 0x48]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x447ad8
mov eax, esi
push eax
call fcn.0040ca00
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x50]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.00447320
add esp, 0x10
test eax, eax
mov dword [esp + 8], edi
js 0x447c94
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
cmp esi, eax
jb 0x447b14
mov esi, eax
test esi, esi
je 0x447c94
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
jmp 0x447b57
mov edx, 0xfb520141
cmp edx, dword [esp + 0x29c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
je 0x447cc7
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
je 0x447c94
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 + 0x5c]
push edx
push ecx
push eax
call fcn.00447320
add esp, 0x10
test eax, eax
jns 0x447b84
cmp eax, 0x8000000d
jne 0x447b4a
mov ebx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
mov esi, eax
cmp byte [esp + ebx + 0x59], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0x447b90
mov dword [esp + 0x18], 0xe2e6e449
mov dword [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x447be6
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x18]
push dword [esp]
push eax
call fcn.00448330
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x447bc0
test ebx, ebx
je 0x447b2c
mov ecx, dword [esp + 0x18]
mov eax, ecx
not eax
mov edx, 0xfb520141
lea ebp, [esp + 0x58]
cmp ebx, 1
je 0x447c68
and esi, 0xfffffffe
mov dword [esp + 4], eax
nop
nop
nop
nop
nop
mov dword [esp + 0x2c], ebp
movsx edi, byte [ebp]
xor edi, edx
mov edx, edi
not edx
and edx, ecx
mov eax, edi
and eax, dword [esp + 4]
mov ebp, dword [esp + 0x2c]
imul eax, edx
mov edx, edi
and edx, ecx
or edi, ecx
imul edi, edx
add edi, eax
movsx edx, byte [ebp + 1]
add ebp, 2
xor edx, edi
mov eax, edx
not eax
and eax, ecx
mov edi, edx
and edi, dword [esp + 4]
imul edi, eax
mov eax, edx
and eax, ecx
or edx, ecx
imul edx, eax
add edx, edi
add esi, 0xfffffffe
jne 0x447c10
mov edi, dword [esp + 8]
mov eax, dword [esp + 4]
test bl, 1
je 0x447b31
mov esi, eax
movsx eax, byte [ebp]
xor edx, eax
mov eax, edx
not eax
and eax, ecx
and esi, edx
imul esi, eax
mov eax, edx
and eax, ecx
or edx, ecx
imul edx, eax
add edx, esi
jmp 0x447b31
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0040ca10
add esp, 4
jmp 0x447caa
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.0040ca10
add esp, 4
push dword [esp + 0x10]
call fcn.0040ca10
add esp, 4
jmp 0x447a5c
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 0x447c98