Function at 0x42a060
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0x2c2d2e2f
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 edx, byte [esp + ecx + 4]
mov esi, ecx
xor esi, 0x4dfcc4a3
mov edi, eax
and edi, 8
sub edi, esi
lea ebx, [edi + 0x51158a9b]
lea esi, [edi*2 - 0x5dd4eaca]
sub esi, edi
add esi, 0x65
and esi, edx
or ebx, edx
xor ebx, esi
add bl, 0x28
mov byte [esp + ecx + 4], bl
inc ecx
add eax, 2
cmp ecx, 7
jne 0x42a090
mov eax, dword [esp + 4]
mov ecx, dword [0x451cfc]
test ecx, ecx
je 0x42a124
xor edx, edx
mov esi, dword [0x451d00]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x42a100
inc edx
cmp ecx, edx
jne 0x42a0f0
jmp 0x42a124
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x42a124
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x451d04]
push ecx
call fcn.00441c30
add esp, 0x1c
xor ebx, ebx
cmp eax, 0xc0000004
jne 0x42a52c
push dword [esp + 0x1c]
call fcn.0043f150
add esp, 4
mov ebp, eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], 0x2c2d2e2f
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor eax, eax
nop
nop
nop
nop
movzx edx, byte [esp + eax + 4]
mov esi, eax
xor esi, 0x4dfcc4a3
mov edi, ebx
and edi, 8
sub edi, esi
mov ecx, ebx
lea ebx, [edi + 0x51158a9b]
lea esi, [edi*2 - 0x5dd4eaca]
sub esi, edi
add esi, 0x65
and esi, edx
or ebx, edx
xor ebx, esi
add bl, 0x28
mov byte [esp + eax + 4], bl
mov ebx, ecx
inc eax
add ebx, 2
cmp eax, 7
jne 0x42a160
mov eax, dword [esp + 4]
mov edx, dword [0x451cfc]
test edx, edx
je 0x42a1f2
xor esi, esi
mov edi, dword [0x451d00]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42a1d0
inc esi
cmp edx, esi
jne 0x42a1c0
jmp 0x42a1f2
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x42a1f2
push 0
push dword [esp + 4]
push ebp
push 5
push 4
push dword [0x451d04]
push edx
call fcn.00441c30
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42a523
mov esi, dword [ebp]
xor eax, eax
mov ecx, esi
mov edx, ebp
nop
nop
nop
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 0x42a210
test ebx, ebx
jns 0x42a230
mov eax, 0xffffffff
push eax
call fcn.0040c510
add esp, 4
mov dword [esp], eax
mov ecx, ebp
jmp 0x42a250
add ecx, esi
mov word [eax], 0xa
add eax, 2
mov esi, dword [ecx]
test esi, esi
je 0x42a273
mov edx, dword [ecx + esi + 0x3c]
movzx edi, word [edx]
test di, di
je 0x42a240
add edx, 2
nop
mov word [eax], di
add eax, 2
movzx edi, word [edx]
add edx, 2
test di, di
jne 0x42a260
jmp 0x42a240
xor ebx, ebx
mov ecx, dword [esp]
cmp eax, ecx
je 0x42a51a
mov word [eax], 0
movzx esi, word [ecx]
test si, si
je 0x42a2db
mov eax, dword [esp]
add eax, 2
xor ebx, ebx
mov ecx, esi
jmp 0x42a2ac
inc ebx
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x42a2db
cmp cx, 0x7f
jbe 0x42a2a0
movzx edx, cx
cmp edx, 0x7ff
ja 0x42a2d0
add ebx, 2
jmp 0x42a2a1
cmp cx, 0xffff
je 0x42a2a1
add ebx, 3
jmp 0x42a2a1
mov dword [esp + 0x24], ebp
lea eax, [ebx + 1]
push eax
call fcn.0040c510
add esp, 4
mov ebp, eax
mov dword [esp + 0x18], eax
test si, si
mov dword [esp + 0x20], ebx
je 0x42a457
mov ebp, dword [esp + 0x18]
test ebx, ebx
je 0x42a457
mov edx, dword [esp]
mov ecx, ebx
mov ebp, dword [esp + 0x18]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, si
lea esi, [edx + 2]
cmp ax, 0x7f
ja 0x42a340
lea edi, [ebp + 1]
mov byte [ebp], al
jmp 0x42a400
cmp eax, 0x7ff
ja 0x42a370
cmp ecx, 2
jb 0x42a370
mov edx, eax
shr edx, 6
add dl, 0xc0
mov byte [ebp], dl
and al, 0x3f
or al, 0x80
mov byte [ebp + 1], al
lea edi, [ebp + 2]
jmp 0x42a400
mov edi, eax
and edi, 0xfc00
cmp edi, 0xd800
jne 0x42a41a
cmp ecx, 4
jb 0x42a41a
movzx edi, word [edx + 2]
add edx, 4
mov esi, eax
not esi
and esi, 0xd800
and eax, 0x27ff
sub eax, esi
shl eax, 0xa
lea esi, [eax + edi]
add esi, 0xffff2400
mov dword [esp + 0x28], esi
add eax, edi
add eax, 0x2400
mov ebx, eax
shr ebx, 0x12
add bl, 0xf0
mov byte [ebp], bl
shr eax, 0xc
mov esi, eax
xor esi, 0xc0
or eax, 0x3f
and eax, esi
add al, 0x80
mov byte [ebp + 1], al
mov eax, dword [esp + 0x28]
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebp + 2], al
mov eax, edi
and al, 0x3f
or al, 0x80
lea edi, [ebp + 4]
mov byte [ebp + 3], al
mov esi, edx
nop
nop
nop
nop
nop
nop
nop
nop
add ecx, ebp
sub ecx, edi
mov edx, esi
mov ebp, edi
movzx esi, word [edx]
test si, si
je 0x42a457
test ecx, ecx
jne 0x42a320
jmp 0x42a457
movzx edx, di
cmp edx, 0xdc00
jne 0x42a429
mov edx, esi
jmp 0x42a408
cmp ecx, 3
jb 0x42a453
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 edi, [ebp + 3]
mov byte [ebp + 2], al
jmp 0x42a400
mov edi, ebp
jmp 0x42a400
mov byte [ebp], 0
mov dword [esp + 4], 0x8c9b9df4
mov dword [esp + 8], 0x869b9a83
mov dword [esp + 0xc], 0x8986c199
mov word [esp + 0x10], 0x3784
mov dword [esp + 0x12], 0
mov word [esp + 0x16], 0
mov eax, 0x323f7c7
mov ecx, 0x18dc0838
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x323f7c3]
lea edx, [esi + esi]
not edx
add edx, esi
mov ebx, ecx
and ebx, 0x180c0001
mov edi, eax
and edi, 0x30066be
or edi, ebx
xor edi, esi
lea ebx, [eax - 0x323f700]
and ebx, esi
not esi
and edx, esi
lea esi, [ecx - 0x18dc0800]
or esi, edx
xor edi, 0x41
or ebx, edi
and ebx, esi
add bl, 0x1d
mov byte [esp + eax - 0x323f7c3], bl
inc eax
dec ecx
cmp eax, 0x323f7db
jne 0x42a4a0
lea eax, [esp + 4]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
push esi
push eax
call fcn.0040d1b0
mov ebx, eax
push esi
call fcn.0040c520
add esp, 4
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp]
push ecx
call fcn.0040c520
add esp, 4
push ebp
call fcn.0043f1f0
add esp, 4
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret