Function at 0x647eca80
Capabilities:
Read file via mapping
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64816d90
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x64854008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x7c], edi
mov esi, 0x490
mov dword [ebp - 0x80], esi
mov dword [ebp - 0xac], esi
xor eax, eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0xb4], eax
xor bl, bl
mov byte [ebp - 0x89], bl
xor bh, bh
mov byte [ebp - 0x75], bh
mov byte [ebp - 0x8a], bh
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, 0x105
xor ecx, ecx
cmp ax, dx
sete cl
mov dword [ebp - 0x98], 0
test edi, edi
jne 0x647ecb38
lea esi, [edi + 0x57]
jmp 0x647ed453
test ecx, ecx
jne 0x647ecc1e
push str.GetSystemFirmwareTable
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x647ecefd
push 0
push 0
push 0
push 0x52534d42
mov ecx, esi
call dword [0x6481d4a8]
call esi
mov dword [ebp - 0x84], eax
test eax, eax
je 0x647ecefd
xor ecx, ecx
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call dword [0x6481d3d4]
add esp, 4
mov ecx, eax
mov dword [ebp - 0xa0], ecx
test ecx, ecx
je 0x647ecefd
mov eax, dword [ebp - 0x84]
add eax, 0x400
push eax
push 0
push ecx
call fcn.6480764e
add esp, 0xc
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
push 0
push 0x52534d42
mov ecx, esi
call dword [0x6481d4a8]
call esi
test eax, eax
je 0x647ecefd
mov eax, dword [ebp - 0xa0]
mov bl, byte [eax + 1]
mov bh, byte [eax + 2]
mov byte [ebp - 0x75], bh
cmp bl, 2
jb 0x647ecefd
lea edx, [eax + 8]
mov dword [ebp - 0x90], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x80], 0
jmp 0x647ed0ff
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x70], 0x2e002c
mov dword [ebp - 0x6c], str.DevicePhysicalMemory
mov dword [ebp - 4], 0
push str.NtOpenSection
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x84], eax
test eax, eax
je 0x647ece86
mov dword [ebp - 0x60], 0x18
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0x40
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x60]
push ecx
push 4
lea ecx, [ebp - 0x68]
push ecx
mov ecx, eax
call dword [0x6481d4a8]
call dword [ebp - 0x84]
test eax, eax
js 0x647ece86
push 0x10000
push 0xf0000
push 0
push 4
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [ebp - 0x98], ecx
test ecx, ecx
je 0x647ece86
mov esi, ecx
mov dword [ebp - 0xb8], esi
mov eax, esi
sub eax, ecx
cmp eax, 0x10000
jae 0x647eccf4
cmp dword [esi], 0x5f4d535f
je 0x647eccef
add esi, 0x10
jmp 0x647eccd1
cmp eax, 0x10000
je 0x647ece81
mov al, byte [esi + 5]
cmp al, 0x1f
ja 0x647ece81
cmp al, 0x1e
je 0x647ecd11
cmp al, 0x1f
jne 0x647ece81
movzx eax, al
sub eax, ecx
add eax, esi
cmp eax, 0x10000
ja 0x647ece81
movzx eax, word [esi + 0x16]
mov dword [ebp - 0x84], eax
test ax, ax
je 0x647ece81
mov edx, 0x494d445f
cmp edx, dword [esi + 0x10]
jne 0x647ece81
mov edx, 0x5f
cmp dl, byte [esi + 0x14]
jne 0x647ece81
mov bl, byte [esi + 6]
mov byte [ebp - 0x89], bl
mov bh, byte [esi + 7]
mov byte [ebp - 0x75], bh
mov byte [ebp - 0x8a], bh
cmp bl, 2
jb 0x647ece81
mov esi, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, esi
and ecx, 0xfff
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0x84]
movzx eax, dx
add eax, 0xfff
add eax, ecx
and eax, 0xfffff000
push eax
sub esi, ecx
push esi
push 0
push 4
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x647ece81
xor ecx, ecx
mov eax, dword [ebp - 0x84]
movzx esi, ax
mov eax, esi
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call dword [0x6481d3d4]
add esp, 4
mov ecx, eax
mov dword [ebp - 0xa8], ecx
test ecx, ecx
jne 0x647ece05
mov esi, 8
mov dword [ebp - 0x80], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x647ecee7
lea eax, [esi + 0x400]
push eax
push 0
push ecx
call fcn.6480764e
add esp, 0xc
push esi
mov esi, dword [ebp - 0x98]
mov eax, dword [ebp - 0xbc]
add eax, esi
push eax
push dword [ebp - 0xa8]
call fcn.6480765a
add esp, 0xc
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xb0], eax
mov edx, dword [ebp - 0x84]
movzx eax, dx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0xb4], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x98], 0
xor esi, esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x647ecee7
mov esi, 0x490
mov dword [ebp - 4], 0xffffffff
jmp 0x647ecee7
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x647ecef5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x647ed0f9
xorps xmm0, xmm0
movq qword [ebp - 0x74], xmm0
mov dword [ebp - 0x6c], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0xa4], esi
test esi, esi
jne 0x647ecf34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x80], esi
jmp 0x647ed0f1
push 0x30
sub esp, 8
push str.aswHWID
lea ecx, [ebp - 0x44]
call fcn.647edf20
add esp, 0xc
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x84], eax
test eax, eax
jne 0x647ecf6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x80], esi
jmp 0x647ed0e5
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push ecx
push str..AswHWID
lea ecx, [ebp - 0x44]
call fcn.647edf20
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp esi, 0xffffffff
jne 0x647ecfb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x80], esi
jmp 0x647ed0c7
push 0
lea eax, [ebp - 0x48]
push eax
push 0xc
lea eax, [ebp - 0x74]
push eax
push 0
push 0
push 0x60005804
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x647ecfe1
mov esi, 9
jmp 0x647ed0bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x647ecff8
mov esi, 0x18
jmp 0x647ed0bb
cmp dword [ebp - 0x48], 0xc
je 0x647ed008
mov esi, 0x18
jmp 0x647ed0bb
xor ecx, ecx
mov eax, dword [ebp - 0x74]
add eax, 0x400
setb cl
neg ecx
or ecx, eax
push ecx
call dword [0x6481d3d4]
add esp, 4
mov ecx, eax
mov dword [ebp - 0x9c], ecx
test ecx, ecx
jne 0x647ed037
lea esi, [eax + 8]
jmp 0x647ed0bb
mov eax, dword [ebp - 0x74]
add eax, 0x400
push eax
push 0
push ecx
call fcn.6480764e
add esp, 0xc
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x9c]
push 0
push 0
push 0x60005804
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x647ed078
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x647ed0bb
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x74]
je 0x647ed087
mov esi, 0x18
jmp 0x647ed0bb
mov edx, dword [ebp - 0x9c]
lea eax, [edx + 0xc]
mov bl, byte [eax + 6]
mov bh, byte [eax + 7]
mov byte [ebp - 0x75], bh
cmp bl, 2
jae 0x647ed0a5
mov esi, 0x718
jmp 0x647ed0bb
mov ecx, dword [edx + 4]
add ecx, eax
mov dword [ebp - 0x90], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x88], eax
xor esi, esi
mov dword [ebp - 0x80], esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x64]
push eax
push 1
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
jne 0x647ed43c
mov edx, dword [ebp - 0x88]
push 1
lea eax, [ebp - 0x7c]
push eax
push 1
mov ecx, dword [ebp - 0x90]
call fcn.647eca10
add esp, 0xc
test eax, eax
jne 0x647ed141
lea eax, [edi + 4]
push eax
mov esi, dword [ebp - 0x7c]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.647ec980
add esp, 4
cmp bl, 2
ja 0x647ed139
jne 0x647ed141
cmp bh, 1
jb 0x647ed141
movups xmm0, xmmword [esi + 8]
movups xmmword [edi + 8], xmm0
push 1
lea eax, [ebp - 0x7c]
push eax
push 2
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
call fcn.647eca10
add esp, 0xc
test eax, eax
jne 0x647ed186
lea eax, [edi + 0x18]
push eax
mov esi, dword [ebp - 0x7c]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.647ec980
add esp, 4
lea eax, [edi + 0x1c]
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.647ec980
add esp, 4
push 1
lea eax, [ebp - 0x7c]
push eax
push 3
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
call fcn.647eca10
add esp, 0xc
test eax, eax
jne 0x647ed1cb
lea eax, [edi + 0x20]
push eax
mov esi, dword [ebp - 0x7c]
mov dl, byte [esi + 7]
mov ecx, esi
call fcn.647ec980
add esp, 4
lea eax, [edi + 0x24]
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.647ec980
add esp, 4
push 1
lea eax, [ebp - 0x7c]
push eax
push 4
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x90]
call fcn.647eca10
add esp, 0xc
test eax, eax
jne 0x647ed228
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi + 8]
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0x2c], eax
cmp bl, 2
ja 0x647ed206
jne 0x647ed228
cmp bh, 3
jb 0x647ed228
lea eax, [edi + 0x30]
push eax
mov dl, byte [esi + 0x20]
mov ecx, esi
call fcn.647ec980
add esp, 4
lea eax, [edi + 0x34]
push eax
mov dl, byte [esi + 0x21]
mov ecx, esi
call fcn.647ec980
add esp, 4
mov bh, 1
mov byte [ebp - 0x84], bh
mov dword [ebp - 0x68], 0
call fcn.6479e500
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x647ed4ab
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x6481d4a8]
mov ecx, dword [ebp - 0x7c]
call esi
add eax, 0x10
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 3
push dword [ebp - 0x84]
lea eax, [ebp - 0xa4]
push eax
push 0x11
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x90]
mov ecx, esi
call fcn.647eca10
add esp, 0xc
test eax, eax
jne 0x647ed357
cmp bl, 2
ja 0x647ed2a0
jne 0x647ed312
cmp byte [ebp - 0x75], 3
jb 0x647ed312
lea eax, [ebp - 0x68]
push eax
mov esi, dword [ebp - 0xa4]
mov dl, byte [esi + 0x1a]
mov ecx, esi
call fcn.647ec980
add esp, 4
test eax, eax
jne 0x647ed2ca
lea ecx, [edi + 0x38]
mov eax, dword [ebp - 0x68]
push dword [eax - 0xc]
push eax
call fcn.647eddb0
lea eax, [ebp - 0x68]
push eax
mov dl, byte [esi + 0x18]
mov ecx, esi
call fcn.647ec980
add esp, 4
test eax, eax
jne 0x647ed2ee
lea ecx, [edi + 0x3c]
mov eax, dword [ebp - 0x68]
push dword [eax - 0xc]
push eax
call fcn.647eddb0
lea eax, [ebp - 0x68]
push eax
mov dl, byte [esi + 0x19]
mov ecx, esi
call fcn.647ec980
add esp, 4
test eax, eax
jne 0x647ed312
lea ecx, [edi + 0x40]
mov eax, dword [ebp - 0x68]
push dword [eax - 0xc]
push eax
call fcn.647eddb0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x647ed340
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6481d4a8]
mov ecx, edi
call esi
add bh, 1
mov byte [ebp - 0x84], bh
mov edi, dword [ebp - 0x94]
jne 0x647ed230
jmp 0x647ed385
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x647ed38b
mov edi, dword [ecx]
mov eax, dword [edi]
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x6481d4a8]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x90]
cmp bl, 2
ja 0x647ed39d
jne 0x647ed3d3
mov al, byte [ebp - 0x75]
cmp al, 1
jb 0x647ed4a0
push 1
lea eax, [ebp - 0x7c]
push eax
push 0x16
mov edx, dword [ebp - 0x88]
mov ecx, esi
call fcn.647eca10
add esp, 0xc
mov edi, dword [ebp - 0x94]
test eax, eax
jne 0x647ed3d9
lea eax, [edi + 0x44]
push eax
mov ecx, dword [ebp - 0x7c]
mov dl, byte [ecx + 7]
call fcn.647ec980
add esp, 4
jmp 0x647ed3d9
mov edi, dword [ebp - 0x94]
cmp bl, 2
ja 0x647ed3e7
jne 0x647ed439
mov al, byte [ebp - 0x75]
cmp al, 3
jb 0x647ed439
push 1
lea eax, [ebp - 0x7c]
push eax
push 0x27
mov edx, dword [ebp - 0x88]
mov ecx, esi
call fcn.647eca10
add esp, 0xc
test eax, eax
jne 0x647ed439
lea eax, [edi + 0x48]
push eax
mov esi, dword [ebp - 0x7c]
mov dl, byte [esi + 0xa]
mov ecx, esi
call fcn.647ec980
add esp, 4
lea eax, [edi + 0x4c]
push eax
mov dl, byte [esi + 8]
mov ecx, esi
call fcn.647ec980
add esp, 4
lea eax, [edi + 0x50]
push eax
mov dl, byte [esi + 9]
mov ecx, esi
call fcn.647ec980
add esp, 4
mov esi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x98]
test eax, eax
je 0x647ed44d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [ebp - 0x94]
push dword [ebp - 0x9c]
call dword [0x6481d3d8]
add esp, 4
push dword [ebp - 0xa0]
call dword [0x6481d3d8]
add esp, 4
push dword [ebp - 0xa8]
call dword [0x6481d3d8]
add esp, 4
mov dword [edi], esi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.648031e0
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x94]
jmp 0x647ed3e3
push 0x80004005
call fcn.6479e1c0
int3