Function at 0x423640
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebp
push esi
push edi
lea eax, [esp + 0xc]
mov ebp, edx
push eax
mov dword [esp + 0x1c], ebp
mov edi, ecx
call fcn.004235b0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4236d1
mov eax, dword [esp + 0x20]
mov esi, dword [ecx + 8]
test eax, eax
jne 0x4236c2
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
test edx, edx
je 0x423679
mov dword [edx], eax
jmp 0x42367c
mov dword [edi + 8], eax
mov edx, dword [ecx]
test edx, edx
je 0x423688
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4236a3
mov eax, dword [esp + 0xc]
cmp dword [edx + eax*8 + 4], ecx
lea edx, [edx + eax*8]
jne 0x4236a1
mov eax, dword [ecx]
mov dword [edx + 4], eax
dec dword [edx]
push ecx
call fcn.0041f4b0
add esp, 4
add dword [edi + 4], 0xffffffff
jne 0x4236c8
mov ecx, edi
call fcn.00423510
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], ebp
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret
mov esi, dword [esp + 0x20]
push ebx
test esi, esi
je 0x4238f7
push 0x10
call fcn.0041f140
mov ebx, eax
add esp, 4
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4236fc
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x10
ret
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], esi
inc dword [edi + 4]
mov esi, dword [edi + 4]
cmp esi, 0xa
jb 0x423887
mov ecx, dword [edi]
lea eax, [ecx + ecx]
cmp esi, eax
jbe 0x423887
add esi, esi
mov edx, 0x80
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, edx
cmp esi, ecx
je 0x423887
mov eax, dword [0x4dda30]
test eax, eax
je 0x423747
call eax
lea eax, [esi*8]
push eax
call fcn.0041f140
mov ecx, dword [0x4dda34]
add esp, 4
mov esi, eax
mov dword [esp + 0x14], esi
test ecx, ecx
je 0x423769
call ecx
test esi, esi
je 0x423887
push dword [edi + 0xc]
call fcn.0041f4b0
push esi
mov dword [edi + 0xc], esi
call dword [0x4dab18]
shr eax, 3
mov dword [esp + 0x18], eax
mov dword [edi], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.004a3c90
mov esi, dword [edi + 8]
add esp, 0x14
mov dword [edi + 8], 0
test esi, esi
je 0x423853
mov ebx, dword [esi + 0xc]
xor ebp, ebp
mov al, byte [ebx]
test al, al
je 0x4237de
nop dword [eax]
movzx eax, al
lea ecx, [ebp*8]
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x4ca7f0]
mov al, byte [ebx]
xor edx, ecx
xor ebp, edx
test al, al
jne 0x4237c0
xor edx, edx
mov ebx, dword [esi]
mov eax, ebp
div dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea edx, [eax + edx*8]
test edx, edx
je 0x423828
mov eax, dword [edx]
test eax, eax
je 0x4237fe
mov ecx, dword [edx + 4]
jmp 0x423800
xor ecx, ecx
inc eax
mov dword [edx + 4], esi
mov dword [edx], eax
test ecx, ecx
je 0x423828
mov dword [esi], ecx
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x423820
mov dword [eax], esi
mov dword [ecx + 4], esi
jmp 0x423841
mov dword [edi + 8], esi
mov dword [ecx + 4], esi
jmp 0x423841
mov eax, dword [edi + 8]
mov dword [esi], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x423837
mov dword [eax + 4], esi
mov dword [esi + 4], 0
mov dword [edi + 8], esi
mov esi, ebx
test ebx, ebx
jne 0x4237b1
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov al, byte [ebp]
xor esi, esi
test al, al
je 0x42387f
nop dword [eax]
movzx eax, al
lea ecx, [esi*8]
lea ebp, [ebp + 1]
movzx edx, byte [eax + 0x4ca7f0]
mov al, byte [ebp]
xor edx, ecx
xor esi, edx
test al, al
jne 0x423860
mov eax, esi
xor edx, edx
div dword [edi]
jmp 0x42388b
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
test eax, eax
je 0x4238de
lea edx, [eax + edx*8]
test edx, edx
je 0x4238de
mov eax, dword [edx]
test eax, eax
je 0x4238a4
mov ecx, dword [edx + 4]
jmp 0x4238a6
xor ecx, ecx
inc eax
mov dword [edx + 4], ebx
mov dword [edx], eax
test ecx, ecx
je 0x4238de
mov dword [ebx], ecx
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x4238ce
mov dword [eax], ebx
xor eax, eax
mov dword [ecx + 4], ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov dword [edi + 8], ebx
xor eax, eax
mov dword [ecx + 4], ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov eax, dword [edi + 8]
mov dword [ebx], eax
mov eax, dword [edi + 8]
test eax, eax
je 0x4238ed
mov dword [eax + 4], ebx
mov dword [ebx + 4], 0
mov dword [edi + 8], ebx
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret