Function at 0x42ac70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
mov eax, 0xa7704992
mov ecx, 0x588fb66d
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x588fb672]
lea esi, [edx + edx]
not esi
add esi, edx
or esi, ecx
lea edi, [esi + esi]
not edi
add edi, esi
and esi, 0x4200995
and edi, 0xa350406a
or edi, esi
xor edi, 0xa350406a
or edx, eax
and edx, edi
lea esi, [edx*2 + 0x759d204a]
add edx, 0xbace9025
and esi, 2
mov edi, esi
and edi, edx
xor esi, edx
xor esi, 1
lea edx, [esi + edi*2]
mov byte [esp + eax + 0x588fb672], dl
inc eax
dec ecx
cmp eax, 0xa7704998
jne 0x42aca0
mov eax, dword [esp + 4]
mov ecx, dword [0x451f80]
test ecx, ecx
je 0x42ad54
xor edx, edx
mov esi, dword [0x451f84]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x42ad30
inc edx
cmp ecx, edx
jne 0x42ad20
jmp 0x42ad54
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x42ad54
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 5
push 4
push dword [0x451f88]
push ecx
call fcn.00442960
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x42ae20
push dword [esp + 0x18]
call fcn.0043ffa0
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], 0x4c4d4a4b
mov word [esp + 8], 0
mov eax, 0xa7704992
mov edx, 0x588fb66d
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0x588fb672]
lea edi, [esi + esi]
not edi
add edi, esi
or edi, edx
lea ebx, [edi + edi]
not ebx
add ebx, edi
and edi, 0x4200995
and ebx, 0xa350406a
or ebx, edi
xor ebx, 0xa350406a
or esi, eax
and esi, ebx
lea edi, [esi*2 + 0x759d204a]
add esi, 0xbace9025
and edi, 2
mov ebx, edi
and ebx, esi
xor edi, esi
xor edi, 1
lea ebx, [edi + ebx*2]
mov byte [esp + eax + 0x588fb672], bl
inc eax
dec edx
cmp eax, 0xa7704998
jne 0x42ad90
mov eax, dword [esp + 4]
mov edx, dword [0x451f80]
test edx, edx
je 0x42ae46
xor esi, esi
mov edi, dword [0x451f84]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42ae27
inc esi
cmp edx, esi
jne 0x42ae10
jmp 0x42ae46
xor ebx, ebx
jmp 0x42b0f5
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x42ae46
push 0
push ecx
push ebp
push 5
push 4
push dword [0x451f88]
push edx
call fcn.00442960
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42b0ec
mov esi, dword [ebp]
xor eax, eax
mov ecx, esi
mov edx, ebp
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 0x42ae60
test ebx, ebx
jns 0x42ae80
mov eax, 0xffffffff
push eax
call fcn.0040ca00
add esp, 4
mov dword [esp], eax
mov ecx, ebp
jmp 0x42aea0
add ecx, esi
mov word [eax], 0xa
add eax, 2
mov esi, dword [ecx]
test esi, esi
je 0x42aec3
mov edx, dword [ecx + esi + 0x3c]
movzx edi, word [edx]
test di, di
je 0x42ae90
add edx, 2
nop
mov word [eax], di
add eax, 2
movzx edi, word [edx]
add edx, 2
test di, di
jne 0x42aeb0
jmp 0x42ae90
xor ebx, ebx
mov ecx, dword [esp]
cmp eax, ecx
je 0x42b0e3
mov word [eax], 0
movzx edi, word [ecx]
test di, di
je 0x42af2b
mov eax, dword [esp]
add eax, 2
xor ebx, ebx
mov ecx, edi
jmp 0x42aefc
inc ebx
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x42af2b
cmp cx, 0x7f
jbe 0x42aef0
movzx edx, cx
cmp edx, 0x7ff
ja 0x42af20
add ebx, 2
jmp 0x42aef1
cmp cx, 0xffff
je 0x42aef1
add ebx, 3
jmp 0x42aef1
mov dword [esp + 0x1c], ebp
lea eax, [ebx + 1]
push eax
call fcn.0040ca00
add esp, 4
mov ebp, eax
mov dword [esp + 0x14], eax
test di, di
je 0x42b067
mov ebp, dword [esp + 0x14]
test ebx, ebx
je 0x42b067
mov edx, dword [esp]
mov ecx, ebx
mov ebp, dword [esp + 0x14]
nop
movzx eax, di
lea edi, [edx + 2]
cmp ax, 0x7f
ja 0x42af80
lea esi, [ebp + 1]
mov byte [ebp], al
jmp 0x42b010
cmp eax, 0x7ff
ja 0x42afb0
cmp ecx, 2
jb 0x42afb0
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 0x42b010
mov esi, eax
and esi, 0xfc00
cmp esi, 0xd800
jne 0x42b02a
cmp ecx, 4
jb 0x42b02a
movzx esi, word [edx + 2]
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 eax, edi
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [ebp + 1], al
mov eax, edi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [ebp + 2], al
mov eax, esi
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
add ecx, ebp
sub ecx, esi
mov edx, edi
mov ebp, esi
movzx edi, word [edx]
test di, di
je 0x42b067
test ecx, ecx
jne 0x42af60
jmp 0x42b067
movzx edx, si
cmp edx, 0xdc00
jne 0x42b039
mov edx, edi
jmp 0x42b018
cmp ecx, 3
jb 0x42b063
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
mov byte [ebp + 2], al
lea esi, [ebp + 3]
jmp 0x42b010
mov esi, ebp
jmp 0x42b010
mov byte [ebp], 0
mov dword [esp + 4], 0x549f9dbc
mov dword [esp + 8], 0x52676657
mov dword [esp + 0xc], 0x61621961
mov dword [esp + 0x10], 0xfb6c
mov eax, 0x7d
mov ecx, 0x82
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x79]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0x8f
mov byte [esp + eax - 0x79], dl
inc eax
dec ecx
cmp eax, 0x8d
jne 0x42b0a0
lea eax, [esp + 4]
mov ecx, dword [esp + 0x34]
push ebx
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.0040d690
mov ebx, eax
push esi
call fcn.0040ca10
add esp, 4
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp]
push ecx
call fcn.0040ca10
add esp, 4
push ebp
call fcn.00440000
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret