Function at 0x4421c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x27c
mov ebx, dword [0x457d8c]
mov ebp, dword [0x457d88]
mov eax, ebp
or eax, ebx
jne 0x442298
mov dword [esp + 0x4c], 0x21aa27b2
mov dword [esp + 0x50], 0xddb623bc
mov dword [esp + 0x54], 0xd908df48
mov dword [esp + 0x58], 0xd54edb44
mov dword [esp + 0x5c], 0xd1d6d740
mov dword [esp + 0x60], 0
mov eax, 0x406f04f9
mov ecx, 0xbf90fb06
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x406f04ad]
mov esi, eax
and esi, edx
add esi, esi
sub esi, edx
add esi, ecx
and esi, eax
mov edi, esi
and edi, 2
mov ebx, esi
or esi, 2
imul esi, edi
xor edi, 2
and ebx, 0x406f05fd
imul ebx, edi
add esi, ebx
lea edi, [ecx + 0x406f0500]
and edi, esi
mov ebx, esi
not ebx
and ebx, eax
add ebx, edx
sub ebx, edi
add bl, 0x23
mov byte [esp + eax - 0x406f04ad], bl
inc eax
dec ecx
cmp eax, 0x406f0511
jne 0x442220
lea eax, [esp + 0x4c]
push eax
call fcn.00441e50
add esp, 4
mov ebp, eax
mov dword [0x457d8c], edx
mov dword [0x457d88], eax
or eax, edx
je 0x442390
mov ebx, edx
lea eax, [esp + 0x14c]
push 0x40
push eax
push ebx
push ebp
call fcn.00441c60
add esp, 0x10
test eax, eax
js 0x442390
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.00441c60
add esp, 0x10
xor edi, edi
test eax, eax
js 0x442392
cmp dword [esp + 0x200], 0
je 0x442392
mov eax, dword [esp + 0x1fc]
mov esi, 0
test eax, eax
je 0x442394
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x24]
push 0x28
push edx
push ecx
push eax
call fcn.00441c60
add esp, 0x10
test eax, eax
js 0x442390
mov esi, dword [esp + 0x38]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x442341
lea eax, [esi*4]
push eax
call fcn.0040c730
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 + 0x10], eax
push eax
push ecx
push edx
call fcn.00441c60
add esp, 0x10
test eax, eax
js 0x4423a3
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x4423ac
mov eax, 0xffffffff
jmp 0x4423ae
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 0x4425e1
add eax, eax
push eax
call fcn.0040c730
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 + 8], eax
push eax
push edx
push ecx
call fcn.00441c60
add esp, 0x10
test eax, eax
js 0x4425d1
mov esi, dword [esp + 0x3c]
mov eax, 0xffffffff
cmp esi, 0x40000000
jae 0x4423f8
lea eax, [esi*4]
push eax
call fcn.0040c730
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 + 0x44]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x18], eax
push eax
push ecx
push edx
call fcn.00441c60
add esp, 0x10
test eax, eax
js 0x4425bf
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jb 0x44244a
mov esi, eax
test esi, esi
je 0x4425bf
xor edi, edi
mov dword [esp + 8], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
jmp 0x44248d
mov edx, 0xfb520141
mov ebx, dword [esp + 8]
mov edi, dword [esp + 0x10]
cmp edx, dword [esp + 0x290]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
je 0x4425f2
inc edi
cmp edi, esi
je 0x4425bf
mov eax, dword [esp + 0x14]
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.00441c60
add esp, 0x10
test eax, eax
jns 0x4424ba
cmp eax, 0x8000000d
jne 0x442484
mov dword [esp + 0x10], edi
mov edx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
cmp byte [esp + edx + 0x4d], 0
lea edx, [edx + 1]
lea eax, [eax + 1]
jne 0x4424d0
mov dword [esp + 0x18], edx
mov dword [esp], 0x323e3ca9
xor edx, edx
nop
nop
nop
nop
movzx ebp, byte [esp + edx]
lea esi, [edx + edx]
and esi, 2
mov eax, edx
xor eax, 0x7a046a75
add eax, esi
lea edi, [ebp*2]
not edi
add edi, ebp
mov ebx, eax
or eax, ebp
not ebp
and ebp, edi
not ebx
or ebx, ebp
lea edi, [ebx + ebx]
not edi
add edi, ebx
and ebx, 0xb3
and edi, 0x4c
or edi, ebx
xor edi, 0x4c
and eax, edi
add al, 0xb7
mov byte [esp + edx], al
xor edx, 1
add edx, esi
cmp edx, 4
jb 0x4424f0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x442462
mov esi, dword [esp]
mov edx, 0xfb520141
lea ebp, [esp + 0x4c]
cmp eax, 1
mov ebx, dword [esp + 8]
je 0x44259a
and ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx eax, byte [ebp]
mov edi, edx
and edi, eax
add edx, eax
add edi, edi
sub edx, edi
imul edx, esi
movsx eax, byte [ebp + 1]
add ebp, 2
mov edi, edx
and edi, eax
add edx, eax
add edi, edi
sub edx, edi
imul edx, esi
add ecx, 0xfffffffe
jne 0x442570
test byte [esp + 0x18], 1
mov edi, dword [esp + 0x10]
je 0x44246f
movsx eax, byte [ebp]
mov ecx, edx
and ecx, eax
add edx, eax
add ecx, ecx
sub edx, ecx
imul edx, esi
jmp 0x44246f
xor edi, edi
xor esi, esi
push dword [esp + 0x14]
call fcn.0040c740
add esp, 4
jmp 0x4425d5
xor edi, edi
xor esi, esi
push dword [esp + 4]
call fcn.0040c740
add esp, 4
push dword [esp + 0xc]
call fcn.0040c740
add esp, 4
jmp 0x442394
mov eax, dword [esp + 4]
movzx eax, word [eax + edi*2]
mov ecx, dword [esp + 0xc]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x4425c3