Function at 0x446ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x27c
mov ebx, dword [0x45d72c]
mov ebp, dword [0x45d728]
mov eax, ebp
or eax, ebx
jne 0x446f6e
mov dword [esp + 0x4c], 0x8f3a893a
mov dword [esp + 0x50], 0x833e8d28
mov dword [esp + 0x54], 0x87f4813c
mov dword [esp + 0x58], 0x9b268520
mov dword [esp + 0x5c], 0x9f9e9924
mov byte [esp + 0x60], 0
mov dword [esp + 0x14c], 0
mov eax, dword [esp + 0x14c]
cmp eax, 0x14
ja 0x446f4a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x14c]
movzx eax, byte [esp + eax + 0x4c]
push dword [esp + 0x14c]
push eax
call fcn.00447960
add esp, 8
mov ecx, dword [esp + 0x14c]
mov byte [esp + ecx + 0x4c], al
inc dword [esp + 0x14c]
mov eax, dword [esp + 0x14c]
cmp eax, 0x15
jb 0x446f10
lea eax, [esp + 0x4c]
push eax
call fcn.00446af0
add esp, 4
mov ebp, eax
mov dword [0x45d72c], edx
mov dword [0x45d728], eax
or eax, edx
je 0x447066
mov ebx, edx
lea eax, [esp + 0x23c]
push 0x40
push eax
push ebx
push ebp
call fcn.004468d0
add esp, 0x10
test eax, eax
js 0x447066
mov eax, dword [esp + 0x278]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x14c]
push 0xf0
push edx
push ecx
push eax
call fcn.004468d0
add esp, 0x10
xor edi, edi
test eax, eax
js 0x447068
cmp dword [esp + 0x1c0], 0
je 0x447068
mov eax, dword [esp + 0x1bc]
mov esi, 0
test eax, eax
je 0x44706a
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x24]
push 0x28
push edx
push ecx
push eax
call fcn.004468d0
add esp, 0x10
test eax, eax
js 0x447066
mov esi, dword [esp + 0x38]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x447017
lea eax, [esi*4]
push eax
call fcn.0040cb00
add esp, 4
mov edx, esi
and edx, 0xfffffffb
mov ecx, esi
and ecx, 4
or esi, 4
imul esi, ecx
xor ecx, 4
imul ecx, edx
add esi, ecx
mov edx, dword [esp + 0x40]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
call fcn.004468d0
add esp, 0x10
test eax, eax
js 0x447079
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x447082
mov eax, 0xffffffff
jmp 0x447084
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x27c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x4472a7
add eax, eax
push eax
call fcn.0040cb00
add esp, 4
mov esi, dword [esp + 0x3c]
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
mov ecx, dword [esp + 0x48]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push edx
push ecx
call fcn.004468d0
add esp, 0x10
test eax, eax
js 0x447297
mov ecx, dword [esp + 0x3c]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x4470e6
mov eax, esi
push eax
call fcn.0040cb00
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x44]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.004468d0
add esp, 0x10
test eax, eax
mov dword [esp + 0xc], edi
js 0x447285
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jb 0x447122
mov esi, eax
test esi, esi
je 0x447285
xor ecx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x44716f
mov ebp, 0xfb520141
cmp ebp, dword [esp + 0x290]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
je 0x4472b8
mov ecx, dword [esp + 0x14]
mov eax, ecx
and eax, 1
xor ecx, 1
lea ecx, [ecx + eax*2]
cmp ecx, esi
jae 0x447285
mov dword [esp + 0x14], ecx
mov eax, dword [edi + ecx*4]
mov edx, ebp
and edx, eax
mov ecx, edx
shr ecx, 0x1f
add edx, edx
xor eax, ebp
add eax, edx
adc ecx, ebx
push 0x100
lea edx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.004468d0
add esp, 0x10
test eax, eax
jns 0x4471a6
cmp eax, 0x8000000d
jne 0x447158
mov ebx, 0xffffffff
xor eax, eax
nop
nop
nop
mov esi, eax
cmp byte [esp + ebx + 0x4d], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0x4471b0
mov dword [esp + 4], 0xe2e6e409
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x447206
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 4]
push dword [esp]
push eax
call fcn.004479b0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x4471e0
test ebx, ebx
je 0x44713a
mov eax, dword [esp + 4]
mov edx, 0xfb520141
lea ecx, [esp + 0x4c]
cmp ebx, 4
jb 0x44725b
mov ebp, esi
and ebp, 0xfffffffc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx edi, byte [ecx]
xor edi, edx
imul edi, eax
movsx edx, byte [ecx + 1]
xor edx, edi
imul edx, eax
movsx edi, byte [ecx + 2]
xor edi, edx
imul edi, eax
movsx edx, byte [ecx + 3]
xor edx, edi
imul edx, eax
add ecx, 4
add ebp, 0xfffffffc
jne 0x447230
mov ebp, edx
test bl, 3
mov edi, dword [esp + 0xc]
je 0x44713f
and esi, 3
xor ebx, ebx
nop
movsx ebp, byte [ecx + ebx]
xor ebp, edx
imul ebp, eax
inc ebx
mov edx, ebp
cmp esi, ebx
jne 0x447270
jmp 0x44713f
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.0040cb10
add esp, 4
jmp 0x44729b
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.0040cb10
add esp, 4
push dword [esp + 0x10]
call fcn.0040cb10
add esp, 4
jmp 0x44706a
mov eax, dword [esp + 8]
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 0x447289