Function at 0x71a9e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [0x71fc38]
xor eax, eax
mov dword [ebp - 0x1c], eax
push ebx
push esi
mov dword [ebp - 0x18], eax
push edi
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [ebp + 8]
test edi, edi
jne 0x71aa4b
mov esi, dword [ebp + 0x14]
test esi, esi
jbe 0x71ac46
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub edx, eax
mov bl, byte [eax]
mov cl, al
add cl, dl
xor bl, cl
mov cl, bl
mov byte [eax], bl
and ecx, 0xff
inc eax
dec esi
mov cl, byte [ecx + 0x71f540]
mov byte [eax - 1], cl
jne 0x71aa27
jmp 0x71ac46
push edi
call fcn.0071a260
add esp, 4
and eax, 0xff
mov dword [ebp - 0xc], eax
jne 0x71aa73
mov eax, dword [0x71fc38]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x50f]
test eax, eax
je 0x71ac1a
mov al, byte [edi + 0x262]
test al, al
je 0x71ac1a
cmp al, 2
jne 0x71aac4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ecx
push edx
add edi, 0x2d
push eax
push edi
call fcn.0071a870
mov ecx, dword [0x71fc38]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp al, 1
jne 0x71ac04
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov edx, esi
mov edi, esi
add esi, eax
and edx, 0xf
mov eax, esi
sub edi, edx
and eax, 0xf
je 0x71aaed
mov ecx, 0x10
sub ecx, eax
add esi, ecx
mov ebx, esi
push 4
sub ebx, edi
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dx, word [ecx + 0xd]
add edx, edi
mov dword [ebp - 0x18], edx
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 8]
push edx
push ebx
push eax
mov eax, dword [ecx]
push eax
call fcn.00716c40
test eax, eax
jne 0x71ab6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x71ab6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x71ab6e
mov ecx, dword [ebp - 4]
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [0x71fc38]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea eax, [ebp - 8]
push 1
push eax
mov eax, dword [edx]
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp ebx, dword [ebp - 8]
je 0x71ab8c
sub esi, 0x10
cmp edi, esi
mov ebx, edi
jae 0x71abbe
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add ecx, 0x2d
sub eax, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
jmp 0x71aba8
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
add eax, ebx
push eax
push edx
call fcn.00711aa0
add ebx, 0x10
add esp, 8
cmp ebx, esi
jb 0x71aba5
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, eax
sub esi, edi
mov edi, dword [ebp + 0xc]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x8000
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [0x71fc38]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x71fc38]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
test esi, esi
jbe 0x71ac46
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub edx, eax
mov bl, byte [eax]
mov cl, dl
add cl, al
xor bl, cl
mov cl, bl
mov byte [eax], bl
and ecx, 0xff
inc eax
dec esi
mov cl, byte [ecx + edi + 0x2d]
mov byte [eax - 1], cl
jne 0x71ac29
mov edx, dword [0x71fc38]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret