joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402140
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40218b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402184
test esi, esi
je 0x402184
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402160
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402370
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4023c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402498
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4023fe
cmp eax, 4
jne 0x402420
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40240e
cmp edx, 4
je 0x40240e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402370
Function at 0x4070c3
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407108
push esi
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x407107
push 0xc00
mov ecx, esi
call dword [0x41b2b0]
call esi
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004095e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x407145
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x421398
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040797f
leave
ret

Function at 0x4071dd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0x41c]
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004095e0
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.004095e0
add esp, 0x18
mov dword [ebp - 0x420], ebx
mov ecx, 0x105
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], ebx
push ecx
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push ecx
lea eax, [ebp - 0x41c]
push eax
push 0x42281c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov edi, 0x104
test eax, eax
je 0x40727d
push 0xa
push edi
push esi
push dword [ebp - 0x420]
call fcn.0040cf72
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x407297
push str.thsnYaViMRAeBoda
mov edx, edi
mov ecx, esi
call fcn.00403aa0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040797f
leave
ret

Function at 0x40a212
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40a24d
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40a234
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40a245
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40a24f
inc edi
add eax, 0x28
cmp edi, esi
jb 0x40a22a
invalid
xor eax, eax
pop edi
pop esi
ret
Function at 0x40aa6b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esp + edi*8 - 0x17af0001], ebp
insb byte es:[edi], dx
idiv edi
call [ecx + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040a197
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0040a1e2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040a197
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0040a1e2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040a197
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0040a1d2
push ebx
mov bh, 0x3b
inc ebx
and byte [ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0040a1e2
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040a197
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0040a1d2
mov ecx, 0x80223ea6
movsd dword es:[edi], dword [esi]
pushfd
stc
invalid
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
je 0x401094
cmp dword [ebp + 0xc], ebx
je 0x401094
cmp dword [ebp + 0x10], ebx
je 0x401094
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x401094
push 4
push 0x1000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
je 0x401094
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401087
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.FileVersion
call fcn.0040109c
add esp, 0x10
test al, al
je 0x401087
mov eax, dword [ebp + 0x10]
dec eax
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00401666
add esp, 0xc
mov byte [ebp - 1], 1
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40119e
Capabilities:
Check os version

Disassembly:
push esi
mov esi, ecx
push esi
mov dword [esi], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4012bc
mov eax, dword [esi + 0x10]
dec eax
je 0x401257
dec eax
jne 0x40129b
mov eax, dword [esi + 4]
sub eax, 3
je 0x401220
dec eax
je 0x401211
dec eax
jne 0x40129b
mov eax, dword [esi + 8]
sub eax, 0
je 0x401202
dec eax
je 0x4011f3
mov dword [esi + 0x9c], 0xc
jmp 0x4012c6
mov dword [esi + 0x9c], 0xb
jmp 0x4012c6
mov dword [esi + 0x9c], 0xa
jmp 0x4012c6
mov dword [esi + 0x9c], 9
jmp 0x4012c6
mov eax, dword [esi + 8]
dec eax
je 0x40124b
sub eax, 4
je 0x40123f
sub eax, 0x2e
jne 0x40129b
mov dword [esi + 0x9c], 8
jmp 0x4012c6
mov dword [esi + 0x9c], 7
jmp 0x4012c6
mov dword [esi + 0x9c], 6
jmp 0x4012c6
push 4
pop ecx
cmp dword [esi + 4], ecx
jne 0x40129b
mov eax, dword [esi + 8]
test eax, eax
je 0x401284
cmp eax, 0xa
je 0x40127c
cmp eax, 0x5a
jne 0x40129b
mov dword [esi + 0x9c], 5
jmp 0x4012c6
mov dword [esi + 0x9c], ecx
jmp 0x4012c6
movzx eax, word [esi + 0xc]
sub eax, 0x3b6
je 0x4012bc
sub eax, 0xa1
je 0x4012b0
sub eax, 0x65
je 0x4012a4
and dword [esi + 0x9c], 0
jmp 0x4012c6
mov dword [esi + 0x9c], 3
jmp 0x4012c6
mov dword [esi + 0x9c], 2
jmp 0x4012c6
mov dword [esi + 0x9c], 1
mov eax, esi
pop esi
ret
Function at 0x40130f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x401386
cmp dword [ebp - 0x90], 3
mov eax, 0x20000
jne 0x401352
cmp dword [ebp - 0x8c], 0x33
jne 0x40137f
inc eax
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x40137f
cmp dword [ebp - 0x8c], 0
jne 0x40136b
mov eax, 0x20004
leave
ret
cmp dword [ebp - 0x8c], 1
jne 0x4013fa
mov eax, 0x20008
leave
ret
mov eax, 0x20002
leave
ret
cmp dword [ebp - 0x84], 1
jne 0x4013f5
cmp dword [ebp - 0x90], 4
mov eax, 0x10000
jne 0x4013fa
cmp dword [ebp - 0x8c], 0
jne 0x4013d5
movzx ecx, word [ebp - 0x88]
sub ecx, 0x3b6
je 0x4013ce
sub ecx, 0xa1
je 0x4013c7
sub ecx, 0x65
jne 0x4013fa
add eax, 4
leave
ret
mov eax, 0x10002
leave
ret
mov eax, 0x10001
leave
ret
cmp dword [ebp - 0x8c], 0xa
jne 0x4013e5
mov eax, 0x10008
leave
ret
cmp dword [ebp - 0x8c], 0x5a
jne 0x4013fa
mov eax, 0x10010
leave
ret
mov eax, 0x40001
leave
ret

Function at 0x4013fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401452
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 1
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401449
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret

Function at 0x401457
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4014a9
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x14]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4014a0
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4014ae
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x1c], esi
je 0x4014d9
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x467e68
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4014ef
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401518
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40150f
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40151d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x401548
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x467e68
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x40155e
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401587
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40157e
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40158c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x1c], esi
je 0x4015b7
lea eax, [ebp + 0xc]
push esi
push eax
push esi
push 0xf003f
push esi
push 0x467e68
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x4015cd
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015f6
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4015ed
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4015fb
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401637
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x40162e
push 1
pop esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x405c6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
mov dword [ebp - 8], ebx
je 0x405cd4
call fcn.00405d50
cmp eax, 2
lea eax, [ebp + 0xc]
push eax
push 0x20019
push ebx
jne 0x405c96
push str.SYSTEMCurrentControlSetServicesMGACtrlPowerDesk
jmp 0x405c9b
push str.SoftwareMatroxPowerDeskVersion6CurrentSettings
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405cec
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push str.SelectedLanguage
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405cec
mov eax, dword [ecx + 0x2c]
cmp eax, ebx
jne 0x405ce0
mov eax, 0x444464
push eax
lea eax, [ebp - 4]
push eax
call fcn.004155a0
pop ecx
pop ecx
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xf]
push ebx
mov ecx, esi
mov byte [esi], al
call fcn.00404e00
lea eax, [ebp - 4]
push eax
call fcn.00415410
pop ecx
push eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00404e9a
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x405d50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x84], 2
jne 0x405da9
cmp dword [ebp - 0x90], 3
jne 0x405d92
cmp dword [ebp - 0x8c], 0x33
jne 0x405da2
mov eax, 0x20001
leave
ret
cmp dword [ebp - 0x90], 5
jne 0x405da2
mov eax, 0x20004
leave
ret
mov eax, 0x20002
leave
ret
cmp dword [ebp - 0x84], 1
jne 0x405e18
cmp dword [ebp - 0x90], 4
mov eax, 0x10000
jne 0x405e1d
cmp dword [ebp - 0x8c], 0
jne 0x405df8
movzx ecx, word [ebp - 0x88]
sub ecx, 0x3b6
je 0x405df1
sub ecx, 0xa1
je 0x405dea
sub ecx, 0x65
jne 0x405e1d
add eax, 4
leave
ret
mov eax, 0x10002
leave
ret
mov eax, 0x10001
leave
ret
cmp dword [ebp - 0x8c], 0xa
jne 0x405e08
mov eax, 0x10008
leave
ret
cmp dword [ebp - 0x8c], 0x5a
jne 0x405e1d
mov eax, 0x10010
leave
ret
mov eax, 0x40001
leave
ret
Function at 0x4061a6
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4402c0
call fcn.004151bc
sub esp, 0x48
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0xd], bl
je 0x40622b
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push 0xf003f
push ebx
push str.MTXClass
push ebx
push str.SoftwareMatroxPowerDeskVersion6CurrentSettings
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40622b
mov eax, dword [edi + 4]
mov ecx, 0x444464
cmp eax, ebx
mov edx, ecx
je 0x4061ff
mov edx, eax
cmp eax, ebx
mov esi, ecx
je 0x406207
mov esi, eax
push edx
call fcn.00415410
pop ecx
inc eax
push eax
push esi
push 1
push ebx
push str.SelectedLanguage
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.00405982
test al, al
je 0x406327
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x54]
mov byte [ebp - 0x54], al
call fcn.00404e00
mov esi, 0x467e68
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x54]
call fcn.00404e9a
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x44], al
call fcn.00404e00
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00404e9a
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
mov byte [ebp - 0x34], al
call fcn.00404e00
mov edi, str.SETUPRES.DLL
push edi
call fcn.00415410
pop ecx
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.00404e9a
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
mov byte [ebp - 0x24], al
call fcn.00404e00
push esi
call fcn.00415410
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00404e9a
lea eax, [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00405a01
push 1
lea ecx, [ebp - 0x24]
pop esi
mov byte [ebp - 4], 2
push esi
call fcn.00404e00
push esi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00404e00
mov byte [ebp - 4], bl
push esi
lea ecx, [ebp - 0x44]
call fcn.00404e00
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp - 0x54]
call fcn.00404e00
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4091cc
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x44073f
call fcn.004151bc
sub esp, 0x40c
mov eax, dword [0x466c7c]
and dword [ebp - 0x18], 0
push esi
mov dword [ebp - 0x10], eax
push 1
mov dword [ebp - 0x14], eax
pop esi
mov dword [ebp - 4], esi
mov eax, dword [ecx + 0x1a8]
mov byte [ebp - 4], 2
test eax, eax
je 0x409286
mov ecx, dword [ecx + 0x1a4]
mov eax, dword [ecx + eax*4 - 4]
lea ecx, [ebp - 0x14]
add eax, 0x34
push eax
call fcn.00432a96
push dword [ebp - 0x14]
lea eax, [ebp - 0x418]
push 0x400
push eax
push str.AddReg.PackageVer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea eax, [ebp - 0x418]
lea ecx, [ebp - 0x10]
push eax
call fcn.00432ae6
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00431bd4
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0043191a
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00431bd4
inc eax
lea ecx, [ebp - 0x10]
push eax
push 0
call fcn.0043191a
push str.Matrox_PowerDesk
push 0
lea ecx, [ebp - 0x10]
call fcn.00431972
jmp 0x4092ab
push edi
mov edi, str.Matrox_PowerDesk
push edi
lea ecx, [ebp - 0x10]
call fcn.00432ae6
push str.Setup
push edi
call fcn.00415410
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00431972
pop edi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0043271e
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004329a9
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004329a9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x409536
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, 0x4407d0
call fcn.004151bc
sub esp, 0x10
mov eax, dword [0x466c7c]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call fcn.00408f7c
mov edi, 0x453458
mov byte [ebp - 4], 2
push edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00432b8c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00432a96
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004329a9
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004329a9
mov esi, 0x462974
lea ecx, [ebp - 0x14]
push esi
call fcn.00432c5f
add ebx, 0x238
push edi
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.00432b8c
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00432a96
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004329a9
push esi
lea ecx, [ebp - 0x10]
call fcn.00432c5f
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, 0x80
push edi
push dword [ebp - 0x10]
call esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push edi
mov ebx, eax
push dword [ebp - 0x10]
call esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004329a9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004329a9
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret