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

Disassembly:
push ebp
push ebx
push esi
push edi
xor eax, eax
cmp eax, dword [esp + 0x1c]
je 0x51e1fe
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
sub esp, 0x84
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
sub eax, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jmp 0x51ddd5
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], ecx
mov eax, 0x61707865
mov dword [esp + 4], 0x3320646e
mov dword [esp + 8], 0x79622d32
mov dword [esp + 0xc], 0x6b206574
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edi
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x70]
mov ebp, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
add edx, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x70], edx
mov ebx, 0xa
jmp 0x51de60
add eax, ebp
mov dword [esp + 0x80], ebx
mov ebx, ebp
xor edx, eax
rol edx, 0x10
add ecx, edx
xor ebx, ecx
mov edi, dword [esp + 0x34]
rol ebx, 0xc
mov ebp, dword [esp + 0x14]
add eax, ebx
xor edx, eax
mov dword [esp], eax
rol edx, 8
mov eax, dword [esp + 4]
add ecx, edx
mov dword [esp + 0x30], edx
xor ebx, ecx
add eax, ebp
rol ebx, 7
xor edi, eax
mov dword [esp + 0x20], ecx
rol edi, 0x10
mov dword [esp + 0x10], ebx
add esi, edi
mov ecx, dword [esp + 0x28]
xor ebp, esi
mov edx, dword [esp + 0x38]
rol ebp, 0xc
mov ebx, dword [esp + 0x18]
add eax, ebp
xor edi, eax
mov dword [esp + 4], eax
rol edi, 8
mov eax, dword [esp + 8]
add esi, edi
mov dword [esp + 0x34], edi
xor ebp, esi
add eax, ebx
rol ebp, 7
xor edx, eax
mov dword [esp + 0x24], esi
rol edx, 0x10
mov dword [esp + 0x14], ebp
add ecx, edx
mov esi, dword [esp + 0x2c]
xor ebx, ecx
mov edi, dword [esp + 0x3c]
rol ebx, 0xc
mov ebp, dword [esp + 0x1c]
add eax, ebx
xor edx, eax
mov dword [esp + 8], eax
rol edx, 8
mov eax, dword [esp + 0xc]
add ecx, edx
mov dword [esp + 0x38], edx
xor ebx, ecx
add eax, ebp
rol ebx, 7
xor edi, eax
rol edi, 0x10
mov dword [esp + 0x18], ebx
add esi, edi
xor ebp, esi
rol ebp, 0xc
mov ebx, dword [esp + 0x14]
add eax, ebp
xor edi, eax
mov dword [esp + 0xc], eax
rol edi, 8
mov eax, dword [esp]
add esi, edi
mov edx, edi
xor ebp, esi
add eax, ebx
rol ebp, 7
xor edx, eax
rol edx, 0x10
mov dword [esp + 0x1c], ebp
add ecx, edx
xor ebx, ecx
mov edi, dword [esp + 0x30]
rol ebx, 0xc
mov ebp, dword [esp + 0x18]
add eax, ebx
xor edx, eax
mov dword [esp], eax
rol edx, 8
mov eax, dword [esp + 4]
add ecx, edx
mov dword [esp + 0x3c], edx
xor ebx, ecx
add eax, ebp
rol ebx, 7
xor edi, eax
mov dword [esp + 0x28], ecx
rol edi, 0x10
mov dword [esp + 0x14], ebx
add esi, edi
mov ecx, dword [esp + 0x20]
xor ebp, esi
mov edx, dword [esp + 0x34]
rol ebp, 0xc
mov ebx, dword [esp + 0x1c]
add eax, ebp
xor edi, eax
mov dword [esp + 4], eax
rol edi, 8
mov eax, dword [esp + 8]
add esi, edi
mov dword [esp + 0x30], edi
xor ebp, esi
add eax, ebx
rol ebp, 7
xor edx, eax
mov dword [esp + 0x2c], esi
rol edx, 0x10
mov dword [esp + 0x18], ebp
add ecx, edx
mov esi, dword [esp + 0x24]
xor ebx, ecx
mov edi, dword [esp + 0x38]
rol ebx, 0xc
mov ebp, dword [esp + 0x10]
add eax, ebx
xor edx, eax
mov dword [esp + 8], eax
rol edx, 8
mov eax, dword [esp + 0xc]
add ecx, edx
mov dword [esp + 0x34], edx
xor ebx, ecx
add eax, ebp
rol ebx, 7
xor edi, eax
rol edi, 0x10
mov dword [esp + 0x1c], ebx
add esi, edi
xor ebp, esi
mov edx, dword [esp + 0x30]
rol ebp, 0xc
mov ebx, dword [esp + 0x80]
add eax, ebp
xor edi, eax
mov dword [esp + 0xc], eax
rol edi, 8
mov eax, dword [esp]
add esi, edi
mov dword [esp + 0x38], edi
xor ebp, esi
rol ebp, 7
dec ebx
jne 0x51de60
mov ebx, dword [esp + 0xa0]
add eax, 0x61707865
add ebp, dword [esp + 0x50]
add ecx, dword [esp + 0x60]
add esi, dword [esp + 0x64]
cmp ebx, 0x40
jb 0x51e131
mov ebx, dword [esp + 0x9c]
add edx, dword [esp + 0x70]
add edi, dword [esp + 0x78]
xor eax, dword [ebx]
xor ebp, dword [ebx + 0x10]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
xor ecx, dword [ebx + 0x20]
xor esi, dword [ebx + 0x24]
xor edx, dword [ebx + 0x30]
xor edi, dword [ebx + 0x38]
mov dword [eax + 0x10], ebp
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], esi
mov dword [eax + 0x30], edx
mov dword [eax + 0x38], edi
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add ebp, 0x3320646e
add ecx, 0x79622d32
add esi, 0x6b206574
add edx, dword [esp + 0x54]
add edi, dword [esp + 0x58]
xor ebp, dword [ebx + 4]
xor ecx, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
xor edx, dword [ebx + 0x14]
xor edi, dword [ebx + 0x18]
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edi
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
add ebp, dword [esp + 0x5c]
add ecx, dword [esp + 0x68]
add esi, dword [esp + 0x6c]
add edx, dword [esp + 0x74]
add edi, dword [esp + 0x7c]
xor ebp, dword [ebx + 0x1c]
xor ecx, dword [ebx + 0x28]
xor esi, dword [ebx + 0x2c]
xor edx, dword [ebx + 0x34]
xor edi, dword [ebx + 0x3c]
lea ebx, [ebx + 0x40]
mov dword [eax + 0x1c], ebp
mov ebp, dword [esp]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0xa0]
mov dword [eax + 0x2c], esi
mov dword [eax + 0x34], edx
mov dword [eax + 0x3c], edi
mov dword [eax], ebp
lea eax, [eax + 0x40]
sub ecx, 0x40
jne 0x51ddc0
jmp 0x51e1f8
add edx, dword [esp + 0x70]
add edi, dword [esp + 0x78]
mov dword [esp], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], edi
mov ebp, dword [esp + 4]
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add ebp, 0x3320646e
add ecx, 0x79622d32
add esi, 0x6b206574
add edx, dword [esp + 0x54]
add edi, dword [esp + 0x58]
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
add ebp, dword [esp + 0x5c]
add ecx, dword [esp + 0x68]
add esi, dword [esp + 0x6c]
add edx, dword [esp + 0x74]
add edi, dword [esp + 0x7c]
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x2c], esi
xor esi, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], edi
xor eax, eax
xor edx, edx
mov al, byte [esi + ebp]
mov dl, byte [esp + esi]
lea esi, [esi + 1]
xor al, dl
mov byte [ecx + esi - 1], al
dec ebx
jne 0x51e1e2
add esp, 0x84
pop edi
pop esi
pop ebx
pop ebp
ret