Function at 0x4227a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov ecx, dword [esp + 0x6c]
mov ebp, dword [esp + 0x68]
mov edi, dword [ebp + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x4227c0
mov esi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4227e0
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x48], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
jns 0x42280e
mov eax, 0xffffffff
jmp 0x422815
lea eax, [ecx*2 + 0x36]
push eax
call fcn.0040c700
add esp, 4
mov dword [esp + 0xc], 0x235e214c
mov dword [esp + 0x10], 0x274525bb
mov dword [esp + 0x14], 0x5bc65939
mov dword [esp + 0x18], 0x5f1b5d7c
mov dword [esp + 0x1c], 0x53c651d8
mov dword [esp + 0x20], 0x57c85531
mov dword [esp + 0x24], 0x4bd349db
mov dword [esp + 0x28], 0x4fd04dd3
mov dword [esp + 0x2c], 0x43314160
mov dword [esp + 0x30], 0x47d24521
mov dword [esp + 0x34], 0x7be379ec
mov dword [esp + 0x38], 0x7f197de2
mov dword [esp + 0x3c], 0x731e71e3
mov dword [esp + 0x40], 0x7574
xor ebx, ebx
mov ecx, ebx
neg ecx
mov edx, ecx
and edx, 0x48
add edx, edx
xor ecx, 0xb7
sub ecx, edx
inc cl
xor cl, byte [esp + ebx + 0xc]
add cl, 0x68
mov byte [esp + ebx + 0xc], cl
mov ecx, ebx
and ecx, 1
xor ebx, 1
lea ebx, [ebx + ecx*2]
cmp ebx, 0x38
jb 0x422890
movzx ecx, word [edi]
mov ebx, eax
test cx, cx
je 0x4228e1
add edi, 2
mov ebx, eax
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x4228d0
mov word [ebx], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x422911
lea edx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x422900
mov word [ebx], 0
movzx ecx, word [esi]
test cx, cx
mov dword [esp + 4], eax
je 0x422941
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x422930
mov word [ebx], 0
mov ebx, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x422950
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x422970
mov edx, dword [esp + 0x6c]
mov edi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x422990
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x4229b4
mov eax, 0xffffffff
jmp 0x4229bd
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.0040c700
add esp, 4
mov esi, eax
movzx eax, word [ebx]
mov dword [esp + 8], esi
test ax, ax
je 0x4229f1
add ebx, 2
mov esi, dword [esp + 8]
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4229e0
mov word [esi], 0x2f
mov dword [esp + 0xc], 0x29e12bf5
mov dword [esp + 0x10], 0x2dba2fb0
mov dword [esp + 0x14], 0xd140d3c7
mov dword [esp + 0x18], 0xd539d745
mov dword [esp + 0x1c], 0xd948db45
mov dword [esp + 0x20], 0xdd0fdf4d
mov word [esp + 0x24], 0xc3dc
mov dword [esp + 0x26], 0
mov word [esp + 0x2a], 0
mov eax, 0x56760677
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x5676066b]
lea ebx, [eax - 0x80000000]
and ebx, 0x904002db
or ebx, 0x423cc24
mov ecx, eax
and ecx, 0x46360424
xor ecx, ebx
xor ecx, edx
lea edx, [ecx + ecx]
and edx, 0x58
xor edx, 0x48
xor ecx, 0x88
add ecx, edx
inc cl
mov byte [esp + eax - 0x5676066b], cl
inc eax
cmp eax, 0x56760697
jne 0x422a50
add esi, 2
movzx eax, word [ebp]
test ax, ax
je 0x422ac2
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x422ab0
mov word [esi], 0
movzx eax, word [esp + 0xc]
test ax, ax
je 0x422af1
lea ecx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422ae0
mov word [esi], 0
movzx eax, word [edi]
test ax, ax
je 0x422b21
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x422b10
mov word [esi], 0
mov dword [esp + 0xc], 0xc1c6c72e
mov dword [esp + 0x10], 0
mov eax, 0xa34ab93b
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x5cb546d1]
lea edi, [eax + 0x5cb54776]
and edi, ecx
add edi, edi
mov edx, ecx
sub edx, edi
add edx, eax
mov ebx, edx
xor ebx, 0xfe
mov ebp, edx
or ebp, 1
and ebp, ebx
xor edx, 1
add edx, ecx
add edx, ebp
sub edx, edi
add ecx, eax
sub ecx, edi
and ecx, 0xfe
sub edx, ecx
add edx, eax
mov byte [esp + eax + 0x5cb546d1], dl
inc eax
cmp eax, 0xa34ab943
jne 0x422b40
lea eax, [esp + 0xc]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x7c]
call fcn.00426200
add esp, 0x1c
mov ebx, eax
jmp dword [0x44ce50]