joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4337c0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x469238
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4337f9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43390c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43380d
mov eax, 0xffffffc7
jmp 0x43390e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43381e
cmp dword [esi + 8], eax
jne 0x43380d
cmp dword [esi + 8], eax
jne 0x433837
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x433837
mov eax, 0xffffffc7
jmp 0x43390e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43384b
push eax
mov ecx, ebx
call fcn.00432ff0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00406db0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43387c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00406dd0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00432760
test eax, eax
mov dword [esp + 0x38], eax
je 0x4338af
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xf16070
call fcn.00406fb0
mov eax, dword [esp + 0x38]
jmp 0x43390e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433620
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4338f3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433640
mov esi, eax
test esi, esi
jne 0x433923
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433620
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4338c5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xf16070
call fcn.00406fb0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xf16070
call fcn.00406fb0
mov eax, esi
jmp 0x43390e

Function at 0x4369f0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x436a50
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x436a50
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x436a50
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x436a50
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x436a90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43c960
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00462a82
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043c300
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004629b0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045f274
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045f274
push 1
push 0
push 0
mov ecx, esi
call fcn.0045f21c
push 1
push 0
push 1
mov ecx, esi
call fcn.0045f21c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462af4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43cae0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x469888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00462a82
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043c300
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004629b0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43cba4
cmp dword [esp + 0x40], 1
jne 0x43cba2
cmp ecx, eax
jge 0x43cba4
mov eax, ecx
cmp eax, 0xc8
jge 0x43cbb0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043c960
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00462af4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43d330
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4698f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045d694
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00462d2a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464246
test eax, eax
je 0x43d44c
mov ecx, dword [esp + 0x3c]
call fcn.00462d57
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43d410
push edi
mov ecx, esi
call fcn.004603bb
mov ecx, esi
call fcn.0043d5b0
cmp dword [esp + 0x38], 1
jne 0x43d445
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004604f6
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43fe70
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43fea3
push esi
call fcn.00442f60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43fe9c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43ff29
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43ff12
mov eax, dword [esi + 8]
test eax, eax
je 0x43fec7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43ff0e
cmp eax, 2
je 0x43ff12
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43feba
cmp eax, 3
je 0x43feed
cmp eax, 1
jne 0x43feba
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43feba
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43feba
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043ff50
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43ff38
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043ff50
add esp, 4
pop esi
ret

Function at 0x45e48a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45e4c2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c53e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c516
jmp 0x45e4ce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45fb78
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45fbba
call fcn.00465631
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45fbba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45fbb1
xor eax, eax
jmp 0x45fbc2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045fbc8
pop edi
pop esi
pop ebx
ret 4

Function at 0x465b61
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x465b8f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x465bad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00465ac7
jmp 0x465bad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x465bad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00465ac7
test edi, edi
mov eax, edi
jne 0x465b97
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x110f0
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x2c]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1112d
mov eax, dword [ebp - 8]
jmp 0x1121b
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x1c]
and edx, 4
je 0x1114b
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
or edx, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
and eax, 0x10
je 0x11169
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
or eax, 0x10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1c]
and ecx, 4
je 0x11187
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
or ecx, 4
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x20]
and edx, 0x100
je 0x111ab
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
or edx, 0x100
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ecx + 0x20], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c]
or ecx, 0x2000
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [eax + 0x1c], ecx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStack]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x111fb
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 8], 0xc0000001
mov eax, dword [ebp - 8]
jmp 0x1121b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
and edx, 0xffffff7f
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ecx + 0x1c], edx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402774
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
push esi
lea eax, [ebp - 0x278]
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionRun
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
mov edx, 0x20019
push 0
push eax
lea ecx, [ebp - 0x278]
call fcn.004055a6
test eax, eax
jne 0x402831
lea eax, [ebp - 0x174]
push 0x104
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x174]
push 0x5c
push eax
call fcn.0040d260
pop ecx
test eax, eax
pop ecx
je 0x4027dc
inc eax
jmp 0x4027e2
lea eax, [ebp - 0x174]
lea ecx, [ebp - 0x70]
push ecx
push str.__._
push eax
call fcn.0040d228
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x200
push eax
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x70]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 4]
jne 0x40282b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x402833
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret

Function at 0x402836
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
push edi
lea eax, [ebp - 0x270]
push str.HKLMSoftwareMicrosoftWindowsCurrentVersionRun
mov esi, edx
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
mov edx, 0xf003f
push 0
push eax
lea ecx, [ebp - 0x270]
call fcn.004055a6
test eax, eax
jne 0x4028f0
lea eax, [ebp - 0x16c]
push 0x104
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x16c]
push 0x5c
push eax
call fcn.0040d260
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40289f
inc esi
jmp 0x4028a5
lea esi, [ebp - 0x16c]
lea eax, [ebp - 0x68]
push eax
push str.__._
push esi
call fcn.0040d228
add esp, 0xc
push 0x153
push edi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x4028d5
mov ecx, dword [ebp - 4]
push esi
lea edx, [ebp - 0x68]
call fcn.004058f8
jmp 0x4028e2
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x4028f2
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x40295a
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
xor edi, edi
mov esi, edx
push edi
push str.TxtOK
push 0x418268
push 1
pop edx
mov ecx, esi
call fcn.00404e88
mov ecx, esi
push edi
push str.TxtCancel
push 0x418254
push 2
pop edx
call fcn.00404e88
mov ecx, esi
push edi
push str.TxtApply
push 0x418240
push 3
pop edx
call fcn.00404e88
mov edx, 0x14b
mov ecx, esi
push 1
push str.MTxOptResMenu
push edi
call fcn.00404e88
mov edx, 0x151
mov ecx, esi
push edi
push str.TxOptAfter
push edi
call fcn.00404e88
mov edx, 0x14c
mov ecx, esi
push edi
push str.TxOptRestart
push edi
call fcn.00404e88
mov edx, 0x14d
mov ecx, esi
push edi
push str.TxOptApply
push edi
call fcn.00404e88
mov edx, 0x14e
mov ecx, esi
push edi
push str.TxOptAsk
push edi
call fcn.00404e88
mov edx, 0x14f
mov ecx, esi
push edi
push str.MTxOptShowUt
push edi
call fcn.00404e88
mov edx, 0x150
mov ecx, esi
push edi
push str.MTxOptUtItems
push edi
call fcn.00404e88
mov edx, 0x154
mov ecx, esi
push edi
push str.MTxOptShIconMenu
push edi
call fcn.00404e88
mov edx, 0x156
mov ecx, esi
push edi
push str.MTxOptShBanner
push edi
call fcn.00404e88
push edi
push str.MTxOptLoad
push edi
mov edx, 0x153
mov ecx, esi
call fcn.00404e88
mov edx, 0x3fe
mov ecx, esi
push edi
push str.MTxOptChkEvry
push edi
call fcn.00404e88
mov edx, 0x400
mov ecx, esi
push edi
push str.MTxOptChkSec
push edi
call fcn.00404e88
mov ecx, esi
mov edx, str.DlgOpt
pop edi
pop esi
jmp fcn.00405157
Function at 0x405457
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push edi
push 0x41cc20
mov esi, ecx
push edx
mov dword [ebp - 0xc], edx
call ebx
and dword [ebp - 4], 0
cmp byte [esi + 1], 0x3a
je 0x4054b2
lea eax, [ebp - 0x42c]
push 0x410
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x42c]
push 0x418568
push eax
call edi
lea eax, [ebp - 0x42c]
push esi
push eax
call edi
jmp 0x4054bc
lea eax, [ebp - 0x42c]
push esi
push eax
call ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x42c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
push esi
call fcn.0040d14e
mov edi, eax
pop ecx
test edi, edi
je 0x405594
push edi
push esi
lea eax, [ebp - 0x42c]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40558a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
movzx ecx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 3]
push ecx
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
push ecx
push eax
lea eax, [ebp - 0x83c]
push str.StringFileInfo_02x_02x_02x_02x_s
push eax
call esi
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x83c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
mov dword [ebp - 4], eax
jne 0x405582
push dword [ebp + 8]
lea eax, [ebp - 0x83c]
push str.StringFileInfo040904E4_s
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x83c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 4], eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call ebx
push edi
call fcn.0040d0e5
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4058f8
Capabilities:
Set registry value

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4

Function at 0x405924
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x405940
push 0x4184fc
jmp 0x405945
push 0x418500
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x100]
push eax
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
leave
ret 4
Function at 0x405996
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
mov esi, 0x9c
xor ebx, ebx
push esi
lea eax, [ebp - 0xa4]
push ebx
mov dword [ebp - 8], ecx
push eax
mov dword [ebp - 4], ebx
call fcn.0040cd50
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x4059f3
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], 0x94
push eax
call esi
test eax, eax
je 0x405b7a
push edi
push 1
pop esi
cmp dword [ebp - 0x94], esi
jne 0x405ab5
lea ecx, [ebp - 0x90]
call fcn.0040597e
cmp dword [ebp - 0xa0], 4
mov edi, eax
jne 0x405b5e
cmp dword [ebp - 0x9c], 0
jne 0x405a78
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x41cc20
push edi
call esi
test eax, eax
je 0x405a6c
push 0x418600
push edi
call esi
test eax, eax
je 0x405a6c
push 0x4185fc
push edi
call esi
test eax, eax
je 0x405a60
push 0x4185f8
push edi
call esi
test eax, eax
jne 0x405b5e
mov dword [ebp - 4], 2
jmp 0x405b5e
mov dword [ebp - 4], 1
jmp 0x405b5e
cmp dword [ebp - 0x9c], 0xa
jne 0x405aa3
cmp word [ebp - 0x98], 0x8ae
mov dword [ebp - 4], 8
jne 0x405b5e
mov dword [ebp - 4], 0x10
jmp 0x405b5e
jbe 0x405b5e
mov dword [ebp - 4], 0x20
jmp 0x405b5e
cmp dword [ebp - 0x94], 2
jne 0x405b5e
mov eax, dword [ebp - 0xa0]
cmp eax, 3
jne 0x405ad6
mov dword [ebp - 4], 0x80
jmp 0x405b0c
cmp eax, 4
jne 0x405ae4
mov dword [ebp - 4], 0x100
jmp 0x405b0c
cmp eax, 5
jne 0x405b0c
cmp dword [ebp - 0x9c], esi
mov dword [ebp - 4], 0x200
jne 0x405b0c
cmp word [ebp - 0x10], si
mov dword [ebp - 4], 0x400
jb 0x405b0c
mov dword [ebp - 4], 0x800
cmp byte [ebp - 0xa], 1
jne 0x405b2d
test byte [ebp - 3], 0xc
je 0x405b5e
mov ebx, dword [ebp - 0xc]
and bx, 0x200
neg bx
sbb ebx, ebx
and ebx, 0xfffffff0
add ebx, 0x20
jmp 0x405b5e
cmp byte [ebp - 0xa], 3
jne 0x405b5e
test byte [ebp - 3], 0xc
mov ebx, 0x10000000
je 0x405b41
add ebx, 0x40
test byte [ebp - 0xc], 0x80
je 0x405b4b
or ebx, esi
jmp 0x405b5e
test byte [ebp - 0xc], 2
je 0x405b5e
cmp eax, 4
jne 0x405b5b
or ebx, 2
jmp 0x405b5e
or ebx, 4
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
pop edi
je 0x405b6e
or bl, 0x80
mov eax, dword [ebp - 8]
test eax, eax
je 0x405b77
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x4060cc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
mov esi, edx
xor edx, edx
call fcn.00405e20
lea ecx, [ebp - 4]
lea edx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.00405e3f
lea eax, [ebp - 0x20c]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push str.SetLogo:_w_d__h_d__bpp_d_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 8
pop eax
cmp eax, dword [ebp - 4]
push 0
sbb eax, eax
neg eax
add eax, 0x90
push eax
push 0x701
push 0x8f
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
pop esi
leave
ret