Function at 0x4012fb
Capabilities:
Accept command line arguments
Check if file exists
Create thread
Get file attributes
Inject dll
Inject thread
Read .ini file
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor esi, esi
mov dword [ebp - 8], eax
cmp eax, esi
je 0x401364
movzx ecx, word [eax]
cmp cx, 0x22
jne 0x401341
inc eax
inc eax
movzx ecx, word [eax]
mov dword [ebp - 8], eax
cmp cx, si
je 0x401364
inc eax
inc eax
mov dword [ebp - 8], eax
cmp cx, 0x22
je 0x40135c
movzx ecx, word [eax]
cmp cx, si
jne 0x40132c
jmp 0x40135c
cmp cx, 0x20
jbe 0x40135c
inc eax
inc eax
cmp word [eax], 0x20
ja 0x401347
jmp 0x401359
cmp cx, 0x20
ja 0x401364
inc eax
inc eax
mov dword [ebp - 8], eax
movzx ecx, word [eax]
cmp cx, si
jne 0x401351
push 0x400
lea eax, [ebp - 0x41c]
push eax
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
lea eax, [ebp - 0x41c]
cmp word [ebp - 0x41c], si
je 0x4013b5
movzx ecx, word [ebp - 0x41c]
cmp cx, 0x5c
je 0x4013a1
cmp cx, 0x2f
jne 0x4013a4
lea edx, [eax + 2]
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, si
jne 0x401395
mov dword [ebp - 0xc], edx
cmp edx, esi
jne 0x4013b8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x81c]
call fcn.004011f4
lea ecx, [ebp + eax*2 - 0x81c]
mov eax, 0x401088
call fcn.004011f4
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x81c]
push eax
push 0x200
mov edi, 0x402400
push edi
push 0x4010a4
push 0x4010a8
mov esi, 0x4010b8
push esi
call ebx
lea eax, [ebp - 0x81c]
push eax
push 0
push 0x4010cc
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x81c]
push eax
push 0x200
push section..data
push 0x4010a4
push 0x4010e4
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x81c]
push eax
push 0
push 0x4010e4
push esi
call ebx
lea eax, [ebp - 0x41c]
lea ecx, [ebp - 0x81c]
call fcn.004011f4
cmp word [0x402400], 0
jne 0x40148c
mov ecx, dword [ebp - 0xc]
mov eax, 0x401064
call fcn.004011f4
lea eax, [ebp - 0x41c]
mov dword [ebp - 4], eax
jmp 0x40148f
mov dword [ebp - 4], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4014a1
test al, 0x10
je 0x4014ce
call fcn.00401227
test eax, eax
je 0x4016e7
mov ecx, dword [ebp - 0xc]
mov eax, 0x401088
mov dword [ebp - 4], edi
call fcn.004011f4
lea eax, [ebp - 0x41c]
push eax
push edi
push 0x4010a8
push esi
call ebx
mov ecx, dword [ebp - 4]
call fcn.00401217
mov ecx, dword [ebp - 8]
xor ebx, ebx
mov edx, eax
cmp word [ecx], bx
je 0x40152a
call fcn.00401217
lea eax, [eax + edx + 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push 0x22
pop eax
mov word [edi], ax
mov eax, dword [ebp - 4]
lea esi, [edi + 2]
mov ecx, esi
call fcn.004011f4
lea eax, [esi + eax*2]
push 0x22
pop ecx
mov word [eax], cx
inc eax
inc eax
push 0x20
pop ecx
mov word [eax], cx
lea ecx, [eax + 2]
mov eax, dword [ebp - 8]
call fcn.004011f4
jmp 0x4015ce
cmp dword [ebp - 0x18], ebx
je 0x40159e
cmp word [section..data], bx
je 0x40159e
xor eax, eax
inc eax
cmp word [eax*2 + section..data], bx
jne 0x40153a
lea eax, [eax + edx + 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push 0x22
pop ebx
mov eax, ebx
mov word [edi], ax
mov eax, dword [ebp - 4]
lea esi, [edi + 2]
mov ecx, esi
call fcn.004011f4
lea esi, [esi + eax*2]
mov eax, ebx
mov word [esi], ax
inc esi
inc esi
push 0x20
pop eax
mov word [esi], ax
inc esi
inc esi
mov eax, ebx
mov word [esi], ax
inc esi
inc esi
mov eax, section..data
mov ecx, esi
call fcn.004011f4
lea esi, [esi + eax*2]
xor eax, eax
mov word [esi], bx
mov word [esi + 2], ax
xor ebx, ebx
jmp 0x4015ce
add edx, 8
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push 0x22
pop eax
mov word [edi], ax
mov eax, dword [ebp - 4]
lea esi, [edi + 2]
mov ecx, esi
call fcn.004011f4
push 0x22
lea eax, [esi + eax*2]
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x81c]
push eax
push edi
call fcn.00401172
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, ebx
jne 0x401606
push ebx
push 0x4010fc
push 0x401108
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4016b9
mov ecx, dword [ebp - 0xc]
mov eax, 0x401138
call fcn.004011f4
xor eax, eax
cmp word [ebp - 0x41c], bx
je 0x401629
inc eax
cmp word [ebp + eax*2 - 0x41c], bx
jne 0x40161e
push 4
push 0x1000
lea edi, [eax + eax + 2]
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x4016b9
push ebx
push edi
lea ecx, [ebp - 0x41c]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4016b9
push 0x401150
push 0x401160
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x4016b9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x1c], ebx
push ebx
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x4d7000
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40169e
cmp dword [ebp - 0x1c], ebx
jne 0x4016a7
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401682
push ebx
push ebx
push dword [ebp - 0x18]
push edi
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x4016c6
push esi
call edi
cmp dword [ebp - 0x14], ebx
je 0x4016d0
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x10], ebx
je 0x4016e9
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call edi
jmp 0x4016e9
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]