Function at 0x4963c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fad30
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
push edi
mov eax, dword [0x53273c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0xc]
mov esi, dword [ecx + 0xa8]
mov edi, dword [ecx + 0xd0]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0x70]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xbc]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0xc8]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], edx
lea eax, [esi + eax*4]
mov dword [ebp - 0x44], edi
mov esi, eax
mov dword [ebp - 0x24], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x496470
mov eax, dword [ecx + 4]
cmp eax, dword [ebp - 0x20]
jge 0x496470
test byte [edx + eax*4], 0x97
je 0x496468
mov eax, dword [ecx]
push ecx
mov dword [esi], eax
call fcn.00454430
mov edx, dword [ebp - 0x34]
add esp, 4
jmp 0x49646a
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x496448
mov eax, dword [ebp + 0xc]
test dword [edx + eax*4], 0x10000
je 0x4964ab
push 8
call fcn.004993f0
mov edx, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x30], eax
test eax, eax
je 0x4964a0
mov ecx, dword [edx + 0x294]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], ecx
jmp 0x4964a2
xor eax, eax
mov dword [edx + 0x294], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx + eax*4]
mov esi, ecx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi]
test ecx, ecx
je 0x4964ef
mov edx, dword [ebp + 0x10]
nop
mov eax, dword [ecx + 4]
cmp eax, edx
jne 0x4964d9
mov eax, dword [ecx]
push ecx
mov dword [esi], eax
call fcn.00454430
mov edx, dword [ebp + 0x10]
add esp, 4
jmp 0x4964e6
test edi, edi
je 0x4964e4
or dword [edi + eax*4], 0x1000
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x4964c0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi]
test ecx, ecx
je 0x496517
cmp dword [ecx + 4], eax
jne 0x49650f
mov eax, dword [ecx]
push ecx
mov dword [esi], eax
call fcn.00454430
mov eax, dword [ebp + 0xc]
add esp, 4
jmp 0x496511
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x4964f8
mov edx, dword [ebp - 0x18]
cmp dword [edx + eax*4], 0
lea esi, [edx + eax*4]
mov edx, dword [ebp + 0x10]
jne 0x496614
cmp dword [0x5455a8], 0
je 0x496614
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax + edx*4], 0
jne 0x496614
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ecx + eax*4], 0
jne 0x496614
mov ecx, dword [ebp + 8]
or dword [edi + edx*4], 0x10
push edx
push eax
push dword [ebp - 0x14]
inc dword [ecx + 0xbc]
call fcn.00497070
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push esi
push edi
call fcn.004969c0
mov ecx, dword [ebp + 8]
push 1
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
add dword [ecx + 0xb8], eax
push edi
push esi
call fcn.004969c0
add esp, 0x34
cmp dword [0x521758], 1
jle 0x4969a3
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax]
test esi, esi
je 0x4969a3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x204]
test eax, eax
jne 0x4965de
push 1
push dword [ecx + 0x2a0]
call fcn.00448750
mov edx, dword [ebp - 0x14]
add esp, 8
mov dword [edx + 0x204], eax
movsd xmm1, qword [0x4fc4a0]
mov dword [eax + edi*4], esi
nop dword [eax]
movsd xmm0, qword [esi + 8]
xorps xmm0, xmm1
movsd qword [esi + 8], xmm0
mov esi, dword [esi]
test esi, esi
jne 0x4965f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
or dword [edi + edx*4], 0x40
inc dword [eax + 0xc0]
mov ecx, dword [esi]
test ecx, ecx
je 0x496653
mov eax, dword [ecx + 4]
cmp eax, edx
jne 0x496640
mov eax, dword [ecx]
push ecx
mov dword [esi], eax
call fcn.00454430
mov edx, dword [ebp + 0x10]
add esp, 4
jmp 0x49664d
test edi, edi
je 0x49664b
or dword [edi + eax*4], 0x1000
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x496627
mov ecx, dword [0x5455a8]
mov dword [ebp - 0x30], edx
test ecx, ecx
je 0x496759
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x38]
cmp dword [esi + eax*4], 0
jne 0x49673f
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
test edi, edi
je 0x4966b1
nop dword [eax]
mov esi, dword [edi + 4]
sub esp, 8
movsd xmm0, qword [0x4fc468]
mov eax, dword [ebp - 0x10]
movsd qword [esp], xmm0
push edx
push dword [eax + esi*4]
call fcn.00454c90
mov ecx, dword [ebp - 0x10]
add esp, 0x10
mov edx, dword [ebp + 0x10]
mov dword [ecx + esi*4], eax
mov edi, dword [edi]
test edi, edi
jne 0x496680
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x4968d3
mov edx, dword [ebp - 0x20]
nop dword [eax + eax]
mov eax, dword [ecx + 4]
lea edi, [eax*4]
cmp eax, edx
jge 0x4966e7
mov eax, dword [ebp - 0x34]
test byte [edi + eax], 0x97
jne 0x49672e
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov esi, dword [edx]
mov eax, dword [edi + eax]
test esi, esi
je 0x496725
nop word [eax + eax]
movsd xmm0, qword [0x4fc468]
sub esp, 8
movsd qword [esp], xmm0
push dword [esi + 4]
push eax
call fcn.00454c90
mov esi, dword [esi]
add esp, 0x10
test esi, esi
jne 0x496700
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
mov dword [edi + edx], eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
test ecx, ecx
jne 0x4966d0
mov edx, dword [ebp + 0x10]
jmp 0x4968d3
mov eax, dword [ebp - 0x1c]
add edx, dword [ebp - 0x3c]
mov eax, dword [eax]
test eax, eax
mov eax, dword [ebp - 0x10]
cmove edx, dword [ebp + 0x10]
cmove eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], edx
jmp 0x49675c
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4968c7
nop
mov edi, dword [eax + 4]
push 0x18
mov dword [ebp - 0x3c], edi
call fcn.004371e0
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
test esi, esi
je 0x496798
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], 0x12006
mov dword [esi + 0x10], eax
jmp 0x49679a
xor esi, esi
mov eax, dword [ebp - 0x18]
movsd xmm0, qword [eax + 8]
ucomisd xmm0, qword [0x4fc480]
lahf
test ah, 0x44
jp 0x4967e0
push 0x18
call fcn.004371e0
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4967d9
mov dword [eax + 0x10], esi
mov esi, eax
mov dword [eax + 4], 0x2006
mov dword [eax + 0x14], 0
jmp 0x496861
xor esi, esi
jmp 0x496861
movsd xmm1, qword [0x4fc468]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x496869
push 0x18
call fcn.004371e0
mov edi, eax
add esp, 4
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x496855
push 0x18
call fcn.004371e0
add esp, 4
mov dword [ebp - 0x34], eax
test eax, eax
je 0x496842
mov ecx, dword [ebp - 0x18]
movsd xmm0, qword [ecx + 8]
mov dword [eax + 4], 0x12803
movsd qword [eax + 0x10], xmm0
mov dword [edi + 0x14], esi
mov esi, edi
mov dword [edi + 4], 0x406
mov dword [edi + 0x10], eax
jmp 0x496857
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 4], 0x406
mov esi, edi
mov dword [edi + 0x10], eax
jmp 0x496857
xor esi, esi
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
movsd xmm1, qword [0x4fc468]
mov ecx, dword [ebp - 0x20]
mov dword [esi + 8], 0
cmp edi, ecx
jge 0x49687f
mov eax, dword [ebp - 0x38]
lea ecx, [eax + edi*4]
jmp 0x496889
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp - 0x40]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
sub esp, 8
mov dword [esi], eax
mov dword [ecx], esi
mov esi, dword [ebp - 0x10]
movsd qword [esp], xmm1
push dword [ebp + 0x10]
push dword [esi + edi*4]
call fcn.00454c90
mov dword [esi + edi*4], eax
add esp, 0x10
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x496770
mov ecx, dword [0x5455a8]
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x24]
test ecx, ecx
je 0x496919
mov edx, dword [ebp + 0x10]
cmp dword [ebp - 0x30], edx
jle 0x4968e8
mov edi, dword [ebp + 0xc]
push edx
push edi
push dword [ebp - 0x14]
call fcn.00497070
mov edx, dword [ebp + 0x10]
add esp, 0xc
jmp 0x4968eb
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp - 0x28]
push 0
push dword [ebp - 0x2c]
push esi
push edi
push edx
call fcn.004969c0
mov ecx, dword [ebp + 8]
push 1
push esi
push dword [ebp - 0x2c]
mov esi, dword [ebp + 0x10]
add dword [ecx + 0xb8], eax
push esi
push edi
call fcn.004969c0
add esp, 0x28
jmp 0x496955
push dword [esi]
call fcn.00454450
mov dword [esi], 0
add esp, 4
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi]
test ecx, ecx
je 0x496952
mov eax, dword [ecx + 4]
test byte [edi + eax*4], 0x40
je 0x49694a
mov eax, dword [ecx]
push ecx
mov dword [esi], eax
call fcn.00454430
add esp, 4
jmp 0x49694c
mov esi, ecx
mov ecx, dword [esi]
test ecx, ecx
jne 0x496932
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x14]
mov eax, dword [edi + 0x204]
test eax, eax
jne 0x496978
push 1
push dword [edi + 0x2a0]
call fcn.00448750
add esp, 8
mov dword [edi + 0x204], eax
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4969a3
movsd xmm1, qword [0x4fc4a0]
mov dword [eax + esi*4], ecx
nop dword [eax]
movsd xmm0, qword [ecx + 8]
xorps xmm0, xmm1
movsd qword [ecx + 8], xmm0
mov ecx, dword [ecx]
test ecx, ecx
jne 0x496990
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret