Function at 0x56db1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x56ddf5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3d]
mov cl, 0x65
mov edx, 0x21
call fcn.00402b14
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x3d]
mov edx, dword [0x5bd4dc]
call fcn.00407bcc
lea eax, [ebp - 0x3d]
mov dword [ebp - 4], eax
pushal
mov edi, dword [ebp - 4]
mov eax, 0x3617e418
xor dword [edi], eax
mov eax, 0xa935fc2e
xor dword [edi + 4], eax
mov eax, 0x57d872b9
xor dword [edi + 8], eax
mov eax, 0x493db437
xor dword [edi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [edi + 4]
mov ebx, dword [edi + 8]
xor ebx, dword [edi + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
popal
mov eax, dword [0x5bd4e0]
call fcn.00403c8c
cmp eax, 0x10
jge 0x56dbf2
mov dl, 1
mov eax, dword [0x40d104]
call fcn.00402e3c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x56dbeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00410c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56ddd2
mov eax, dword [ebp - 0x1c]
call fcn.00402e64
ret
lea eax, [ebp - 0x14]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [0x5bd4e0]
call fcn.00403e90
lea eax, [ebp - 0x18]
push eax
mov ecx, 8
mov edx, 9
mov eax, dword [0x5bd4e0]
call fcn.00403e90
lea ecx, [ebp - 0x44]
mov edx, 8
mov eax, dword [ebp - 8]
call fcn.0040746c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
call fcn.00403d9c
jne 0x56ddb2
lea ecx, [ebp - 0x44]
mov edx, 8
mov eax, dword [ebp - 0xc]
call fcn.0040746c
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
call fcn.00403d9c
jne 0x56ddb2
mov eax, 0x5bd4c8
mov edx, dword [0x5bd4dc]
call fcn.00403a64
mov eax, 0x5bd4cc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.00403cd8
mov dl, 1
mov eax, dword [0x40d104]
call fcn.00402e3c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00410c60
mov edx, 0x200
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, 8
lea edx, [ebp - 0x3d]
mov ecx, 0x20
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.00410804
dec ebx
jne 0x56dcb8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0x1ff
pushal
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
xor edx, edx
mov ebx, 0x3617e418
mov eax, ebx
xor byte [esi + edx], al
ror ebx, 1
xor ebx, 0xa5a5a5a5
inc edx
dec ecx
jne 0x56dd6d
popal
mov ecx, dword [esi + 0x230]
mov edx, dword [0x5becbc]
mov edx, dword [edx]
lea eax, [ebp - 0x44]
call fcn.00403cd8
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
call fcn.00410bdc
mov eax, dword [ebp - 0x1c]
call fcn.00410c60
mov eax, dword [ebp - 0x1c]
call fcn.00402e64
jmp 0x56ddd2
mov eax, 0x5bd4c8
mov edx, dword [0x5bd4d8]
call fcn.00403a64
mov eax, 0x5bd4cc
mov edx, dword [0x5bd4e4]
call fcn.00403a64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56ddfc
lea eax, [ebp - 0x44]
call fcn.00403a10
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403a34
ret