Function at 0x5b11dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5b11e5
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5b14a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
cmp eax, dword [0x5a3df8]
jne 0x5b1222
lea eax, [ebp - 4]
mov edx, 0x5b14c0
call fcn.00407414
jmp 0x5b122f
lea eax, [ebp - 4]
mov edx, 0x5b14d4
call fcn.00407414
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x5b14ec
call fcn.00407af4
mov eax, dword [ebx + 0xc]
call fcn.00572020
test eax, eax
jle 0x5b131e
lea eax, [ebp - 0x18]
mov ecx, 0x5b14f4
mov edx, dword [ebp - 8]
call fcn.00407af4
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.00407f78
lea eax, [ebp - 0x14]
push eax
movzx eax, byte [ebp + 8]
xor al, 1
push eax
lea eax, [ebp - 0x1c]
push eax
xor edx, edx
mov eax, dword [ebx + 0xc]
call fcn.00572028
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0xc]
call fcn.005b3ca4
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.00408094
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00407f8c
mov eax, dword [ebx + 0xc]
call fcn.00572020
mov esi, eax
dec esi
test esi, esi
jle 0x5b1311
mov edi, 1
lea eax, [ebp - 0x24]
mov ecx, 0x5b150c
mov edx, dword [ebp - 8]
call fcn.00407af4
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
call fcn.00407f78
lea eax, [ebp - 0x20]
push eax
movzx eax, byte [ebp + 8]
xor al, 1
push eax
lea eax, [ebp - 0x28]
push eax
mov edx, edi
mov eax, dword [ebx + 0xc]
call fcn.00572028
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [ebp - 0xc]
call fcn.005b3ca4
mov edx, dword [ebp - 0x28]
pop eax
call fcn.00408094
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 8]
call fcn.00407f8c
inc edi
dec esi
jne 0x5b12b8
lea eax, [ebp - 8]
mov edx, 0x5b1514
call fcn.00407a78
mov eax, dword [ebx + 0x10]
call fcn.00572020
test eax, eax
jle 0x5b13e7
lea eax, [ebp - 0x30]
mov ecx, 0x5b151c
mov edx, dword [ebp - 8]
call fcn.00407af4
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
call fcn.00407f78
lea eax, [ebp - 0x2c]
push eax
xor edx, edx
mov eax, dword [ebx + 0x10]
call fcn.00572028
mov edx, eax
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
call fcn.005afcec
mov edx, dword [ebp - 0x34]
pop eax
call fcn.00408094
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00407f8c
mov eax, dword [ebx + 0x10]
call fcn.00572020
mov esi, eax
dec esi
test esi, esi
jle 0x5b13da
mov edi, 1
lea eax, [ebp - 0x3c]
mov ecx, 0x5b150c
mov edx, dword [ebp - 8]
call fcn.00407af4
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call fcn.00407f78
lea eax, [ebp - 0x38]
push eax
mov edx, edi
mov eax, dword [ebx + 0x10]
call fcn.00572028
mov edx, eax
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.005afcec
mov edx, dword [ebp - 0x40]
pop eax
call fcn.00408094
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 8]
call fcn.00407f8c
inc edi
dec esi
jne 0x5b138c
lea eax, [ebp - 8]
mov edx, 0x5b1514
call fcn.00407a78
lea eax, [ebp - 8]
mov edx, 0x5b1538
call fcn.00407a78
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0x5b1540
push dword [ebp - 4]
push 0x5b1538
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.00407b70
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b14b0
lea eax, [ebp - 0x44]
call fcn.00406fe0
lea eax, [ebp - 0x40]
call fcn.00406f98
lea eax, [ebp - 0x3c]
call fcn.00406fe0
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00406ff8
lea eax, [ebp - 0x30]
call fcn.00406fe0
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00406ff8
lea eax, [ebp - 0x24]
call fcn.00406fe0
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406ff8
lea eax, [ebp - 0x18]
call fcn.00406fe0
lea eax, [ebp - 0x14]
call fcn.00406f98
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407058
ret