Function at 0x4912a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, 0x674aa0
mov edi, dword [0x672604]
mov ebx, 0x674abc
xor eax, eax
push ebp
push 0x4915f5
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0065de58
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0062bef4
mov dword [0x674ac0], eax
lea ecx, [ebp - 4]
mov eax, dword [edi]
mov dl, 3
call fcn.00622238
mov eax, dword [ebp - 4]
call fcn.0040351c
cmp eax, 0xc
jne 0x491334
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov dword [0x674ab4], edx
lea edx, [eax + 4]
mov edx, dword [edx]
mov dword [0x674ab8], edx
add eax, 8
mov eax, dword [eax]
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x49132a
mov eax, dword [0x674ac0]
mov dword [ebx], eax
mov eax, dword [0x671fd8]
mov byte [eax], 1
jmp 0x49134e
mov dword [0x674ab4], 0x80000000
mov dword [0x674ab8], 0x80000000
mov dword [ebx], 0x80000000
cmp dword [0x674ab4], 0x80000000
jne 0x491364
mov eax, dword [0x674ac0]
mov dword [0x674ab4], eax
cmp dword [0x674ab8], 0x80000000
jne 0x49137a
mov eax, dword [0x674ac0]
mov dword [0x674ab8], eax
cmp dword [ebx], 0x80000000
jne 0x491389
mov eax, dword [0x674ac0]
mov dword [ebx], eax
mov edx, dword [0x674ab8]
mov eax, dword [0x674ab4]
call fcn.0065b28c
mov edx, eax
mov eax, dword [ebx]
call fcn.0065b28c
mov dword [0x674ab4], eax
mov edx, dword [0x674ab8]
mov eax, dword [0x674ac0]
call fcn.0065b294
mov edx, eax
mov eax, dword [ebx]
call fcn.0065b294
mov dword [0x674ac0], eax
mov eax, dword [0x674ac0]
sub eax, dword [0x674ab4]
mov dword [esi + 8], eax
sub eax, 0x1e
jae 0x4913de
mov byte [esi + 0x10], 0
jmp 0x4913f7
mov eax, dword [0x674ac0]
sub eax, dword [ebx]
mov dword [esi + 0xc], eax
cmp eax, 0xa
jge 0x4913f3
mov byte [esi + 0x10], 1
jmp 0x4913f7
mov byte [esi + 0x10], 2
mov eax, dword [0x671fd8]
cmp byte [eax], 0
je 0x491445
lea eax, [ebp - 4]
mov edx, 0xc
call fcn.00403804
mov eax, dword [ebp - 4]
mov edx, dword [0x674ab4]
mov dword [eax], edx
lea edx, [eax + 4]
mov ecx, dword [0x674ab8]
mov dword [edx], ecx
mov dl, byte [esi + 0x10]
dec edx
sub dl, 2
setb dl
and edx, 0x7f
imul edx, dword [ebx]
add eax, 8
mov dword [eax], edx
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov dl, 3
call fcn.00622288
lea ecx, [ebp - 4]
mov eax, dword [edi]
mov dl, 4
call fcn.00622238
mov eax, dword [ebp - 4]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x49147b
lea eax, [ebp - 4]
call fcn.004036ec
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x491460
mov eax, dword [ebp - 4]
call fcn.0040351c
mov ecx, eax
sar ecx, 1
jns 0x49148c
adc ecx, 0
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.00403964
lea ecx, [ebp - 8]
mov eax, dword [edi]
mov dl, 5
call fcn.00622238
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004032c8
mov eax, dword [esi]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x4914d4
mov eax, esi
call fcn.004036ec
mov edx, dword [esi]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x4914bb
mov edx, dword [esi]
mov eax, dword [esi + 4]
call fcn.00491994
test al, al
jne 0x49153e
call fcn.00656518
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.006261cc
lea eax, [ebp - 0xc]
mov edx, 0x491608
call fcn.00403ac4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00656834
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.00403358
mov edx, dword [esi]
mov eax, dword [esi + 4]
call fcn.00491994
test al, al
jne 0x49152a
mov eax, esi
call fcn.00403274
mov eax, ebx
call fcn.004028c0
cmp dword [esi], 0
jne 0x49153e
lea eax, [esi + 4]
call fcn.00403880
mov eax, dword [esi + 4]
call fcn.00403ab8
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 4]
mov edx, dword [esi + 4]
call fcn.00403358
mov eax, dword [ebp - 4]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x49157f
lea eax, [ebp - 4]
call fcn.004036ec
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x491564
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov dl, 4
call fcn.00622288
lea eax, [ebp - 4]
mov edx, dword [esi]
call fcn.0040330c
mov eax, dword [ebp - 4]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x4915bf
lea eax, [ebp - 4]
call fcn.004036ec
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x4915a4
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
mov dl, 5
call fcn.00622288
mov eax, dword [edi]
call fcn.0062239c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4915fc
lea eax, [ebp - 0xc]
call fcn.00403880
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403298
ret