Function at 0x429240
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
cmp edx, 0x8000
push ebp
mov ebp, ecx
push esi
mov dword [ebp + 4], 0
mov dword [ebp], 0
mov ecx, edx
jl 0x429265
mov ecx, 0x8000
mov esi, dword [esp + 0xc]
mov eax, ecx
push ebx
shr ecx, 2
push edi
mov edi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, 1
xor bl, bl
cmp edx, eax
rep movsb byte es:[edi], byte [esi]
jle 0x429293
mov ecx, dword [esp + 0x14]
xor bl, byte [eax + ecx]
inc eax
cmp eax, edx
jl 0x429287
push 8
mov ecx, ebp
call fcn.00427aa0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], 0
cmp bl, byte [eax]
jne 0x4294de
mov edx, dword [esp + 0x18]
push edx
push eax
mov ecx, ebp
call fcn.00427cb0
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x429305
push 1
mov ecx, esi
call fcn.004296f0
mov eax, dword [esi + 0x10]
lea ecx, [eax + 1]
mov dword [esi + 0x10], ecx
lea edx, [eax + eax*4]
mov eax, dword [esi]
lea eax, [eax + edx*8]
lea ecx, [eax + 0xc]
mov dword [ecx], edi
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
mov dword [eax + 0x24], ecx
mov ecx, 3
mov dword [eax], 0x36
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0x18], ebx
mov ecx, ebp
call fcn.00427ac0
push 1
mov ecx, ebp
mov edi, eax
call fcn.00427aa0
test edi, 0x8000
je 0x429375
push ebp
call fcn.00427ba0
mov edx, dword [esp + 0x18]
mov ecx, dword [ebp]
inc eax
cmp ecx, edx
mov dword [esp + 0x14], eax
jge 0x4294de
jmp 0x429340
mov eax, dword [esp + 0x14]
nop
cmp ebx, eax
jge 0x429375
lea edi, [esi + 0x20]
push 1
mov ecx, edi
call fcn.004144f0
mov edi, dword [edi]
mov ecx, ebp
add edi, ebx
call fcn.00427ac0
shr eax, 8
push 8
mov ecx, ebp
mov byte [edi], al
call fcn.00427aa0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
inc ebx
cmp ecx, eax
jl 0x42933b
mov ecx, dword [ebp]
cmp ecx, dword [esp + 0x18]
jge 0x4294de
mov ecx, dword [esi + 4]
inc ecx
mov edi, ecx
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
cmp edi, ecx
jle 0x4293cc
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp edi, eax
jg 0x4293a7
mov edi, eax
mov eax, dword [esi]
lea edx, [edi + edi*4]
shl edx, 3
push edx
push eax
call fcn.0042ce32
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x4293c9
mov ecx, 0x44e1d8
call fcn.0041bb00
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov edx, dword [esi]
lea ecx, [eax + eax*4]
lea edi, [edx + ecx*8]
mov ecx, ebp
call fcn.00427ac0
test ah, ah
mov ecx, ebp
js 0x4293eb
shr eax, 0xc
push 4
jmp 0x4293f3
shr eax, 0xa
sub eax, 0x18
push 6
mov dword [edi], eax
call fcn.00427aa0
mov eax, dword [edi]
test byte [eax + 0x447610], 4
je 0x429422
mov ecx, ebp
call fcn.00427ac0
test eax, 0xffff8000
setne cl
mov byte [edi + 4], cl
push 1
mov ecx, ebp
call fcn.00427aa0
jmp 0x429426
mov byte [edi + 4], 0
mov edx, dword [edi]
lea eax, [edi + 0x18]
mov dword [esp + 0x1c], eax
mov dword [eax], 3
lea ebx, [edi + 8]
xor eax, eax
mov dword [ebx], 3
mov al, byte [edx + 0x447610]
and eax, 3
mov dword [esp + 0x14], eax
mov eax, 0
mov dword [edi + 0x24], eax
mov dword [edi + 0x14], eax
jle 0x4294ca
xor ecx, ecx
mov cl, byte [edi + 4]
push ecx
push ebx
mov ecx, ebp
call fcn.00427e90
cmp dword [esp + 0x14], 2
jne 0x429483
mov eax, dword [esp + 0x1c]
xor edx, edx
mov dl, byte [edi + 4]
mov ecx, ebp
push edx
push eax
call fcn.00427e90
jmp 0x4294ca
cmp dword [ebx], 1
jne 0x4294ca
mov ecx, dword [edi]
test byte [ecx + 0x447610], 0x18
je 0x4294ca
mov eax, dword [edi + 0xc]
cmp eax, 0x100
jl 0x4294a4
sub eax, 0x100
jmp 0x4294c7
cmp eax, 0x88
jl 0x4294b2
sub eax, 0x108
jmp 0x4294c4
cmp eax, 0x10
jl 0x4294bc
sub eax, 8
jmp 0x4294c4
cmp eax, 8
jl 0x4294c4
sub eax, 0x10
add eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x18]
inc ecx
mov dword [esi + 0x10], ecx
cmp dword [ebp], edx
jl 0x429382
mov ecx, dword [esi + 4]
inc ecx
mov edi, ecx
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
cmp edi, ecx
jle 0x429528
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp edi, eax
jg 0x429503
mov edi, eax
mov ecx, dword [esi]
lea eax, [edi + edi*4]
shl eax, 3
push eax
push ecx
call fcn.0042ce32
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x429525
mov ecx, 0x44e1d8
call fcn.0041bb00
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 0x10], edx
lea eax, [eax + eax*4]
lea eax, [ecx + eax*8]
lea ecx, [eax + 0x1c]
lea edx, [eax + 0xc]
mov dword [eax + 0x24], ecx
mov ecx, 3
mov dword [eax + 0x14], edx
mov dword [eax], 0x16
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x10]
xor edx, edx
test eax, eax
jle 0x42958b
xor ecx, ecx
mov eax, dword [esi]
mov edi, dword [eax + ecx + 0x14]
add eax, ecx
test edi, edi
jne 0x429573
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
mov edi, dword [eax + 0x24]
test edi, edi
jne 0x429580
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
mov eax, dword [esi + 0x10]
inc edx
add ecx, 0x28
cmp edx, eax
jl 0x429561
mov eax, dword [esp + 0x18]
test eax, eax
pop edi
pop ebx
je 0x42959d
push esi
mov ecx, ebp
call fcn.00427f90
pop esi
pop ebp
ret 0xc