Function at 0x4074a0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x4c
mov edx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
mov edi, dword [edx + 0x18]
mov dword [esp + 0x2c], edi
mov esi, dword [edx + 0x14]
mov edi, dword [ebp + 4]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x24], edi
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov esi, dword [ebp]
mov edi, dword [ebp + 8]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
mov ecx, dword [edx + 8]
mov ebx, dword [edx + 0xc]
mov eax, dword [edx + 0x10]
mov dword [esp], ebp
mov ebp, 0x6b206574
mov edx, dword [edx + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], 0x61707865
mov dword [esp + 0x18], 0x3320646e
mov dword [esp + 0x14], 0x79622d32
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x20], esi
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x1c]
add edx, ebx
mov ecx, dword [esp + 0x20]
xor ecx, edx
rol ecx, 0x10
add eax, ecx
xor ebx, eax
rol ebx, 0xc
add edx, ebx
xor ecx, edx
rol ecx, 8
add eax, ecx
xor ebx, eax
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
add eax, esi
rol ebx, 7
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x24]
xor ebx, eax
rol ebx, 0x10
add ebp, ebx
xor esi, ebp
rol esi, 0xc
add eax, esi
mov edi, dword [esp + 0x34]
xor ebx, eax
add edi, 0xfffffffe
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], eax
mov edi, dword [esp + 8]
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x20], ecx
rol ebx, 8
mov ecx, dword [esp + 0x28]
add ebp, ebx
xor ecx, eax
xor esi, ebp
rol ecx, 0x10
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x2c]
add ebp, ecx
xor edi, ebp
rol edi, 0xc
add eax, edi
xor ecx, eax
rol ecx, 8
add ebp, ecx
xor edi, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add ecx, ebx
rol edi, 7
mov dword [esp + 8], edi
mov edi, dword [esp]
xor edi, ecx
rol edi, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 4]
add eax, edi
xor ebx, eax
rol ebx, 0xc
add ecx, ebx
rol esi, 7
xor edi, ecx
rol edi, 8
add edx, esi
add eax, edi
xor edi, edx
rol edi, 0x10
xor ebx, eax
add ebp, edi
xor esi, ebp
rol esi, 0xc
add edx, esi
xor edi, edx
rol edi, 8
add ebp, edi
xor esi, ebp
rol esi, 7
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 8]
mov ebp, dword [esp + 0x18]
add ebp, esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
xor edx, ebp
rol edx, 0x10
add eax, edx
xor esi, eax
rol esi, 0xc
add ebp, esi
xor edx, ebp
rol ebx, 7
mov dword [esp + 0x18], ebp
rol edx, 8
mov ebp, dword [esp + 0x14]
add eax, edx
add ebp, ebx
xor esi, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x24]
xor edx, ebp
rol edx, 0x10
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
add eax, edx
xor ebx, eax
rol ebx, 0xc
add ebp, ebx
xor edx, ebp
rol edx, 8
add eax, edx
xor ebx, eax
rol ebx, 7
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x38]
add ecx, ebx
mov dword [esp], edi
mov edi, dword [esp + 0x28]
xor edi, ecx
rol edi, 0x10
mov dword [esp + 0x14], ebp
mov ebp, dword [esp + 0x30]
add ebp, edi
xor ebx, ebp
rol ebx, 0xc
add ecx, ebx
xor edi, ecx
rol edi, 8
add ebp, edi
xor ebx, ebp
rol esi, 7
rol ebx, 7
mov dword [esp + 8], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edi
cmp dword [esp + 0x34], 0
jne 0x40752e
mov eax, dword [esp + 0x68]
mov ebp, ecx
mov esi, dword [esp + 0x20]
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], esi
mov edi, edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0x14], edi
mov dword [eax + 0x18], ebp
mov dword [eax + 0x1c], esi
add esp, 0x4c
pop ebp
pop ebx
pop edi
pop esi
ret