Function at 0x426980
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x7c7d7a7b
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x4269e9
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
mov edx, eax
xor edx, 0xd47f60ea
and eax, 0xd47f60ea
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x6e
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x4269b0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x44e4ac]
test ecx, ecx
je 0x426a34
xor edx, edx
mov esi, dword [0x44e4b0]
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x426a10
inc edx
cmp ecx, edx
jne 0x426a00
jmp 0x426a34
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x426a34
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 5
push 4
push dword [0x44e4b4]
push ecx
call fcn.0043f3f0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x426ad0
push dword [esp + 0x24]
call fcn.0043bdc0
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], 0x7c7d7a7b
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x426aa9
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0xc]
mov esi, eax
xor esi, 0xd47f60ea
and eax, 0xd47f60ea
lea eax, [esi + eax*2]
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x6e
mov edx, dword [esp]
mov byte [esp + edx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x426a70
mov eax, dword [esp + 0xc]
mov edx, dword [0x44e4ac]
test edx, edx
je 0x426af6
xor esi, esi
mov edi, dword [0x44e4b0]
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x426ad7
inc esi
cmp edx, esi
jne 0x426ac0
jmp 0x426af6
xor ebx, ebx
jmp 0x426dd2
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x426af6
push 0
push ecx
push ebp
push 5
push 4
push dword [0x44e4b4]
push edx
call fcn.0043f3f0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x426dc9
mov edi, dword [ebp]
mov eax, edi
mov ecx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov eax, dword [ecx + eax]
dec ebx
mov ecx, edx
test eax, eax
jne 0x426b10
lea eax, [ebx - 1]
and eax, 0x104
neg ebx
mov ecx, ebx
and ecx, 0xfffffefb
imul ecx, eax
mov eax, ebx
and eax, 0x104
or ebx, 0x104
imul ebx, eax
add ebx, ecx
mov dword [esp + 0x20], ebp
jns 0x426b51
mov ebx, 0xffffffff
jmp 0x426b53
add ebx, ebx
push ebx
call fcn.0040c770
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
jmp 0x426b82
mov esi, ebp
add eax, edi
lea ebp, [esi + 2]
mov word [esi], 0xa
mov edi, dword [eax]
test edi, edi
je 0x426bb3
mov ecx, dword [eax + edi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x426b70
add ecx, 2
mov esi, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x426ba0
jmp 0x426b72
xor ebx, ebx
mov eax, dword [esp + 4]
cmp ebp, eax
je 0x426dbc
mov word [ebp], 0
movzx ecx, word [eax]
test cx, cx
je 0x426c14
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x426bee
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x426c14
cmp eax, ebp
jae 0x426c14
movzx edi, cx
cmp edi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp edi, 0x80
jb 0x426be0
mov edx, ecx
jmp 0x426be0
lea eax, [ebx + 1]
mov dword [esp + 0x28], eax
push eax
call fcn.0040c770
add esp, 4
mov edx, eax
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x426d15
mov edx, dword [esp + 0x1c]
cmp dword [esp + 4], ebp
jae 0x426d15
mov edx, dword [esp + 0x1c]
lea eax, [edx + ebx]
mov dword [esp + 0x30], eax
add dword [esp + 0x28], edx
mov ebp, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebp]
test cx, cx
je 0x426d15
cmp cx, 0x7f
ja 0x426c80
mov byte [edx], cl
mov edi, 1
jmp 0x426d00
mov eax, edx
not eax
add eax, dword [esp + 0x28]
movzx edi, cx
cmp eax, 2
jb 0x426cc0
cmp edi, 0x7ff
ja 0x426cc0
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edx], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 1], cl
mov edi, 2
jmp 0x426d00
mov dword [esp + 0x2c], edi
xor edi, edi
cmp eax, 3
jb 0x426d00
mov edi, dword [esp + 0x2c]
mov eax, edi
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, edi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 2], cl
mov edi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, edi
cmp edx, dword [esp + 0x30]
jae 0x426d15
lea eax, [ebp + 2]
cmp ebp, esi
mov ebp, eax
jb 0x426c60
mov byte [edx], 0
mov dword [esp + 0xc], 0xf08583e0
mov dword [esp + 0x10], 0xf28d8ef1
mov dword [esp + 0x14], 0x8386cf8b
mov dword [esp + 0x18], 0x598
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x426d93
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
mov edx, eax
xor edx, 0x21541044
mov esi, eax
xor esi, 0x5eabefbb
or eax, 0x21541044
and eax, esi
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xac
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x426d50
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x48]
push ebx
mov esi, dword [esp + 0x20]
push esi
push eax
call fcn.0040d440
mov ebx, eax
push esi
call fcn.0040c780
add esp, 4
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 4]
jmp 0x426dc0
mov ebp, dword [esp + 0x20]
push eax
call fcn.0040c780
add esp, 4
push ebp
call fcn.0043be60
add esp, 4
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret