Function at 0x49f80c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405708
mov eax, dword [ebp - 8]
call fcn.00405708
xor eax, eax
push ebp
push 0x49fc47
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x49fc0f
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x417b1c]
call fcn.0041bc68
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x49fbfe
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0049ef9c
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [0x52c67c]
push dword [eax]
push 0x49fc60
mov eax, dword [0x52c414]
push dword [eax]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.0040561c
mov eax, dword [ebp - 0x34]
call fcn.00405718
push eax
call fcn.0049f0b7
mov esi, eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x417aa4]
call fcn.0041bba4
mov edi, eax
push 0x49fc6c
push 0x49fc70
xor ecx, ecx
mov dl, 1
mov eax, dword [0x417c9c]
call fcn.0041c0ac
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, ebx
mov eax, edi
call fcn.0041ba50
mov eax, edi
call fcn.00404388
mov eax, ebx
call fcn.00404388
push esi
call sub.kernel32.dll_CloseHandle_1
call fcn.0040b784
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [0x52c5e4]
push dword [eax + 4]
push dword [eax]
call fcn.004994c0
cmp edx, 0
jne 0x49f928
cmp eax, 5
jbe 0x49f948
jmp 0x49f92a
jle 0x49f948
mov eax, dword [0x52c578]
mov edx, 0x49fc7c
call fcn.004052dc
mov eax, dword [0x52c548]
mov edx, 0x49fc88
call fcn.004052dc
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
call fcn.0049f0b7
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x417aa4]
call fcn.0041bba4
mov dword [ebp - 0x1c], eax
call fcn.0040b784
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [0x52c5e4]
push dword [eax + 4]
push dword [eax]
call fcn.004994c0
cmp edx, 0
jne 0x49f9a1
cmp eax, 5
jbe 0x49f9c1
jmp 0x49f9a3
jle 0x49f9c1
mov eax, dword [0x52c578]
mov edx, 0x49fc60
call fcn.004052dc
mov eax, dword [0x52c548]
mov edx, 0x49fc60
call fcn.004052dc
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041b9e0
mov eax, dword [0x52c548]
mov eax, dword [eax]
call fcn.00409c60
mov edx, eax
mov eax, dword [ebp - 0x10]
add eax, 8
add edx, eax
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov dword [ebp - 0x28], 0x2710
mov dword [ebp - 0x2c], 0x4e20
mov ebx, 0x3caf
mov dl, 1
mov eax, dword [0x417c20]
call fcn.00404358
mov dword [ebp - 0x20], eax
mov dl, 1
mov eax, dword [0x417c20]
call fcn.00404358
mov dword [ebp - 0x24], eax
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041b7d4
mov eax, dword [0x52c548]
mov eax, dword [eax]
call fcn.00409c60
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0041ba50
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041b7d4
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.0041b7d4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
dec esi
test esi, esi
jl 0x49fabf
inc esi
lea edx, [ebp - 0x2d]
mov ecx, 1
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
movzx eax, byte [ebp - 0x2d]
mov edx, ebx
shr edx, 8
xor byte [ebp - 0x2d], dl
movzx eax, al
add ebx, eax
imul ebx, dword [ebp - 0x28]
add ebx, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov ecx, 1
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x10]
dec esi
jne 0x49fa84
push 0
push 0
mov eax, dword [ebp - 0x24]
call fcn.0041b7d4
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
call fcn.0041ba50
mov edx, dword [ebp - 0x10]
add edx, 8
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x14]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041b9e0
mov eax, dword [0x52c384]
mov eax, dword [eax]
call fcn.00409c60
imul eax, eax, 0x64
mov ebx, dword [ebp - 0x14]
sub ebx, eax
mov eax, dword [0x52c548]
mov eax, dword [eax]
call fcn.00409c60
sub ebx, eax
mov eax, dword [0x52c578]
mov eax, dword [eax]
call fcn.00409c60
sub ebx, eax
mov eax, dword [0x52c548]
mov eax, dword [eax]
call fcn.00409c60
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 8
add esi, eax
mov eax, dword [0x52c578]
mov eax, dword [eax]
call fcn.00409c60
add esi, eax
mov edx, esi
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, dword [0x52c578]
mov eax, dword [eax]
call fcn.00409c60
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0041ba50
mov eax, dword [0x52c548]
mov eax, dword [eax]
call fcn.00409c60
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 8
add esi, eax
mov eax, dword [0x52c578]
mov eax, dword [eax]
call fcn.00409c60
add esi, eax
mov edx, esi
add edx, ebx
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
mov eax, ebx
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0041ba50
mov eax, dword [ebp - 0x1c]
call fcn.00404388
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49fc05
mov eax, dword [ebp - 0xc]
call fcn.00404388
mov eax, dword [ebp - 0x20]
call fcn.00404388
mov eax, dword [ebp - 0x24]
call fcn.00404388
ret