Function at 0x5911f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b612b
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x676664]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0xe8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x24]
push str.bcryptPbkdf
mov dword [ebp - 0xdc], ecx
push eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xfc], edi
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xec], ebx
call fcn.0044ec60
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00410b40
cmp dword [ebp + 0x18], 1
jb 0x5914e9
cmp dword [ebp + 0xc], 0
je 0x5914e9
test esi, esi
je 0x5914e9
test ebx, ebx
je 0x5914e9
cmp ebx, 0x400
ja 0x5914e9
cmp esi, 0x100000
ja 0x5914e9
lea eax, [esi + 4]
push eax
call fcn.004176a0
mov edi, eax
add esp, 4
mov dword [ebp - 0xf0], edi
test edi, edi
je 0x5914e9
push ebx
call fcn.004176a0
add esp, 4
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x5914e9
lea ecx, [ebx + 0x1f]
shr ecx, 5
xor edx, edx
lea eax, [ecx + ebx - 1]
div ecx
mov edx, dword [ebp - 0xdc]
push esi
push edx
push edi
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xd4], eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xd8]
lea eax, [ebp - 0xd0]
push eax
push ecx
push edx
call fcn.00502f10
add esp, 0x18
cmp dword [ebp + 0x1c], 0
mov ebx, 1
jbe 0x5914a8
lea eax, [esi + edi + 1]
lea ecx, [esi + edi + 2]
lea edx, [esi + edi + 3]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0x100], edx
jmp 0x591366
mov esi, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xd8]
mov eax, ebx
shr eax, 0x18
mov byte [esi + edi], al
mov ecx, ebx
shr ecx, 0x10
mov byte [edx], cl
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ebp - 0x100]
mov eax, ebx
shr eax, 8
mov byte [ecx], al
lea eax, [ebp - 0x90]
push eax
lea eax, [esi + 4]
push eax
push edi
mov byte [edx], bl
call fcn.00502f10
mov ecx, dword [ebp - 0xe4]
add esp, 0xc
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0xe8]
call fcn.00591000
mov eax, dword [ebp + 0x18]
mov ecx, 8
lea esi, [ebp - 0x50]
lea edi, [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
cmp eax, 1
jbe 0x59144f
lea esi, [eax - 1]
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00502f10
mov ecx, dword [ebp - 0xe4]
add esp, 0xc
push ecx
lea edx, [ebp - 0x50]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0xe8]
call fcn.00591000
xor eax, eax
jmp 0x591420
movzx edx, byte [ebp + eax - 0x50]
movzx ecx, byte [ebp + eax - 0x4f]
xor byte [ebp + eax - 0x30], dl
xor byte [ebp + eax - 0x2f], cl
movzx edx, byte [ebp + eax - 0x4e]
movzx ecx, byte [ebp + eax - 0x4d]
xor byte [ebp + eax - 0x2e], dl
xor byte [ebp + eax - 0x2d], cl
add eax, 4
cmp eax, 0x20
jb 0x591420
dec esi
jne 0x5913e0
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 0xd4], eax
jb 0x591460
mov dword [ebp - 0xd4], eax
xor eax, eax
cmp dword [ebp - 0xd4], eax
jbe 0x591491
lea ecx, [ebx - 1]
cmp ecx, dword [ebp - 0xec]
jae 0x591491
mov dl, byte [ebp + eax - 0x30]
mov esi, dword [ebp - 0xe0]
mov byte [ecx + esi], dl
add ecx, dword [ebp - 0xf8]
inc eax
cmp eax, dword [ebp - 0xd4]
jb 0x59146d
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp - 0xf0]
sub ecx, eax
inc ebx
mov dword [ebp + 0x1c], ecx
test ecx, ecx
jne 0x591360
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xec]
mov esi, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xfc]
add esp, 4
push eax
push esi
call fcn.00411e60
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
mov al, 1
jmp 0x5914fd
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059af98
mov esp, ebp
pop ebp
ret 0x20