Function at 0x10017130
Capabilities:
Allocate or change rwx memory
Check if file exists
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027c55
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x1086c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x94], edi
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x54], 0xf
mov byte [ebp - 0x68], 0
lea eax, [ebp - 0x68]
mov dword [ebp - 4], 0
push eax
call fcn.100169c0
test al, al
je 0x100176bb
cmp dword [ebp - 0x54], 0xf
lea eax, [ebp - 0x68]
cmova eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x100176bb
mov al, 0x4b
mov byte [ebp - 0x80], 0x7a
mov byte [ebp - 0x6d], al
mov cl, 0x4e
xor al, byte [ebp - 0x80]
mov dl, 0x42
mov byte [ebp - 0x7f], al
mov ah, 0x48
mov al, byte [ebp - 0x80]
mov ch, 0x49
xor cl, al
mov byte [ebp - 0x78], 0
xor dl, al
mov byte [ebp - 0x7e], cl
xor ah, al
mov byte [ebp - 0x7d], dl
xor ch, al
mov byte [ebp - 0x7c], ah
mov dh, 0x4a
mov byte [ebp - 0x71], 0
xor dh, al
mov byte [ebp - 0x7b], ch
mov al, byte [ebp - 0x6d]
mov dl, 0x3f
xor al, byte [ebp - 0x80]
mov cl, 0x56
mov byte [ebp - 0x79], al
xor cl, dl
mov al, 0x1a
mov byte [ebp - 0x7a], dh
xor al, dl
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x73], al
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x73]
mov byte [ebp - 0x74], dl
push eax
lea eax, [ebp - 0x7f]
mov byte [ebp - 0x72], cl
push eax
mov byte [ebp - 0x71], 0
call fcn.10016230
mov esi, dword [ebp - 0x34]
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
imul eax, esi
cmp dword [0x1086d414], eax
jne 0x100176bb
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x54], 0xf
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x58]
jbe 0x1001726f
mov esi, dword [ebp - 0x68]
add edx, esi
jmp 0x10017274
add edx, ecx
lea esi, [ebp - 0x68]
mov dword [ebp - 0x3c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x4c], xmm0
cmp esi, edx
jne 0x10017298
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
jmp 0x10017397
sub edx, esi
mov eax, 7
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
cmp edx, 0x7ffffffe
ja 0x10017716
cmp edx, eax
jbe 0x10017355
mov eax, edx
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x100172d5
mov ecx, 0x7fffffff
mov dword [ebp - 0x74], 0x7ffffffe
add ecx, ecx
jmp 0x100172fb
mov ecx, 0xa
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x74], eax
lea ecx, [eax + 1]
cmp ecx, 0x7fffffff
ja 0x1001771b
add ecx, ecx
cmp ecx, 0x1000
jb 0x1001732e
lea eax, [ecx + 0x23]
cmp eax, ecx
jbe 0x1001771b
push eax
call fcn.1001b45c
add esp, 4
test eax, eax
je 0x100176e5
mov edx, dword [ebp - 0x34]
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], eax
jmp 0x10017358
test ecx, ecx
je 0x1001734b
push ecx
call fcn.1001b45c
mov edx, dword [ebp - 0x34]
mov ecx, eax
mov eax, dword [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x38], eax
jmp 0x10017358
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], ecx
jmp 0x10017358
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x94]
cmp eax, 7
lea eax, [ebp - 0x4c]
cmova eax, ecx
mov dword [ebp - 0x34], eax
mov ecx, eax
test edx, edx
je 0x1001738b
mov edi, edx
movsx ax, byte [esi]
lea ecx, [ecx + 2]
lea esi, [esi + 1]
mov word [ecx - 2], ax
sub edi, 1
jne 0x10017372
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov dword [ebp - 0x3c], edx
mov word [eax + edx*2], cx
mov dh, 0x19
mov byte [ebp - 4], 1
mov al, 0x5d
mov byte [ebp - 0x7a], 0
mov cl, 0x4f
mov byte [ebp - 0x80], dh
mov dl, 0x6b
mov byte [ebp - 0x7a], 0
mov ah, 0x5f
mov ch, 0x2d
xor al, dh
xor cl, dh
xor dl, dh
mov byte [ebp - 0x7f], al
xor ah, dh
mov byte [ebp - 0x7e], cl
xor ch, dh
mov byte [ebp - 0x7d], dl
push 0x2000
mov byte [ebp - 0x7c], ah
mov byte [ebp - 0x7b], ch
call fcn.1001b8c9
add esp, 4
mov dword [ebp - 0x9c], eax
push 0x1000
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x7f]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x38], 7
lea eax, [ebp - 0x4c]
mov cl, 0x65
mov byte [ebp - 0x90], 8
cmova eax, dword [ebp - 0x4c]
mov dl, cl
xor cl, byte [ebp - 0x90]
mov ch, 0x3a
mov dword [ebp - 0x98], eax
mov dh, 0x26
mov al, 0x61
mov byte [ebp - 0x8e], cl
xor al, byte [ebp - 0x90]
mov ah, 0x3b
mov cl, byte [ebp - 0x90]
mov byte [ebp - 0x8f], al
xor ah, cl
mov byte [ebp - 0x6d], 0x6c
xor dl, cl
mov al, byte [ebp - 0x6d]
xor ch, cl
xor al, cl
mov byte [ebp - 0x81], 0x64
mov byte [ebp - 0x89], al
xor dh, cl
mov al, byte [ebp - 0x81]
xor al, cl
mov byte [ebp - 0x82], 0x64
mov byte [ebp - 0x88], al
mov al, byte [ebp - 0x82]
xor al, cl
mov byte [ebp - 0x8c], ah
mov byte [ebp - 0x87], al
lea eax, [ebp - 0x8f]
mov byte [ebp - 0x86], 0
push eax
mov byte [ebp - 0x8d], dl
mov byte [ebp - 0x8b], ch
mov byte [ebp - 0x8a], dh
mov byte [ebp - 0x86], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x1001765c
movaps xmm0, xmmword [0x108606a0]
xor ecx, ecx
movups xmmword [ebp - 0xac], xmm0
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp - 0xac]
xor byte [ebp + ecx - 0xab], al
inc ecx
cmp ecx, 0xe
jb 0x100174d0
lea eax, [ebp - 0xab]
mov byte [ebp - 0x9d], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x74], esi
call fcn.100163c0
test al, al
je 0x10017559
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x34]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x30], 0x8b55ff8b
call edi
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x34]
mov esi, dword [ebp - 0x30]
push ecx
push dword [ebp - 0x34]
mov dword [eax], esi
push 4
push eax
call edi
lea eax, [ebp - 0x34]
push eax
push 0x40
push 4
push dword [ebp - 0x74]
call edi
mov eax, dword [ebp - 0x74]
mov dword [eax], esi
lea eax, [ebp - 0x34]
mov esi, dword [ebp - 0x74]
push eax
push dword [ebp - 0x34]
push 4
push esi
call edi
mov edi, dword [ebp - 0x94]
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
call esi
mov esi, eax
mov dword [ebp - 0x98], esi
test esi, esi
je 0x1001765c
push 0
lea eax, [ebp - 0x50]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
je 0x1001765c
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10017040
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10017040
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetParent]
call esi
test eax, eax
je 0x100175d5
nop dword [eax]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi]
call esi
push eax
mov dword [edi], eax
call esi
test eax, eax
jne 0x100175c0
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebp - 0x98]
mov edx, dword [edi]
push esi
push 1
push 0x50
call fcn.10017040
mov edx, dword [edi]
push esi
push 0
push 0x51
call fcn.10017040
push 0
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x1001761a
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
jmp 0x10017669
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x50]
je 0x10017641
push 2
lea eax, [ebp - 0x50]
push eax
push 0
push 0x5a
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x10017641
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
jmp 0x10017669
push esi
call fcn.10016ed0
test al, al
jne 0x10017656
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, 4
jmp 0x10017669
mov byte [ebp - 0x6d], 1
jmp 0x1001766f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 4
add edi, ecx
mov dword [edi], eax
mov byte [ebp - 0x6d], 0
mov ecx, dword [ebp - 0x38]
cmp ecx, 7
jbe 0x100176a5
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001769b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100176e5
push ecx
push edx
call fcn.1001b8bb
add esp, 8
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
jmp 0x100176bf
mov byte [ebp - 0x6d], 0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x100176f5
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100176eb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100176eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001b8bb
add esp, 8
mov al, byte [ebp - 0x6d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001b32c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100163b0
call fcn.10016310
int3