joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d400
Capabilities:
Get file version info

Disassembly:
sub esp, 0x22c
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push ebp
mov ebp, dword [esp + 0x23c]
push esi
push edi
mov edi, dword [esp + 0x240]
xor eax, eax
mov ebx, ecx
push 0x206
push eax
lea ecx, [esp + 0x3a]
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
xor esi, esi
mov word [esp + 0x3c], ax
call fcn.00453450
add esp, 0xc
push esi
push edi
mov ecx, ebx
mov byte [esp + 0x1b], 0
call fcn.004496a0
lea edx, [esp + 0x30]
test al, al
je 0x44d58d
mov eax, edi
sub edx, edi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x44d470
mov dword [esp + 0x20], esi
test ebp, ebp
je 0x44d48a
mov dword [ebp], esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test ebp, ebp
jbe 0x44d53d
push ebp
call fcn.004534f0
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
je 0x44d53d
push edi
push ebp
push 0
lea edx, [esp + 0x3c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x44d534
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x46ab94
push edi
mov dword [esp + 0x24], esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x14]
mov dx, word [eax + 0x10]
mov si, word [eax + 0x16]
movzx ebx, word [eax + 0x14]
mov cx, word [eax + 0x12]
movzx edi, dx
mov edx, dword [esp + 0x28]
push edx
movzx ebp, si
push ebx
push ebp
movzx esi, cx
push edi
push esi
push str.GetProductVersion____d__d__d__d___s__n
call fcn.004454c0
mov eax, dword [esp + 0x3c]
shl esi, 0x10
or esi, edi
mov edi, dword [esp + 0x30]
add esp, 0x18
test eax, eax
je 0x44d530
shl ebp, 0x10
or ebp, ebx
mov dword [eax], ebp
mov ebx, dword [esp + 0x1c]
push edi
call fcn.004534ca
add esp, 4
cmp byte [esp + 0x13], 0
je 0x44d562
push 0
lea eax, [esp + 0x34]
push eax
mov ecx, ebx
call fcn.004496a0
test al, al
je 0x44d562
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.0044a070
push esi
push str.GetProductVersion_returns_0x_08x_n
call fcn.004453d0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453432
add esp, 0x22c
ret 8
push edx
push 0
push 0x477bc0
mov ecx, ebx
call fcn.0044a1a0
test eax, eax
je 0x44d47f
push 0
push 0
lea eax, [esp + 0x38]
push eax
push edi
mov ecx, ebx
mov byte [esp + 0x23], 1
call fcn.0044bf30
test eax, eax
jne 0x44d47f
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebx
call fcn.004496a0
test al, al
je 0x44d5df
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
call fcn.0044a070
xor eax, eax
jmp 0x44d572
Function at 0x44ea50
Capabilities:
Create directory
Get common file path
Move file

Disassembly:
sub esp, 0xa2c
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0xa28], eax
push ebx
mov ebx, dword [esp + 0xa38]
push ebp
mov ebp, dword [esp + 0xa38]
push esi
push edi
push str.CopyFileWithErrorHandle_WCHAR_version_n
mov esi, ecx
call fcn.004454c0
mov edi, dword [esp + 0xa50]
push edi
push str.bCopyCompressSrcToTemp___d__n
call fcn.004454c0
mov eax, dword [esp + 0xa54]
add esp, 0xc
push edi
push eax
push ebx
push ebp
mov ecx, esi
call fcn.0044bf30
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x44ecae
cmp eax, 5
je 0x44eac7
cmp eax, 0x20
jne 0x44ecae
lea ecx, [esp + 0x420]
push ecx
push 0
push 0x47fac8
mov ecx, esi
call fcn.0044a1a0
test eax, eax
je 0x44ecae
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.00453450
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0044b630
lea edx, [esp + 0x10]
push edx
push str.Common_App_Data_Folder___s__n
call fcn.004454c0
add esp, 8
cmp word [esp + 0x10], 0
je 0x44ec24
lea eax, [esp + 0x10]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x44eb30
mov ecx, dword [str._temp]
mov edx, dword [0x47fa84]
mov dword [eax], ecx
mov ecx, dword [0x47fa88]
mov dword [eax + 4], edx
push 0
lea edx, [esp + 0x14]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.00453450
add esp, 0xc
lea edx, [esp + 0x218]
push edx
push 0
push 0x47fac8
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x44ec0d
cmp word [esp + 0x218], 0
je 0x44ec0d
push 0
lea ecx, [esp + 0x424]
push ecx
mov ecx, esi
call fcn.004496a0
test al, al
je 0x44ebd0
lea edx, [esp + 0x420]
push edx
mov ecx, esi
call fcn.0044a070
xor eax, eax
jmp 0x44ebe0
movzx ecx, word [esp + eax + 0x218]
mov word [esp + eax + 0x420], cx
add eax, 2
test cx, cx
jne 0x44ebe0
lea eax, [esp + 0x420]
push eax
push str.__Change_Temp_folder_file_to___s__n
call fcn.004454c0
add esp, 8
lea ecx, [esp + 0x420]
push ecx
push str.__Temp_FileName___s__n
call fcn.004454c0
add esp, 8
jmp 0x44ec31
push str.Cannon_Get_App_Data_Folder_n
call fcn.004454c0
add esp, 4
mov edx, dword [esp + 0xa48]
push 0
push edx
lea eax, [esp + 0x428]
push eax
push ebp
mov ecx, esi
call fcn.0044bf30
test eax, eax
je 0x44ecae
cmp byte [esi + 5], 0
je 0x44ec9b
push 0
lea ecx, [esp + 0x424]
push ecx
lea edx, [esp + 0x838]
push edx
mov ecx, esi
call fcn.00449450
push 0
push ebx
lea eax, [esp + 0x220]
push eax
mov ecx, esi
call fcn.00449450
push 5
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x838]
push edx
mov ecx, esi
call fcn.00449cf0
jmp 0x44ecb0
push 5
push ebx
lea eax, [esp + 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x44ecb0
mov eax, edi
mov ecx, dword [esp + 0xa38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00453432
add esp, 0xa2c
ret 0x10
Function at 0x44ef30
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x418
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x424]
push ebx
mov ebx, dword [esp + 0x424]
push esi
push edi
mov edi, dword [esp + 0x428]
push str.KXSVC::InstallService_n
mov esi, ecx
mov dword [esp + 0x18], eax
call fcn.004454c0
add esp, 4
cmp byte [esi + 8], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], 0
jne 0x44f0d8
push ebp
push 0xf003f
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x44f0bf
mov eax, dword [esp + 0x438]
test eax, eax
je 0x44efc4
lea edx, [esp + 0x21c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x44efb3
jmp 0x44efe0
push 0x104
lea ecx, [esp + 0x220]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
jmp 0x44eff0
movzx ecx, word [eax + 0x46e600]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x44eff0
lea eax, [esp + 0x21c]
mov edx, eax
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44f010
lea edi, [esp + 0x1c]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x44f024
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
add edi, 0xfffffffe
jmp 0x44f050
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x44f050
mov ecx, dword [esp + 0x18]
push 0
mov edx, dword [0x46e600]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push ecx
push ebx
push ebp
mov dword [edi], edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x44f0a2
push eax
mov byte [esp + 0x17], 1
call esi
push ebp
call esi
jmp 0x44f0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::InstallService___CreateService_error___d_n
mov dword [esp + 0x1c], eax
call fcn.004454c0
add esp, 8
push ebp
call esi
jmp 0x44f0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::InstallService___OpenSCManager_error___d_n
mov dword [esp + 0x1c], eax
call fcn.004454c0
add esp, 8
pop ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x420]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00453432
add esp, 0x418
ret 0x10
Function at 0x44f110
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push str.KXSVC::UnistallService_n
mov esi, ecx
call fcn.004454c0
xor bl, bl
add esp, 4
cmp byte [esi + 8], bl
jne 0x44f21d
mov eax, dword [esp + 0x28]
push edi
push 0xf003f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x44f1fe
mov ecx, dword [esp + 0x30]
push ebp
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x44f1db
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x44f189
push str.KXSVC::UnnstallService___Stop_service_success_n
call fcn.004454c0
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x44f1b5
push str.KXSVC::UnnstallService___DeleteService_success_n
call fcn.004454c0
add esp, 4
push esi
mov bl, 1
call ebp
push edi
call ebp
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::UnnstallService___DeleteService_error___d_n
call fcn.004454c0
add esp, 8
push esi
call ebp
push edi
call ebp
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::UnnstallService___OpenService_error___d_n
call fcn.004454c0
add esp, 8
push edi
call ebp
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::UnnstallService___OpenSCManager_error___d_n
call fcn.004454c0
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret 8
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret 8

Function at 0x44f230
Capabilities:
Start service

Disassembly:
push ebx
push esi
push str.KXSVC::StartService_n
mov esi, ecx
call fcn.004454c0
xor bl, bl
add esp, 4
cmp byte [esi + 8], bl
jne 0x44f2f2
mov eax, dword [esp + 0xc]
push edi
push 0xf003f
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x44f2d6
mov ecx, dword [esp + 0x14]
push ebp
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x44f2b6
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x44f2a7
push str.KXSVC::StartService___Control_service_success_n
call fcn.004454c0
add esp, 4
mov bl, 1
push esi
call ebp
push edi
call ebp
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::StartService___OpenService_error___d_n
call fcn.004454c0
add esp, 8
push edi
call ebp
pop ebp
pop edi
pop esi
mov al, bl
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KXSVC::StartService___OpenSCManager_error___d_n
call fcn.004454c0
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
ret 0x10
pop esi
mov al, bl
pop ebx
ret 0x10
Function at 0x44f530
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
push ebx
push esi
push str.KXSVC::GetServiceStatus_n
mov esi, ecx
call fcn.004454c0
xor ebx, ebx
add esp, 4
mov dword [esp + 8], ebx
cmp byte [esi + 8], bl
jne 0x44f612
mov eax, dword [esp + 0x2c]
push edi
push 0xf003f
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x44f5fb
mov ecx, dword [esp + 0x34]
push ebp
push 0xf01ff
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
je 0x44f5cd
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44f5b2
push str.KXSVC::GetServiceStatus___QueryServiceStatus_success_n
call fcn.004454c0
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x10], eax
push esi
call ebp
push edi
call ebp
pop ebp
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop esi
pop ebx
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.KXSVC::GetServiceStatus___OpenService_error___d_n
call fcn.004454c0
add esp, 8
push edi
call ebp
pop ebp
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop esi
pop ebx
add esp, 0x20
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
push str.KXSVC::GetServiceStatus___OpenSCManager_error___d_n
call fcn.004454c0
add esp, 8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop esi
pop ebx
add esp, 0x20
ret 8
Function at 0x44f9c0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x469879
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x23c]
mov esi, ecx
lea ecx, [esi + 0x620]
mov dword [esp + 0x1c], esi
call fcn.00407e20
push 0
push 0
mov dword [esp + 0x23c], 0
mov byte [esi], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 3
push 4
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [esp + 0x18], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x2a]
lea edi, [esi + 0x638]
lea ebp, [esi + 0x63c]
push ecx
mov dword [edi], 0
mov dword [ebp], 0
mov word [esp + 0x2c], ax
call fcn.00453450
push ebx
lea edx, [esp + 0x30]
push str._s_rootcimv2
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00448b40
cmp dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x234], 1
jl 0x44fb27
push edi
push 0x483288
push 5
push 0
push 0x483358
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x44fb27
test ebx, ebx
je 0x44facd
mov ecx, dword [ebx]
jmp 0x44facf
xor ecx, ecx
mov eax, dword [edi]
mov edx, dword [eax]
push ebp
push 0
push 0
push 0x80
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jge 0x44fafa
mov edi, dword [edi]
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
jmp 0x44fb27
mov eax, dword [ebp]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x44fb24
mov ebp, dword [ebp]
mov ecx, dword [ebp]
mov edx, dword [ecx + 8]
push ebp
call edx
jmp 0x44fb27
mov byte [esi], 1
push 0x634
lea eax, [esi + 4]
push 0
push eax
call fcn.00453450
add esp, 0xc
mov byte [esp + 0x234], 0
test ebx, ebx
je 0x44fb7a
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x44fb7a
mov eax, dword [ebx]
test eax, eax
je 0x44fb61
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
test eax, eax
je 0x44fb71
push eax
call fcn.004534ca
add esp, 4
push ebx
call fcn.004534ca
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00453432
add esp, 0x224
ret 4
Function at 0x44fbb0
Capabilities:
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x4698c0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48807c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x50]
mov edi, ecx
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x1c], eax
cmp byte [edi], bl
je 0x44fd37
push str.SELECT__FROM_Win32_ComputerSystem
lea ecx, [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00448b40
mov esi, eax
push 0x4806d8
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], ebx
call fcn.00448b40
mov ecx, dword [esi]
mov byte [esp + 0x48], 1
cmp ecx, ebx
je 0x44fc31
mov ecx, dword [ecx]
jmp 0x44fc33
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x44fc3d
mov edx, dword [eax]
jmp 0x44fc3f
xor edx, edx
mov eax, dword [edi + 0x63c]
mov esi, dword [eax]
lea edi, [esp + 0x14]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
mov eax, dword [esi + 0x50]
call eax
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.00448c60
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0xffffffff
call fcn.00448c60
cmp esi, ebx
jl 0x44fd33
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
mov dword [esp + 0x2c], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [esp + 0x20], ebx
je 0x44fd1f
cmp esi, ebx
jl 0x44fd1f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push ebx
push str.SystemType
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp ebp, ebx
je 0x44fcff
mov eax, dword [esp + 0x34]
mov edx, ebp
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x44fcf0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
mov esi, 1
call eax
mov eax, esi
jmp 0x44fd37
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov esi, dword [esp + 0x1c]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, esi
jmp 0x44fd37
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00453432
add esp, 0x38
ret 4
Function at 0x450da0
Capabilities:
Start service

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
test edi, edi
je 0x450ec5
cmp word [edi], 0
je 0x450ec5
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov esi, eax
test esi, esi
je 0x450ebd
push esi
push edi
push str.RegConnectRegistry_failed_____s___ld__n
call fcn.004454c0
xor eax, eax
add esp, 0xc
mov dword [esp + 8], eax
cmp esi, 0x35
jne 0x450ec1
push ebx
push str.__Try_to_start_Remote_Registry_service_n
call fcn.004454c0
add esp, 4
push 0xf003f
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x450e79
push ebp
push 0xf01ff
push str.RemoteRegistry
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x450e5f
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x450e56
push str.StartService___Control_service_success_n
call fcn.004453d0
add esp, 4
push esi
call ebp
push ebx
call ebp
pop ebp
jmp 0x450e8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___OpenService_error___d_n
call fcn.004453d0
add esp, 8
push ebx
call ebp
pop ebp
jmp 0x450e8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.StartService___OpenSCManager_error___d_n
call fcn.004453d0
add esp, 8
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
pop ebx
test eax, eax
je 0x450ebd
push eax
push edi
push str.RegConnectRegistry_failed_____s___ld__n
call fcn.004454c0
add esp, 0xc
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop ecx
ret
Function at 0x450ed0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
push eax
push ecx
xor ebx, ebx
call fcn.00450da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x450ef5
pop esi
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call fcn.00450d50
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x450f16
test eax, 0x200
jne 0x450f16
or eax, 0x100
push edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push eax
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x450f95
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x14]
push eax
push 4
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x450f7c
push esi
push eax
push str.SetRegValueLong___Set_value_error____ld_for__s_n
call fcn.004454c0
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0xc]
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
push edi
push eax
push str.SetRegValueLong___Open_registry_error____ld_for__s_n
call fcn.004454c0
add esp, 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret

Function at 0x450fb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x10
push esi
push eax
push ecx
call fcn.00450da0
mov esi, eax
add esp, 8
test esi, esi
jne 0x450fd5
mov eax, dword [esp + 0x28]
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 0x28]
mov dword [esp + 8], edx
call fcn.00450d50
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x450ff6
test eax, 0x200
jne 0x450ff6
or eax, 0x100
push edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451060
mov esi, dword [esp + 0x28]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45104b
push esi
push eax
push str.GetRegValueLong___Get_value_error____ld_for__s_n
call fcn.004454c0
add esp, 0xc
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x10
ret
push edi
push eax
push str.GetRegValueLong___Open_registry_error____ld_for__s_n
call fcn.004454c0
mov eax, dword [esp + 0x18]
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret