Function at 0x435016
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ecx, dword [0x4b6074]
mov edx, dword [esp + 0x40]
movzx eax, word [esp + 0x3c]
xor ecx, esp
test edx, edx
mov dword [esp + 0x1c], ecx
je 0x435041
movzx ecx, word [esp + 0x44]
mov dword [esp + 8], edx
jmp 0x43504f
lea ecx, [esp + 0x13]
mov dword [esp + 8], ecx
mov byte [ecx], 0
xor ecx, ecx
inc ecx
mov dword [esp], ecx
movsx ebx, ax
xor ecx, ecx
mov edi, dword [esp + 0x38]
mov eax, ecx
cdq
idiv ebx
lea eax, [ecx + 1]
movzx esi, byte [edi + edx]
mov edi, dword [esp + 0x34]
cdq
shl esi, 0x18
xor esi, dword [edi + ecx + 0x1000]
mov dword [edi + ecx + 0x1000], esi
idiv ebx
mov eax, dword [esp + 0x38]
movzx ebp, byte [eax + edx]
lea eax, [ecx + 2]
cdq
shl ebp, 0x10
xor ebp, esi
mov dword [edi + ecx + 0x1000], ebp
idiv ebx
mov eax, dword [esp + 0x38]
movzx esi, byte [eax + edx]
lea eax, [ecx + 3]
cdq
shl esi, 8
xor esi, ebp
mov dword [edi + ecx + 0x1000], esi
idiv ebx
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + edx]
xor eax, esi
mov dword [edi + ecx + 0x1000], eax
add ecx, 4
cmp ecx, 0x48
jne 0x435057
movsx esi, word [esp]
xor ecx, ecx
lea eax, [esp + 0x14]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov dword [esp + 0xc], esi
mov ebp, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xor edi, edi
xor esi, esi
mov dword [esp], ecx
mov dword [esp + 4], edx
mov eax, dword [esp]
mov ecx, edi
add edi, 8
not ecx
and cl, 0x18
lea eax, [eax + esi]
cdq
idiv ebx
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], eax
mov eax, 8
cmp esi, eax
jne 0x4350f4
mov edi, dword [esp]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edi, 8
mov esi, eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434c94
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx*4 + 0x1000], eax
lea ecx, [edx*4]
add edx, 2
mov eax, dword [esp + 0x18]
or ecx, 4
cmp edx, 0x12
mov dword [esi + ecx + 0x1000], eax
mov ecx, edi
jb 0x4350e1
xor edx, edx
mov eax, 0x48
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0xc]
xor ebx, ebx
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov ecx, ebx
add ebx, 8
not ecx
and cl, 0x18
lea eax, [eax + esi]
cdq
idiv edi
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], eax
mov eax, 8
cmp esi, eax
jne 0x43518f
mov edi, dword [esp]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edi, 8
mov esi, eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434c94
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx*4], eax
lea ecx, [edx*4]
add edx, 2
mov eax, dword [esp + 0x18]
or ecx, 4
cmp edx, 0x100
mov dword [esi + ecx], eax
mov eax, edi
jb 0x43517c
xor edx, edx
mov eax, 0x448
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0xc]
xor ebx, ebx
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov ecx, ebx
add ebx, 8
not ecx
and cl, 0x18
lea eax, [eax + esi]
cdq
idiv edi
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], eax
mov eax, 8
cmp esi, eax
jne 0x435225
mov edi, dword [esp]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edi, 8
mov esi, eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434c94
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx*4 + 0x400], eax
lea ecx, [edx*4]
add edx, 2
mov eax, dword [esp + 0x18]
or ecx, 4
cmp edx, 0x100
mov dword [esi + ecx + 0x400], eax
mov eax, edi
jb 0x435212
xor edx, edx
mov eax, 0x848
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0xc]
xor ebx, ebx
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov ecx, ebx
add ebx, 8
not ecx
and cl, 0x18
lea eax, [eax + esi]
cdq
idiv edi
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], eax
mov eax, 8
cmp esi, eax
jne 0x4352c3
mov edi, dword [esp]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edi, 8
mov esi, eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434c94
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx*4 + 0x800], eax
lea ecx, [edx*4]
add edx, 2
mov eax, dword [esp + 0x18]
or ecx, 4
cmp edx, 0x100
mov dword [esi + ecx + 0x800], eax
mov eax, edi
jb 0x4352b0
xor edx, edx
mov eax, 0xc48
mov ebp, dword [esp + 8]
mov edi, dword [esp + 0xc]
xor ebx, ebx
xor esi, esi
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp]
mov ecx, ebx
add ebx, 8
not ecx
and cl, 0x18
lea eax, [eax + esi]
cdq
idiv edi
movzx eax, byte [ebp + edx]
shl eax, cl
mov ecx, esi
inc esi
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], eax
mov eax, 8
cmp esi, eax
jne 0x435361
mov edi, dword [esp]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add edi, 8
mov esi, eax
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00434c94
add esp, 8
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx*4 + 0xc00], eax
lea ecx, [edx*4]
add edx, 2
mov eax, dword [esp + 0x18]
or ecx, 4
cmp edx, 0x100
mov dword [esi + ecx + 0xc00], eax
mov eax, edi
jb 0x43534e
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046ef41
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret