Function at 0x42ba60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0xe0e7e6e5
mov eax, 0x29
mov ecx, 0x5f76abd6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x1d]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
not edx
mov esi, edx
and esi, 0x32
or edx, 0x32
add edx, esi
inc dl
mov byte [esp + eax - 0x1d], dl
inc eax
dec ecx
cmp eax, 0x2d
jne 0x42ba90
mov eax, dword [esp + 0xc]
mov ecx, dword [0x451ae0]
test ecx, ecx
je 0x42bb04
xor edx, edx
mov esi, dword [0x451ae4]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x42bae0
inc edx
cmp ecx, edx
jne 0x42bad0
jmp 0x42bb04
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x42bb04
lea eax, [esp + 8]
push eax
push 0
push 0
push 5
push 4
push dword [0x451ae8]
push ecx
call fcn.004425f0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x42bb82
push dword [esp + 8]
call fcn.0043fa10
add esp, 4
mov edi, eax
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 0xe0e7e6e5
mov eax, 0x29
mov edx, 0x5f76abd6
nop
movzx esi, byte [esp + eax - 0x1d]
mov ebx, eax
xor ebx, edx
and ebx, esi
xor ebx, edx
not ebx
mov esi, ebx
and esi, 0x32
or ebx, 0x32
add ebx, esi
inc bl
mov byte [esp + eax - 0x1d], bl
inc eax
dec edx
cmp eax, 0x2d
jne 0x42bb30
mov eax, dword [esp + 0xc]
mov edx, dword [0x451ae0]
test edx, edx
je 0x42bbaa
mov ebx, edi
xor esi, esi
mov edi, dword [0x451ae4]
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42bb89
inc esi
cmp edx, esi
jne 0x42bb70
mov edi, ebx
jmp 0x42bbaa
xor ebx, ebx
jmp 0x42be7c
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x42bbaa
push 0
push ecx
push edi
push 5
push 4
push dword [0x451ae8]
push edx
call fcn.004425f0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42be73
mov ebp, dword [edi]
xor eax, eax
mov ecx, ebp
mov edx, edi
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x42bbc0
test ebx, ebx
jns 0x42bbe0
mov eax, 0xffffffff
push eax
call fcn.0040c650
add esp, 4
mov esi, eax
mov dword [esp], eax
mov dword [esp + 0x24], edi
mov eax, edi
jmp 0x42bc12
mov edi, esi
add eax, ebp
lea esi, [edi + 2]
mov word [edi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x42bc43
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x42bc00
add ecx, 2
mov edi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x42bc30
jmp 0x42bc02
xor ebx, ebx
mov eax, dword [esp]
cmp esi, eax
je 0x42be66
mov word [esi], 0
movzx ecx, word [eax]
test cx, cx
je 0x42bca8
xor ebx, ebx
jmp 0x42bc80
mov ebx, ebp
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x42bca8
cmp eax, esi
jae 0x42bca8
mov ebp, ebx
movzx ebx, cx
cmp ebx, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebx, 0x80
jb 0x42bc70
mov edx, ecx
jmp 0x42bc70
lea eax, [ebx + 1]
mov dword [esp + 0x1c], eax
push eax
call fcn.0040c650
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x42bda5
mov ebp, dword [esp + 4]
cmp dword [esp], esi
jae 0x42bda5
mov ebp, dword [esp + 4]
lea eax, [ebx + ebp]
mov dword [esp + 0x28], eax
add dword [esp + 0x1c], ebp
mov edx, dword [esp]
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edx]
test cx, cx
je 0x42bda5
cmp cx, 0x7f
ja 0x42bd10
mov byte [ebp], cl
mov ebx, 1
jmp 0x42bd90
mov eax, ebp
not eax
add eax, dword [esp + 0x1c]
movzx esi, cx
cmp eax, 2
jb 0x42bd50
cmp esi, 0x7ff
ja 0x42bd50
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [ebp], al
and cl, 0x3f
or cl, 0x80
mov byte [ebp + 1], cl
mov ebx, 2
jmp 0x42bd90
xor ebx, ebx
cmp eax, 3
jb 0x42bd90
mov ebx, esi
mov eax, esi
shr eax, 0xc
or al, 0xe0
mov byte [ebp], al
shr ebx, 6
and bl, 0x3f
or bl, 0x80
mov byte [ebp + 1], bl
mov eax, ecx
not eax
or eax, 0x3f
add eax, ecx
add al, 0x81
mov byte [ebp + 2], al
mov ebx, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add ebp, ebx
cmp ebp, dword [esp + 0x28]
jae 0x42bda5
lea eax, [edx + 2]
cmp edx, edi
mov edx, eax
jb 0x42bcf0
mov byte [ebp], 0
mov dword [esp + 0xc], 0xd8e597b8
mov dword [esp + 0x10], 0xdeedead9
mov dword [esp + 0x14], 0xe7e223ef
mov dword [esp + 0x18], 0x7de0
mov eax, 0xf10988c5
mov ecx, 0xe213118a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0xef67747]
mov edi, ecx
and edi, 0x20210b2
mov edx, eax
xor edx, 0xb670c79
add edx, edi
lea edi, [edx + edx]
not edi
add edi, edx
and edi, 0xf943b7aa
and edx, 0x4300055
or edx, edi
xor edx, esi
mov ebx, edx
xor ebx, 0xf943b7aa
and edx, 0x36
xor edx, 0xdd
add edx, ebx
or ebx, 0xc9
add ebx, edx
add bl, 2
mov byte [esp + eax + 0xef67747], bl
inc eax
add ecx, 2
cmp eax, 0xf10988d5
jne 0x42bde0
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x20]
mov esi, dword [esp + 8]
push esi
push eax
call fcn.0040d100
mov ebx, eax
push esi
call fcn.0040c660
add esp, 4
mov eax, dword [esp]
push eax
call fcn.0040c660
add esp, 4
mov edi, dword [esp + 0x24]
push edi
call fcn.0043fad0
add esp, 4
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret