Function at 0x59cf00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c28bb
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x68683c]
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.0045a1b0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0041b6b0
cmp dword [ebp + 0x18], 1
jb 0x59d1f9
cmp dword [ebp + 0xc], 0
je 0x59d1f9
test esi, esi
je 0x59d1f9
test ebx, ebx
je 0x59d1f9
cmp ebx, 0x400
ja 0x59d1f9
cmp esi, 0x100000
ja 0x59d1f9
lea eax, [esi + 4]
push eax
call fcn.00422360
mov edi, eax
add esp, 4
mov dword [ebp - 0xf0], edi
test edi, edi
je 0x59d1f9
push ebx
call fcn.00422360
add esp, 4
mov dword [ebp - 0xe0], eax
test eax, eax
je 0x59d1f9
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.0050ecd0
add esp, 0x18
cmp dword [ebp + 0x1c], 0
mov ebx, 1
jbe 0x59d1b8
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 0x59d076
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.0050ecd0
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.0059cd10
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 0x59d15f
lea esi, [eax - 1]
lea edx, [ebp - 0x90]
push edx
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.0050ecd0
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.0059cd10
xor eax, eax
jmp 0x59d130
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 0x59d130
dec esi
jne 0x59d0f0
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 0xd4], eax
jb 0x59d170
mov dword [ebp - 0xd4], eax
xor eax, eax
cmp dword [ebp - 0xd4], eax
jbe 0x59d1a1
lea ecx, [ebx - 1]
cmp ecx, dword [ebp - 0xec]
jae 0x59d1a1
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 0x59d17d
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp - 0xf0]
sub ecx, eax
inc ebx
mov dword [ebp + 0x1c], ecx
test ecx, ecx
jne 0x59d070
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.0041ca10
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.0045a240
mov al, 1
jmp 0x59d20d
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
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.005a6cf8
mov esp, ebp
pop ebp
ret 0x20