Function at 0x42a640
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], 0x7c7d7e7f
mov byte [esp + 8], 0
mov eax, 0x99e8fc40
mov ecx, 0x661703bf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0x661703c4]
lea edx, [esi + esi]
not edx
add edx, esi
not esi
or esi, edx
mov edi, esi
or edi, eax
sub edi, esi
add edi, ecx
or edx, eax
and edx, edi
mov bl, 0xbf
sub bl, dl
mov byte [esp + eax + 0x661703c4], bl
inc eax
dec ecx
cmp eax, 0x99e8fc45
jne 0x42a670
mov eax, dword [esp + 4]
mov ecx, dword [0x450c68]
test ecx, ecx
je 0x42a6f4
xor edx, edx
mov esi, dword [0x450c6c]
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xc85f7986
je 0x42a6d0
inc edx
cmp ecx, edx
jne 0x42a6c0
jmp 0x42a6f4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x42a6f4
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x450c70]
push ecx
call fcn.00441a90
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x42a790
push dword [esp + 0x1c]
call fcn.0043ef40
add esp, 4
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x1c]
mov dword [esp + 4], 0x7c7d7e7f
mov byte [esp + 8], 0
mov eax, 0x99e8fc40
mov edx, 0x661703bf
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax + 0x661703c4]
lea ebx, [esi + esi]
not ebx
add ebx, esi
not esi
or esi, ebx
mov edi, esi
or edi, eax
sub edi, esi
add edi, edx
or ebx, eax
and ebx, edi
mov cl, 0xbf
sub cl, bl
mov byte [esp + eax + 0x661703c4], cl
inc eax
dec edx
cmp eax, 0x99e8fc45
jne 0x42a730
mov eax, dword [esp + 4]
mov edx, dword [0x450c68]
test edx, edx
je 0x42a7b6
xor esi, esi
mov edi, dword [0x450c6c]
mov ebx, dword [esp + 0x18]
nop
nop
nop
cmp dword [edi + esi*8], 0xc85f7986
je 0x42a797
inc esi
cmp edx, esi
jne 0x42a780
jmp 0x42a7b6
xor ebx, ebx
jmp 0x42aa83
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x42a7b6
push 0
push ebp
push ebx
push 5
push 4
push dword [0x450c70]
push edx
call fcn.00441a90
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x42aa77
mov ebx, dword [esp + 0x18]
mov ebp, dword [ebx]
xor eax, eax
mov ecx, ebp
mov edx, ebx
xor edi, edi
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add edi, 0x104
mov edx, esi
test ecx, ecx
jne 0x42a7d0
test edi, edi
jns 0x42a7f0
mov eax, 0xffffffff
push eax
call fcn.0040c590
add esp, 4
mov esi, eax
mov dword [esp], eax
mov eax, ebx
jmp 0x42a822
mov edi, esi
add eax, ebp
lea esi, [edi + 2]
mov word [edi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x42a853
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x42a810
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 0x42a840
jmp 0x42a812
xor ebx, ebx
mov eax, dword [esp]
cmp esi, eax
je 0x42aa6a
mov word [esi], 0
movzx ecx, word [eax]
test cx, cx
je 0x42a8b4
xor ebx, ebx
mov eax, dword [esp]
jmp 0x42a88e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x42a8b4
cmp eax, esi
jae 0x42a8b4
movzx ebp, cx
cmp ebp, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebp, 0x80
jb 0x42a880
mov edx, ecx
jmp 0x42a880
lea eax, [ebx + 1]
mov dword [esp + 0x24], eax
push eax
call fcn.0040c590
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
test ebx, ebx
jle 0x42a9c3
mov eax, dword [esp + 0x14]
cmp dword [esp], esi
jae 0x42a9c3
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
lea ebp, [ecx + eax]
add dword [esp + 0x24], ecx
mov ebx, dword [esp]
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [ebx]
test dx, dx
je 0x42a9c3
cmp dx, 0x7f
ja 0x42a920
mov byte [eax], dl
mov esi, 1
jmp 0x42a9b0
mov dword [esp + 0x28], ebx
mov ebx, ebp
mov ebp, dword [esp + 0x24]
sub ebp, eax
mov esi, ebp
not esi
and esi, 1
and ebp, 0xfffffffe
sub ebp, esi
movzx ecx, dx
cmp ebp, 2
jb 0x42a970
cmp ecx, 0x7ff
ja 0x42a970
mov ecx, edx
shr ecx, 6
add cl, 0xc0
mov byte [eax], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 1], dl
mov esi, 2
mov ebp, ebx
mov ebx, dword [esp + 0x28]
jmp 0x42a9b0
xor esi, esi
cmp ebp, 3
mov ebp, ebx
mov ebx, dword [esp + 0x28]
jb 0x42a9b0
mov esi, ecx
shr ecx, 0xc
or cl, 0xe0
mov byte [eax], cl
mov ecx, esi
shr ecx, 6
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
and dl, 0x3f
or dl, 0x80
mov byte [eax + 2], dl
mov esi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, esi
cmp eax, ebp
jae 0x42a9c3
lea ecx, [ebx + 2]
cmp ebx, edi
mov ebx, ecx
jb 0x42a900
mov byte [eax], 0
mov dword [esp + 4], 0xb4bfbd9c
mov dword [esp + 8], 0xb2a7a6b7
mov dword [esp + 0xc], 0xa1a279a1
mov dword [esp + 0x10], 0x5bac
mov eax, 0xa6c20b5a
mov ecx, 0x5cc6a50d
movzx edi, byte [esp + eax + 0x593df4aa]
lea esi, [eax + 0x593df4b3]
and esi, edi
add esi, esi
mov edx, edi
sub edx, esi
add edx, ecx
mov ebp, edx
and ebp, 0x100686be
mov ebx, edx
and ebx, 0x4cc02141
xor edx, 0x301ec6be
add edx, ebp
add edx, edi
sub edx, ebx
sub edx, esi
add edx, eax
mov esi, edx
and esi, 1
xor edx, 1
lea edx, [edx + esi*2]
add dl, 0xb3
mov byte [esp + eax + 0x593df4aa], dl
inc eax
inc ecx
cmp eax, 0xa6c20b6a
jne 0x42a9f0
lea eax, [esp + 4]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
push esi
push eax
call fcn.0040cf90
mov ebx, eax
push esi
call fcn.0040c5a0
add esp, 4
jmp 0x42aa6c
xor ebx, ebx
push dword [esp]
call fcn.0040c5a0
add esp, 4
push dword [esp + 0x18]
call fcn.0043efa0
add esp, 4
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret