Function at 0x58045b
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5af73c
call fcn.00593e24
sub esp, 0x64
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], 0x5b6344
mov esi, ecx
mov dword [ebp - 0x38], ebx
push edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.00580272
cmp dword [ebp - 0x34], ebx
jne 0x5804d3
mov eax, dword [0x6081f8]
mov edi, 0x6081f8
mov ecx, edi
call dword [eax]
test eax, eax
je 0x58072f
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x5c]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x5bcfec
push eax
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.0058074a
mov bl, 1
jmp 0x58072f
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
call fcn.0040d9a8
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.0040d9a8
mov edi, ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jbe 0x580513
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0xe]
push ecx
xor edx, edx
lea ecx, [ebp - 0x1c]
lea eax, [eax + edi*4]
push eax
call fcn.00581168
inc edi
pop ecx
pop ecx
cmp edi, dword [ebp - 0x34]
jb 0x5804f6
mov eax, dword [0x6081f8]
mov edi, 0x6081f8
mov ecx, edi
call dword [eax]
test eax, eax
je 0x580568
mov esi, ebx
push esi
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call int.004182f0
lea ecx, [ebp - 0xe]
mov byte [ebp - 4], 3
push ecx
push eax
xor edx, edx
lea ecx, [ebp - 0x18]
call fcn.00581168
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x580557
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [0x6081f8]
mov ecx, edi
inc esi
call dword [eax]
cmp esi, eax
jb 0x580527
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x34]
lea ecx, [ebp - 0x6c]
call int.00418110
mov byte [ebp - 4], 4
mov ecx, edi
mov eax, dword [0x6081f8]
call dword [eax]
push eax
lea ecx, [ebp - 0x5c]
call int.00418110
mov byte [ebp - 4], 5
mov ecx, edi
mov eax, dword [0x6081f8]
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0x14], bl
call dword [eax]
test eax, eax
je 0x5805fc
mov esi, ebx
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call int.004182f0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00580fde
mov ecx, dword [ebp - 0x28]
xor edx, edx
inc edx
xor al, dl
mov byte [ebp - 0x24], al
test ecx, ecx
je 0x5805d3
mov eax, dword [ecx]
call dword [eax]
mov al, byte [ebp - 0x24]
xor edx, edx
inc edx
test al, al
je 0x5805dc
mov byte [ebp - 0xd], dl
jmp 0x5805df
mov byte [ebp - 0xe], dl
push dword [ebp - 0x24]
lea ecx, [ebp - 0x5c]
push esi
call fcn.00590fc0
mov eax, dword [0x6081f8]
mov ecx, edi
inc esi
call dword [eax]
cmp esi, eax
jb 0x5805a5
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x34], 0
jbe 0x58063c
mov esi, ebx
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
lea eax, [eax + esi*4]
push eax
call fcn.00580fde
xor ecx, ecx
inc ecx
xor al, cl
mov byte [ebp - 0x28], al
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x28]
movzx eax, al
cmovne eax, ecx
lea ecx, [ebp - 0x6c]
push esi
mov dword [ebp - 0x14], eax
call fcn.00590fc0
inc esi
cmp esi, dword [ebp - 0x34]
jb 0x580604
mov esi, dword [ebp - 0x20]
cmp byte [ebp - 0xd], 0
jne 0x58064c
cmp byte [ebp - 0x14], 0
je 0x58070f
mov eax, dword [esi]
mov ecx, esi
push dword [ebp + 8]
call dword [eax + 0x5c]
cmp byte [ebp - 0x14], 0
je 0x58066a
mov eax, dword [esi]
lea ecx, [ebp - 0x6c]
push ecx
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x44]
cmp byte [ebp - 0xd], 0
je 0x5806cc
cmp byte [ebp - 0xe], 0
je 0x5806b6
push edi
lea ecx, [ebp - 0x4c]
call fcn.004278f0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x4c]
call fcn.00417830
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x5bcfec
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.0058074a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 5
call fcn.004177b0
jmp 0x5806cc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x5bcfec
push eax
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.0058074a
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00580272
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push ecx
lea edx, [ebp - 0x3c]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.00581009
pop ecx
test al, al
je 0x580705
push dword [ebp - 0x28]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x2c]
push dword [ebp + 8]
call dword [eax + 0x3c]
lea ecx, [ebp - 0x2c]
call fcn.00429950
mov bl, 1
lea ecx, [ebp - 0x58]
call fcn.00418b60
lea ecx, [ebp - 0x68]
call fcn.00418b60
lea ecx, [ebp - 0x18]
call fcn.00580f2a
lea ecx, [ebp - 0x1c]
call fcn.00580f2a
lea ecx, [ebp - 0x3c]
call fcn.004177b0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc