joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40340c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp + 0x224], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x234]
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x80], ecx
call fcn.0066f220
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x40347c
push GetComputerNameW
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0066f220
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call esi
push ebx
mov esi, 0x200
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00403c35
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x4034e0
dec eax
jne 0x4034f5
cmp dword [ebp - 0x74], 4
jbe 0x4034be
cmp dword [ebp - 0x74], 5
jne 0x4034a9
cmp dword [ebp - 0x70], eax
je WaitForMultipleObjectsEx
push ebx
push str.Global_s
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00403c35
add esp, 0x10
jmp 0x4034cc
push ebx
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00403c35
add esp, 0xc
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x230]
call fcn.00403103
jmp 0x4034f2
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x230]
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x224]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00647fba
add ebp, 0x228
leave
ret 8
Function at 0x403511
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x19c]
push edi
mov esi, ecx
mov dword [ebp - 0x80], eax
lea eax, [esi + 4]
push eax
mov edi, 0x200
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
lea eax, [ebp - 0x74]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, esi
call GetFileAttributesExW
lea ebx, [esi + 0xb6c]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
push str.cpuz143
push 0
mov ecx, esi
call fcn.0040340c
cmp dword [ebp - 0x7c], 0
mov dword [ebx], eax
mov eax, dword [ebp + 0x1a0]
mov dword [esi + 0x20c], eax
lea eax, [esi + 0x410]
je 0x4035af
push dword [ebp - 0x7c]
push edi
push eax
call fcn.0067eece
add esp, 0xc
jmp 0x4035b7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.cpuz143
mov ebx, 0x100
lea eax, [esi + 0xa10]
push ebx
push eax
call fcn.0067eece
mov eax, dword [esi + 0xb50]
add esp, 0xc
dec eax
je GlobalUnlock
dec eax
je 0x4035ef
mov dword [ebp - 0x78], 0x5002
xor edi, edi
jmp 0x40370d
push str.cpuz143
lea eax, [esi + 0xb10]
push 0x40
push eax
call fcn.0067eece
add esp, 0xc
cmp dword [esi + 0xb5c], 0
je 0x403615
push str._x64.sys
jmp 0x40362a
cmp dword [esi + 0xb60], 0
je FindFirstFileW
push str._ia64.sys
jmp 0x40362a
push str._x32.sys
lea eax, [esi + 0xa10]
push ebx
push eax
call fcn.00403c7f
add esp, 0xc
cmp dword [esi + 0x20c], 0
lea eax, [esi + 0x410]
push eax
je 0x403699
push str._scpuz143_
lea eax, [ebp - 0x74]
push edi
push eax
call fcn.00403c35
lea eax, [ebp - 0x74]
push eax
lea ebx, [esi + 0x610]
push edi
push ebx
call fcn.0067eece
add esp, 0x1c
mov ecx, esi
call fcn.00412dbf
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4036a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4036a9
lea eax, [esi + 0x410]
push eax
push edi
push ebx
jmp TlsAlloc
push edi
lea eax, [esi + 0x610]
push eax
call fcn.0067eece
add esp, 0xc
push 0x7d0
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call reloc.KERNEL32.dll_SizeofResource
mov ecx, esi
mov edi, eax
call fcn.004030d0
jmp 0x40370d
lea eax, [esi + 0x410]
push eax
lea eax, [esi + 0x610]
push edi
push eax
call fcn.0067eece
push str.cpuz.vxd
lea eax, [esi + 0xa10]
push ebx
push eax
call fcn.0067eece
push str.cpuz
lea eax, [esi + 0xb10]
push 0x40
push eax
call fcn.0067eece
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00412838
mov edi, eax
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
mov dword [eax], ecx
mov ecx, esi
call fcn.004030d0
test edi, edi
jne WaitForMultipleObjects
push edi
push 1
push 1
mov ecx, esi
call fcn.00402fd6
xor eax, eax
jmp 0x403739
and dword [esi + 0xd7c], 0
mov eax, edi
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00647fba
add ebp, 0x190
leave
ret 0xc
Function at 0x4042b0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x2a8
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp + 0x224], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 0x238]
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x80], ecx
call fcn.0066f220
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x404320
push 0x94
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0066f220
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x94
call esi
push ebx
mov esi, 0x200
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00403c35
mov eax, dword [ebp - 0x68]
add esp, 0xc
dec eax
je 0x404384
dec eax
jne 0x404399
cmp dword [ebp - 0x74], 4
jbe 0x404362
cmp dword [ebp - 0x74], 5
jne 0x40434d
cmp dword [ebp - 0x70], eax
je 0x404362
push ebx
push str.Global_s
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00403c35
add esp, 0x10
jmp 0x404370
push ebx
lea eax, [ebp + 0x24]
push esi
push eax
call fcn.00403c35
add esp, 0xc
mov ecx, dword [ebp - 0x80]
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x234]
call fcn.00403775
jmp 0x404396
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x234]
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x224]
mov eax, dword [ebp - 0x7c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00647fba
add ebp, 0x228
leave
ret 0xc
Function at 0x404855
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x54], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x48], eax
test eax, eax
je 0x404991
push ebx
push eax
call fcn.006484ac
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 0x48]
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x404989
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x768238
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404989
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40496b
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push eax
lea eax, [ebp - 0x44]
push str.StringFileInfo_04x_04xFileVersion
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x404924
push dword [ebp - 0x48]
lea eax, [esi + 0x10]
push 0x100
push eax
call fcn.00403c35
add esp, 0xc
mov eax, dword [ebp - 0x50]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x44]
push str.StringFileInfo_04x_04xCompanyName
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40496b
push dword [ebp - 0x48]
lea eax, [esi + 0x110]
push 0x100
push eax
call fcn.00403c35
add esp, 0xc
mov eax, dword [ebp - 0x54]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
mov dword [esi + 8], ecx
movzx eax, word [eax + 0xc]
mov dword [esi + 0xc], eax
push ebx
call fcn.00647fb5
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00647fba
leave
ret 8
Function at 0x40520c
Capabilities:
Get memory capacity

Disassembly:
push 0x30
mov eax, 0x710eff
call fcn.00648b1c
mov dword [ebp - 0x14], ecx
call fcn.0041af6f
call fcn.00404d14
mov esi, dword [eax + 0x60]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
fild dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
test eax, eax
jge 0x405242
fadd dword [0x71f4e0]
xor ebx, ebx
fstp dword [ebp - 0x10]
cmp dword [esi + 0x118], ebx
jne 0x4052b1
push OpenProcess
call fcn.006484ac
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x40526e
push ebx
call fcn.0041c3b1
jmp reloc.KERNEL32.dll_VirtualAlloc
xor eax, eax
or dword [ebp - 4], 0xffffffff
push str.System_Memory
mov dword [esi + 0x118], eax
add eax, 4
push 0x100
push eax
call fcn.00403c35
mov eax, dword [esi]
add esp, 0xc
push dword [esi + 0x118]
mov ecx, esi
call dword [eax + 0x14]
mov edi, dword [esi + 0x118]
call fcn.00404d14
mov ecx, dword [eax + 0x30]
push edi
call fcn.00404ee5
fld dword [ebp - 0x10]
push 1
push ecx
mov ecx, dword [esi + 0x118]
fstp dword [esp]
call fcn.0041bfad
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
call fcn.0040c24b
jmp GetWindowsDirectoryA
push ebx
mov ecx, eax
call fcn.0041ca47
lea ecx, [ebp - 0x1c]
call fcn.00468429
cmp eax, ebx
jne 0x4052db
mov ecx, esi
call fcn.00405066
call fcn.00648ae5
ret
Function at 0x406007
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push str.setupapi.dll
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x48], edi
cmp edi, ebx
je 0x406197
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push edi
call esi
push 0x71fd64
push edi
mov dword [ebp - 0x24], eax
call esi
push 0x71fd40
push edi
mov dword [ebp - 0x38], eax
call esi
push 0x71fd28
push edi
mov dword [ebp - 0x2c], eax
call esi
push 0x71fd08
push edi
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x24], ebx
je 0x4061a9
cmp dword [ebp - 0x38], ebx
je 0x4061a9
cmp dword [ebp - 0x2c], ebx
je 0x4061a9
cmp dword [ebp - 0x40], ebx
je 0x4061a9
cmp eax, ebx
je 0x4061a9
push 2
push ebx
push ebx
push 0x80633c
call dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x4061a9
lea ecx, [ebp - 0x20]
push ecx
push ebx
push eax
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x34], ebx
call dword [ebp - 0x38]
test eax, eax
je 0x40618a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, 0x71fd00
push 1
push 1
push ebx
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
je 0x40616f
lea ecx, [ebp - 0x30]
push ecx
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
call esi
test eax, eax
jne 0x406166
push dword [ebp - 0x30]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
lea eax, [ebp - 0x30]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call esi
push 0xa0
call fcn.006484ac
pop ecx
mov ecx, dword [ebp - 0x44]
push eax
push ebx
mov dword [ebp - 0x28], eax
call fcn.004059cf
mov eax, dword [ebp - 0x44]
push dword [ebp - 0x28]
mov ecx, dword [eax + 0x14]
call fcn.00405d3e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x28], 1
xor ebx, ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x24]
call dword [ebp - 0x38]
test eax, eax
jne 0x4060e1
mov edi, dword [ebp - 0x48]
push dword [ebp - 0x24]
call dword [ebp - 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00647fba
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x40619a
Function at 0x406948
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
push ebx
push esi
mov esi, dword [ebp + 0x1bc]
mov eax, dword [esi]
push edi
mov edi, ecx
mov ecx, esi
mov dword [ebp - 0x60], edi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
xor ebx, ebx
test dword [edi + 8], 0x2000000
je 0x406998
lea eax, [ebp - 0x64]
push eax
push esi
mov ecx, edi
call fcn.0040687c
jmp 0x4069b0
cmp dword [esi + 0x44], 1
jne 0x4069ae
lea eax, [ebp - 0x64]
push eax
push esi
mov ecx, edi
call fcn.0040687c
test eax, eax
jne 0x4069b8
xor eax, eax
test eax, eax
je 0x406ad9
xor eax, eax
push eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x68]
push eax
mov edi, 0x200
push edi
lea eax, [ebp - 0x50]
push eax
push 0xc
lea eax, [ebp - 0x5c]
push eax
push 0x2d1400
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406a77
cmp dword [ebp - 0x50], 0x28
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x5c], eax
jne 0x406a72
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x406a2b
cmp eax, dword [ebp - 0x4c]
jae 0x406a2b
mov ecx, dword [ebp - 0x60]
lea ebx, [ebp + eax - 0x50]
push ebx
call fcn.00406852
push ebx
push edi
push dword [esi + 0x18]
call fcn.0067eece
add esp, 0xc
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x406a72
cmp eax, dword [ebp - 0x4c]
jae 0x406a72
mov ecx, dword [ebp - 0x60]
lea ebx, [ebp + eax - 0x50]
push ebx
call fcn.00406852
mov eax, dword [esi + 0x18]
cmp byte [eax], 0
je 0x406a67
push 0x753f00
push edi
push eax
call fcn.00403c7f
push ebx
push edi
push dword [esi + 0x18]
call fcn.00403c7f
add esp, 0x18
jmp 0x406a72
push ebx
push edi
push eax
call fcn.0067eece
add esp, 0xc
xor ebx, ebx
inc ebx
jmp 0x406a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x60], 0
push 0x18
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0066f220
add esp, 0xc
xor eax, eax
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0x18
lea ecx, [ebp - 0x80]
push ecx
push eax
push eax
push 0x74080
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x406ac0
mov eax, dword [ebp - 0x7c]
shr eax, 2
and eax, 1
mov dword [esi + 0x40], eax
jmp 0x406ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x406ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1b0]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00647fba
add ebp, 0x1b4
leave
ret 4
Function at 0x40e54d
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.rootwmi
mov ebx, ecx
call esi
push str.MSSmBios_RawSMBiosTables
mov dword [ebp - 0x18], eax
call esi
push str.SMBiosData
mov dword [ebp - 0x14], eax
call esi
xor esi, esi
push 2
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40e6ea
push esi
push 2
push esi
push 3
push 6
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x40e5bc
cmp eax, 0x80010119
jne 0x40e69f
lea eax, [ebp - 4]
push eax
push 0x71ed00
push 1
push esi
push 0x71edd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40e69f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x18]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x40e69f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push esi
push esi
push dword [ebp - 0x14]
push eax
call dword [ecx + 0x48]
test eax, eax
jl 0x40e69f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 1
push 0xfa0
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x20], 1
jne 0x40e69f
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x38]
push edx
push esi
push dword [ebp - 0x1c]
push eax
call dword [ecx + 0x10]
mov eax, 0x2011
cmp word [ebp - 0x38], ax
jne 0x40e69f
mov eax, dword [ebp - 0x30]
push edi
mov edi, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
cmp edi, esi
je 0x40e69e
cmp edi, 0x4000
jle 0x40e685
push dword [ebx + 0xc]
call fcn.00647fb5
push edi
call fcn.006484ac
pop ecx
pop ecx
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x24]
push edi
push dword [eax + 0xc]
push dword [ebx + 0xc]
call fcn.0066eca0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov word [eax + 6], di
pop edi
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x40e6af
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 8]
cmp eax, esi
je 0x40e6bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x40e6cf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0xc], esi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x4128cd
Capabilities:
Create service

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x80], eax
lea eax, [esi + 0x610]
push eax
mov edi, 0x200
lea eax, [ebp - 0x78]
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x7c], ebx
call fcn.0067eece
lea eax, [ebp - 0x78]
push eax
call fcn.0068cf40
lea eax, [ebp + eax - 0x78]
add esp, 0x10
cmp byte [eax - 1], 0x5c
je 0x41292d
mov byte [eax], 0x5c
mov byte [eax + 1], bl
lea eax, [esi + 0xa10]
push eax
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00403c7f
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x78]
push ecx
push 1
push 3
push 1
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push eax
push dword [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
jne 0x41298d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
xor esi, esi
sub eax, 5
je 0x4129a3
sub eax, 0x42b
je 0x4129a3
dec eax
jne 0x4129a3
inc esi
mov dword [ebp - 0x7c], ebx
jmp 0x4129a3
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, ebx
jne 0x4129a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x188]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00647fba
add ebp, 0x18c
leave
ret 4

Function at 0x412aab
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push 0xf01ff
lea eax, [esi + 0xb10]
push eax
push dword [esi + 0x208]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x412adf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412b49
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
call edi
test eax, eax
je 0x412b28
cmp dword [ebp - 0x1c], 1
je 0x412b31
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call edi
test eax, eax
je 0x412b28
cmp dword [ebp - 0x1c], 3
jne 0x412b31
add esi, 0x204
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call edi
jmp 0x412b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
test eax, eax
jne 0x412b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x412dbf
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x81c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x610]
push edi
call fcn.0068cf40
pop ecx
test eax, eax
jle 0x412e1c
cmp byte [esi + eax + 0x60f], 0x5c
lea eax, [esi + 0xa10]
push eax
push edi
lea eax, [ebp - 0x204]
jne 0x412e07
push 0x720f84
jmp 0x412e0c
push 0x720f7c
push 0x200
push eax
call fcn.00403c35
add esp, 0x14
jmp 0x412e3c
lea eax, [esi + 0xa10]
push eax
push 0x753f50
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00403c35
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
test ebx, ebx
jne 0x412e55
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esi, 0x410
push esi
call fcn.0068cf40
push edi
mov esi, eax
call fcn.0068cf40
pop ecx
pop ecx
cmp eax, esi
jbe 0x412e82
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, eax
test ebx, ebx
jne 0x412e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00647fba
leave
ret
Function at 0x414925
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push 2
push esi
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jge 0x414946
xor eax, eax
jmp 0x4149ed
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x41496b
cmp eax, 0x80010119
je 0x41496b
mov ecx, edi
call fcn.00414625
jmp 0x41493f
lea eax, [edi + 0x20]
push eax
push 0x71ed00
push 1
push esi
push 0x71edd0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x414962
push ebx
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [edi + 0x20]
lea ebx, [edi + 0x1c]
push ebx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov dword [edi + 0x2c], eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0xc]
test eax, eax
jl 0x4149e3
mov eax, dword [ebx]
cmp eax, esi
je 0x4149e3
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x71ef50
push eax
call dword [ecx]
test eax, eax
jl 0x4149e3
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebx]
mov ebx, dword [sym.imp.ole32.dll_CoSetProxyBlanket]
call ebx
test eax, eax
jge 0x4149f3
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, edi
call fcn.00414625
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
push esi
push esi
push 3
push esi
push esi
push esi
push 0xa
push dword [ebp - 4]
call ebx
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp ebx, esi
jl 0x4149e3
lea ebx, [edi + 0x24]
push ebx
push 0x71eda0
push 1
push esi
push 0x71ee40
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4149e3
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea ecx, [edi + 0x28]
push ecx
push 0x71edc0
push ebx
call dword [eax]
test eax, eax
jl 0x4149e3
xor eax, eax
inc eax
jmp 0x4149ec