Function at 0x4011f0
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28c0
call fcn.00408fb0
mov eax, dword [0x41107c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x104
lea ecx, [ebp - 0x61c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x40f0ec
lea edx, [ebp - 0x61c]
push edx
lea eax, [ebp - 0x283c]
xor ebx, ebx
push eax
mov dword [ebp - 0x283c], ebx
call fcn.00402f33
mov ecx, dword [ebp - 0x283c]
push 2
mov eax, 0xf
push 0xffffffffffffffff
push ecx
mov dword [ebp - 0x2624], eax
mov dword [ebp - 0x2628], ebx
mov byte [ebp - 0x2638], bl
mov dword [ebp - 0x265c], eax
mov dword [ebp - 0x2660], ebx
mov byte [ebp - 0x2670], bl
call fcn.00403004
add esp, 0x18
mov byte [ebp - 0x2840], bl
jmp 0x401286
xor ebx, ebx
mov edx, dword [ebp - 0x283c]
push edx
push 1
lea eax, [ebp - 0x2840]
push 1
push eax
call fcn.004032ca
add esp, 0x10
cmp eax, 1
jne 0x4012b4
cmp byte [ebp - 0x2840], 0x40
mov byte [ebp - 0x2835], al
jne 0x4012ba
mov byte [ebp - 0x2835], bl
mov ecx, dword [ebp - 0x283c]
push 1
push 0xfffffffffffffffe
push ecx
call fcn.00403004
add esp, 0xc
cmp byte [ebp - 0x2835], bl
je 0x4013b4
cmp byte [ebp - 0x2840], bl
je 0x401286
lea edx, [ebp - 0x2638]
push edx
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x2670]
call fcn.00401ec0
mov ecx, dword [ebp - 0x2840]
lea eax, [ebp - 0x2670]
push eax
push ecx
lea edx, [ebp - 0x2830]
push edx
call fcn.00402400
mov esi, eax
lea eax, [ebp - 0x2638]
add esp, 0xc
cmp eax, esi
je 0x401393
cmp dword [ebp - 0x2624], 0x10
jb 0x401339
mov ecx, dword [ebp - 0x2638]
push ecx
call fcn.0040295a
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x2624], edi
mov dword [ebp - 0x2628], ebx
mov byte [ebp - 0x2638], bl
cmp dword [esi + 0x14], 0x10
jae 0x40136f
mov edx, dword [esi + 0x10]
inc edx
push edx
lea eax, [ebp - 0x2638]
push esi
push eax
call fcn.00402970
add esp, 0xc
jmp 0x401379
mov ecx, dword [esi]
mov dword [ebp - 0x2638], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x2628], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2624], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x281c], 0x10
jb 0x401284
mov ecx, dword [ebp - 0x2830]
push ecx
call fcn.0040295a
add esp, 4
jmp 0x401284
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 2
mov eax, 0x40f0f4
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x2718]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x40f0f8
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x2814]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, 0x40f0fc
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x27dc]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, 0x40f100
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x27a4]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, 0x40f104
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x276c]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 2
mov eax, 0x40f108
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x2734]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov edi, 3
mov eax, 0x40f10c
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x268c]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
mov edi, 6
mov eax, str.PARAM1
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x26fc]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, str.PARAM2
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x2788]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, str.PARAM3
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x26e0]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, str.PARAM4
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x26c4]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, str.PARAM5
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x26a8]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, str.PARAM6
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x27c0]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, str.PARAM7
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x2750]
call fcn.004010c0
mov esi, esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov eax, str.PARAM8
mov dword [ebp - 0x2834], esp
mov byte [esi], bl
call fcn.00401fa0
lea edx, [ebp - 0x2638]
lea ecx, [ebp - 0x27f8]
call fcn.004010c0
add esp, 0x1c
push 0x40f150
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [ebp - 0x414]
push edx
push 0x104
mov dword [ebp - 0x2834], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x40f158
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea edx, [ebp - 0x20c]
push 0x40f160
push edx
call fcn.00402f1c
mov esi, eax
mov eax, dword [ebp - 0x2834]
push esi
push 1
push eax
push edi
call fcn.0040343e
push esi
call fcn.00403525
push 0x1000
lea ecx, [ebp - 0x261c]
push ebx
push ecx
call fcn.004055b0
add esp, 0x28
mov dword [ebp - 0x2640], 0xf
mov dword [ebp - 0x2644], ebx
mov byte [ebp - 0x2654], bl
cmp dword [ebp - 0x267c], ebx
jbe 0x401763
mov edi, 6
mov eax, str.__dyn
lea esi, [ebp - 0x2654]
call fcn.00401fa0
mov esi, dword [ebp - 0x268c]
mov edi, 0x10
cmp dword [ebp - 0x2678], edi
jae 0x40177c
lea esi, [ebp - 0x268c]
cmp dword [ebp - 0x2640], edi
jb 0x401792
mov edx, dword [ebp - 0x2654]
mov dword [ebp - 0x285c], edx
jmp 0x40179e
lea eax, [ebp - 0x2654]
mov dword [ebp - 0x285c], eax
cmp dword [ebp - 0x27e4], edi
jb 0x4017b4
mov ecx, dword [ebp - 0x27f8]
mov dword [ebp - 0x2864], ecx
jmp 0x4017c0
lea edx, [ebp - 0x27f8]
mov dword [ebp - 0x2864], edx
cmp dword [ebp - 0x273c], edi
jb 0x4017d6
mov eax, dword [ebp - 0x2750]
mov dword [ebp - 0x286c], eax
jmp 0x4017e2
lea ecx, [ebp - 0x2750]
mov dword [ebp - 0x286c], ecx
cmp dword [ebp - 0x27ac], edi
jb 0x4017f8
mov edx, dword [ebp - 0x27c0]
mov dword [ebp - 0x2850], edx
jmp 0x401804
lea eax, [ebp - 0x27c0]
mov dword [ebp - 0x2850], eax
cmp dword [ebp - 0x2694], edi
jb 0x40181a
mov ecx, dword [ebp - 0x26a8]
mov dword [ebp - 0x2860], ecx
jmp 0x401826
lea edx, [ebp - 0x26a8]
mov dword [ebp - 0x2860], edx
cmp dword [ebp - 0x26b0], edi
jb 0x40183c
mov eax, dword [ebp - 0x26c4]
mov dword [ebp - 0x2868], eax
jmp 0x401848
lea ecx, [ebp - 0x26c4]
mov dword [ebp - 0x2868], ecx
cmp dword [ebp - 0x26cc], edi
jb 0x40185e
mov edx, dword [ebp - 0x26e0]
mov dword [ebp - 0x2844], edx
jmp 0x40186a
lea eax, [ebp - 0x26e0]
mov dword [ebp - 0x2844], eax
cmp dword [ebp - 0x2774], edi
jb 0x401880
mov ecx, dword [ebp - 0x2788]
mov dword [ebp - 0x2858], ecx
jmp 0x40188c
lea edx, [ebp - 0x2788]
mov dword [ebp - 0x2858], edx
cmp dword [ebp - 0x26e8], edi
jb 0x4018a2
mov eax, dword [ebp - 0x26fc]
mov dword [ebp - 0x2848], eax
jmp 0x4018ae
lea ecx, [ebp - 0x26fc]
mov dword [ebp - 0x2848], ecx
cmp dword [ebp - 0x2720], edi
jb 0x4018c4
mov edx, dword [ebp - 0x2734]
mov dword [ebp - 0x284c], edx
jmp 0x4018d0
lea eax, [ebp - 0x2734]
mov dword [ebp - 0x284c], eax
cmp dword [ebp - 0x2758], edi
jb 0x4018e6
mov ecx, dword [ebp - 0x276c]
mov dword [ebp - 0x2854], ecx
jmp 0x4018f2
lea edx, [ebp - 0x276c]
mov dword [ebp - 0x2854], edx
cmp dword [ebp - 0x2790], edi
jb 0x401908
mov eax, dword [ebp - 0x27a4]
mov dword [ebp - 0x2834], eax
jmp 0x401914
lea ecx, [ebp - 0x27a4]
mov dword [ebp - 0x2834], ecx
mov edx, dword [ebp - 0x2814]
cmp dword [ebp - 0x2800], edi
jae 0x401928
lea edx, [ebp - 0x2814]
mov ecx, dword [ebp - 0x27dc]
cmp dword [ebp - 0x27c8], edi
jae 0x40193c
lea ecx, [ebp - 0x27dc]
mov eax, dword [ebp - 0x2718]
cmp dword [ebp - 0x2704], edi
jae 0x401950
lea eax, [ebp - 0x2718]
push esi
mov esi, dword [ebp - 0x285c]
push esi
mov esi, dword [ebp - 0x2864]
push esi
mov esi, dword [ebp - 0x286c]
push esi
mov esi, dword [ebp - 0x2850]
push esi
mov esi, dword [ebp - 0x2860]
push esi
mov esi, dword [ebp - 0x2868]
push esi
mov esi, dword [ebp - 0x2844]
push esi
mov esi, dword [ebp - 0x2858]
push esi
mov esi, dword [ebp - 0x2848]
push esi
mov esi, dword [ebp - 0x284c]
push esi
mov esi, dword [ebp - 0x2854]
push esi
mov esi, dword [ebp - 0x2834]
push esi
push edx
push ecx
push eax
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x261c]
push str._s__br_S__pio_S__uid_S__cid_S__rnd_S__p1_S__PARAM1_S__PARAM2_S__PARAM3_S__PARAM4_S__PARAM5_S__PARAM6_S__PARAM7_S__PARAM8_S__S_S
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea ecx, [ebp - 0x28c0]
push ebx
push ecx
call fcn.004055b0
add esp, 0x58
xor eax, eax
lea edx, [ebp - 0x287c]
push edx
mov dword [ebp - 0x287c], eax
mov dword [ebp - 0x2878], eax
mov dword [ebp - 0x2874], eax
mov dword [ebp - 0x2870], eax
lea eax, [ebp - 0x28c0]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
lea ecx, [ebp - 0x261c]
push ecx
push ebx
mov dword [ebp - 0x28c0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [ebp - 0x287c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x287c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x2878]
push ecx
call esi
mov edx, dword [ebp - 0x283c]
push edx
call fcn.00403525
add esp, 4
cmp dword [ebp - 0x2640], edi
jb 0x401a68
mov eax, dword [ebp - 0x2654]
push eax
call fcn.0040295a
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x2640], esi
mov dword [ebp - 0x2644], ebx
mov byte [ebp - 0x2654], bl
cmp dword [ebp - 0x27e4], edi
jb 0x401a96
mov ecx, dword [ebp - 0x27f8]
push ecx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x27e4], esi
mov dword [ebp - 0x27e8], ebx
mov byte [ebp - 0x27f8], bl
cmp dword [ebp - 0x273c], edi
jb 0x401abf
mov edx, dword [ebp - 0x2750]
push edx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x273c], esi
mov dword [ebp - 0x2740], ebx
mov byte [ebp - 0x2750], bl
cmp dword [ebp - 0x27ac], edi
jb 0x401ae8
mov eax, dword [ebp - 0x27c0]
push eax
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x27ac], esi
mov dword [ebp - 0x27b0], ebx
mov byte [ebp - 0x27c0], bl
cmp dword [ebp - 0x2694], edi
jb 0x401b11
mov ecx, dword [ebp - 0x26a8]
push ecx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2694], esi
mov dword [ebp - 0x2698], ebx
mov byte [ebp - 0x26a8], bl
cmp dword [ebp - 0x26b0], edi
jb 0x401b3a
mov edx, dword [ebp - 0x26c4]
push edx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x26b0], esi
mov dword [ebp - 0x26b4], ebx
mov byte [ebp - 0x26c4], bl
cmp dword [ebp - 0x26cc], edi
jb 0x401b63
mov eax, dword [ebp - 0x26e0]
push eax
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x26cc], esi
mov dword [ebp - 0x26d0], ebx
mov byte [ebp - 0x26e0], bl
cmp dword [ebp - 0x2774], edi
jb 0x401b8c
mov ecx, dword [ebp - 0x2788]
push ecx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2774], esi
mov dword [ebp - 0x2778], ebx
mov byte [ebp - 0x2788], bl
cmp dword [ebp - 0x26e8], edi
jb 0x401bb5
mov edx, dword [ebp - 0x26fc]
push edx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x26e8], esi
mov dword [ebp - 0x26ec], ebx
mov byte [ebp - 0x26fc], bl
cmp dword [ebp - 0x2678], edi
jb 0x401bde
mov eax, dword [ebp - 0x268c]
push eax
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2678], esi
mov dword [ebp - 0x267c], ebx
mov byte [ebp - 0x268c], bl
cmp dword [ebp - 0x2720], edi
jb 0x401c07
mov ecx, dword [ebp - 0x2734]
push ecx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2720], esi
mov dword [ebp - 0x2724], ebx
mov byte [ebp - 0x2734], bl
cmp dword [ebp - 0x2758], edi
jb 0x401c30
mov edx, dword [ebp - 0x276c]
push edx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2758], esi
mov dword [ebp - 0x275c], ebx
mov byte [ebp - 0x276c], bl
cmp dword [ebp - 0x2790], edi
jb 0x401c59
mov eax, dword [ebp - 0x27a4]
push eax
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2790], esi
mov dword [ebp - 0x2794], ebx
mov byte [ebp - 0x27a4], bl
cmp dword [ebp - 0x27c8], edi
jb 0x401c82
mov ecx, dword [ebp - 0x27dc]
push ecx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x27c8], esi
mov dword [ebp - 0x27cc], ebx
mov byte [ebp - 0x27dc], bl
cmp dword [ebp - 0x2800], edi
jb 0x401cab
mov edx, dword [ebp - 0x2814]
push edx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2800], esi
mov dword [ebp - 0x2804], ebx
mov byte [ebp - 0x2814], bl
cmp dword [ebp - 0x2704], edi
jb 0x401cd4
mov eax, dword [ebp - 0x2718]
push eax
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x2704], esi
mov dword [ebp - 0x2708], ebx
mov byte [ebp - 0x2718], bl
cmp dword [ebp - 0x265c], edi
jb 0x401cfd
mov ecx, dword [ebp - 0x2670]
push ecx
call fcn.0040295a
add esp, 4
mov dword [ebp - 0x265c], esi
mov dword [ebp - 0x2660], ebx
mov byte [ebp - 0x2670], bl
cmp dword [ebp - 0x2624], edi
jb 0x401d26
mov edx, dword [ebp - 0x2638]
push edx
call fcn.0040295a
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402810
mov esp, ebp
pop ebp
ret 0x10