Function at 0x422400
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov edi, dword [eax + 4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax], 0
lea eax, [eax + 2]
jne 0x422420
lea ecx, [edi + eax]
add ecx, 0xfffffffe
add eax, edi
mov edx, 1
sub edx, eax
and edx, edi
mov ebx, edi
not ebx
and ebx, ecx
sub ebx, edx
mov esi, dword [esi + 4]
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x422450
sar ebx, 1
lea ebp, [esi + eax]
add ebp, 0xfffffffe
add eax, esi
mov edx, 1
sub edx, eax
and edx, esi
mov ecx, esi
not ecx
and ecx, ebp
sub ecx, edx
sar ecx, 1
lea eax, [ebx + 0x1b]
mov edx, ecx
and edx, eax
mov dword [esp + 0x50], ecx
xor eax, ecx
lea eax, [eax + edx*2]
test eax, eax
mov dword [esp + 0xc], ebx
jns 0x422496
mov eax, 0xffffffff
jmp 0x422498
add eax, eax
push eax
call fcn.0040c590
add esp, 4
mov ebp, eax
mov dword [esp + 0x10], 0xe132e700
mov dword [esp + 0x14], 0xfd1fe311
mov dword [esp + 0x18], 0xf90aff1f
mov dword [esp + 0x1c], 0xf525fbd8
mov dword [esp + 0x20], 0xf17af77c
mov dword [esp + 0x24], 0x8d04f30f
mov dword [esp + 0x28], 0x89758f01
mov dword [esp + 0x2c], 0x857c8b79
mov dword [esp + 0x30], 0x816b87a4
mov dword [esp + 0x34], 0x9d0e837f
mov dword [esp + 0x38], 0x99659f10
mov dword [esp + 0x3c], 0x95639b6e
mov dword [esp + 0x40], 0x91729719
mov dword [esp + 0x44], 0x9390
mov byte [esp + 0x48], 0
mov eax, 0xed0ba929
nop
nop
nop
movzx edx, byte [esp + eax + 0x12f456e7]
xor edx, eax
mov ecx, 2
sub ecx, edx
sub ecx, edx
not ecx
and ecx, 2
mov ebx, 0xcd
sub ebx, edx
or edx, 0xfe
or ebx, 1
and ebx, edx
not ebx
add ebx, ecx
mov byte [esp + eax + 0x12f456e7], bl
inc eax
cmp eax, 0xed0ba962
jne 0x422520
movzx ecx, word [edi]
mov eax, ebp
test cx, cx
je 0x422581
add edi, 2
mov eax, ebp
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x422570
mov word [eax], 0
movzx ecx, word [esp + 0x10]
test cx, cx
je 0x4225b1
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 0x4225a0
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x4225e1
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 0x4225d0
mov word [eax], 0
mov esi, dword [esp + 0x6c]
mov edi, dword [esi]
xor eax, eax
nop
nop
cmp word [edi + eax], 0
lea eax, [eax + 2]
jne 0x4225f0
lea ecx, [edi + eax]
add ecx, 0xfffffffe
add eax, edi
mov edx, 1
sub edx, eax
and edx, edi
mov eax, edi
not eax
and eax, ecx
sub eax, edx
mov ebx, dword [esi + 8]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx], 0
lea ecx, [ecx + 2]
jne 0x422620
mov dword [esp + 8], ebp
sar eax, 1
mov dword [esp + 4], eax
lea edx, [ebx + ecx]
add edx, 0xfffffffe
add ecx, ebx
mov esi, 1
sub esi, ecx
and esi, ebx
mov ecx, ebx
not ecx
and ecx, edx
sub ecx, esi
sar ecx, 1
mov eax, dword [esp + 0x70]
mov ebp, dword [eax]
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + esi], 0
lea esi, [esi + 2]
jne 0x422660
lea eax, [esi + ebp]
add eax, 0xfffffffe
mov edx, ebp
not edx
and edx, eax
add esi, ebp
mov eax, 1
sub eax, esi
and eax, ebp
sub edx, eax
sar edx, 1
mov esi, dword [esp + 4]
add esi, ecx
lea eax, [edx + esi]
add eax, 0x13
test eax, eax
jns 0x42269d
mov eax, 0xffffffff
jmp 0x4226a6
add esi, edx
lea eax, [esi*2 + 0x26]
push eax
call fcn.0040c590
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 4], eax
test cx, cx
je 0x4226e1
add edi, 2
mov eax, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x4226d0
mov edi, eax
mov word [eax], 0x2f
mov dword [esp + 0x10], 0xb77b895b
mov dword [esp + 0x14], 0xb32eb52c
mov dword [esp + 0x18], 0xbf2cb15d
mov dword [esp + 0x1c], 0xbb53bd23
mov dword [esp + 0x20], 0xa734b92b
mov dword [esp + 0x24], 0xa371a53b
mov word [esp + 0x28], 0xa1a0
mov dword [esp + 0x2a], 0
mov byte [esp + 0x2e], 0
mov eax, 0xc416945e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x3be96bb2]
xor ecx, eax
mov edx, ecx
not edx
mov esi, ecx
xor esi, 0xd6
or ecx, 0x29
and ecx, esi
and edx, 0xd6
sub ecx, edx
mov byte [esp + eax + 0x3be96bb2], cl
inc eax
cmp eax, 0xc416947d
jne 0x422740
mov edx, edi
add edx, 2
movzx eax, word [ebx]
test ax, ax
mov edi, dword [esp + 4]
je 0x4227a3
add ebx, 2
mov esi, dword [esp + 0x70]
nop
nop
nop
nop
nop
nop
mov word [edx], ax
add edx, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x422790
jmp 0x4227a7
mov esi, dword [esp + 0x70]
mov word [edx], 0
movzx eax, word [esp + 0x10]
test ax, ax
je 0x4227d3
lea ecx, [esp + 0x12]
mov ebx, dword [esp + 0xc]
nop
nop
mov word [edx], ax
add edx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4227c0
jmp 0x4227d7
mov ebx, dword [esp + 0xc]
mov word [edx], 0
movzx eax, word [ebp]
test ax, ax
je 0x422802
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edx], ax
add edx, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4227f0
mov dword [esp + 0x4c], edx
mov word [edx], 0
mov dword [esp + 0x10], 0xb7b6895e
mov word [esp + 0x14], 0
xor eax, eax
nop
nop
nop
nop
mov ecx, eax
add cl, 0xde
xor cl, byte [esp + eax + 0x10]
add cl, 0xaa
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 6
jne 0x422820
lea eax, [esp + 0x10]
push 0
push 0
push 0xc00000
push eax
mov ebp, dword [esp + 0x18]
push ebp
push edi
push dword [esp + 0x80]
call fcn.004257f0
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44bda4]