Function at 0x1115d540
Capabilities:
Create process on windows
Get common file path
Read file on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1118deb5
mov eax, dword fs:[0]
push eax
sub esp, 0x31c
mov eax, dword [0x111ec774]
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
lea eax, [ebp - 0x114]
push eax
push 0x104
mov dword [ebp - 0x2c4], ecx
call dword [sym.imp.KeRneL32.DLl_GetTempPathA]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KeRneL32.DLl_GetShortPathNameA]
xor ebx, ebx
mov edi, 0xf
lea eax, [ebp - 0x114]
mov dword [ebp - 0x290], edi
mov dword [ebp - 0x294], ebx
mov byte [ebp - 0x2a4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1115d5c1
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2a4]
call fcn.11009270
push 9
push 0x111c1260
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 4], ebx
call fcn.1100fe30
cmp dword [ebp - 0x290], 0x10
mov eax, dword [ebp - 0x2a4]
jae 0x1115d607
lea eax, [ebp - 0x2a4]
push 0x1119ae98
push eax
call fcn.11164ead
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1115d636
push esi
push 0x1f7f
push 1
push 0x111bf100
call fcn.1116579a
push esi
call fcn.11164c77
add esp, 0x14
push 0x44
lea ecx, [ebp - 0x328]
push ebx
push ecx
call fcn.11162be0
add esp, 0xc
xor eax, eax
push 1
xor edx, edx
push 0x111ac7e8
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x328], 0x44
mov dword [ebp - 0x2fc], 1
mov word [ebp - 0x2f8], dx
mov dword [ebp - 0x2d4], eax
mov dword [ebp - 0x2d0], eax
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x26c], al
call fcn.11009270
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1115d6b0
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x26c]
call fcn.1100fe30
push 0xb
push 0x111c1254
lea ecx, [ebp - 0x26c]
call fcn.1100fe30
lea eax, [ebp - 0x218]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1115d6e7
sub eax, edx
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x26c]
call fcn.1100fe30
push 9
push 0x111c1248
lea ecx, [ebp - 0x26c]
call fcn.1100fe30
cmp dword [ebp - 0x258], 0x10
mov eax, dword [ebp - 0x26c]
jae 0x1115d72a
lea eax, [ebp - 0x26c]
lea edx, [ebp - 0x2d4]
push edx
lea ecx, [ebp - 0x328]
push ecx
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KeRneL32.DLl_CreateProcessA]
cmp eax, ebx
je 0x1115dfba
mov edx, dword [ebp - 0x2d4]
push 0x4e20
push edx
call dword [sym.imp.KeRneL32.DLl_WaitForSingleObject]
mov eax, dword [ebp - 0x2d4]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KeRneL32.DLl_TerminateProcess]
mov ecx, dword [ebp - 0x2d4]
mov esi, dword [sym.imp.KeRneL32.DLl_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x2d0]
push edx
call esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x274], 0xf
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1115d7b0
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x288]
call fcn.11009270
push 9
push 0x111c1248
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.1100fe30
mov eax, dword [ebp - 0x288]
mov edi, 0x10
cmp dword [ebp - 0x274], edi
jae 0x1115d7fb
lea eax, [ebp - 0x288]
push 0x1119b0ac
push eax
call fcn.11164ead
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x1115d86c
cmp dword [ebp - 0x274], edi
jb 0x1115d826
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.11162777
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x278], ebx
mov byte [ebp - 0x288], 0
cmp dword [ebp - 0x258], edi
jb 0x1115d855
mov edx, dword [ebp - 0x26c]
push edx
call fcn.11162777
add esp, 4
cmp dword [ebp - 0x290], edi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], ebx
jmp 0x1115dff0
push 2
push 0
push esi
call fcn.11166ccf
lea ecx, [ebp - 0x2e4]
push ecx
push esi
call fcn.1116a318
mov ebx, dword [ebp - 0x2e4]
push esi
call fcn.1116a25a
add esp, 0x18
lea eax, [ebx + 1]
call fcn.11167010
mov edi, esp
push esi
push ebx
push 1
push edi
mov byte [edi + ebx], 0
call fcn.11166a2f
push esi
call fcn.11164c77
mov eax, edi
add esp, 0x14
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1115d8d3
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.11009270
mov eax, dword [ebp - 0x2a4]
mov esi, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x290], esi
jae 0x1115d906
lea eax, [ebp - 0x2a4]
push eax
call fcn.111655e0
mov eax, dword [ebp - 0x288]
add esp, 4
cmp dword [ebp - 0x274], esi
jae 0x1115d923
lea eax, [ebp - 0x288]
push eax
call fcn.111655e0
add esp, 4
push 5
push 0
push 0x111c1240
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115d99e
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115d99e
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x234]
call fcn.11010aa0
mov ebx, dword [ebp - 0x2c4]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
jmp 0x1115d9a4
mov ebx, dword [ebp - 0x2c4]
push 5
push 0
push 0x111c1238
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115da0f
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115da0f
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
call fcn.11010aa0
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 5
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
push 5
push 0
push 0x111c1230
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115da7a
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115da7a
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x234]
call fcn.11010aa0
push eax
lea ecx, [ebx + 0x38]
mov byte [ebp - 4], 6
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
push 5
push 0
push 0x111c1228
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115dae5
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115dae5
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x234]
call fcn.11010aa0
push eax
lea ecx, [ebx + 0x54]
mov byte [ebp - 4], 7
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
push 5
push 0
push 0x111c1220
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115db50
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115db50
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
call fcn.11010aa0
push eax
lea ecx, [ebx + 0x70]
mov byte [ebp - 4], 8
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
push 5
push 0
push 0x111c1218
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115dc37
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115dbc2
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x234]
call fcn.11010aa0
push eax
lea ecx, [ebx + 0xa8]
mov byte [ebp - 4], 9
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
cmp dword [ebx + 0xb8], 0
jne 0x1115dc37
push 5
push 0
push 0x111c1210
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115dc37
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1110d630
cmp eax, 0xffffffff
je 0x1115dc37
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x234]
call fcn.11010aa0
push eax
lea ecx, [ebx + 0xa8]
mov byte [ebp - 4], 0xa
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
push 5
push 0
push 0x111c1208
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115dca5
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115dca5
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
call fcn.11010aa0
push eax
lea ecx, [ebx + 0x8c]
mov byte [ebp - 4], 0xb
call fcn.11010cd0
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 3
call fcn.11050bb0
xor edi, edi
push 5
push edi
push 0x111c1200
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov esi, eax
cmp esi, 0xffffffff
je 0x1115df6f
push 1
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp eax, 0xffffffff
je 0x1115df66
mov dword [ebp - 0x2ac], 0xf
mov dword [ebp - 0x2b0], 0
mov byte [ebp - 0x2c0], 0
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea ecx, [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xc
call fcn.11010aa0
push eax
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xd
call fcn.11010cd0
cmp dword [ebp - 0x23c], 0x10
mov byte [ebp - 4], 0xc
jb 0x1115dd48
mov edx, dword [ebp - 0x250]
push edx
call fcn.11162777
add esp, 4
push 5
push edi
push 0x111c11f8
lea ecx, [ebp - 0x234]
call fcn.1100e870
push 1
mov esi, eax
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp esi, 0xffffffff
je 0x1115ddc7
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
call fcn.11010aa0
cmp dword [eax + 0x14], 0x10
jb 0x1115dd99
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.1116450b
movzx ecx, ax
add esp, 0xc
cmp dword [ebp - 0x23c], 0x10
mov dword [ebp - 0x2c4], ecx
jb 0x1115ddc7
mov edx, dword [ebp - 0x250]
push edx
call fcn.11162777
add esp, 4
push 5
push edi
push 0x111c11f0
lea ecx, [ebp - 0x234]
call fcn.1100e870
push 1
mov esi, eax
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
cmp esi, 0xffffffff
je 0x1115de46
sub eax, esi
sub eax, 5
push eax
add esi, 5
push esi
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x234]
call fcn.11010aa0
cmp dword [eax + 0x14], 0x10
jb 0x1115de18
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.1116450b
movzx ecx, ax
add esp, 0xc
cmp dword [ebp - 0x23c], 0x10
mov dword [ebp - 0x2dc], ecx
jb 0x1115de46
mov edx, dword [ebp - 0x250]
push edx
call fcn.11162777
add esp, 4
push 5
push edi
push 0x111c11e8
lea ecx, [ebp - 0x234]
call fcn.1100e870
push 1
mov esi, eax
push esi
push 0x1119c618
lea ecx, [ebp - 0x234]
call fcn.1100e870
mov edi, eax
cmp esi, 0xffffffff
je 0x1115dec7
sub eax, esi
sub eax, 5
push eax
lea ecx, [esi + 5]
push ecx
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x234]
call fcn.11010aa0
cmp dword [eax + 0x14], 0x10
jb 0x1115de99
mov eax, dword [eax]
push 0x10
push 0
push eax
call fcn.1116450b
movzx eax, ax
add esp, 0xc
cmp dword [ebp - 0x23c], 0x10
mov dword [ebp - 0x2d8], eax
jb 0x1115dec7
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.11162777
add esp, 4
test dword [ebp - 0x2c4], 0x8000
jne 0x1115df4a
lea edx, [ebp - 0x2c0]
push edx
lea ecx, [ebx + 0xc4]
call fcn.11024e10
lea eax, [ebp - 0x2c4]
push eax
lea ecx, [ebx + 0xe4]
call fcn.1115ce40
mov ecx, dword [ebp - 0x2dc]
push ecx
lea edx, [ebp - 0x250]
push edx
mov ecx, ebx
call fcn.1115d040
push eax
lea ecx, [ebx + 0xd4]
mov byte [ebp - 4], 0xe
call fcn.1115d4b0
cmp dword [ebp - 0x23c], 0x10
mov byte [ebp - 4], 0xc
jb 0x1115df38
mov eax, dword [ebp - 0x250]
push eax
call fcn.11162777
add esp, 4
lea ecx, [ebp - 0x2d8]
push ecx
lea ecx, [ebx + 0xf4]
call fcn.1115ce40
cmp dword [ebp - 0x2ac], 0x10
mov byte [ebp - 4], 3
jb 0x1115df66
mov edx, dword [ebp - 0x2c0]
push edx
call fcn.11162777
add esp, 4
cmp esi, 0xffffffff
jne 0x1115dca7
cmp dword [ebp - 0x220], 0x10
jb 0x1115df87
mov eax, dword [ebp - 0x234]
push eax
call fcn.11162777
add esp, 4
cmp dword [ebp - 0x274], 0x10
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
jb 0x1115dfba
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.11162777
add esp, 4
mov esi, 0x10
cmp dword [ebp - 0x258], esi
jb 0x1115dfd6
mov edx, dword [ebp - 0x26c]
push edx
call fcn.11162777
add esp, 4
cmp dword [ebp - 0x290], esi
mov dword [ebp - 0x258], 0xf
mov dword [ebp - 0x25c], 0
mov byte [ebp - 0x26c], 0
jb 0x1115e008
mov eax, dword [ebp - 0x2a4]
push eax
call fcn.11162777
add esp, 4
lea esp, [ebp - 0x338]
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.11162bb7
mov esp, ebp
pop ebp
ret