joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071e0
Capabilities:
Delete registry value
Delete service
Persist via run registry key
Query service status
Stop service

Disassembly:
push ecx
cmp dword [ebx + 4], 4
push ebp
push esi
jl 0x40730a
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
mov dword [esp + 8], ebp
test ebp, ebp
jne 0x407218
mov eax, dword [ebx]
mov edx, dword [eax + 4]
push 0x3eb
mov ecx, ebx
call edx
pop esi
pop ebp
pop ecx
ret
mov eax, dword [ebx + 0xc]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x407247
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 0x3ed
mov ecx, ebx
call eax
pop esi
pop ebp
pop ecx
ret
push edi
lea edi, [ebx + 0x2001c]
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4072d0
mov ecx, dword [ebx + 0xc]
push ecx
push str.Stopping__s_service._Please_wait.
call fcn.00414d84
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x1f4
call ebp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4072af
cmp dword [ebx + 0x20020], 3
jne 0x4072af
push 0x429ff4
call fcn.00414d84
add esp, 4
push 0x1f4
call ebp
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x407286
cmp dword [ebx + 0x20020], 1
jne 0x4072bf
push str._stopped._n
jmp 0x4072c4
push str._failed._n
call fcn.00414d84
mov ebp, dword [esp + 0x10]
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
pop edi
test eax, eax
je 0x4072e7
mov edx, dword [ebx + 0xc]
push edx
push str._s_service_removed._n
jmp 0x4072f0
mov eax, dword [ebx + 0xc]
push eax
push str.Cant_remove__s_service._n
call fcn.00414d84
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebp
call esi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
lea ecx, [esp + 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40733e
mov edx, dword [esp + 8]
push str.DCDiskOptimizer
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x4078b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x42fcec]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x407991
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x40790c
cmp dword [esp + 8], 0
jne 0x4079f6
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
cmp eax, 5
jne 0x407975
mov eax, dword [esp + 8]
test eax, eax
jne 0x407933
mov eax, 5
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
cmp eax, 1
jne 0x407952
mov eax, 6
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
cmp eax, 2
jne 0x4079f6
mov eax, 7
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
jbe 0x4079f6
mov eax, 8
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
cmp eax, 1
jne 0x4079f6
mov eax, dword [esp + 8]
test eax, eax
jne 0x4079b8
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
cmp eax, 0xa
jne 0x4079d7
mov eax, 2
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
cmp eax, 0x5a
jne 0x4079f6
mov eax, 3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00413fdc
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.00413fdc
add esp, 0x118
ret
Function at 0x408943
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x42fcec]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4089db
push 0x426a6c
push 4
push eax
call fcn.00413feb
push eax
call fcn.004061c0
add esp, 0x10
push ebx
push edi
call fcn.00415664
mov edi, dword [eax]
call fcn.00415664
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00414078
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00415664
cmp dword [eax], ebx
je 0x4089f2
call fcn.00415664
push dword [eax]
call fcn.00407e7a
pop ecx
jmp 0x4089f9
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x408986
jmp 0x408a80
call fcn.00415664
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x408a7c
cmp dword [ebp - 0x234], esi
jae 0x408a7c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00415f20
add esp, 0xc
push 0x4267cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x408a6b
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x408a6b
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x408a6b
push ebx
push ebx
push esi
jmp 0x408a74
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x408a7e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413fdc
leave
ret

Function at 0x413fdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fcec]
jne 0x413fe6
repz ret
jmp fcn.00418dc8
Function at 0x41f020
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004187d7
and dword [ebp - 4], 0
cmp dword [0x433be0], 0
mov ebx, eax
jne 0x41f0d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f182
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41f182
push eax
call fcn.00418765
mov dword [esp], 0x428c10
push edi
mov dword [0x433be0], eax
call esi
push eax
call fcn.00418765
mov dword [esp], 0x428bfc
push edi
mov dword [0x433be4], eax
call esi
push eax
call fcn.00418765
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433be8], eax
call esi
push eax
call fcn.00418765
pop ecx
mov dword [0x433bf0], eax
test eax, eax
je 0x41f0d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418765
pop ecx
mov dword [0x433bec], eax
mov eax, dword [0x433bec]
cmp eax, ebx
je 0x41f129
cmp dword [0x433bf0], ebx
je 0x41f129
push eax
call fcn.004187e0
push dword [0x433bf0]
mov esi, eax
call fcn.004187e0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41f129
test edi, edi
je 0x41f129
call esi
test eax, eax
je 0x41f120
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41f120
test byte [ebp - 0xc], 1
jne 0x41f129
or dword [ebp + 0x10], 0x200000
jmp 0x41f162
mov eax, dword [0x433be4]
cmp eax, ebx
je 0x41f162
push eax
call fcn.004187e0
pop ecx
test eax, eax
je 0x41f162
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f162
mov eax, dword [0x433be8]
cmp eax, ebx
je 0x41f162
push eax
call fcn.004187e0
pop ecx
test eax, eax
je 0x41f162
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433be0]
call fcn.004187e0
pop ecx
test eax, eax
je 0x41f182
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f184
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4023c9
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x4023c9
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4023b8
cmp esi, edx
jae 0x4023c9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4023a6
cmp esi, edx
jae 0x4023c9
cmp word [esi], 0
je 0x4023c9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x403c50
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b298
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x463024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp dword [esi - 4], 1
jle 0x403c9b
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.004150a0
mov esi, dword [ebp + 8]
push 0x410
lea eax, [ebp - 0x830]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
jne 0x403cc0
push esi
lea ecx, [ebp - 0x834]
call fcn.00414120
jmp 0x403d26
call fcn.00402520
mov ecx, eax
test ecx, ecx
je 0x403dbc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x830]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x834]
call fcn.00414f80
test al, al
jne 0x403d22
lea ecx, [ebp - 0x830]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d00
sub ecx, edx
lea eax, [ebp - 0x830]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x834]
call fcn.00416110
mov byte [ebp - 4], 0
push str..dll
push dword [ebp - 0x834]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
push dword [ebp - 0x834]
test eax, eax
je 0x403d55
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
test eax, eax
push eax
setne bl
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x403d60
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
mov edx, dword [ebp - 0x834]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403d80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x403d9f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402280
int3
Function at 0x405850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x45bf7c
movzx eax, cx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
push edi
mov dword [0x4695d4], eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
mov esi, dword [0x4695d4]
push eax
push esi
call fcn.0041c750
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push 0x46acdc
push 1
push dword [0x4695d4]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x4058ee
mov edx, dword [0x46acdc]
lea ecx, [esi + 4]
push ecx
push edx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
mov eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x405a10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4695c8], 0
mov ecx, 0xf013f
mov eax, 0xf003f
cmovne eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionSystemRestore
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405a57
push eax
push str.ERROR_0x_x_n
call fcn.004020f0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push str.SystemRestorePointCreationFrequency
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [ebp - 4]
mov esi, eax
test ecx, ecx
je 0x405a76
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405e00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, 0x20106
cmp dword [0x4695c8], 0
mov eax, 0x20006
cmovne eax, ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0
push 0
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x405e4d
push eax
push str.ERROR_0x_x_n
call fcn.004020f0
add esp, 8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x405e87
mov edx, dword [ebp + 0xc]
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405e60
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
jmp 0x405ebd
cmp eax, 4
jne 0x405ebd
push dword [ebp + 0xc]
call fcn.0042768f
add esp, 4
fstp qword [ebp - 0xc]
movsd xmm0, qword [ebp - 0xc]
call fcn.0043afb0
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x405ecb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x405ed0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x463024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x41c], ebx
test edi, edi
je 0x40602d
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
test eax, eax
je 0x40602d
push edi
call fcn.004239b2
add esp, 4
mov ecx, 0xf013f
cmp dword [0x4695c8], 0
mov eax, 0xf003f
cmovne eax, ecx
lea ecx, [ebp - 0x418]
push ecx
push eax
push 0
push edi
push ebx
mov dword [ebp - 0x424], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406032
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
nop word [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
push 0
push dword [ebp - 0x418]
call ebx
mov esi, eax
cmp esi, 0x103
je 0x405fc2
test esi, esi
jne 0x40600e
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
call fcn.00405ed0
mov esi, eax
test esi, esi
je 0x405f50
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
cmp dword [0x46b334], 0
jle 0x406001
push 0
push dword [ebp - 0x424]
push edi
push dword [ebp - 0x41c]
call dword [0x46a498]
push dword [ebp - 0x418]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret

Function at 0x406470
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x463024]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [esp + 4]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
Function at 0x406ca0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b648
mov eax, dword fs:[0]
push eax
sub esp, 0x3b4
mov eax, dword [0x463024]
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
push 0
mov dword [ebp - 4], 0
mov ecx, 0x46b574
push 0x448948
mov byte [ebp - 4], 1
call fcn.00416110
push 0
push 0x448948
mov ecx, 0x46b738
call fcn.00416110
push 0
push 0x448948
mov ecx, 0x46b740
call fcn.00416110
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 1
jle 0x406d26
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.004150a0
mov eax, dword [ebp + 8]
push 0x64
lea ecx, [ebp - 0x1a4]
push ecx
lea ecx, [ebp - 0x3bc]
push ecx
lea ecx, [ebp - 0x3c0]
push ecx
lea ecx, [ebp - 0x3b0]
push ecx
push 0x64
lea ecx, [ebp - 0xdc]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x406e7a
lea edx, [ebp - 0xdc]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406d65
sub edx, esi
lea eax, [ebp - 0xdc]
sar edx, 1
mov ecx, 0x46b574
push edx
push eax
call fcn.00416110
mov ecx, dword [ebp - 0x3b0]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x3ac]
push ecx
push str._04X__04X_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x3ac]
mov edx, 0x46b740
push eax
lea ecx, [ebp - 0x3b8]
call fcn.00413940
add esp, 0x14
mov byte [ebp - 4], 2
mov edx, dword [eax]
mov edi, dword [0x46b740]
add edi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x406e24
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x406e16
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x406e16
call fcn.004160a0
or esi, 0xffffffff
mov dword [ebp - 0x3b4], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x406e0c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3b4]
add eax, 0x10
mov dword [0x46b740], eax
jmp 0x406e27
push dword [edx - 0xc]
mov ecx, 0x46b740
push edx
call fcn.00416110
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x3b8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406e48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebp - 0x1a4]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x406e51
sub edx, edi
lea eax, [ebp - 0x1a4]
sar edx, 1
mov ecx, 0x46b738
push edx
push eax
call fcn.00416110
jmp 0x406e7d
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x406e9c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0041ac2f
mov esp, ebp
pop ebp
ret
Function at 0x4087b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b8f6
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x463024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x24
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00402520
mov ecx, eax
test ecx, ecx
je 0x4089b3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.00414f80
test al, al
jne 0x408856
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408834
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00416110
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x21c]
cmp dword [edi - 0xc], 3
lea ebx, [edi - 0x10]
jg 0x40887e
mov ecx, ebx
call fcn.004160a0
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
jmp 0x4088e5
mov ecx, dword [ebx]
test ecx, ecx
je 0x40888f
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x4088a5
call fcn.00402520
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x4089bd
mov eax, dword [ecx]
push 2
push 3
call dword [eax]
test eax, eax
je 0x4089c7
cmp dword [eax + 8], 3
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
jl 0x4089a9
xor eax, eax
mov dword [esi - 0xc], 3
push 6
push edi
mov ecx, esi
mov word [esi + 6], ax
lea edx, [eax + 6]
call fcn.00402010
add esp, 8
lea edx, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x220], edx
cmp edx, ebx
je 0x408948
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x40892d
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x40892d
mov ecx, edx
call fcn.004160a0
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x408922
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
lea edi, [esi + 0x10]
mov dword [ebp - 0x21c], edi
jmp 0x408942
push dword [esi - 0xc]
lea ecx, [ebp - 0x21c]
push esi
call fcn.00416110
mov edi, dword [ebp - 0x21c]
mov edx, dword [ebp - 0x220]
or ebx, 0xffffffff
mov byte [ebp - 4], 1
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408963
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00406ec0
test al, al
jne 0x408971
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40898d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00402280
push 0x80004005
call fcn.00402280
push 0x80004005
call fcn.00402280
call fcn.00416100
int3
Function at 0x409660
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x463024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
push 0x4695f0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.0041b3c8
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push 0x4695f0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409714
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x448918
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409714
mov eax, dword [ebp - 0x210]
push edi
push ebx
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xc]
call fcn.0041ac3d
movzx eax, si
push eax
shr esi, 0x10
push esi
movzx eax, di
push eax
shr edi, 0x10
lea eax, [ebp - 0x20c]
push edi
push str._d._d_d_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x20c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x448948
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ac2f
mov esp, ebp
pop ebp
ret