Function at 0x4422d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x27c
mov ebx, dword [0x458c4c]
mov ebp, dword [0x458c48]
mov eax, ebp
or eax, ebx
jne 0x442376
mov dword [esp + 0x4c], 0x19a61bae
mov dword [esp + 0x50], 0x65d267b4
mov dword [esp + 0x54], 0x611063d0
mov dword [esp + 0x58], 0x6dda6fcc
mov dword [esp + 0x5c], 0x696a6bd8
mov dword [esp + 0x60], 0
lea eax, [esp + 0x4c]
mov ecx, 0xc4
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [eax]
mov edi, ecx
or edi, esi
and esi, ecx
lea edx, [esi + esi]
not edx
add edx, esi
and edx, edi
mov bl, 0xd8
sub bl, dl
mov byte [eax], bl
inc eax
dec ecx
cmp ecx, 0xac
jne 0x442330
lea eax, [esp + 0x4c]
push eax
call fcn.00441f60
add esp, 4
mov ebp, eax
mov dword [0x458c4c], edx
mov dword [0x458c48], eax
or eax, edx
je 0x442450
mov ebx, edx
lea eax, [esp + 0x14c]
push 0x40
push eax
push ebx
push ebp
call fcn.00441d80
add esp, 0x10
test eax, eax
js 0x442450
mov eax, dword [esp + 0x188]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x18c]
push 0xf0
push edx
push ecx
push eax
call fcn.00441d80
add esp, 0x10
xor edi, edi
test eax, eax
js 0x442452
cmp dword [esp + 0x200], 0
je 0x442452
mov eax, dword [esp + 0x1fc]
mov esi, 0
test eax, eax
je 0x442454
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x24]
push 0x28
push edx
push ecx
push eax
call fcn.00441d80
add esp, 0x10
test eax, eax
js 0x442450
mov ecx, dword [esp + 0x38]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x442419
mov eax, esi
push eax
call fcn.0040c8d0
add esp, 4
mov edx, dword [esp + 0x40]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0xc], eax
push eax
push ecx
push edx
call fcn.00441d80
add esp, 0x10
test eax, eax
js 0x442463
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x44246c
mov eax, 0xffffffff
jmp 0x44246e
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 0x442656
add eax, eax
push eax
call fcn.0040c8d0
add esp, 4
mov esi, dword [esp + 0x3c]
add esi, esi
mov ecx, dword [esp + 0x48]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 4], eax
push eax
push edx
push ecx
call fcn.00441d80
add esp, 0x10
test eax, eax
js 0x442647
mov ecx, dword [esp + 0x3c]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x4424ba
mov eax, esi
push eax
call fcn.0040c8d0
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.00441d80
add esp, 0x10
test eax, eax
js 0x442635
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jb 0x4424f4
mov esi, eax
test esi, esi
je 0x442635
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
jmp 0x442537
mov eax, 0x36c0b43e
mov ebx, dword [esp + 4]
cmp eax, dword [esp + 0x290]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
je 0x442667
inc edi
cmp edi, esi
je 0x442635
mov eax, dword [esp + 0xc]
mov eax, dword [eax + edi*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x50]
push edx
push ecx
push eax
call fcn.00441d80
add esp, 0x10
test eax, eax
jns 0x442564
cmp eax, 0x8000000d
jne 0x44252e
mov dword [esp + 0x20], edi
mov ecx, 0xffffffff
xor eax, eax
nop
mov edi, eax
cmp byte [esp + ecx + 0x4d], 0
lea ecx, [ecx + 1]
lea eax, [eax + 1]
jne 0x442570
mov dword [esp + 0x10], 0x92929003
mov byte [esp + 0x14], 0
mov eax, 0xa3
mov esi, 0x5c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + esi - 0x4c]
mov edx, esi
xor edx, eax
and edx, ebp
xor edx, eax
mov bl, 0x33
sub bl, dl
mov byte [esp + esi - 0x4c], bl
dec eax
inc esi
cmp eax, 0x9e
jne 0x4425a0
test ecx, ecx
je 0x44250c
mov edx, dword [esp + 0x10]
mov ebp, 0x36c0b43e
lea esi, [esp + 0x4c]
cmp ecx, 4
jb 0x44260b
mov eax, edi
and eax, 0xfffffffc
nop
nop
nop
movsx ebx, byte [esi]
xor ebx, ebp
imul ebx, edx
movsx ebp, byte [esi + 1]
xor ebp, ebx
imul ebp, edx
movsx ebx, byte [esi + 2]
xor ebx, ebp
imul ebx, edx
movsx ebp, byte [esi + 3]
add esi, 4
xor ebp, ebx
imul ebp, edx
add eax, 0xfffffffc
jne 0x4425e0
mov eax, ebp
test cl, 3
mov ebx, dword [esp + 4]
je 0x442515
and edi, 3
xor ecx, ecx
nop
movsx eax, byte [esi + ecx]
xor eax, ebp
imul eax, edx
inc ecx
mov ebp, eax
cmp edi, ecx
jne 0x442620
jmp 0x442515
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.0040c8e0
add esp, 4
jmp 0x44264b
xor edi, edi
xor esi, esi
push dword [esp]
call fcn.0040c8e0
add esp, 4
push dword [esp + 8]
call fcn.0040c8e0
add esp, 4
jmp 0x442454
mov eax, dword [esp]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 8]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x442639