Function at 0x42c310
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0x54554a4b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx + 4]
mov edi, eax
and edi, 0xc
mov edx, ecx
xor edx, 0x7af9e8ee
add edx, edi
mov edi, esi
xor edi, 0xb5
mov ebx, edx
xor ebx, 0xb5
or ebx, edi
xor esi, 0x4a
xor edx, 0x4a
or edx, esi
and edx, ebx
add dl, 0x5a
mov byte [esp + ecx + 4], dl
inc ecx
add eax, 2
cmp ecx, 7
jne 0x42c340
mov eax, dword [esp + 4]
mov ecx, dword [0x451d6c]
test ecx, ecx
je 0x42c3d4
xor edx, edx
mov esi, dword [0x451d70]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x42c3b0
inc edx
cmp ecx, edx
jne 0x42c3a0
jmp 0x42c3d4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x42c3d4
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x451d74]
push ecx
call fcn.00442ab0
add esp, 0x1c
xor ebx, ebx
cmp eax, 0xc0000004
jne 0x42c771
push dword [esp + 0x1c]
call fcn.0043f590
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], 0x54554a4b
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 4]
mov edi, ebx
and edi, 0xc
mov edx, eax
xor edx, 0x7af9e8ee
add edx, edi
mov edi, esi
xor edi, 0xb5
mov ebp, edx
xor ebp, 0xb5
or ebp, edi
xor esi, 0x4a
xor edx, 0x4a
or edx, esi
and edx, ebp
add dl, 0x5a
mov byte [esp + eax + 4], dl
inc eax
add ebx, 2
cmp eax, 7
jne 0x42c410
mov eax, dword [esp + 4]
mov edx, dword [0x451d6c]
test edx, edx
je 0x42c480
xor esi, esi
mov edi, dword [0x451d70]
mov ebp, dword [esp + 0x18]
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42c486
inc esi
cmp edx, esi
jne 0x42c470
jmp 0x42c4a5
mov ebp, dword [esp + 0x18]
jmp 0x42c4a5
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x42c4a5
push 0
push ecx
push ebp
push 5
push 4
push dword [0x451d74]
push edx
call fcn.00442ab0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42c768
mov esi, dword [ebp]
xor eax, eax
mov ecx, esi
mov edx, ebp
nop
nop
nop
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 0x42c4c0
test ebx, ebx
jns 0x42c4e0
mov eax, 0xffffffff
push eax
call fcn.0040c700
add esp, 4
mov dword [esp], eax
mov ecx, ebp
jmp 0x42c500
add ecx, esi
mov word [eax], 0xa
add eax, 2
mov esi, dword [ecx]
test esi, esi
je 0x42c523
mov edx, dword [ecx + esi + 0x3c]
movzx edi, word [edx]
test di, di
je 0x42c4f0
add edx, 2
nop
mov word [eax], di
add eax, 2
movzx edi, word [edx]
add edx, 2
test di, di
jne 0x42c510
jmp 0x42c4f0
xor ebx, ebx
mov ecx, dword [esp]
cmp eax, ecx
je 0x42c75f
mov word [eax], 0
movzx edi, word [ecx]
test di, di
je 0x42c58b
mov eax, dword [esp]
add eax, 2
xor ebx, ebx
mov ecx, edi
jmp 0x42c55c
inc ebx
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x42c58b
cmp cx, 0x7f
jbe 0x42c550
movzx edx, cx
cmp edx, 0x7ff
ja 0x42c580
add ebx, 2
jmp 0x42c551
cmp cx, 0xffff
je 0x42c551
add ebx, 3
jmp 0x42c551
lea eax, [ebx + 1]
push eax
call fcn.0040c700
add esp, 4
mov ebp, eax
mov dword [esp + 0x14], eax
test di, di
je 0x42c6cd
mov ebp, dword [esp + 0x14]
test ebx, ebx
je 0x42c6cd
mov edx, dword [esp]
mov ecx, ebx
mov ebp, dword [esp + 0x14]
nop
nop
nop
nop
nop
movzx eax, di
lea edi, [edx + 2]
cmp ax, 0x7f
ja 0x42c5e0
lea esi, [ebp + 1]
mov byte [ebp], al
jmp 0x42c670
cmp eax, 0x7ff
ja 0x42c610
cmp ecx, 2
jb 0x42c610
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 0x42c670
mov esi, eax
and esi, 0xfc00
cmp esi, 0xd800
jne 0x42c68a
cmp ecx, 4
jb 0x42c68a
shl eax, 0xa
movzx edi, word [edx + 2]
add edx, 4
lea esi, [eax + edi]
add esi, 0xfca02400
mov eax, esi
shr eax, 0x12
add al, 0xf0
mov byte [ebp], al
mov eax, esi
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [ebp + 1], al
shr esi, 6
mov eax, esi
not eax
or eax, 0x3f
add eax, esi
add al, 0x81
mov byte [ebp + 2], al
mov eax, edi
and al, 0x3f
or al, 0x80
lea esi, [ebp + 4]
mov byte [ebp + 3], al
mov edi, edx
nop
nop
nop
add ecx, ebp
sub ecx, esi
mov edx, edi
mov ebp, esi
movzx edi, word [edx]
test di, di
je 0x42c6cd
test ecx, ecx
jne 0x42c5c0
jmp 0x42c6cd
movzx edx, si
cmp edx, 0xdc00
jne 0x42c699
mov edx, edi
jmp 0x42c678
cmp ecx, 3
jb 0x42c6c9
mov edx, eax
shr edx, 0xc
or dl, 0xe0
mov byte [ebp], dl
mov esi, eax
shr esi, 6
mov edx, esi
not edx
or edx, 0x3f
add edx, esi
add dl, 0x81
mov byte [ebp + 1], dl
and al, 0x3f
or al, 0x80
lea esi, [ebp + 3]
mov byte [ebp + 2], al
jmp 0x42c670
mov esi, ebp
jmp 0x42c670
mov byte [ebp], 0
mov dword [esp + 4], 0xa0add3b0
mov dword [esp + 8], 0xa2d5d6a1
mov dword [esp + 0xc], 0xd3de67db
mov dword [esp + 0x10], 0x4dd8
mov eax, 0x8b5d0190
mov ecx, 0x6f
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0x74a2fe74]
lea edi, [ecx - 0x40]
and edi, 0x26
mov edx, eax
and edx, 0x89
or edx, edi
xor edx, 0xc9
or edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0x30
mov byte [esp + eax + 0x74a2fe74], dl
inc eax
dec ecx
cmp eax, 0x8b5d01a0
jne 0x42c700
lea eax, [esp + 4]
mov ecx, dword [esp + 0x34]
push ebx
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.0040d250
mov ebx, eax
push esi
call fcn.0040c710
add esp, 4
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp]
push ecx
call fcn.0040c710
add esp, 4
push ebp
call fcn.0043f640
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret