Function at 0x423ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
push edi
mov edi, 2
mov eax, dword [esi + 0x20]
test eax, eax
je 0x423dd9
push ebx
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0xc]
xor eax, eax
and ecx, 0x1ff
mov al, byte [edx + esi + 0x1efc2]
and edx, 0x7fff
and eax, 0x3fff
shl ecx, 5
xor eax, ecx
xor ecx, ecx
mov dword [esi + 0xc], eax
mov cx, word [esi + eax*2 + 0x3efc0]
mov word [esi + edx*2 + 0x2efc0], cx
mov edx, dword [esi + 0xc]
mov ax, word [esi + 0x14]
mov word [esi + edx*2 + 0x3efc0], ax
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x10], edi
mov edi, 2
test ecx, ecx
je 0x423c57
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x28]
cmp edx, eax
jae 0x423c57
mov eax, dword [esi + 0x14]
sub eax, ecx
cmp eax, 0x7efa
ja 0x423c57
push ecx
push esi
call fcn.00423e10
mov edi, eax
mov eax, dword [esi + 0x20]
add esp, 8
cmp edi, eax
jbe 0x423c3d
mov edi, eax
cmp edi, 3
jne 0x423c57
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub ecx, edx
cmp ecx, 0x1000
jbe 0x423c57
mov edi, 2
mov eax, dword [esi + 0x10]
cmp eax, 3
jb 0x423d2f
cmp edi, eax
ja 0x423d2f
mov edx, dword [esi + 0x14]
add eax, 0xfffffffd
sub edx, ebx
push eax
dec edx
push edx
push esi
call fcn.00424cb0
mov ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x20]
mov edx, 1
add esp, 0xc
sub edx, ecx
add edi, edx
add ecx, 0xfffffffe
mov dword [esi + 0x20], edi
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
inc ecx
and edi, 0x1ff
mov dword [esi + 0x14], ecx
mov edx, ecx
xor ecx, ecx
mov cl, byte [esi + edx + 0x1efc2]
and edx, 0x7fff
and ecx, 0x3fff
shl edi, 5
xor ecx, edi
mov dword [esi + 0xc], ecx
mov cx, word [esi + ecx*2 + 0x3efc0]
mov word [esi + edx*2 + 0x2efc0], cx
mov edx, dword [esi + 0xc]
mov cx, word [esi + 0x14]
mov word [esi + edx*2 + 0x3efc0], cx
mov ecx, dword [esi + 0x10]
dec ecx
mov dword [esi + 0x10], ecx
jne 0x423c97
mov ebx, dword [esi + 0x14]
xor ebp, ebp
inc ebx
mov edi, 2
test eax, eax
mov dword [esi + 0x14], ebx
mov ecx, ebx
je 0x423d8e
mov eax, dword [esi + 8]
test eax, eax
jl 0x423d16
lea edx, [eax + esi + 0x1efc0]
jmp 0x423d18
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
push esi
call fcn.00424290
mov edx, dword [esi + 0x14]
add esp, 0x10
mov dword [esi + 8], edx
jmp 0x423d8e
test ebp, ebp
je 0x423d7b
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov cl, byte [esi + eax + 0x1efbf]
push ecx
push 0
push esi
call fcn.00424cb0
add esp, 0xc
test eax, eax
je 0x423d80
mov eax, dword [esi + 8]
test eax, eax
jl 0x423d5f
lea ecx, [eax + esi + 0x1efc0]
jmp 0x423d61
xor ecx, ecx
mov edx, dword [esi + 0x14]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00424290
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esi + 8], eax
jmp 0x423d80
mov ebp, 1
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x20]
inc ecx
dec eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
mov ebx, 0x106
cmp eax, ebx
jae 0x423db1
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x423db1
push esi
call fcn.00423ab0
mov eax, dword [esi + 0x20]
add esp, 4
cmp eax, ebx
jb 0x423d9a
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x423bba
test ebp, ebp
pop ebx
je 0x423dd9
mov ecx, dword [esi + 0x14]
xor edx, edx
mov dl, byte [ecx + esi + 0x1efbf]
push edx
push 0
push esi
call fcn.00424cb0
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
jl 0x423de9
lea ecx, [eax + esi + 0x1efc0]
jmp 0x423deb
xor ecx, ecx
mov edx, dword [esi + 0x14]
push 1
sub edx, eax
push edx
push ecx
push esi
call fcn.00424290
add esp, 0x10
pop edi
pop esi
pop ebp
ret