Function at 0x42da30
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dcb6
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea eax, [ebp - 0x20]
nop
push ebx
push esi
push edi
mov ebx, ecx
push 4
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.0045d8b0
add esp, 0xc
lea ecx, [ebp - 0x24]
push 4
push ecx
push esi
call fcn.0045d8b0
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
nop
push eax
push ecx
mov ecx, ebx
call fcn.0042b660
mov edi, dword [ebx + 0x8dc4]
test edi, edi
je 0x42da9c
mov ecx, edi
call fcn.00426020
push edi
call fcn.0052f720
add esp, 4
push 0xc
call fcn.0052f700
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 4], 0
mov edi, eax
mov eax, 0
test edi, edi
je 0x42dac4
push ebx
mov ecx, edi
push esi
call fcn.00425f20
mov dword [ebp - 4], 0xffffffff
push 1
mov dword [ebx + 0x8dc4], eax
lea eax, [ebx + 0x8db8]
push eax
push esi
call fcn.0045d8b0
add esp, 0xc
lea eax, [ebx + 0x8db9]
push 1
push eax
push esi
call fcn.0045d8b0
add esp, 0xc
mov eax, dword [0x5666c0]
cmp eax, 0x40e00000
jl 0x42dc37
mov dword [ebp - 0x14], 0
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x42dc98
mov dword [ebp - 0x18], 0
mov ecx, dword [ebx + 0x8d8c]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov edi, dword [ecx + eax]
mov edx, dword [ebx + 8]
test edx, edx
jle 0x42dc1a
push 2
push edi
push esi
call fcn.0045d8b0
add esp, 0xc
lea eax, [edi + 2]
push 2
push eax
push esi
call fcn.0045d8b0
add esp, 0xc
lea eax, [edi + 4]
push 1
push eax
push esi
call fcn.0045d8b0
add esp, 0xc
lea eax, [ebp - 0xd]
push 1
push eax
push esi
call fcn.0045d8b0
add esp, 0xc
mov cl, byte [edi + 5]
mov al, byte [ebp - 0xd]
xor al, cl
push 1
and al, 0x1f
xor al, cl
lea ecx, [ebp - 0xd]
push ecx
mov byte [edi + 5], al
push esi
call fcn.0045d8b0
add esp, 0xc
mov al, byte [ebp - 0xd]
shl al, 5
mov cl, byte [edi + 5]
xor cl, al
push 1
and cl, 0x1f
xor cl, al
lea eax, [ebp - 0xd]
push eax
mov byte [edi + 5], cl
push esi
call fcn.0045d8b0
add esp, 0xc
mov cl, byte [edi + 6]
mov al, byte [ebp - 0xd]
xor al, cl
push 1
and al, 0xf
xor al, cl
lea ecx, [ebp - 0xd]
push ecx
mov byte [edi + 6], al
push esi
call fcn.0045d8b0
add esp, 0xc
mov al, byte [ebp - 0xd]
shl al, 4
mov cl, byte [edi + 6]
xor cl, al
add edi, 0x18
and cl, 0xf
mov edx, dword [ebp - 0x1c]
xor cl, al
inc edx
mov byte [edi - 0x12], cl
mov dword [ebp - 0x1c], edx
mov byte [edi - 0x11], 0
mov byte [edi - 0x10], 0xff
mov byte [edi - 0xf], 0
mov byte [edi - 0xe], 0
mov byte [edi - 0xd], 0
mov dword [edi - 8], 0
mov word [edi - 4], 0
cmp dword [ebx + 8], edx
jg 0x42db3c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add eax, 4
inc ecx
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
cmp edx, ecx
jg 0x42db1e
jmp 0x42dc98
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
imul eax, dword [ebx + 0xc]
lea eax, [eax + eax*2]
shl eax, 3
push eax
push ecx
push esi
call fcn.0045d8b0
add esp, 0xc
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x42dc98
xor edx, edx
xor eax, eax
mov ecx, dword [ebx + 8]
cmp ecx, eax
jle 0x42dc87
xor ecx, ecx
mov edi, dword [ebx + 0x8d8c]
add ecx, 0x18
inc eax
mov edi, dword [edi + edx]
mov dword [edi + ecx - 8], 0
cmp dword [ebx + 8], eax
jg 0x42dc6d
add edx, 4
mov eax, dword [ebp - 0x14]
inc eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jg 0x42dc62
push esi
mov ecx, dword [ebx + 0x8dc8]
call fcn.004122b0
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4