joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401998
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.0040f902
xor edi, edi
add esp, 0xc
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], eax
cmp dword [esi + 0x158], edi
je 0x401a0d
add esi, 0x34
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
cmp esi, edi
je 0x401a1a
push edi
lea eax, [ebp - 0x108]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x401a1a
lea eax, [ebp - 0x104]
push eax
call fcn.0040f725
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040d418
leave
ret

Function at 0x401f98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
jne 0x401fb1
push 0x80004005
call fcn.00401b48
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x402000
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x401ffe
cmp dword [ebp + 0x10], ebx
jbe 0x401ffb
cmp dword [ebp + 0x10], 2
jbe 0x402007
cmp dword [ebp + 0x10], 7
jne 0x401ffb
cmp ecx, 1
jb 0x401ffb
lea edx, [ecx + esi]
cmp byte [edx - 1], bl
jne 0x401ffb
cmp ecx, 1
jbe 0x402000
cmp byte [edx - 2], bl
je 0x402000
push 0xd
pop eax
mov byte [esi], bl
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp byte [ecx + esi - 1], bl
jmp 0x401ff9

Function at 0x402069
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4020b7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x4020c8
push 0xd
pop eax
jmp 0x4020f2
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4020cb
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x402df9
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00401f57
mov ebx, eax
cmp ebx, esi
je 0x402e69
lea ecx, [ebp - 0x70]
call fcn.00401ee2
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d418
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402e81
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00402df9
cmp eax, esi
jne 0x402eb3
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x402e71
lea ecx, [ebp - 0x70]
call fcn.00401ee2
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00401e87
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00401ee2
mov eax, esi
jmp 0x402e4f
Function at 0x4070e5
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push ebx
push esi
mov esi, dword [ebp + 0xa8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x41e514
push 0x64
push esi
mov ebx, 0x4269c8
push 0x425008
mov ecx, ebx
mov dword [ebp - 0x6c], eax
call fcn.00402ae7
mov esi, 0x41ef2c
lea edi, [ebp - 0x74]
lea eax, [ebp - 0x74]
movsw word es:[edi], word [esi]
push eax
push dword [ebp - 0x6c]
mov dword [0x426b20], 1
movsb byte es:[edi], byte [esi]
call fcn.00401678
mov esi, eax
xor edi, edi
pop ecx
pop ecx
cmp esi, edi
je 0x407194
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x4071de
push str.RegServer
push esi
call edi
test eax, eax
je 0x4071e7
push str.Service
push esi
call edi
test eax, eax
je 0x4071f4
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.00401678
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40715c
xor edi, edi
mov esi, 0x20019
push esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.00401f57
mov dword [ebp - 0x6c], eax
cmp eax, edi
je 0x4071f8
lea ecx, [ebp - 0x7c]
call fcn.00401ee2
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d418
add ebp, 0xa0
leave
ret 0x10
mov ecx, ebx
call fcn.00405a83
jmp 0x4071c4
push 0
push 1
mov ecx, ebx
call fcn.00405990
jmp 0x4071c4
push 1
jmp 0x4071e9
push esi
push str.9E2276AD_34E9_4200_BC0F_42AEB3105E1E
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
call fcn.00401f57
cmp eax, edi
je 0x407229
mov esi, eax
lea ecx, [ebp - 0x70]
call fcn.00401ee2
lea ecx, [ebp - 0x7c]
call fcn.00401ee2
mov eax, esi
jmp 0x4071c4
lea eax, [ebp - 0x80]
push eax
push str.LocalService
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x80], 0x104
call fcn.00401f98
mov dword [0x426b20], edi
cmp eax, edi
jne 0x407259
mov dword [0x426b20], 1
mov ecx, ebx
call fcn.0040709b
mov esi, dword [0x426b0c]
jmp 0x407215

Function at 0x4082fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20019
push esi
push esi
push esi
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408326
xor eax, eax
jmp 0x40835f
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
je 0x408354
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408322
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
pop esi
leave
ret 8
Function at 0x408364
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ecx + 4]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40838c
xor eax, eax
pop esi
leave
ret 4
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4083ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408387
xor esi, esi
inc esi
jmp 0x4083a0

Function at 0x408410
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.00408364
test eax, eax
jne 0x408429
inc eax
pop esi
leave
ret 4
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
lea eax, [esi + 4]
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x408448
xor eax, eax
jmp 0x408424
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor esi, esi
test eax, eax
je 0x408467
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408424
inc esi
jmp 0x40845a

Function at 0x40847a
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
push edi
push 0xf003f
xor edi, edi
xor esi, esi
push edi
inc esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x4084ac
mov dword [ebp - 4], edi
jmp 0x408563
push ebx
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, edi
je 0x40854d
cmp dword [ebp + 0xc], esi
jne 0x408516
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x240
lea eax, [ebp - 0x270]
push eax
push 2
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
cmp eax, esi
jne 0x408516
mov esi, dword [ebp - 0x10]
dec esi
cmp esi, edi
jl 0x408516
mov eax, esi
imul eax, eax, 0x24
lea edi, [ebp + eax - 0x270]
mov ecx, dword [ebp - 0xc]
push 0
push dword [edi]
call fcn.0040847a
dec esi
sub edi, 0x24
test esi, esi
jge 0x408500
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x408550
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x40853c
cmp dword [ebp - 0x2c], 2
jne 0x408547
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
test eax, eax
jne 0x40852b
cmp dword [ebp - 0x2c], 4
je 0x408550
mov dword [ebp - 4], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp ebx, edi
je 0x40855d
push ebx
call esi
push dword [ebp - 8]
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40856c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
push edi
push 0xf003f
xor edi, edi
xor esi, esi
push edi
inc esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x40859e
mov dword [ebp - 4], edi
jmp 0x408653
push ebx
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, edi
jne 0x4085bc
mov dword [ebp - 4], edi
jmp 0x408640
cmp dword [ebp + 0xc], esi
jne 0x408601
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x240
lea eax, [ebp - 0x270]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
cmp eax, esi
jne 0x408601
cmp dword [ebp - 8], edi
jbe 0x408601
lea esi, [ebp - 0x270]
mov ecx, dword [ebp - 0x10]
push 0
push dword [esi]
call fcn.0040856c
inc edi
add esi, 0x24
cmp edi, dword [ebp - 8]
jb 0x4085ec
lea eax, [ebp - 0x30]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x408640
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x40862b
cmp dword [ebp - 0x2c], 3
jne 0x408636
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
test eax, eax
jne 0x40861a
cmp dword [ebp - 0x2c], 1
je 0x408640
and dword [ebp - 4], 0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x40864d
push ebx
call esi
push dword [ebp - 0xc]
call esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40865c
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x24
lea ecx, [ebp - 0x38]
push ecx
push 1
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push eax
call edi
test eax, eax
jne 0x408731
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x408731
mov eax, dword [ebp - 0xc]
push 0x24
pop ecx
xor edx, edx
add eax, 0x24
div ecx
xor ecx, ecx
push 0x24
pop edx
mov esi, eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00410322
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x408731
lea ecx, [ebp - 0x14]
imul esi, esi, 0x24
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x408731
xor edi, edi
cmp dword [ebp - 4], ebx
jbe 0x408725
mov esi, dword [ebp - 8]
push dword [esi]
push dword [ebp + 8]
call fcn.0041084c
pop ecx
pop ecx
test eax, eax
je 0x408725
inc edi
add esi, 0x24
cmp edi, dword [ebp - 4]
jb 0x40870c
xor eax, eax
cmp edi, dword [ebp - 4]
setne al
mov esi, eax
jmp 0x408733
xor esi, esi
cmp dword [ebp - 0x10], ebx
je 0x408741
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 8], ebx
je 0x40874f
push dword [ebp - 8]
call fcn.0041003b
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x408782
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xac
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp + 0x70], eax
or dword [ebp - 0x28], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
cmp edi, ebx
je 0x4088db
mov esi, 0x94
push esi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.0040d0d0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4088de
cmp dword [ebp - 0x20], 5
jne 0x408853
cmp dword [ebp - 0x1c], ebx
jne 0x408853
push str.Program_Manager
push str.Progman
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x4088db
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x2c]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x4088db
lea ecx, [ebp - 0x28]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
push 1
push 2
push ebx
push 0x2000f
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4088db
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.Kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x408878
push str.WTSGetActiveConsoleSessionId
push eax
call edi
mov dword [ebp - 0x38], eax
cmp dword [0x427bb4], ebx
jne 0x40889d
push str.Wtsapi32.dll
call esi
mov dword [0x427bb4], eax
cmp eax, ebx
je 0x40889d
push str.WTSQueryUserToken
push eax
call edi
mov dword [0x427bb0], eax
lea eax, [ebp - 0x28]
push eax
call dword [ebp - 0x38]
push eax
call dword [0x427bb0]
test eax, eax
je 0x4088cd
push dword [ebp - 0x34]
push 1
push 2
push ebx
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x4088db
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d418
add ebp, 0x74
leave
ret
Function at 0x4088f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4254b0]
mov ecx, dword [eax]
push ebx
push esi
push dword [ebp + 8]
mov esi, str.CServiceModuleBase::RunApplication__
push esi
push str._s_pszModule:_s
push eax
call dword [ecx + 4]
push dword [ebp + 0xc]
mov eax, dword [0x4254b0]
mov ecx, dword [eax]
push esi
push str._s_pszParam:_s
push eax
call dword [ecx + 4]
push dword [ebp + 0x10]
mov eax, dword [0x4254b0]
mov ecx, dword [eax]
push esi
push str._s_pszCurDir:_s
push eax
call dword [ecx + 4]
xor esi, esi
push 0x44
lea eax, [ebp - 0x5c]
push esi
push eax
xor ebx, ebx
mov dword [ebp - 4], esi
call fcn.0040d0d0
push 0x10
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040d0d0
add esp, 0x48
push 5
pop eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x54], str.Winsta0Default
mov dword [ebp - 0x5c], 0x44
call fcn.00408782
pop ecx
test eax, eax
je 0x4089d7
push esi
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4089ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
push 0x400
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x4089bb
inc ebx
jmp 0x4089c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], esi
je 0x4089ce
push dword [ebp - 4]
call sub.USERENV.dll_DestroyEnvironmentBlock
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x408a3e
Capabilities:
Check os version
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0xda0
lea ebp, [esp - 4]
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp + 0xda0], eax
push 0x18
mov eax, 0x41cd69
call fcn.0040d80d
mov esi, 0x94
push esi
xor ebx, ebx
lea eax, [ebp + 0x808]
push ebx
push eax
call fcn.0040d0d0
add esp, 0xc
lea eax, [ebp + 0x808]
push eax
mov dword [ebp + 0x808], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 0x80c], 6
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
jne 0x408aaf
cmp dword [ebp + 0x810], ebx
jne 0x408ab1
cmp dword [ebp + 0x80c], 6
mov byte [ebp - 0xe], 1
jb 0x408ab5
mov byte [ebp - 0xd], 1
push 0x101
lea eax, [ebp + 0xc9c]
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0x100
call fcn.0040d0d0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc9c]
push eax
push ebx
mov esi, SysStringLen
jmp 0x408c59
cmp eax, ebx
jne 0x408c25
lea eax, [ebp + 0xc9c]
push str.S_1_5_21_
push eax
call fcn.004108a0
pop ecx
pop ecx
lea ecx, [ebp + 0xc9c]
cmp eax, ecx
jne 0x408c25
cmp byte [ebp - 0xe], bl
je 0x408b8f
push str.SoftwareMicrosoftWindows_Photo_GallerySlideshow
mov eax, ecx
push eax
lea eax, [ebp + 0x89c]
push str._s_s
push eax
call fcn.0040d39b
add esp, 0x10
lea eax, [ebp + 0x89c]
push eax
push esi
lea ecx, [ebp]
call fcn.004083fa
lea eax, [ebp - 0x14]
push eax
push str.WinSATScore
lea ecx, [ebp]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.004082fb
cmp eax, 1
jne 0x408b83
cmp dword [ebp - 0x14], 0x89
jne 0x408b83
push str.WinSATScore
lea ecx, [ebp]
call fcn.00408410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004194c4
cmp byte [ebp - 0xd], bl
je 0x408c25
push str.SoftwareMicrosoftWindows_LivePhoto_GallerySlideshow
lea eax, [ebp + 0xc9c]
push eax
lea eax, [ebp + 0x89c]
push str._s_s
push eax
call fcn.0040d39b
add esp, 0x10
lea eax, [ebp + 0x89c]
push eax
push esi
lea ecx, [ebp + 0x404]
call fcn.004083fa
lea ecx, [ebp + 0x404]
mov dword [ebp - 4], 1
call fcn.004083c9
test eax, eax
je 0x408c16
lea eax, [ebp - 0x14]
push eax
push str.WinSATScore
lea ecx, [ebp + 0x404]
mov dword [ebp - 0x14], ebx
call fcn.004082fb
cmp eax, 1
jne 0x408c16
cmp dword [ebp - 0x14], 0x89
jne 0x408c16
push str.WinSATScore
lea ecx, [ebp + 0x404]
call fcn.00408410
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x404]
call fcn.004194c4
inc dword [ebp - 0x18]
push 0x101
lea eax, [ebp + 0xc9c]
push ebx
push eax
mov dword [ebp - 0x1c], 0x100
call fcn.0040d0d0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0xc9c]
push eax
push dword [ebp - 0x18]
push esi
call edi
cmp eax, 0x103
jne 0x408af7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xda0]
xor ecx, ebp
call fcn.0040d418
add ebp, 0xda4
leave
ret 4
Function at 0x408e4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp + 0x94], eax
and dword [ebp - 0x78], 0
push ebx
mov ebx, dword [ebp + 0xa0]
push esi
push edi
mov edi, dword [ebp + 0xa4]
mov esi, 0x104
push esi
lea eax, [ebp - 0x70]
push 0
push eax
call fcn.0040d0d0
and dword [ebp - 0x74], 0
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x20019
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408eff
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x408eff
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
mov dword [ebp - 0x78], 1
call fcn.00405bd4
mov esi, 0x41f57c
push esi
push esi
mov ecx, edi
call fcn.00408d7b
mov ecx, eax
call fcn.00408dd9
push esi
mov ecx, edi
call fcn.00407508
cmp dword [ebp - 0x74], 0
pop edi
pop esi
pop ebx
je 0x408f11
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
mov eax, dword [ebp - 0x78]
xor ecx, ebp
call fcn.0040d418
add ebp, 0x98
leave
ret 8

Function at 0x4099ea
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x425630]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 8
mov eax, 0x41cdb4
call fcn.0040d80d
push 0x427bf0
lea ecx, [ebp - 0x10]
call fcn.00403187
movsx eax, byte [ebp + 0x10c]
push eax
lea eax, [ebp - 0x10]
push str._c:_
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00405d75
add esp, 0xc
mov dword [ebp - 0x14], ebx
mov esi, 0x100
mov edi, str.CUDFindDeviceMgr::VolumeLabelChk__
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.0040d0d0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x409acd
cmp byte [ebp + 0x110], bl
je 0x409a9b
mov eax, dword [0x425488]
mov ecx, dword [eax]
push edi
push str._s_Retry__
push eax
call dword [ecx + 4]
add esp, 0xc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x32
jl 0x409a46
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025f9
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.0040d418
add ebp, 0x104
leave
ret 8
mov eax, dword [0x425488]
mov ecx, dword [eax]
lea edx, [ebp]
push edx
push edi
push str._s_VolName:_s
push eax
call dword [ecx + 4]
lea eax, [ebp]
push str.EPSON_PJ_UD
push eax
call fcn.00411250
add esp, 0x18
test eax, eax
je 0x409b06
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004025f9
mov eax, ebx
jmp 0x409aa8
xor ebx, ebx
inc ebx
jmp 0x409af7