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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x5d6060]
test ecx, ecx
js 0x40d5b8
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x118
xorps xmm0, xmm0
mov dword [0x5d6060], 0
lea eax, [ebp - 0x124]
movaps xmmword [ebp - 0x160], xmm0
push 0
push eax
movaps xmmword [ebp - 0x150], xmm0
mov dword [ebp - 0x140], 0
call fcn.005126f0
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40d629
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d680
push 0x586240
push 0x584f20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d680
lea ecx, [ebp - 0x160]
push ecx
call eax
mov ax, word [ebp - 0x160]
cmp ax, 9
je 0x40d660
cmp ax, 6
jne 0x40d680
mov dword [0x5d6060], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x40dbf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dc49
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40dc49
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40dc3a
cmp esi, edx
jae 0x40dc49
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40dc28
cmp esi, edx
jae 0x40dc49
cmp word [esi], 0
je 0x40dc49
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40e670
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40e691
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40e6bb
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x40e8a0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40e8c1
mov eax, 0x80004003
pop esi
pop ebp
ret
push ebx
push edi
push 0xf01ff
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x40e8eb
push esi
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
neg eax
push edi
sbb ebx, ebx
and ebx, 0x7fffbffb
add ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x40ea10
Capabilities:
Accept command line arguments
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568c11
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x5d7c7c]
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
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x118], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x40ea76
mov eax, 0x80004003
jmp 0x40eb6e
push 0xf01ff
push edi
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x128], edi
test edi, edi
jne 0x40ea9d
mov ebx, 0x80004005
jmp 0x40eb65
push dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
xor ebx, ebx
call fcn.0040e170
push dword [eax]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.0040e0d0
mov eax, dword [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov byte [ebp - 4], 1
cmp eax, ecx
je 0x40eae8
push eax
call fcn.0052fca8
add esp, 4
mov eax, dword [ebp - 0x120]
cmp dword [eax - 0xc], 0
je 0x40eb04
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
push ebx
push dword [ebp - 0x11c]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 0x118], eax
test ebx, ebx
je 0x40eb29
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x118]
xor ecx, ecx
mov ebx, 0x80004005
test eax, eax
cmovne ebx, ecx
mov ecx, dword [ebp - 0x120]
add ecx, 0xfffffff0
or eax, 0xffffffff
mov dword [ebp - 0x118], ecx
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40eb5e
mov ecx, dword [ecx]
push dword [ebp - 0x118]
mov edx, dword [ecx]
call dword [edx + 4]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
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.004acb08
mov esp, ebp
pop ebp
ret
Function at 0x40eef0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x40ef2f
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret
push ebx
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x40ef4a
mov edi, 0x80004005
jmp 0x40ef81
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
push eax
xorps xmm0, xmm0
push 1
push ebx
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
push ebx
sbb edi, edi
and edi, 0x7fffbffb
add edi, 0x80004005
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004acb08
mov esp, ebp
pop ebp
ret
Function at 0x40f6f0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40f6fc
pop ebp
ret
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040f710
Function at 0x40f710
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40f923
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f923
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f743
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40f923
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.005126f0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.005126f0
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x5865cc
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f7c4
test al, 1
je 0x40f7c4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x40f909
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40f8fd
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x40f878
cmp word [ebp - 0x638], 0x2e
jne 0x40f837
mov ax, word [ebp - 0x636]
test ax, ax
je 0x40f8e2
cmp ax, 0x2e
jne 0x40f837
cmp word [ebp - 0x634], 0
je 0x40f8e2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005126f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f710
add esp, 4
jmp 0x40f8e0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005126f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f8cf
test al, 1
je 0x40f8cf
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f800
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004acb08
mov esp, ebp
pop ebp
ret
Function at 0x410080
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4100b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_code_d
call fcn.0044d380
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4100af
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4100fa
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4100fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_succ__error_d
call fcn.0044d380
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x410110
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568d76
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x5d7c7c]
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
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x41014c
xor eax, eax
jmp 0x410352
cmp word [ebx], 0
je 0x410145
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410157
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x410145
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.005126f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x586684
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4101b2
test al, 1
je 0x4101b2
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.0040f9a0
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x410302
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x410261
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x410261
cmp word [ebp - 0x858], 0x2e
jne 0x410261
mov ax, word [ebp - 0x856]
test ax, ax
je 0x41023c
cmp ax, 0x2e
jne 0x410261
cmp word [ebp - 0x854], 0
jne 0x410261
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x41036e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x4102f4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.0040fae0
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x41029c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x41029c
mov esi, dword [ebp - 0x888]
push esi
call fcn.00410110
jmp 0x4102a8
mov esi, dword [ebp - 0x888]
push esi
call fcn.00410080
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x4102b9
xor edi, edi
jmp 0x4102d8
cmp dword [ebp - 0x424], 0
jne 0x4102c6
xor edi, edi
jmp 0x4102d8
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4102f4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x4101f9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x410328
cmp eax, 0xffffffff
je 0x410328
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.0040f710
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x41034d
cmp eax, 0xffffffff
je 0x41034d
push eax
call esi
mov eax, 1
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.004acb08
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x410328
Function at 0x410ad0
Capabilities:
Delete directory

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, dword [eax]
je 0x410af5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
lea esi, [eax + 4]
mov eax, dword [esi]
push dword [eax + 8]
call ebx
mov ecx, dword [edi]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x410ae1
pop esi
pop ebx
mov ecx, edi
pop edi
jmp fcn.00410a40

Function at 0x410d90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5690c6
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005126f0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], eax
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x410eb3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x814]
call fcn.0040e2c0
test al, al
jne 0x410e3c
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.00412050
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], 0
mov ecx, esp
push eax
call fcn.00410760
call fcn.004123b0
mov edx, dword [ebp - 0x814]
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x410e92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ae00
int3

Function at 0x411330
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x58686c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x586870]
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x411399
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x14], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x411399
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
call fcn.004acb08
mov esp, ebp
pop ebp
ret
Function at 0x4113b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.004acf60
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.005126f0
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x4114a6
test edi, edi
je 0x4114a6
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4114a6
cmp eax, 0x3fff
ja 0x4114a6
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4114a6
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x584e04
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4114a6
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.005126f0
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [esi - 1]
push eax
push edi
call fcn.00412ac0
add esp, 0x28
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004acb08
mov esp, ebp
pop ebp
ret

Function at 0x4114c0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.005126f0
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x80c]
cdq
mov edi, eax
mov ebx, edx
mov ax, word [ebp - 0x80c]
shld ebx, edi, 0x14
shl edi, 0x14
test ax, ax
je 0x4115b0
movzx ecx, ax
nop word [eax + eax]
mov eax, dword [0x58686c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x586870]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x411589
lea eax, [ebp - 0x814]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x814], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x411589
cmp dword [ebp - 0x810], ebx
ja 0x4115c3
jb 0x411589
cmp dword [ebp - 0x814], edi
ja 0x4115c3
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411590
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x411530
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret
mov ax, word [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004acb08
mov esp, ebp
pop ebp
ret
Function at 0x412b20
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569496
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x5d7c7c]
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
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x820]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
call fcn.0042be00
push esi
push edi
push ebx
lea ecx, [ebp - 0x820]
mov dword [ebp - 4], 0
call fcn.0042c1d0
test eax, eax
jne 0x412b82
xor esi, esi
jmp 0x412c2b
call fcn.0040cdc0
mov ecx, eax
test ecx, ecx
je 0x412cb1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x820]
call fcn.0042c3d0
test eax, eax
je 0x412c07
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.005126f0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x586964
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412c56
push str.file_KB931125.exe_is_not_exit
call fcn.0044d380
add esp, 4
xor esi, esi
mov edi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x412c2b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x820]
call fcn.0042be20
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004acb08
mov esp, ebp
pop ebp
ret 0xc
push 0x2710
push 0
push 1
push 0
push 0
push 0x5869bc
lea eax, [ebp - 0x810]
push eax
call fcn.0042ad60
mov esi, eax
test esi, esi
jne 0x412c87
push str.run_KB931125.exe_error
call fcn.0044d380
add esp, 4
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412c09
push 4
push eax
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x412c09
push 0x80004005
call fcn.0040ae00
int3
Function at 0x413f00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5d7c7c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push 0x118
mov ebx, eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.005126f0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x413f69
push esi
push 0x413d50
push 0
push ebx
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
jmp 0x413f72
mov eax, 0x100
or word [esi + 0xc], ax
movzx ecx, word [esi + 0xc]
movzx eax, cx
test ecx, 0x100
je 0x413f92
push 0x586a3c
lea ecx, [esi + 8]
call fcn.00412050
movzx eax, word [esi + 0xc]
movzx ecx, ax
test al, 0x10
je 0x413faa
push str.Tahoma
lea ecx, [esi + 8]
call fcn.00412050
movzx ecx, word [esi + 0xc]
test cl, 1
je 0x413fbc
push 0x586a20
lea ecx, [esi + 8]
call fcn.00412050
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 8]
movsd xmm0, qword [ebp + 8]
mulsd xmm0, qword [0x586a50]
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
cvttsd2si eax, xmm0
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.004acb08
mov esp, ebp
pop ebp
ret 8