Function at 0x40189b
Capabilities:
Create process on windows
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c4c
call fcn.00417b90
mov eax, dword [0x432c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
xor ebx, ebx
push esi
mov word [ebp - 0x3d0], ax
lea eax, [ebp - 0x3ce]
push ebx
push eax
mov dword [ebp - 0x1c4c], ebx
call fcn.004156e0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0xdf8], ax
lea eax, [ebp - 0xdf6]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0xbf0], ax
lea eax, [ebp - 0xbee]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push 0x7e
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x146]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
xor eax, eax
push 0x7e
mov word [ebp - 0xc8], ax
lea eax, [ebp - 0xc6]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
xor eax, eax
push 0x7e
mov word [ebp - 0x1c8], ax
lea eax, [ebp - 0x1c6]
push ebx
push eax
mov dword [ebp - 0x1c3c], ebx
call fcn.004156e0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x7e0], ax
lea eax, [ebp - 0x7de]
push ebx
push eax
mov dword [ebp - 0x1c38], ebx
call fcn.004156e0
add esp, 0xc
xor eax, eax
push 7
mov word [ebp - 0x44], ax
pop ecx
lea edi, [ebp - 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x1c34], ebx
mov word [ebp - 0x5d8], ax
push esi
lea eax, [ebp - 0x5d6]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x9e8], ax
lea eax, [ebp - 0x9e6]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x17f8]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
push 1
lea edi, [ebp - 0x17f8]
call fcn.004023e0
pop ecx
mov dword [ebp - 0x1c48], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0xdf8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x3d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42b8f8
lea eax, [ebp - 0x3d0]
push esi
push eax
call fcn.00413151
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x1c48], ebx
je 0x401c33
lea eax, [ebp - 0x3d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1670]
push eax
lea eax, [ebp - 0x3d0]
push esi
push eax
call fcn.00413151
add esp, 0xc
push 0x42b868
lea eax, [ebp - 0x3d0]
push esi
push eax
call fcn.00413151
add esp, 0xc
lea eax, [ebp - 0x3d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1650]
push eax
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.004131ce
add esp, 0xc
lea edi, [ebp - 0x3d0]
lea esi, [ebp - 0x1650]
call fcn.004026a0
call fcn.00402740
cmp eax, 1
jne 0x401ad8
xor eax, eax
jmp 0x4020fc
xor eax, eax
movzx ecx, word [ebp + eax - 0x1650]
mov word [ebp + eax - 0x5d8], cx
inc eax
inc eax
cmp cx, bx
jne 0x401ada
xor eax, eax
movzx ecx, word [ebp + eax - 0x1650]
mov word [ebp + eax - 0x9e8], cx
inc eax
inc eax
cmp cx, bx
jne 0x401af3
lea edi, [ebp - 0x9e8]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x401b12
mov esi, 0x42b910
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x5d8]
push eax
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x401b93
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
lea eax, [ebp - 0x9e8]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x1c34], ebx
jmp 0x401b80
cmp dword [ebp - 0x1c34], 5
jge 0x401b93
push eax
call esi
inc dword [ebp - 0x1c34]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x5d8]
push eax
push ebx
push 0x20000
call edi
cmp eax, ebx
jne 0x401b63
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x3d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
movzx ecx, word [ebp + eax - 0x17f4]
mov word [ebp + eax - 0xc8], cx
inc eax
inc eax
cmp cx, bx
jne 0x401bad
xor eax, eax
movzx ecx, word [ebp + eax - 0x1772]
mov word [ebp + eax - 0x148], cx
inc eax
inc eax
cmp cx, bx
jne 0x401bc6
xor eax, eax
movzx ecx, word [ebp + eax - 0x1752]
mov word [ebp + eax - 0x1c8], cx
inc eax
inc eax
cmp cx, bx
jne 0x401bdf
movzx eax, word [ebp - 0x1774]
mov dword [ebp - 0x1c3c], eax
movzx eax, word [ebp - 0x16d2]
mov dword [ebp - 0x1c38], eax
mov eax, dword [ebp - 0x1630]
mov dword [ebp - 0x1c34], eax
lea eax, [ebp - 0x1670]
push eax
lea eax, [ebp - 0x44]
push 0x10
push eax
call fcn.004131ce
jmp 0x401cd0
push 0x236
lea eax, [ebp - 0x1a30]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
lea esi, [ebp - 0x1a30]
call fcn.004028e0
mov dword [ebp - 0x1c4c], eax
cmp eax, ebx
je 0x401cd3
xor eax, eax
movzx ecx, word [ebp + eax - 0x1922]
mov word [ebp + eax - 0x148], cx
inc eax
inc eax
cmp cx, bx
jne 0x401c5f
movzx eax, word [ebp - 0x1926]
mov ecx, dword [ebp - 0x192a]
mov dword [ebp - 0x1c3c], eax
movzx eax, word [ebp - 0x192c]
lea esi, [ebp - 0xc8]
mov dword [ebp - 0x1c38], eax
call fcn.00402d00
mov ecx, dword [ebp - 0x1930]
lea esi, [ebp - 0x1c8]
call fcn.00402d00
lea eax, [ebp - 0x1902]
push eax
lea eax, [ebp - 0x24]
push 0x10
push eax
call fcn.004131ce
mov eax, dword [ebp - 0x1a28]
mov dword [ebp - 0x1c34], eax
add esp, 0xc
push 0x200
lea eax, [ebp - 0x1c30]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
push ebx
lea edi, [ebp - 0x1c30]
call fcn.004023e0
pop ecx
mov dword [ebp - 0x1c44], eax
cmp eax, ebx
je 0x401de3
xor eax, eax
movzx ecx, word [eax + 0x42b8d4]
mov word [ebp + eax - 0x1c8], cx
inc eax
inc eax
cmp cx, bx
jne 0x401d05
xor eax, eax
movzx ecx, word [ebp + eax - 0x1baa]
mov word [ebp + eax - 0x148], cx
inc eax
inc eax
cmp cx, bx
jne 0x401d1d
xor eax, eax
movzx ecx, word [ebp + eax - 0x1c2c]
mov word [ebp + eax - 0xc8], cx
inc eax
inc eax
cmp cx, bx
jne 0x401d36
cmp dword [0x433f90], 3
movzx eax, word [ebp - 0x1b0a]
movzx esi, word [ebp - 0x1bac]
mov dword [ebp - 0x1c38], eax
mov dword [ebp - 0x1c34], 5
lea eax, [ebp - 0x7e0]
mov edi, 0x104
je 0x401d89
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x401da6
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42dba0
lea eax, [ebp - 0x7e0]
push edi
push eax
call fcn.00413151
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x7e0]
mov word [ebp + eax - 0xbf0], cx
inc eax
inc eax
cmp cx, bx
jne 0x401da8
push 0x42b91c
lea eax, [ebp - 0xbf0]
push edi
push eax
call fcn.00413151
add esp, 0xc
lea eax, [ebp - 0xbf0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x401de9
mov esi, dword [ebp - 0x1c3c]
push 0x200
lea eax, [ebp - 0x17f8]
push ebx
push eax
call fcn.004156e0
add esp, 0xc
push 0x51
pop eax
mov word [ebp - 0x1774], ax
mov eax, 0x2b70
mov edi, 0x504d534d
mov word [ebp - 0x16d2], ax
mov dword [ebp - 0x17f8], edi
xor eax, eax
movzx ecx, word [eax + 0x42b8d4]
mov word [ebp + eax - 0x1752], cx
inc eax
inc eax
cmp cx, bx
jne 0x401e21
xor eax, eax
movzx ecx, word [eax + 0x42b8ac]
mov word [ebp + eax - 0x17f4], cx
inc eax
inc eax
cmp cx, bx
jne 0x401e39
xor eax, eax
movzx ecx, word [eax + 0x42b8c8]
mov word [ebp + eax - 0x1772], cx
inc eax
inc eax
cmp cx, bx
jne 0x401e51
mov dword [ebp - 0x1630], 5
cmp dword [ebp - 0x1c48], ebx
jne 0x401e89
cmp dword [ebp - 0x1c4c], ebx
jne 0x401e89
cmp dword [ebp - 0x1c44], ebx
je 0x401f00
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x1772]
push 0x10
push eax
call fcn.004131ce
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x17f4]
push 0x40
push eax
call fcn.004131ce
add esp, 0xc
lea eax, [ebp - 0x1c8]
push eax
lea eax, [ebp - 0x1752]
push 0x40
push eax
call fcn.004131ce
mov ax, word [ebp - 0x1c38]
mov word [ebp - 0x16d2], ax
mov eax, dword [ebp - 0x1c34]
add esp, 0xc
mov word [ebp - 0x1774], si
mov dword [ebp - 0x1630], eax
cmp eax, ebx
jne 0x401f00
mov dword [ebp - 0x1630], 5
xor eax, eax
movzx ecx, word [eax + 0x42b8d4]
mov word [ebp + eax - 0x1752], cx
inc eax
inc eax
cmp cx, bx
jne 0x401f02
cmp word [ebp - 0x17f4], bx
je 0x4020f9
cmp word [ebp - 0x1774], bx
jbe 0x4020f9
mov dword [ebp - 0x17f8], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0041323d
xor eax, eax
mov word [ebp - 0x15f8], ax
mov dword [esp], 0x7fe
lea eax, [ebp - 0x15f6]
push ebx
push eax
call fcn.004156e0
lea eax, [ebp - 0x44]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x401f6a
sub eax, edx
sar eax, 1
je 0x401fa3
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401fa3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1670]
push 0x10
push eax
call fcn.004131ce
add esp, 0xc
cmp word [ebp - 0x1670], bx
jne 0x401fd1
lea eax, [ebp - 0x15f8]
push eax
call fcn.00402d80
pop ecx
lea eax, [ebp - 0x15f8]
push eax
lea eax, [ebp - 0x1670]
push 0x10
push eax
call fcn.004131ce
add esp, 0xc
cmp word [ebp - 0x1650], bx
jne 0x40202a
lea eax, [ebp - 0x15f8]
push eax
call fcn.00402d80
pop ecx
lea eax, [ebp - 0x15f8]
push eax
lea eax, [ebp - 0x1650]
push 0x10
push eax
call fcn.004131ce
lea eax, [ebp - 0x24]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x402005
sub eax, edx
sar eax, 1
je 0x40202a
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1650]
push 0x10
push eax
call fcn.004131ce
add esp, 0xc
mov dword [ebp - 0x162c], 0x10002a0
cmp dword [ebp - 0x1630], ebx
jne 0x402046
mov dword [ebp - 0x1630], 5
lea eax, [ebp - 0x17f8]
push eax
call fcn.00402eb0
pop ecx
test eax, eax
je 0x4020f9
lea edi, [ebp - 0x3d0]
lea esi, [ebp - 0x1650]
call fcn.004026a0
mov eax, edi
push eax
lea eax, [ebp - 0xdf8]
call fcn.00403040
pop ecx
lea eax, [ebp - 0x1c40]
push eax
push 3
push ebx
push 0x42b7e0
push closesocket
mov dword [ebp - 0x1c40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4020e2
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4020a4
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x3d0]
push eax
push 1
push ebx
push 0x42b934
push dword [ebp - 0x1c40]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4020e2
push dword [ebp - 0x1c40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push ebx
push 0x42b88c
lea eax, [ebp - 0x3d0]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413142
leave
ret