Function at 0x4223f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
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 0x422410
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 0x422430
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x50], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 8], edx
mov dword [esp + 0x4c], ecx
jns 0x42245e
mov eax, 0xffffffff
jmp 0x422465
lea eax, [ecx*2 + 0x36]
push eax
call fcn.0040c710
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0x10], 0xd782c9ac
mov dword [esp + 0x14], 0xd3bdd5a7
mov dword [esp + 0x18], 0xdfaad1b1
mov dword [esp + 0x1c], 0xdb97ddfc
mov dword [esp + 0x20], 0xe79ad9a0
mov dword [esp + 0x24], 0xe390e589
mov dword [esp + 0x28], 0xef87e19f
mov dword [esp + 0x2c], 0xeb98ed9f
mov dword [esp + 0x30], 0xf7a9e9c8
mov dword [esp + 0x34], 0xf38ef599
mov dword [esp + 0x38], 0xff97f18c
mov dword [esp + 0x3c], 0xfb91fd8e
mov dword [esp + 0x40], 0x762f987
mov dword [esp + 0x44], 0x504
mov byte [esp + 0x48], 0
mov eax, 0x4e
mov ecx, 0xb1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + eax - 0x3e]
mov edx, ecx
xor edx, eax
and edx, ebx
xor edx, eax
add dl, 0x7a
mov byte [esp + eax - 0x3e], dl
inc eax
dec ecx
cmp eax, 0x87
jne 0x422500
movzx ecx, word [edi]
mov eax, dword [esp + 4]
test cx, cx
je 0x422541
add edi, 2
mov eax, dword [esp + 4]
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x422530
mov word [eax], 0
movzx ecx, word [esp + 0x10]
test cx, cx
je 0x422571
lea edx, [esp + 0x12]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x422560
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x4225a1
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x422590
mov word [eax], 0
mov ebx, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x4225b0
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 0x4225d0
mov edx, dword [esp + 0x70]
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 0x4225f0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x422614
mov eax, 0xffffffff
jmp 0x42261d
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.0040c710
add esp, 4
mov esi, eax
movzx eax, word [ebx]
mov dword [esp + 0xc], esi
test ax, ax
je 0x422651
add ebx, 2
mov esi, dword [esp + 0xc]
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x422640
mov word [esi], 0x2f
mov dword [esp + 0x10], 0x69a16bb5
mov dword [esp + 0x14], 0x6dfa6ff0
mov dword [esp + 0x18], 0x51c053c7
mov dword [esp + 0x1c], 0x55f957c5
mov dword [esp + 0x20], 0x59c85bc5
mov dword [esp + 0x24], 0x5d8f5fcd
mov word [esp + 0x28], 0x435c
mov dword [esp + 0x2a], 0
mov byte [esp + 0x2e], 0
mov eax, 0x17
mov ecx, 0xe8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + eax - 7]
mov edx, ecx
xor edx, eax
and edx, ebx
xor edx, eax
add dl, 0x8d
mov byte [esp + eax - 7], dl
inc eax
dec ecx
cmp eax, 0x36
jne 0x4226b0
add esi, 2
movzx eax, word [ebp]
test ax, ax
je 0x4226f4
add ebp, 2
mov ebx, dword [esp + 0x70]
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4226e0
jmp 0x4226f8
mov ebx, dword [esp + 0x70]
mov word [esi], 0
movzx eax, word [esp + 0x10]
test ax, ax
je 0x422721
lea ecx, [esp + 0x12]
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422710
mov word [esi], 0
movzx eax, word [edi]
test ax, ax
je 0x422751
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 0x422740
mov word [esi], 0
mov dword [esp + 0x10], 0x8382816a
mov word [esp + 0x14], 0
mov byte [esp + 0x16], 0
mov eax, 0xebed2d60
mov ecx, 0x75f69660
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x1412d2b0]
mov edi, eax
and edi, edx
or edx, ecx
xor edx, edi
add dl, 0x20
mov byte [esp + eax + 0x1412d2b0], dl
inc eax
inc ecx
cmp eax, 0xebed2d67
jne 0x422780
lea eax, [esp + 0x10]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x20]
push dword [esp + 0x80]
call fcn.00425e10
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44dcf8]