Function at 0x4238f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov dword [esp + 0x38], 0
mov dword [esp + 0x10], 0x82858487
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x42397f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + 0x2c7950c1]
add eax, 0xc1
or eax, edx
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xb9
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x423940
mov eax, dword [esp + 0x10]
mov ecx, dword [0x449d18]
test ecx, ecx
je 0x4239d4
xor edx, edx
mov esi, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0xe4aa2089
je 0x4239b0
inc edx
cmp ecx, edx
jne 0x4239a0
jmp 0x4239d4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4239d4
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 5
push 4
push dword [0x449d20]
push ecx
call fcn.0043ab10
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x423aa2
push dword [esp + 0x38]
call fcn.00438aa0
add esp, 4
mov edi, eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], 0x82858487
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x423a6f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
lea esi, [eax + 0x2c7950c1]
add eax, 0xc1
or eax, esi
and eax, edx
or esi, edx
sub esi, eax
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0xc]
add al, 0xb9
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x423a30
mov eax, dword [esp + 0x10]
mov edx, dword [0x449d18]
test edx, edx
je 0x423aca
mov ebx, edi
xor esi, esi
mov edi, dword [0x449d1c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0xe4aa2089
je 0x423aa9
inc esi
cmp edx, esi
jne 0x423a90
mov edi, ebx
jmp 0x423aca
xor ebx, ebx
jmp 0x423db5
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, ebx
je 0x423aca
push 0
push ecx
push edi
push 5
push 4
push dword [0x449d20]
push edx
call fcn.0043ab10
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x423dac
mov ecx, dword [edi]
xor eax, eax
mov edx, edi
nop
nop
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x423ae0
test ebx, ebx
jns 0x423b00
mov eax, 0xffffffff
push eax
call fcn.00409270
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov eax, edi
mov dword [esp + 0x30], ecx
mov edi, ecx
mov dword [esp + 8], eax
jmp 0x423b2e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x423b53
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x423b20
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x423b40
jmp 0x423b20
mov eax, dword [esp + 0x30]
cmp edi, eax
je 0x423cb5
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x423cc0
xor edx, edx
jmp 0x423b8e
add edx, esi
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x423bbd
cmp eax, edi
jae 0x423bbd
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 0x34]
mov esi, 1
cmp ebx, 0x80
jb 0x423b80
movzx ebx, byte [esp + 0x34]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x423b80
mov dword [esp + 0x28], edx
lea ebx, [edx + 1]
push ebx
call fcn.00409270
mov ecx, dword [esp + 0x2c]
add esp, 4
test ecx, ecx
mov dword [esp + 0x3c], eax
jle 0x423cd6
add ecx, eax
mov dword [esp + 0x34], ecx
add ebx, eax
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
jmp 0x423c06
mov byte [eax], cl
mov esi, 1
add edx, 2
add eax, esi
cmp eax, dword [esp + 0x34]
jae 0x423cd6
cmp edx, edi
jae 0x423cd6
movzx ecx, word [edx]
test cx, cx
je 0x423cd6
cmp cx, 0x7f
jbe 0x423bf0
mov dword [esp + 0x40], eax
mov esi, eax
not esi
mov eax, esi
and eax, ebx
xor esi, ebx
lea eax, [esi + eax*2]
cmp eax, 2
jb 0x423c70
movzx esi, cx
cmp esi, 0x7ff
ja 0x423c70
mov ebx, ecx
shr ebx, 6
add bl, 0xc0
mov eax, dword [esp + 0x40]
mov byte [eax], bl
and cl, 0x3f
or cl, 0x80
mov byte [eax + 1], cl
mov esi, 2
mov ebx, dword [esp + 0x2c]
jmp 0x423bf7
xor esi, esi
cmp eax, 3
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
jb 0x423bf7
movzx esi, cx
mov ebx, esi
shr ebx, 0xc
or bl, 0xe0
mov byte [eax], bl
shr esi, 6
mov ebx, esi
and bl, 0x3f
or bl, 0x80
mov byte [eax + 1], bl
mov ebx, dword [esp + 0x2c]
and cl, 0x3f
or cl, 0x80
mov byte [eax + 2], cl
mov esi, 3
jmp 0x423bf7
xor ebx, ebx
mov edi, dword [esp + 8]
jmp 0x423da3
mov dword [esp + 0x28], 0
push 1
call fcn.00409270
add esp, 4
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 0x10], 0x8ea5a386
mov dword [esp + 0x14], 0x949d9c91
mov dword [esp + 0x18], 0x6b98df9b
mov word [esp + 0x1c], 0xe196
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x17
ja 0x423d7e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0xbfc3abdd
add eax, 0xbfc3abdd
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, eax
xor ecx, 0xf4
and eax, 0x74
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x18
jb 0x423d30
lea eax, [esp + 0x10]
mov ecx, dword [ebp + 8]
push dword [esp + 0x28]
mov esi, dword [esp + 0x40]
push esi
push eax
call fcn.00409cd0
mov ebx, eax
push esi
call fcn.00409280
add esp, 4
mov eax, dword [esp + 0x30]
push eax
call fcn.00409280
add esp, 4
push edi
call fcn.00438bf0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret