Function at 0x422150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x170
mov dword [esp + 0x10], 0x3c30d29
mov dword [esp + 0x14], 0x7960190
mov dword [esp + 0x18], 0x3bdb05c0
mov dword [esp + 0x1c], 0x3fdf39ac
mov dword [esp + 0x20], 0x33323d19
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x33], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x7c]
cmp ecx, 0x26
ja 0x422217
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
movzx esi, byte [esp + ecx + 0x10]
lea ecx, [edx + esi]
add ecx, 0x8499f656
add edx, 0x8499f656
and edx, esi
add edx, edx
sub ecx, edx
mov edx, ecx
xor edx, 0xa5
and ecx, 0x25
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 0x7c]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
cmp ecx, 0x27
jb 0x4221d0
lea esi, [esp + 0x142]
lea edx, [esp + 0x10]
mov ecx, 5
mov edi, esi
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x156]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
lea edi, [esp + 0xb4]
push edi
push 0
push 0
push 9
push esi
push 0
call dword [0x44945c]
mov ebx, dword [esp + 0xb4]
test ebx, ebx
jns 0x422266
mov eax, 0xffffffff
jmp 0x422269
lea eax, [ebx + ebx]
push eax
call fcn.00436a00
add esp, 4
push edi
push ebx
mov dword [esp + 0x7c], eax
push eax
push 9
push esi
push 0
call dword [0x44945c]
mov dword [esp + 0x10], 0xd37bd11a
mov dword [esp + 0x14], 0xdf71dd4f
mov dword [esp + 0x18], 0xdb4ad94f
mov dword [esp + 0x1c], 0xc7c4c576
lea esi, [esp + 0x20]
mov word [esp + 0x20], 0
mov byte [esp + 0x22], 0
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x7c]
cmp eax, 0x12
ja 0x4222f5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
add al, 0xa3
xor al, byte [esp + ecx + 0x10]
add al, 0x8b
mov ecx, dword [esp + 0x7c]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
cmp eax, 0x13
jb 0x4222d0
lea edi, [esp + 0xfc]
lea eax, [esp + 0x10]
mov edx, eax
mov ecx, 4
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x10c]
mov edx, esi
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov dword [esp + 0x10], 0xb32bb174
mov dword [esp + 0x14], 0xb715b527
mov dword [esp + 0x18], 0xab38a937
mov dword [esp + 0x1c], 0xaf6dad08
mov dword [esp + 0x20], 0xa33ca101
mov dword [esp + 0x24], 0xa734a505
mov dword [esp + 0x28], 0x9b9a9911
lea esi, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x7c]
cmp ecx, 0x2f
ja 0x4223da
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
movzx edi, byte [esp + ecx + 0x10]
lea ecx, [edx + edi]
add ecx, 0xd2510a48
add edx, 0xd2510a48
and edx, edi
add edx, edx
sub ecx, edx
add cl, 8
mov edx, dword [esp + 0x7c]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
cmp ecx, 0x30
jb 0x4223a0
lea edi, [esp + 0x126]
mov ebx, eax
mov ecx, 7
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea edi, [esp + 0x142]
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov dword [esp + 0x10], 0x2b8b2562
mov dword [esp + 0x14], 0x2f8d299f
mov dword [esp + 0x18], 0x339a2d9f
mov dword [esp + 0x1c], 0x37603196
mov dword [esp + 0x20], 0x3b723562
lea edx, [esp + 0x24]
mov word [esp + 0x24], 0x393a
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x31], 0
mov dword [esp + 0x7c], 0
mov ecx, dword [esp + 0x7c]
cmp ecx, 0x24
ja 0x4224aa
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x7c]
movzx ecx, byte [esp + ecx + 0x10]
lea edi, [esi + 0x85]
and edi, ecx
mov eax, 0x7a
sub eax, esi
or eax, ecx
add eax, edi
sub ecx, eax
add cl, 0x5c
mov eax, dword [esp + 0x7c]
mov byte [esp + eax + 0x10], cl
inc dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
cmp eax, 0x25
jb 0x422470
lea esi, [esp + 0x156]
lea eax, [esp + 0x10]
mov ecx, 5
mov edi, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
lea edi, [esp + 0x16a]
mov ecx, 1
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
lea eax, [esp + 0xfc]
mov dword [esp + 0xf0], eax
lea eax, [esp + 0x126]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], esi
mov eax, dword [esp + 0x74]
add eax, 2
mov dword [esp + 0xd4], eax
mov dword [esp + 0xac], 0
xor ebx, ebx
jmp 0x422520
mov eax, dword [0x44463c]
mov ecx, dword [0x444644]
mov edx, 0xfc65d1e5
xor ecx, edx
add eax, ecx
inc eax
mov dword [esp + 0xe0], ebx
nop
nop
nop
nop
jmp eax