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

Disassembly:
mov ecx, dword [0x82b814]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x78]
cmp eax, dword [ecx + 8]
jbe 0x5b64e4
sub esp, 0xf8
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x110]
cmp eax, ecx
jne 0x5b64cb
test eax, 0x3f
jne 0x5b64cb
mov edx, dword [esp + 0xfc]
movzx ebx, byte [edx + 0x75]
mov ebp, dword [edx]
mov dword [esp + 0x80], ebp
mov esi, dword [edx + 4]
mov dword [esp + 0x7c], esi
mov edi, dword [edx + 8]
mov dword [esp + 0x78], edi
mov edi, dword [edx + 0xc]
mov dword [esp + 0x74], edi
mov edi, dword [edx + 0x10]
mov dword [esp + 0x70], edi
mov esi, dword [edx + 0x14]
mov dword [esp + 0x98], esi
mov esi, dword [edx + 0x18]
mov dword [esp + 0x94], esi
mov esi, dword [edx + 0x1c]
mov dword [esp + 0x90], esi
mov esi, dword [edx + 0x24]
mov dword [esp + 0x8c], esi
mov esi, dword [edx + 0x28]
mov dword [esp + 0x88], esi
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x84], esi
test bl, bl
jne 0x5b5e4e
mov dword [esp], 0x3320646e
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.005b5790
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xfc]
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 + 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.005b5790
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xfc]
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 + 0x74]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 0xc], edx
call fcn.005b5790
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xfc]
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 + 0x104]
mov ecx, dword [esp + 0x110]
mov edx, ebp
mov ebp, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x70]
mov ebx, dword [esp + 0x108]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x114]
mov dword [esp + 0xec], ecx
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0xf0], edx
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x9c]
jmp 0x5b60f6
mov ebp, dword [esp + 0xec]
add ebp, 0xffffffc0
mov dword [esp + 0xec], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 0x40
mov dword [esp + 0xdc], ebp
mov ebp, dword [esp + 0xe8]
add ebp, 0xffffffc0
mov dword [esp + 0xe8], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 0x40
mov dword [esp + 0xd8], ebp
add esi, 0x61707865
mov ebp, dword [esp + 0xf4]
xor esi, dword [ebp]
add edi, 0x3320646e
mov ebp, dword [esp + 0x3c]
add ebp, 0x79622d32
add eax, 0x6b206574
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x80]
add ecx, eax
mov dword [esp + 0xd0], ecx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x7c]
add eax, ecx
mov dword [esp + 0xcc], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
add ecx, eax
mov dword [esp + 0xc8], ecx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
add eax, ecx
mov dword [esp + 0xc4], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
add ecx, eax
mov eax, dword [esp + 0x98]
add edx, eax
mov dword [esp + 0xc0], edx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
add eax, edx
mov dword [esp + 0xbc], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x90]
add edx, eax
mov dword [esp + 0xb8], edx
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x8c]
add eax, edx
mov edx, dword [esp + 0x88]
add ebx, edx
mov dword [esp + 0xb4], ebx
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x84]
add edx, ebx
mov ebx, dword [esp + 0xf0]
mov dword [ebx], esi
mov esi, dword [esp + 0xf4]
xor edi, dword [esi + 4]
mov dword [ebx + 4], edi
xor ebp, dword [esi + 8]
nop
mov dword [ebx + 8], ebp
mov ebp, dword [esp + 0xd4]
xor ebp, dword [esi + 0xc]
mov dword [ebx + 0xc], ebp
mov ebp, dword [esp + 0xd0]
xor ebp, dword [esi + 0x10]
nop
mov dword [ebx + 0x10], ebp
mov ebp, dword [esp + 0xcc]
xor ebp, dword [esi + 0x14]
nop
mov dword [ebx + 0x14], ebp
mov ebp, dword [esp + 0xc8]
xor ebp, dword [esi + 0x18]
nop
mov dword [ebx + 0x18], ebp
mov ebp, dword [esp + 0xc4]
xor ebp, dword [esi + 0x1c]
nop
mov dword [ebx + 0x1c], ebp
xor ecx, dword [esi + 0x20]
nop
mov dword [ebx + 0x20], ecx
mov ecx, dword [esp + 0xc0]
xor ecx, dword [esi + 0x24]
mov dword [ebx + 0x24], ecx
mov ecx, dword [esp + 0xbc]
xor ecx, dword [esi + 0x28]
nop
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0xb8]
xor ecx, dword [esi + 0x2c]
nop
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0xfc]
mov ebp, dword [ecx + 0x20]
mov edi, dword [esp + 0x4c]
add ebp, edi
xor ebp, dword [esi + 0x30]
mov dword [ebx + 0x30], ebp
xor eax, dword [esi + 0x34]
nop
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0xb4]
xor eax, dword [esi + 0x38]
mov dword [ebx + 0x38], eax
xor edx, dword [esi + 0x3c]
nop
mov dword [ebx + 0x3c], edx
inc dword [ecx + 0x20]
mov eax, dword [esp + 0xdc]
add eax, esi
mov edx, dword [esp + 0xe0]
add edx, 0xffffffc0
mov ebp, dword [esp + 0xd8]
add ebx, ebp
mov ebp, dword [esp + 0xe4]
add ebp, 0xffffffc0
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov ecx, edx
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf0], ebx
mov eax, ebp
mov ebx, dword [esp + 0xe8]
mov edx, dword [esp + 0xfc]
mov ebp, dword [esp + 0x80]
cmp ecx, 0x40
jl 0x5b628d
cmp eax, 0x40
jl 0x5b628d
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe0], ecx
mov eax, dword [edx + 0x20]
mov dword [esp], 0x61707865
mov dword [esp + 4], ebp
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
call fcn.005b5790
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 + 0xfc]
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.005b5790
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x78]
mov edx, dword [eax + 0x8c]
mov ebx, dword [eax + 0xa0]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x5c], ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0x30], esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x54], edi
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xc], ecx
call fcn.005b5790
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x88]
mov edx, dword [eax + 0x9c]
mov ebx, dword [eax + 0x84]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x58], ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x50], edi
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebp
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.005b5790
mov eax, dword [esp + 0xfc]
mov ecx, dword [eax + 0x98]
mov edx, dword [eax + 0x80]
mov ebx, dword [eax + 0x94]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.005b5790
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 0x5b64bd
add esp, 0xf8
ret
mov dword [esp + 0x60], ebp
mov dword [esp + 0x44], ebx
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.005b5790
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.005b5790
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.005b5790
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.005b5790
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.005b5790
mov eax, dword [esp + 0x60]
inc eax
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x54], ebx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x40], ebp
mov esi, dword [esp + 0x58]
mov dword [esp], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 8], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xc], esi
call fcn.005b5790
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.005b5790
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.005b5790
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
cmp ebp, 9
jl 0x5b6294
jmp 0x5b5eae
lea eax, [0x6309e0]
mov dword [esp], eax
lea eax, [0x6b9400]
mov dword [esp + 4], eax
call fcn.00439050
nop
call fcn.0046a530
jmp fcn.005b5c70