Function at 0x42ac90
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0xe0e7e6e5
mov word [esp + 0x10], 0
xor eax, eax
mov ecx, eax
add cl, 0xd9
xor cl, byte [esp + eax + 0xc]
add cl, 0xc3
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 6
jne 0x42acb0
mov eax, dword [esp + 0xc]
mov ecx, dword [0x44fabc]
test ecx, ecx
je 0x42ad14
xor edx, edx
mov esi, dword [0x44fac0]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x42acf0
inc edx
cmp ecx, edx
jne 0x42ace0
jmp 0x42ad14
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x42ad14
lea eax, [esp + 8]
push eax
push 0
push 0
push 5
push 4
push dword [0x44fac4]
push ecx
call fcn.00440ac0
add esp, 0x1c
xor ebx, ebx
cmp eax, 0xc0000004
jne 0x42b0b2
push dword [esp + 8]
call fcn.0043e040
xor edx, edx
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 0xe0e7e6e5
mov word [esp + 0x10], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
add al, 0xd9
xor al, byte [esp + edx + 0xc]
add al, 0xc3
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 6
jne 0x42ad50
mov eax, dword [esp + 0xc]
mov edx, dword [0x44fabc]
test edx, edx
je 0x42adaf
xor esi, esi
mov edi, dword [0x44fac0]
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42ad90
inc esi
cmp edx, esi
jne 0x42ad80
jmp 0x42adaf
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x42adaf
push 0
push ecx
push ebp
push 5
push 4
push dword [0x44fac4]
push edx
call fcn.00440ac0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42b0a9
mov esi, dword [ebp]
mov eax, esi
mov ecx, ebp
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
inc edi
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x42add0
mov eax, edi
and eax, 0xfffffefb
mov ecx, edi
and ecx, 0x104
or edi, 0x104
imul edi, ecx
xor ecx, 0x104
imul ecx, eax
add edi, ecx
jns 0x42ae09
mov edi, 0xffffffff
jmp 0x42ae0b
add edi, edi
push edi
call fcn.0040cbb0
add esp, 4
mov ebx, eax
mov ecx, ebp
jmp 0x42ae30
add ecx, esi
mov word [eax], 0xa
add eax, 2
mov esi, dword [ecx]
test esi, esi
je 0x42ae53
mov edx, dword [ecx + esi + 0x3c]
movzx edi, word [edx]
test di, di
je 0x42ae20
add edx, 2
nop
mov word [eax], di
add eax, 2
movzx edi, word [edx]
add edx, 2
test di, di
jne 0x42ae40
jmp 0x42ae20
xor edx, edx
cmp eax, ebx
je 0x42b09c
mov word [eax], 0
movzx edi, word [ebx]
test di, di
je 0x42aebd
mov eax, ebx
add eax, 2
xor edx, edx
mov ecx, edi
jmp 0x42ae8c
inc edx
movzx ecx, word [eax]
add eax, 2
test cx, cx
je 0x42aebd
cmp cx, 0x7f
jbe 0x42ae80
mov esi, edx
movzx edx, cx
cmp edx, 0x7ff
ja 0x42aeb0
mov edx, esi
add edx, 2
jmp 0x42ae81
cmp cx, 0xffff
mov edx, esi
je 0x42ae81
add edx, 3
jmp 0x42ae81
mov dword [esp + 0x20], ebp
mov dword [esp + 4], edx
lea eax, [edx + 1]
push eax
call fcn.0040cbb0
add esp, 4
mov ebp, eax
mov dword [esp], eax
test di, di
je 0x42b007
mov ebp, dword [esp]
cmp dword [esp + 4], 0
je 0x42b007
mov edx, ebx
mov ecx, dword [esp + 4]
mov ebp, dword [esp]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, di
lea edi, [edx + 2]
cmp ax, 0x7f
ja 0x42af20
mov byte [ebp], al
lea esi, [ebp + 1]
jmp 0x42afb0
cmp eax, 0x7ff
ja 0x42af50
cmp ecx, 2
jb 0x42af50
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 0x42afb0
mov esi, eax
and esi, 0xfc00
cmp esi, 0xd800
jne 0x42afca
cmp ecx, 4
jb 0x42afca
movzx esi, word [edx + 2]
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
mov byte [ebp + 3], al
lea esi, [ebp + 4]
add edx, 4
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 0x42b007
test ecx, ecx
jne 0x42af00
jmp 0x42b007
movzx edx, si
cmp edx, 0xdc00
jne 0x42afd9
mov edx, edi
jmp 0x42afb8
cmp ecx, 3
jb 0x42b003
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 0x42afb0
mov esi, ebp
jmp 0x42afb0
mov edi, ebx
mov byte [ebp], 0
mov dword [esp + 0xc], 0x30050320
mov dword [esp + 0x10], 0x320d0e31
mov dword [esp + 0x14], 0x3064f0b
mov word [esp + 0x18], 0x8518
mov dword [esp + 0x1a], 0
mov word [esp + 0x1e], 0
mov eax, 0xe4
mov ecx, 0x1b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xd8]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
mov bl, 0x8b
sub bl, dl
mov byte [esp + eax - 0xd8], bl
inc eax
dec ecx
cmp eax, 0xf8
jne 0x42b050
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x38]
push dword [esp + 4]
mov esi, dword [esp + 4]
push esi
push eax
call fcn.0040d7b0
mov ebx, eax
push esi
call fcn.0040cbc0
add esp, 4
mov ebp, dword [esp + 0x20]
jmp 0x42b0a0
mov edi, ebx
xor ebx, ebx
push edi
call fcn.0040cbc0
add esp, 4
push ebp
call fcn.0043e100
add esp, 4
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret