joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457448
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45745f
add esp, 0xfffffff0
call fcn.00403c30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004223d8
mov eax, dword [0x46266c]
cmp word [eax + 2], 0
jne 0x457487
mov eax, dword [0x46266c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458a94
mov eax, dword [0x462714]
cmp word [eax + 2], 0
jne 0x4574a1
mov eax, dword [0x462714]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458c8c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418398]
call fcn.0040389c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418398]
call fcn.0040389c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424868]
call fcn.0042bbb0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x457628
mov eax, dword [0x462598]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042bf80
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45920c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x462598]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ceb4
test eax, eax
je 0x457596
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409378
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cedc
test eax, eax
je 0x4575aa
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048a0
mov eax, dword [0x462470]
cmp byte [eax], 0
jne 0x4575de
mov eax, ebx
call fcn.00457750
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004593e8
mov eax, ebx
call fcn.00459d98
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45761e
call fcn.00403c88
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4579c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x463c2c]
cmp dword [eax + 0x30], 0
je 0x457a6e
cmp dword [ebx + 0x94], 0
jne 0x457a68
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457954
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457a68
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457a2e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457a68
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041aa38
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457a3d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45854c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458581
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404728
jmp 0x45858e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040468c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4595c4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459605
mov eax, esi
call fcn.0043fa30
test al, al
je 0x459605
mov eax, dword [ebx + 0x84]
call fcn.0043f72c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459605
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043f72c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a5a4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0045a1b0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404ae8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45a602
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x462688]
mov dl, 1
mov eax, dword [0x45a0a8]
call fcn.0040c240
call fcn.00404098
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a60c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404ae8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45a664
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46288c]
mov dl, 1
mov eax, dword [0x45a0a8]
call fcn.0040c240
call fcn.00404098
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045a1e0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45ba3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x45bb12
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45baf5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
call sub.shell32.dll_SHGetMalloc
test eax, eax
jne 0x45bad4
lea eax, [ebp - 8]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, ebx
mov edx, 0x3e8
call fcn.00404c74
mov eax, dword [ebx]
call fcn.00404ae8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
jne 0x45babe
mov ecx, 0x45bb28
mov dl, 1
mov eax, dword [0x407b4c]
call fcn.0040c148
call fcn.00404098
mov eax, dword [ebx]
call fcn.00404ae8
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
mov eax, ebx
call fcn.00404c74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bafc
cmp dword [ebp - 8], 0
je 0x45baf4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
Function at 0x45c8e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ad8
xor eax, eax
push ebp
push 0x45ca85
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x45ca9c
call fcn.0040468c
mov eax, ebx
mov edx, 0x45ca9c
call fcn.0040468c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45ca5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ae8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jle 0x45ca3f
lea eax, [esi + 2]
call fcn.00402718
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404ae8
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x45caa0
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00408b20
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.00408b20
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
pop ecx
call fcn.0040493c
mov eax, ebx
mov edx, 0x104
call fcn.00404c74
push 0x104
mov eax, dword [ebx]
call fcn.00404ae8
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_VerLanguageNameA
mov eax, dword [ebx]
call fcn.00404ae8
mov edx, eax
mov eax, ebx
call fcn.00404828
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45cac4
push dword [ebp - 0x18]
push 0x45cae0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004049b0
mov eax, dword [ebp - 0x24]
call fcn.00404ae8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00404828
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ca62
cmp dword [ebp - 0xc], 0
je 0x45ca5a
mov eax, dword [ebp - 0xc]
call fcn.00402738
ret
Function at 0x45d0ec
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe88
push ebx
xor ebx, ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 8]
call fcn.00404ad8
mov eax, dword [ebp - 0xc]
call fcn.00404ad8
lea eax, [ebp - 0x164]
mov edx, dword [0x407b2c]
call fcn.00405040
xor eax, eax
push ebp
push 0x45d33f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00408de8
lea eax, [ebp - 0x168]
mov ecx, 0x45d354
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
mov edx, 0x3f
call fcn.00408f6c
test eax, eax
jne 0x45d2f8
mov eax, dword [ebp - 0x158]
cmp byte [eax], 0x2e
je 0x45d2e5
mov eax, dword [ebp - 0x15c]
and eax, 0x10
cmp eax, 0x10
jne 0x45d215
mov eax, dword [ebp + 8]
cmp byte [eax + 0x10], 0
je 0x45d2e5
mov eax, dword [ebp + 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x158]
push 0x45d360
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004049b0
mov eax, dword [ebp - 0x16c]
push eax
push dword [ebp - 4]
push dword [ebp - 0x158]
push 0x45d360
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.004049b0
mov eax, dword [ebp - 0x170]
mov ecx, dword [ebp - 0xc]
pop edx
call fcn.0045d0ec
pop ecx
jmp 0x45d2e5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x158]
call fcn.0045c814
test al, al
je 0x45d2e5
mov eax, dword [ebp + 8]
add eax, 0xffffffe8
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp + 8]
inc dword [eax - 0xc]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.0040493c
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.0045cdfc
mov edx, dword [ebp + 8]
mov byte [edx - 0x1d], al
mov eax, dword [ebp + 8]
cmp byte [eax - 8], 0
jne 0x45d293
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 2
je 0x45d293
xor eax, eax
jmp 0x45d295
mov al, 1
mov edx, dword [ebp + 8]
mov byte [edx - 8], al
mov eax, dword [ebp + 8]
cmp byte [eax - 0x1d], 0
je 0x45d2e5
push 2
push 0
mov eax, dword [ebp + 8]
add eax, 0xffffffe4
push eax
push 0x45cca8
lea eax, [ebp - 0x178]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 8]
call fcn.0040493c
mov eax, dword [ebp - 0x178]
call fcn.00404ae8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
call fcn.00404ae8
push eax
call sub.kernel32.dll_CopyFileExA
lea eax, [ebp - 0x164]
call fcn.00408fbc
test eax, eax
je 0x45d18f
lea eax, [ebp - 0x164]
call fcn.00408fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d346
lea eax, [ebp - 0x178]
mov edx, 5
call fcn.0040465c
lea eax, [ebp - 0x164]
mov edx, dword [0x407b2c]
call fcn.00405110
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040465c
ret
Function at 0x45d6a0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd30
push ebx
xor ebx, ebx
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], ebx
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 8]
call fcn.00404ad8
lea eax, [ebp - 0x164]
mov edx, dword [0x407b2c]
call fcn.00405040
lea eax, [ebp - 0x2bc]
mov edx, dword [0x407b2c]
call fcn.00405040
xor eax, eax
push ebp
push 0x45d8ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004048f0
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
je 0x45d735
lea eax, [ebp - 4]
mov edx, 0x45d8c4
call fcn.004048f8
lea eax, [ebp - 0x2c0]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2c0]
lea ecx, [ebp - 0x164]
mov edx, 0x27
call fcn.00408f6c
test eax, eax
jne 0x45d7a7
mov eax, dword [ebp - 0x158]
cmp byte [eax], 0x2e
je 0x45d798
mov eax, dword [ebp - 0x15c]
add eax, 0xfffffff0
sub eax, 0x10
jb 0x45d798
lea eax, [ebp - 0x2c4]
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2c4]
call fcn.00408ffc
lea eax, [ebp - 0x164]
call fcn.00408fbc
test eax, eax
je 0x45d760
lea eax, [ebp - 0x164]
call fcn.00408fe0
cmp byte [ebp - 9], 0
je 0x45d86b
lea eax, [ebp - 0x2c8]
mov ecx, 0x45d8d0
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x2bc]
mov edx, 0x1f
call fcn.00408f6c
test eax, eax
jne 0x45d860
mov eax, dword [ebp - 0x2b0]
cmp byte [eax], 0x2e
je 0x45d851
mov eax, dword [ebp - 0x2b4]
add eax, 0xfffffff0
sub eax, 0x10
jae 0x45d851
push ebx
lea eax, [ebp - 0x2cc]
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2cc]
mov cl, byte [ebp - 9]
mov edx, dword [ebp - 8]
call fcn.0045d8d4
test bl, bl
je 0x45d851
lea eax, [ebp - 0x2d0]
mov ecx, dword [ebp - 0x2b0]
mov edx, dword [ebp - 4]
call fcn.0040493c
mov eax, dword [ebp - 0x2d0]
call fcn.00404ae8
push eax
call sub.kernel32.dll_RemoveDirectoryA
lea eax, [ebp - 0x2bc]
call fcn.00408fbc
test eax, eax
je 0x45d7e9
lea eax, [ebp - 0x2bc]
call fcn.00408fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d8b3
lea eax, [ebp - 0x2d0]
mov edx, 5
call fcn.0040465c
lea eax, [ebp - 0x2bc]
mov edx, dword [0x407b2c]
mov ecx, 2
call fcn.00405144
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040465c
ret
Function at 0x45d8d4
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404ad8
mov eax, dword [ebp - 8]
call fcn.00404ad8
xor eax, eax
push ebp
push 0x45d941
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov cl, byte [ebp - 9]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045d6a0
test bl, bl
je 0x45d926
mov eax, dword [ebp - 4]
call fcn.00404ae8
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d948
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040465c
ret

Function at 0x45e090
Capabilities:
Create service
Stop service

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov dword [esp], edx
mov ebp, eax
xor ebx, ebx
xor eax, eax
mov dword [esp + 4], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
je 0x45e1af
push 0xf01ff
push ebp
push edi
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
je 0x45e171
lea eax, [esp + 8]
push eax
push 4
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x45e161
cmp dword [esp + 0xc], 1
je 0x45e161
lea eax, [esp + 8]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45e112
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e1af
mov ebp, 0xa
lea eax, [esp + 8]
push eax
push 4
push esi
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x45e135
cmp dword [esp + 0xc], 1
jne 0x45e13f
mov dword [esp + 4], 0xffffffff
jmp 0x45e14c
push 0xfa0
call sub.kernel32.dll_Sleep_1
dec ebp
jne 0x45e117
cmp dword [esp + 4], 0
jne 0x45e161
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e1af
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
jmp 0x45e1af
push 0
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
push 1
push 1
push 1
push 0xf01ff
push ebp
push ebp
push edi
call sub.advapi32.dll_CreateServiceA
mov esi, eax
test esi, esi
jne 0x45e1a1
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e1af
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
mov eax, ebx
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45e1bc
Capabilities:
Start service

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
xor ebx, ebx
mov edx, edi
mov eax, esi
call fcn.0045e090
test al, al
je 0x45e2ac
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
je 0x45e2ac
push 0xf01ff
push esi
push edi
call sub.advapi32.dll_OpenServiceA
mov ebp, eax
test ebp, ebp
jne 0x45e20f
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e2ac
lea eax, [esp + 4]
push eax
push 4
push ebp
call sub.advapi32.dll_ControlService
test eax, eax
je 0x45e237
cmp dword [esp + 8], 4
jne 0x45e251
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov bl, 1
jmp 0x45e2ac
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x426
je 0x45e251
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e2ac
push esp
push 0
push ebp
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x45e272
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
jmp 0x45e2ac
mov esi, 0xa
lea eax, [esp + 4]
push eax
push 4
push ebp
call sub.advapi32.dll_ControlService
test eax, eax
je 0x45e293
cmp dword [esp + 8], 4
jne 0x45e293
mov bl, 1
jmp 0x45e2a0
push 0xfa0
call sub.kernel32.dll_Sleep_1
dec esi
jne 0x45e277
push ebp
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45faa4
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], edx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x45fc5e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x89]
xor ecx, ecx
mov edx, 0x81
call fcn.004030c4
lea eax, [ebp - 0x89]
push eax
push 0x81
call sub.kernel32.dll_GetLogicalDriveStringsA
test eax, eax
je 0x45fc38
cmp eax, 0x81
jbe 0x45fb28
lea edx, [ebp - 0x90]
mov eax, 0xe
call fcn.0040b950
mov ecx, dword [ebp - 0x90]
mov dl, 1
mov eax, dword [0x407b4c]
call fcn.0040c148
call fcn.00404098
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, 0x20
call fcn.00404c74
mov eax, dword [ebp - 8]
call fcn.004048f0
push eax
lea eax, [ebp - 8]
call fcn.00404b40
xor ecx, ecx
pop edx
call fcn.004030c4
lea esi, [ebp - 0x89]
jmp 0x45fb7a
push esi
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x45fb77
lea eax, [ebp - 8]
call fcn.00404b40
mov dl, byte [esi]
mov byte [eax + ebx], dl
inc dword [0x463cf4]
inc ebx
add esi, 4
cmp byte [esi], 0
jne 0x45fb58
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404c74
push 0x80
lea eax, [ebp - 0x89]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov al, byte [ebp - 0x89]
mov byte [ebp - 1], al
lea eax, [ebp - 0x94]
mov dl, byte [ebp - 1]
call fcn.00404818
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 8]
call fcn.00404c2c
mov edi, eax
mov ebx, edi
mov eax, dword [ebp - 8]
call fcn.004048f0
mov esi, eax
dec esi
sub esi, ebx
jl 0x45fbff
inc esi
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx - 1]
sub al, 0x41
inc eax
call fcn.00409280
cmp edx, 0
jne 0x45fbf0
cmp eax, 0xc800000
jbe 0x45fbfb
jmp 0x45fbf2
jle 0x45fbfb
mov eax, dword [ebp - 8]
mov bl, byte [eax + ebx - 1]
jmp 0x45fc38
inc ebx
dec esi
jne 0x45fbd3
mov esi, edi
dec esi
test esi, esi
jl 0x45fc35
inc esi
xor ebx, ebx
mov eax, dword [ebp - 8]
mov al, byte [eax + ebx - 1]
sub al, 0x41
inc eax
call fcn.00409280
cmp edx, 0
jne 0x45fc26
cmp eax, 0xc800000
jbe 0x45fc31
jmp 0x45fc28
jle 0x45fc31
mov eax, dword [ebp - 8]
mov bl, byte [eax + ebx - 1]
jmp 0x45fc38
inc ebx
dec esi
jne 0x45fc09
mov bl, byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fc65
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0040465c
lea eax, [ebp - 8]
call fcn.00404638
ret