Function at 0x492dd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov eax, esi
cmp esi, 0x8000
jl 0x492df7
mov eax, 0x8000
push ebx
push edi
mov edi, dword [ebp + 8]
push eax
mov eax, dword [ecx + 8]
push edi
push eax
call sub.MSVCR100.dll_memcpy
mov eax, 1
add esp, 0xc
xor bl, bl
cmp esi, eax
jle 0x492e1d
xor bl, byte [eax + edi]
inc eax
cmp eax, esi
jl 0x492e15
mov ecx, dword [ebp - 4]
push 8
call fcn.004867d0
mov esi, dword [ebp + 0x10]
mov dword [esi + 0x10], 0
cmp bl, byte [edi]
jne 0x493128
mov ebx, dword [ebp + 0xc]
push ebx
push edi
push 0xffffffffffffffff
call fcn.00489a50
add esp, 0xc
xor edx, edx
not eax
xor ecx, ecx
mov edi, edi
cmp dword [ecx + 0x4cc854], eax
jne 0x492e60
cmp dword [ecx + 0x4cc850], ebx
je 0x492e6e
add ecx, 0xc
inc edx
cmp ecx, 0x54
jb 0x492e50
jmp 0x492f02
lea ecx, [edx + edx*2]
mov ebx, dword [ecx*4 + 0x4cc858]
test ebx, ebx
je 0x492f02
inc dword [esi + 4]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp edi, ecx
jle 0x492ecb
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp edi, eax
jg 0x492ea2
mov edi, eax
mov eax, dword [esi]
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
add edx, edx
push edx
push eax
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x492ec8
mov ecx, 0x4d9ef8
call fcn.0048c5f0
mov dword [esi + 8], edi
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], ebx
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 [ebp + 0xc], 0
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.004867f0
push 1
mov ecx, ebx
mov edi, eax
call fcn.004867d0
test edi, 0x8000
je 0x492fba
push ebx
call fcn.0048edd0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
inc eax
xor ebx, ebx
add esp, 4
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ebx
cmp dword [ecx], edx
jge 0x493128
jmp 0x492f4b
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
cmp ebx, eax
jge 0x492fba
inc dword [esi + 0x24]
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
cmp edi, ecx
jle 0x492f93
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + ecx + 0x20]
cmp edi, ecx
jg 0x492f71
mov edi, ecx
mov edx, dword [esi + 0x20]
push edi
push edx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [esi + 0x20], eax
test eax, eax
jne 0x492f90
mov ecx, 0x4d9ef8
call fcn.0048c5f0
mov dword [esi + 0x28], edi
mov edi, dword [esi + 0x20]
add edi, ebx
mov ebx, dword [ebp - 4]
mov ecx, ebx
call fcn.004867f0
shr eax, 8
push 8
mov ecx, ebx
mov byte [edi], al
call fcn.004867d0
mov eax, dword [ebp + 0xc]
inc dword [ebp + 8]
cmp dword [ebx], eax
jl 0x492f45
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
cmp dword [edx], ecx
jge 0x493128
jmp 0x492fd0
inc dword [esi + 4]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp edi, ecx
jle 0x49301b
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea ecx, [eax + ecx + 0x20]
cmp edi, ecx
jg 0x492ff2
mov edi, ecx
mov ecx, dword [esi]
lea eax, [edi + edi*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x493018
mov ecx, 0x4d9ef8
call fcn.0048c5f0
mov dword [esi + 8], edi
mov eax, dword [esi + 0x10]
mov ebx, dword [ebp - 4]
lea edx, [eax + eax*4]
mov eax, dword [esi]
mov ecx, ebx
lea edi, [eax + edx*8]
call fcn.004867f0
mov ecx, ebx
test eax, 0x8000
jne 0x493040
shr eax, 0xc
push 4
jmp 0x493048
shr eax, 0xa
sub eax, 0x18
push 6
mov dword [edi], eax
call fcn.004867d0
mov ecx, dword [edi]
test byte [ecx + 0x4cc5d0], 4
je 0x493077
mov ecx, ebx
call fcn.004867f0
test eax, 0xffff8000
setne dl
push 1
mov ecx, ebx
mov byte [edi + 4], dl
call fcn.004867d0
jmp 0x49307b
mov byte [edi + 4], 0
mov ecx, dword [edi]
lea eax, [edi + 0x18]
mov dword [eax], 3
mov dword [ebp + 8], eax
lea eax, [edi + 8]
mov dword [eax], 3
movzx ebx, byte [ecx + 0x4cc5d0]
and ebx, 3
mov ecx, 0
mov dword [edi + 0x24], ecx
mov dword [edi + 0x14], ecx
jle 0x493117
movzx edx, byte [edi + 4]
mov ecx, dword [ebp - 4]
push edx
push eax
call fcn.00490c00
cmp ebx, 2
jne 0x4930cf
movzx eax, byte [edi + 4]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.00490c00
jmp 0x493117
cmp dword [edi + 8], 1
jne 0x493117
mov edx, dword [edi]
test byte [edx + 0x4cc5d0], 0x18
je 0x493117
mov eax, dword [edi + 0xc]
cmp eax, 0x100
jl 0x4930f1
sub eax, 0x100
jmp 0x493114
cmp eax, 0x88
jl 0x4930ff
sub eax, 0x108
jmp 0x493111
cmp eax, 0x10
jl 0x493109
sub eax, 8
jmp 0x493111
cmp eax, 8
jl 0x493111
sub eax, 0x10
add eax, dword [esi + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
inc dword [esi + 0x10]
cmp dword [ecx], eax
jl 0x492fd0
inc dword [esi + 4]
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
cmp edi, ecx
jle 0x493173
mov eax, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
lea eax, [eax + ecx + 0x20]
cmp edi, eax
jg 0x49314a
mov edi, eax
mov eax, dword [esi]
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
add edx, edx
push edx
push eax
call dword [sym.imp.MSVCR100.dll_realloc]
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x493170
mov ecx, 0x4d9ef8
call fcn.0048c5f0
mov dword [esi + 8], edi
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 [eax + 0x14], ecx
mov ecx, 3
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
lea edx, [eax + 0x1c]
xor ecx, ecx
mov dword [eax], 0x16
mov dword [eax + 0x24], edx
cmp dword [esi + 0x10], ecx
jle 0x4931d5
xor edx, edx
lea ebx, [ebx]
mov eax, dword [esi]
add eax, edx
cmp dword [eax + 0x14], 0
jne 0x4931c0
lea edi, [eax + 0xc]
mov dword [eax + 0x14], edi
cmp dword [eax + 0x24], 0
jne 0x4931cc
lea edi, [eax + 0x1c]
mov dword [eax + 0x24], edi
inc ecx
add edx, 0x28
cmp ecx, dword [esi + 0x10]
jl 0x4931b0
cmp dword [ebp + 0xc], 0
pop edi
pop ebx
je 0x4931e6
mov ecx, dword [ebp - 4]
push esi
call fcn.00490d00
pop esi
mov esp, ebp
pop ebp
ret 0xc