Function at 0x56e640
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 - 0x54]
cmp eax, dword [ecx + 8]
jbe 0x56eed3
sub esp, 0xd4
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe0]
cmp eax, ecx
jne 0x56eeba
test ecx, 0x3f
jne 0x56eeba
mov edx, dword [esp + 0xd8]
mov ebx, dword [edx]
mov dword [esp + 0x94], ebx
mov ebp, dword [edx + 4]
mov dword [esp + 0x7c], ebp
mov esi, dword [edx + 8]
mov dword [esp + 0x80], esi
mov edi, dword [edx + 0xc]
mov dword [esp + 0x98], edi
mov edi, dword [edx + 0x10]
mov dword [esp + 0x84], edi
mov esi, dword [edx + 0x14]
mov dword [esp + 0x70], esi
mov esi, dword [edx + 0x18]
mov dword [esp + 0x8c], esi
mov esi, dword [edx + 0x1c]
mov dword [esp + 0x88], esi
mov esi, dword [edx + 0x24]
mov dword [esp + 0x90], esi
mov esi, dword [edx + 0x28]
mov dword [esp + 0x74], esi
mov esi, dword [edx + 0x2c]
mov dword [esp + 0x78], esi
movzx esi, byte [edx + 0x75]
xchg esi, eax
test al, al
xchg esi, eax
je 0x56ed91
mov esi, dword [esp + 0xe4]
jmp 0x56eb81
mov dword [esp + 0x60], ebp
mov dword [esp + 0xc0], edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0x9c], edi
mov dword [esp], esi
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xa0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
call fcn.0056e0f0
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 + 0x9c]
mov dword [esp], ebp
mov ebp, dword [esp + 0xb8]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xc0]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xc4]
mov dword [esp + 0xc], ebp
call fcn.0056e0f0
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 + 0xb0]
mov dword [esp], ebp
mov ebp, dword [esp + 0xbc]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xc8]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0xc], ebp
call fcn.0056e0f0
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 + 0xcc]
mov dword [esp], ebp
mov ebp, dword [esp + 0xa8]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0xac]
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0xd0]
mov dword [esp + 0xc], ebp
call fcn.0056e0f0
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.0056e0f0
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.0056e0f0
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.0056e0f0
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.0056e0f0
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 esi, dword [esp + 0x3c]
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xb8], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xbc], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xa8], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0xc8], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0xc4], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0xd0], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0xb4], ebx
cmp ebp, 9
jl 0x56e704
lea ebp, [esi + 0x61707865]
mov esi, dword [esp + 0xe8]
xor ebp, dword [esi]
mov ebx, dword [esp + 0xdc]
mov dword [ebx], ebp
lea ebp, [edi + 0x3320646e]
xor ebp, dword [esi + 4]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0xb0]
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
nop
mov eax, dword [esp + 0x94]
add ecx, eax
xor ecx, dword [esi + 0x10]
mov dword [ebx + 0x10], ecx
mov ecx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x7c]
add ecx, ebp
xor ecx, dword [esi + 0x14]
mov dword [ebx + 0x14], ecx
mov ecx, dword [esp + 0xbc]
mov edi, dword [esp + 0x80]
add ecx, edi
xor ecx, dword [esi + 0x18]
mov dword [ebx + 0x18], ecx
mov ecx, dword [esp + 0xa8]
mov edi, dword [esp + 0x98]
add ecx, edi
xor ecx, dword [esi + 0x1c]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x84]
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 + 0xc8]
mov ecx, dword [esp + 0x8c]
add edx, ecx
xor edx, dword [esi + 0x28]
mov dword [ebx + 0x28], edx
mov edx, dword [esp + 0xac]
mov ecx, dword [esp + 0x88]
add edx, ecx
xor edx, dword [esi + 0x2c]
mov dword [ebx + 0x2c], edx
mov edx, dword [esp + 0xd8]
mov ecx, dword [edx + 0x20]
mov ebp, dword [esp + 0xa4]
add ecx, ebp
xor ecx, dword [esi + 0x30]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0xc4]
mov ebp, dword [esp + 0x90]
add ecx, ebp
xor ecx, dword [esi + 0x34]
mov dword [ebx + 0x34], ecx
mov ecx, dword [esp + 0xb4]
mov ebp, dword [esp + 0x74]
add ecx, ebp
xor ecx, dword [esi + 0x38]
mov dword [ebx + 0x38], ecx
mov ecx, dword [esp + 0xd0]
mov ebp, dword [esp + 0x78]
add ecx, ebp
xor ecx, dword [esi + 0x3c]
mov dword [ebx + 0x3c], ecx
inc dword [edx + 0x20]
mov ecx, dword [esp + 0xf0]
add ecx, 0xffffffc0
mov dword [esp + 0xf0], ecx
neg ecx
sar ecx, 0x1f
and ecx, 0x40
add ecx, esi
mov esi, dword [esp + 0xec]
add esi, 0xffffffc0
mov ebp, dword [esp + 0xe4]
add ebp, 0xffffffc0
mov dword [esp + 0xe4], ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, 0x40
add ebx, ebp
mov ebp, dword [esp + 0xe0]
add ebp, 0xffffffc0
mov dword [esp + 0xe8], ecx
mov eax, esi
mov dword [esp + 0xdc], ebx
mov ecx, ebp
mov esi, dword [esp + 0xe4]
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x7c]
cmp eax, 0x40
jl 0x56ed8a
cmp ecx, 0x40
jl 0x56ed8a
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xec], eax
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.0056e0f0
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 + 0xd8]
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.0056e0f0
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 + 0xd8]
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.0056e0f0
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 + 0xd8]
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.0056e0f0
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 + 0xd8]
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.0056e0f0
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]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0xb0], esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xb8], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0xbc], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xa8], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0xa0], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0xc8], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xa4], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0xc4], esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0xd0], esi
mov esi, dword [esp + 0x5c]
jmp 0x56e9c8
add esp, 0xd4
ret
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.0056e0f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xd8]
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 + 0x80]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x74]
mov dword [esp + 0xc], edx
call fcn.0056e0f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xd8]
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 + 0x98]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 0xc], edx
call fcn.0056e0f0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xd8]
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 + 0xec]
mov ecx, dword [esp + 0xe0]
mov edx, ebp
mov ebx, dword [esp + 0x94]
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x84]
jmp 0x56e6f8
lea eax, [0x633ac0]
mov dword [esp], eax
lea eax, [0x6c5698]
mov dword [esp + 4], eax
call fcn.00430630
nop
call fcn.00459790
jmp fcn.0056e640