Function at 0x583060
Capabilities:
Contain obfuscated stackstrings
Encrypt data using salsa20 or chacha
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x4c]
cmp eax, dword [ecx + 8]
jbe 0x58380d
sub esp, 0xcc
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xe4]
cmp eax, ecx
jne 0x5837f4
test eax, 0x3f
jne 0x5837f4
mov edx, dword [esp + 0xd0]
mov ebx, dword [edx]
mov dword [esp + 0x84], ebx
mov ebp, dword [edx + 4]
mov dword [esp + 0x80], ebp
mov esi, dword [edx + 8]
mov dword [esp + 0x7c], esi
mov edi, dword [edx + 0xc]
mov dword [esp + 0x78], edi
mov edi, dword [edx + 0x10]
mov dword [esp + 0x74], edi
mov esi, dword [edx + 0x14]
mov dword [esp + 0x70], esi
mov esi, dword [edx + 0x18]
mov dword [esp + 0x98], esi
mov esi, dword [edx + 0x1c]
mov dword [esp + 0x94], esi
mov esi, dword [edx + 0x24]
mov dword [esp + 0x90], esi
mov esi, dword [edx + 0x28]
mov dword [esp + 0x8c], esi
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x88], esi
movzx esi, byte [edx + 0x75]
xchg esi, eax
test al, al
xchg esi, eax
jne 0x58323b
mov dword [esp], 0x3320646e
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0xc], ecx
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xd0]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], ecx
mov dword [ebp + 0x80], edx
mov dword [ebp + 0x84], ebx
mov dword [esp], 0x79622d32
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xc], edx
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xd0]
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], ecx
mov dword [ebp + 0x90], edx
mov dword [ebp + 0x94], ebx
mov dword [esp], 0x6b206574
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x94]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 0xc], edx
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xd0]
mov dword [ebp + 0x98], eax
mov dword [ebp + 0x9c], ecx
mov dword [ebp + 0xa0], edx
mov dword [ebp + 0xa4], ebx
mov byte [ebp + 0x75], 1
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xe4]
mov edx, ebp
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0xdc]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0xe8]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xc4], edx
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xac]
jmp 0x583425
lea ebp, [esi + 0x61707865]
mov esi, dword [esp + 0xc8]
xor ebp, dword [esi]
mov ebx, dword [esp + 0xc4]
mov dword [ebx], ebp
lea ebp, [edi + 0x3320646e]
xor ebp, dword [esi + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x3c]
add ebp, 0x79622d32
xor ebp, dword [esi + 8]
mov dword [ebx + 8], ebp
add eax, 0x6b206574
xor eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x84]
add ecx, eax
xor ecx, dword [esi + 0x10]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x80]
add ecx, ebp
xor ecx, dword [esi + 0x14]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x7c]
add ecx, edi
xor ecx, dword [esi + 0x18]
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x78]
add ecx, edi
xor ecx, dword [esi + 0x1c]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x74]
add ecx, edi
xor ecx, dword [esi + 0x20]
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0x70]
add edx, ecx
xor edx, dword [esi + 0x24]
mov dword [ebx + 0x24], edx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x98]
add edx, ecx
xor edx, dword [esi + 0x28]
mov dword [ebx + 0x28], edx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x94]
add edx, ecx
xor edx, dword [esi + 0x2c]
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0xd0]
mov ecx, dword [edx + 0x20]
mov ebp, dword [esp + 0x4c]
add ecx, ebp
xor ecx, dword [esi + 0x30]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x90]
add ecx, ebp
xor ecx, dword [esi + 0x34]
mov dword [ebx + 0x34], ecx
mov ecx, dword [esp + 0x44]
mov ebp, dword [esp + 0x8c]
add ecx, ebp
xor ecx, dword [esi + 0x38]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x88]
add ecx, ebp
xor ecx, dword [esi + 0x3c]
mov dword [ebx + 0x3c], ecx
inc dword [edx + 0x20]
mov ecx, dword [esp + 0xa8]
add ecx, 0xffffffc0
mov dword [esp + 0xa8], ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x40
add ecx, esi
mov esi, dword [esp + 0x9c]
add esi, 0xffffffc0
mov ebp, dword [esp + 0xa4]
add ebp, 0xffffffc0
mov dword [esp + 0xa4], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 0x40
add ebx, ebp
mov ebp, dword [esp + 0xa0]
add ebp, 0xffffffc0
mov dword [esp + 0xc8], ecx
mov ecx, esi
mov dword [esp + 0xc4], ebx
mov eax, ebp
mov esi, dword [esp + 0xa4]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x80]
cmp ecx, 0x40
jl 0x5835bc
cmp eax, 0x40
jl 0x5835bc
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], eax
mov dword [esp + 0x9c], ecx
mov eax, dword [edx + 0x20]
mov dword [esp], 0x61707865
mov dword [esp + 4], ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x64], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0xd0]
mov esi, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x90]
mov ecx, dword [ebp + 0xa4]
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ecx
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0xd0]
mov esi, dword [ebp + 0x78]
mov edi, dword [ebp + 0x8c]
mov eax, dword [ebp + 0xa0]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebp, dword [esp + 0xd0]
mov esi, dword [ebp + 0x88]
mov edi, dword [ebp + 0x9c]
mov eax, dword [ebp + 0x84]
mov dword [esp], esi
mov dword [esp + 4], edi
mov esi, dword [esp + 0x64]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0xd0]
mov esi, dword [ebp + 0x98]
mov edi, dword [ebp + 0x80]
mov ebp, dword [ebp + 0x94]
mov dword [esp], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], ebp
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
jmp 0x5837e2
add esp, 0xcc
ret
mov dword [esp + 0x60], ebp
mov dword [esp + 0x20], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], edi
mov dword [esp], esi
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0xc], ebp
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x5c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov ebp, dword [esp + 0x58]
mov dword [esp], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0xc], ebp
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x50], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebp, dword [esp + 0x3c]
mov dword [esp], ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0xc], ebp
call fcn.00582b30
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebx
mov ebp, dword [esp + 0x38]
mov dword [esp], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebp
call fcn.00582b30
mov eax, dword [esp + 0x60]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x44], ebx
cmp ebp, 9
jl 0x5835c3
jmp 0x58329b
lea eax, [0x696a40]
mov dword [esp], eax
lea eax, [0x750d5c]
mov dword [esp + 4], eax
call fcn.00436fc0
nop
call fcn.00461cc0
jmp fcn.00583060