Function at 0x429850
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x8c8d8a8b
lea eax, [esp + 0x10]
xor ecx, ecx
xor edx, edx
nop
mov edi, ecx
and edi, 0xfffffffc
add edi, edx
movzx esi, byte [eax]
mov ebx, esi
xor ebx, 0x79
xor esi, 0x6c172c79
or esi, ebx
xor esi, edi
mov ebx, esi
xor ebx, 0x97dadc1b
lea edi, [ebx*2 + 0x29f49c2a]
add ebx, 0x14fa4e15
and edi, 2
and esi, 1
mov ebp, edi
and ebp, ebx
and ebx, 0xfe
or ebx, esi
or ebx, edi
xor ebx, 1
add ebx, ebp
mov byte [eax], bl
inc edx
inc eax
add ecx, 2
cmp ecx, 8
jne 0x429870
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4506dc]
test ecx, ecx
je 0x429914
xor edx, edx
mov esi, dword [0x4506e0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x4298f0
inc edx
cmp ecx, edx
jne 0x4298e0
jmp 0x429914
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x429914
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 5
push 4
push dword [0x4506e4]
push ecx
call fcn.00440b10
add esp, 0x1c
xor ebx, ebx
cmp eax, 0xc0000004
jne 0x429cae
push dword [esp + 0xc]
call fcn.0043e490
add esp, 4
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 0x10], 0x8c8d8a8b
lea eax, [esp + 0x10]
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, ebx
and ecx, 0xfffffffc
add ecx, edx
movzx esi, byte [eax]
mov ebp, esi
xor ebp, 0x79
xor esi, 0x6c172c79
or esi, ebp
xor esi, ecx
mov ecx, esi
xor ecx, 0x97dadc1b
lea ebp, [ecx*2 + 0x29f49c2a]
add ecx, 0x14fa4e15
and ebp, 2
and esi, 1
mov edi, ebp
and edi, ecx
and ecx, 0xfe
or ecx, esi
or ecx, ebp
xor ecx, 1
add ecx, edi
mov byte [eax], cl
inc edx
inc eax
add ebx, 2
cmp ebx, 8
jne 0x429950
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4506dc]
test ecx, ecx
je 0x4299d0
xor edx, edx
mov esi, dword [0x4506e0]
mov ebp, dword [esp + 8]
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x4299d6
inc edx
cmp ecx, edx
jne 0x4299c0
jmp 0x4299f8
mov ebp, dword [esp + 8]
jmp 0x4299f8
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4299f8
push 0
push dword [esp + 4]
push ebp
push 5
push 4
push dword [0x4506e4]
push ecx
call fcn.00440b10
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x429ca5
mov esi, dword [ebp]
xor eax, eax
mov ecx, esi
mov edx, ebp
nop
nop
nop
nop
nop
lea edi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, edi
test ecx, ecx
jne 0x429a10
test ebx, ebx
jns 0x429a30
mov eax, 0xffffffff
push eax
call fcn.0040c900
add esp, 4
mov dword [esp], eax
mov ecx, ebp
jmp 0x429a50
add ecx, esi
mov word [eax], 0xa
add eax, 2
mov esi, dword [ecx]
test esi, esi
je 0x429a73
mov edx, dword [ecx + esi + 0x3c]
movzx edi, word [edx]
test di, di
je 0x429a40
add edx, 2
nop
mov word [eax], di
add eax, 2
movzx edi, word [edx]
add edx, 2
test di, di
jne 0x429a60
jmp 0x429a40
xor ebx, ebx
mov ecx, dword [esp]
cmp eax, ecx
je 0x429c9c
mov word [eax], 0
movzx edi, word [ecx]
test di, di
je 0x429adb
mov eax, dword [esp]
add eax, 2
xor ebx, ebx
mov ecx, edi
jmp 0x429aac
inc ebx
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x429adb
cmp cx, 0x7f
jbe 0x429aa0
movzx edx, cx
cmp edx, 0x7ff
ja 0x429ad0
add ebx, 2
jmp 0x429aa1
cmp cx, 0xffff
je 0x429aa1
add ebx, 3
jmp 0x429aa1
lea eax, [ebx + 1]
push eax
call fcn.0040c900
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
test di, di
je 0x429c27
mov ebp, dword [esp + 4]
test ebx, ebx
je 0x429c27
mov edx, dword [esp]
mov ecx, ebx
mov ebp, dword [esp + 4]
nop
nop
nop
nop
nop
movzx eax, di
lea edi, [edx + 2]
cmp ax, 0x7f
ja 0x429b30
lea esi, [ebp + 1]
mov byte [ebp], al
jmp 0x429bd0
cmp eax, 0x7ff
ja 0x429b60
cmp ecx, 2
jb 0x429b60
mov edx, eax
shr edx, 6
add dl, 0xc0
mov byte [ebp], dl
and al, 0x3f
or al, 0x80
lea esi, [ebp + 2]
mov byte [ebp + 1], al
jmp 0x429bd0
mov esi, eax
and esi, 0xfc00
cmp esi, 0xd800
jne 0x429bea
cmp ecx, 4
jb 0x429bea
movzx esi, word [edx + 2]
mov dword [esp + 0x24], esi
add edx, 4
shl eax, 0xa
lea edi, [eax + esi]
add edi, 0xfca02400
mov eax, edi
shr eax, 0x12
add al, 0xf0
mov byte [ebp], al
mov esi, edi
shr esi, 0xc
mov eax, esi
not eax
or eax, 0x3f
add eax, esi
add al, 0x81
mov byte [ebp + 1], al
mov eax, edi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebp + 2], al
mov eax, dword [esp + 0x24]
and al, 0x3f
or al, 0x80
lea esi, [ebp + 4]
mov byte [ebp + 3], al
mov edi, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add ecx, ebp
sub ecx, esi
mov edx, edi
mov ebp, esi
movzx edi, word [edx]
test di, di
je 0x429c27
test ecx, ecx
jne 0x429b10
jmp 0x429c27
movzx edx, si
cmp edx, 0xdc00
jne 0x429bf9
mov edx, edi
jmp 0x429bd8
cmp ecx, 3
jb 0x429c23
mov edx, eax
shr edx, 0xc
or dl, 0xe0
mov byte [ebp], dl
mov edx, eax
shr edx, 6
and dl, 0x3f
or dl, 0x80
mov byte [ebp + 1], dl
and al, 0x3f
or al, 0x80
lea esi, [ebp + 3]
mov byte [ebp + 2], al
jmp 0x429bd0
mov esi, ebp
jmp 0x429bd0
mov byte [ebp], 0
mov dword [esp + 0x10], 0xd4dbc5bc
mov dword [esp + 0x14], 0xdecbcad3
mov dword [esp + 0x18], 0xc9ce91c9
mov word [esp + 0x1c], 0x7fcc
mov dword [esp + 0x1e], 0
mov byte [esp + 0x22], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x93
xor cl, byte [esp + eax + 0x10]
add cl, 0x21
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x13
jne 0x429c60
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push ebx
mov esi, dword [esp + 8]
push esi
push eax
call fcn.0040d590
mov ebx, eax
push esi
call fcn.0040c910
add esp, 4
mov ebp, dword [esp + 8]
mov ecx, dword [esp]
push ecx
call fcn.0040c910
add esp, 4
push ebp
call fcn.0043e4f0
add esp, 4
mov eax, ebx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret