Function at 0x422da0
Capabilities:
Create service
Extract resource via kernel32 functions
Get common file path
Manipulate safe mode programs
Query service status
Start service
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca003
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11], 0
push 0x643878
lea ecx, [ebp - 0x10]
call fcn.00401610
mov dword [ebp - 4], 0
call fcn.00422d30
movzx eax, al
test eax, eax
jne 0x4231dd
push 0x104
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.drivershitmanpro35.sys
push 0x104
lea edx, [ebp - 0x22c]
push edx
call fcn.0054eb7c
add esp, 0xc
call fcn.0042e1f0
movzx eax, al
neg eax
sbb eax, eax
neg eax
add eax, 0x12d
mov dword [ebp - 0x18], eax
push 0xa
movzx ecx, word [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x422e69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_trying_to_driver__resource__r_n
call fcn.0054d5e0
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x422fd8
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x422eaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadResource___failed___d__r_n
call fcn.0054d5e0
add esp, 8
jmp 0x422fd8
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x238], 0xffffffff
mov dword [ebp - 0x244], 0
jmp 0x422ee7
mov edx, dword [ebp - 0x244]
add edx, 1
mov dword [ebp - 0x244], edx
cmp dword [ebp - 0x244], 2
jge 0x422fb5
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x422f53
cmp dword [ebp - 0x244], 0
jne 0x422f32
call fcn.004232b0
jmp 0x422f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x22c]
push ecx
push str.CreateFile___on___s__failed___d__r_n
call fcn.0054eca8
add esp, 0xc
mov byte [ebp - 0x11], 1
jmp 0x422fb0
push 0
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x422f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x22c]
push eax
push str.WriteFile___on___s__failed___d__r_n
call fcn.0054eca8
add esp, 0xc
mov byte [ebp - 0x11], 1
jmp 0x422fb0
mov ecx, dword [ebp - 0x240]
cmp ecx, dword [ebp - 0x230]
jne 0x422fb0
mov byte [ebp - 0x11], 0
jmp 0x422fb5
jmp 0x422ed8
cmp dword [ebp - 0x238], 0xffffffff
je 0x422fcb
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x4231dd
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x42301c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManager___failed___d__r_n
call fcn.0054eca8
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x4231dd
mov byte [ebp - 0x259], 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x22c]
push edx
push 0
push 3
push 1
push 0x10030
push 0x5fdc68
push str.hitmanpro35
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
je 0x423071
mov byte [ebp - 0x259], 1
jmp 0x423107
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateService___failed___d__r_n
call fcn.0054eca8
add esp, 8
push 0x10034
push str.hitmanpro35
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jne 0x4230c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService___failed___d__r_n
call fcn.0054eca8
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x423107
lea edx, [ebp - 0x278]
push edx
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4230f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryServiceStatus___failed___d__r_n
call fcn.0054eca8
add esp, 8
mov byte [ebp - 0x11], 1
jmp 0x423107
cmp dword [ebp - 0x274], 4
je 0x423107
mov byte [ebp - 0x259], 1
push str.SYSTEMCurrentControlSetControlSafeBootNetworkhitmanpro35
lea ecx, [ebp - 0x254]
call fcn.004b3550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x254]
push ecx
call fcn.00414b30
mov ecx, eax
call fcn.00413d40
push str..sys
lea ecx, [ebp - 0x254]
call fcn.004b3b40
lea edx, [ebp - 0x254]
push edx
call fcn.00414b30
mov ecx, eax
call fcn.00413d40
movzx eax, byte [ebp - 0x259]
test eax, eax
jne 0x42315e
jmp 0x4231ab
push 0
push 0
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4231ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x27c], eax
cmp dword [ebp - 0x27c], 0x420
jne 0x42318d
jmp 0x4231ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___failed___d__r_n
call fcn.0054eca8
add esp, 8
mov dword [ebp - 0x27c], 1
cmp dword [ebp - 0x258], 0
je 0x4231c1
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x254]
call fcn.004b3860
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x4231f4
push str.OpenDriver___failed_r_n
call fcn.0054eca8
add esp, 4
jmp 0x423269
mov dword [ebp - 0x284], str..Hitman_Pro_35
push 0
push 0
push 3
push 0
push 0
push 0x10000000
mov edx, dword [ebp - 0x284]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x280], eax
cmp dword [ebp - 0x280], 0xffffffff
jne 0x423246
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x284]
push eax
push str.CreateFile___on___s__failed_with__d_r_n
call fcn.0054eca8
add esp, 0xc
jmp 0x423269
mov ecx, dword [ebp - 0x280]
mov dword [ebp - 0x288], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x288]
jmp 0x423288
mov dword [ebp - 0x28c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401640
mov eax, dword [ebp - 0x28c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret