joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e70
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 0x201
push esi
jne 0x407ee2
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
jne 0x4080de
mov eax, dword [esp + 0x14]
push 0x4380f0
mov dword [0x438100], 1
mov dword [0x4380fc], eax
mov dword [0x4380f8], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x4380e0
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
je 0x4080de
push esi
call dword [sym.imp.USER32.dll_SetCapture]
xor eax, eax
pop esi
add esp, 8
ret
cmp eax, 0x200
jne 0x408080
mov eax, dword [0x438100]
test eax, eax
je 0x4080de
call dword [sym.imp.USER32.dll_GetCapture]
mov esi, dword [esp + 0x10]
cmp eax, esi
jne 0x40803b
lea ecx, [esp + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0xc]
mov edx, dword [0x4380f4]
mov eax, dword [esp + 8]
mov edi, dword [0x4380f0]
sub ecx, edx
mov edx, dword [0x4380fc]
sub eax, edi
test edx, edx
je 0x407fe7
cmp edx, 2
je 0x407fe7
cmp edx, 3
je 0x407fc3
cmp edx, 4
je 0x407fc3
cmp edx, 5
je 0x407f94
cmp edx, 7
je 0x407f94
cmp edx, 6
je 0x407f69
cmp edx, 1
jne 0x408017
mov edi, dword [0x4380e0]
add edi, eax
mov eax, dword [0x4380e4]
mov dword [0x4380d4], eax
mov eax, dword [0x4380e8]
mov dword [0x4380d8], eax
mov eax, dword [0x4380ec]
mov dword [0x4380d0], edi
add eax, ecx
jmp 0x408012
mov edi, dword [0x4380e0]
mov dword [0x4380d0], edi
mov edi, dword [0x4380e4]
mov dword [0x4380d4], edi
mov edi, dword [0x4380e8]
add edi, eax
mov eax, dword [0x4380ec]
mov dword [0x4380d8], edi
add eax, ecx
jmp 0x408012
mov edi, dword [0x4380e0]
mov dword [0x4380d0], edi
mov edi, dword [0x4380e4]
add edi, ecx
mov ecx, dword [0x4380e8]
mov dword [0x4380d4], edi
add ecx, eax
jmp 0x408007
mov edi, dword [0x4380e0]
add edi, eax
mov eax, dword [0x4380e4]
add eax, ecx
mov ecx, dword [0x4380e8]
mov dword [0x4380d0], edi
mov dword [0x4380d4], eax
mov eax, dword [0x4380ec]
mov dword [0x4380d8], ecx
mov dword [0x4380dc], eax
push 0x4380d0
push edx
push 0x1788
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov dword [0x4380f8], 1
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [0x4380f8]
mov dword [0x438100], 0
test eax, eax
je 0x4080de
push 0x4380d0
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [0x4380fc]
push 0x4380d0
or ch, 1
push ecx
push 0x1788
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
add esp, 8
ret
cmp eax, 0x202
jne 0x4080de
mov eax, dword [0x438100]
test eax, eax
je 0x4080de
mov eax, dword [0x4380f8]
mov esi, dword [esp + 0x10]
test eax, eax
mov dword [0x438100], 0
je 0x4080ce
push 0x4380d0
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [0x4380fc]
push 0x4380d0
or dh, 1
push edx
push 0x1788
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, esi
jne 0x4080de
call dword [sym.imp.USER32.dll_ReleaseCapture]
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x408860
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x208
lea eax, [esp]
push esi
mov esi, ecx
push eax
call fcn.00407c30
add esp, 4
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x408904
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ResFontName
push eax
call edi
mov edx, dword [esi + 4]
push str.ResFontSize
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.ResFontOffsetV
push eax
call edi
mov ecx, dword [esi + 4]
push str.ResFontSet
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push str.ResFontHeigh
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.ResGetConst
push eax
call edi
mov ecx, dword [esi + 4]
push str.ResLogFont
push ecx
mov dword [esi + 0x1c], eax
call edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.00408970
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x208
ret
xor eax, eax
pop esi
add esp, 0x208
ret
Function at 0x408b90
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
push str.SOFTWAREClasses.tvpi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x10000
call fcn.00408b50
add esp, 8
cmp eax, ebx
jne 0x408d95
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1e
push str.tvpi_auto_file
push 1
push ebx
push 0x437430
push ecx
call esi
mov edx, dword [esp + 0x10]
push 0x3c
push str.application_x_tv_program_info
push 1
push ebx
push str.Content_Type
push edx
call esi
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push str.SOFTWAREClasses_tvpi_auto_file
call fcn.00408b50
add esp, 8
cmp eax, ebx
jne 0x408d95
mov edx, dword [esp + 0x10]
push 0x2e
push str.PVR_SCHEDULING_PROGRAM
push 1
push ebx
push 0x437430
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 3
push ebx
push str.EditFlags
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push str.SOFTWAREClasses_tvpi_auto_file_shellopencommand
call fcn.00408b50
add esp, 8
test eax, eax
je 0x408c74
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x20]
push ebp
call fcn.00418527
mov ecx, dword [esp + 0x14]
add esp, 4
shl eax, 1
push eax
push ebp
push 1
push ebx
push 0x437430
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push str.SOFTWAREClasses.tvvi
call fcn.00408b50
add esp, 8
test eax, eax
je 0x408cc0
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x10]
push 0x1e
push str.tvvi_auto_file
push 1
push ebx
push 0x437430
push ecx
call esi
mov edx, dword [esp + 0x10]
push 0x3a
push str.application_x_tv_viewer_info
push 1
push ebx
push str.Content_Type
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push str.SOFTWAREClasses_tvvi_auto_file
call fcn.00408b50
add esp, 8
test eax, eax
je 0x408d18
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
push 0x2e
push str.PVR_SCHEDULING_PROGRAM
push 1
push ebx
push 0x437430
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 3
push ebx
push str.EditFlags
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push str.SOFTWAREClasses_tvvi_auto_file_shellopencommand
call fcn.00408b50
add esp, 8
test eax, eax
je 0x408d70
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
push ebp
call fcn.00418527
mov ecx, dword [esp + 0x14]
add esp, 4
shl eax, 1
push eax
push ebp
push 1
push ebx
push 0x437430
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4098a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x208
push ebx
push esi
mov esi, dword [esp + 0x21c]
xor ebx, ebx
test esi, 0x20000000
push edi
je 0x4098bf
mov ebx, 0x40000000
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ax, ax
jge 0x4098d4
or ebx, 0x10000000
push 0x10
call edi
test ax, ax
jge 0x4098e3
or ebx, 0x20000000
mov ecx, dword [esp + 0x218]
xor eax, eax
sub ecx, 0x100
je 0x4098fd
sub ecx, 4
jne 0x4099da
test esi, esi
mov edi, 1
je 0x40994c
mov eax, dword [sym.imp.uDirector.dll_class_IDirector__g_IDirector]
mov eax, dword [eax]
cmp dword [eax + 0x28], edi
je 0x409917
cmp dword [eax + 0x44], edi
jne 0x40994c
mov ecx, dword [eax + 0x4c]
test ecx, ecx
jne 0x40994c
mov ecx, dword [0x43932c]
test ecx, ecx
je 0x409942
mov esi, dword [eax + 8]
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, esi
je 0x409942
mov ecx, dword [sym.imp.uDirector.dll_class_IDirector__g_IDirector]
mov edx, dword [ecx]
cmp dword [edx + 0x44], edi
jne 0x40994c
push 0
call fcn.004101a0
add esp, 4
mov ecx, dword [0x439328]
mov dword [0x42c1b4], edi
call fcn.00402710
test eax, eax
jl 0x409991
mov eax, dword [sym.imp.uDirector.dll_class_IDirector__g_IDirector]
push 0x30b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [sym.imp.uDirector.dll_class_IDirector__g_IDirector]
push 0
push 0x14
push 0x30a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x21c]
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push ecx
push ebx
mov ecx, 0x439188
call fcn.00416c60
test eax, eax
jne 0x4099cd
pop edi
pop esi
pop ebx
add esp, 0x208
ret
lea edx, [esp + 0xc]
push edx
call fcn.00408ea0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4099f0
Capabilities:
Create process on windows
Read .ini file

Disassembly:
sub esp, 0xc30
push ebx
push esi
push edi
call fcn.00407bd0
push eax
push 0
push str.CustomID
push str.USER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov ax, word [0x437430]
mov word [esp + 0x214], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
rep stosd dword es:[edi], eax
cmp esi, 0x12
stosw word es:[edi], ax
jne 0x409a47
lea ecx, [esp + 0x214]
push str.MediaTVMonitor
push ecx
jmp 0x409a54
lea edx, [esp + 0x214]
push str.TMMonitor
push edx
call fcn.004182c8
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
add esp, 8
lea eax, [esp + 0x214]
push 0
push eax
call ebx
test eax, eax
jne 0x409b6d
mov cx, word [0x437430]
lea edi, [esp + 0x41e]
mov word [esp + 0x41c], cx
mov ecx, 0x81
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x439254]
lea edx, [esp + 0x41c]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea ecx, [esp + 0x830]
push 0
lea edx, [esp + 0x62c]
push ecx
lea eax, [esp + 0x428]
push edx
push eax
call fcn.004183a3
mov cx, word [0x437430]
xor eax, eax
mov word [esp + 0x20], cx
mov ecx, 0x81
lea edi, [esp + 0x22]
add esp, 0x14
rep stosd dword es:[edi], eax
cmp esi, 0x12
stosw word es:[edi], ax
jne 0x409afe
lea edx, [esp + 0xc]
push str.MediaTVMonitor
push edx
jmp 0x409b08
lea eax, [esp + 0xc]
push str.TMMonitor
push eax
call fcn.004182c8
add esp, 8
cmp word [esp + 0xc], 0
je 0x409b5d
lea ecx, [esp + 0xc]
push 0x42c940
lea edx, [esp + 0x830]
push ecx
lea eax, [esp + 0x62c]
push edx
lea ecx, [esp + 0xa40]
push eax
push ecx
call fcn.004182ed
add esp, 0x14
lea edx, [esp + 0xa34]
push 1
push 0
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esp + 0x214]
push 0
push eax
call ebx
test eax, eax
je 0x409b7d
push 0
push 0
push 0x48b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
add esp, 0xc30
ret
Function at 0x40ad40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x6b4
push edi
lea eax, [esp + 0x58]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x58]
push 0x5c
push ecx
call fcn.00418661
add esp, 8
push 0x42cac0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [esp + 0x58]
push str.ArcRegister.exe
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [esp + eax*2 + 0x58], 0
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x46c]
mov dword [esp + 0x468], 0
lea edx, [esp + 0x58]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x468]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40add5
xor eax, eax
pop edi
add esp, 0x6b4
ret 8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov word [esp + 0x264], ax
rep stosd dword es:[edi], eax
mov ecx, 0x81
lea edi, [esp + 0x266]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x6c4]
lea ecx, [esp + 0x5c]
push eax
push ecx
lea edx, [esp + 0x26c]
push str.__s___s
push edx
mov dword [esp + 0x28], 0x44
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x264]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [esp + 0x7c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
je 0x40ae74
mov eax, dword [esp + 0x6c0]
test eax, eax
je 0x40ae74
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
pop edi
add esp, 0x6b4
ret 8

Function at 0x40b270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
mov ax, word [0x437430]
push ebx
push ebp
push esi
push edi
mov word [esp + 0x10], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00407bd0
push eax
push 0
push str.CustomID
push str.USER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0x12
jne 0x40b2bd
lea ecx, [esp + 0x10]
push str.MediaTVMonitor
push ecx
jmp 0x40b2c7
lea edx, [esp + 0x10]
push str.TMMonitor
push edx
call fcn.004182c8
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
xor esi, esi
lea eax, [esp + 0x10]
push 0
push eax
call ebp
mov edi, eax
test edi, edi
jne 0x40b2fa
push 0x64
call ebx
inc esi
cmp esi, 0x3c
jl 0x40b2dd
test edi, edi
je 0x40b310
mov ecx, dword [esp + 0x21c]
push ecx
push 0
push 0x4a1
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x40b320
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push esi
push 1
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
push str.user32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x40b388
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.AllowSetForegroundWindow
push esi
call ebp
mov edi, eax
test edi, edi
je 0x40b36f
call ebx
push eax
call edi
push str.SwitchToThisWindow
push esi
call ebp
pop edi
pop ebp
test eax, eax
je 0x40b388
mov esi, dword [esp + 0xc]
push 1
push esi
call eax
jmp 0x40b393
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop esi
pop ebx
ret

Function at 0x40b3c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x214]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [esp + 8]
push str.Res_Frame.dll
push ecx
call fcn.0041829e
add esp, 8
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40b48a
call fcn.00407bd0
push eax
push 0
push str.CustomID
push str.USER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 0x12
mov eax, dword [esp + 0x218]
jne 0x40b46b
cmp eax, 0x64
jne 0x40b45f
mov eax, 0xbb8
jmp 0x40b46b
cmp eax, 0xc2a
jne 0x40b46b
mov eax, 0xbbb
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
push ecx
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_LoadStringW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
add esp, 0x208
ret
Function at 0x40b4a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x410
push esi
mov esi, ecx
push 3
call fcn.00421a80
lea eax, [esp + 8]
push eax
call fcn.0042232b
add esp, 8
test eax, eax
je 0x40b53e
lea ecx, [esp + 4]
push ecx
call fcn.00418527
lea eax, [esp + eax*2 + 8]
lea ecx, [esp + 8]
add esp, 4
mov word [eax], 0x5c
add eax, 2
mov edx, eax
sub edx, ecx
mov ecx, 0x104
sar edx, 1
sub ecx, edx
mov edx, dword [0x439254]
push ecx
push eax
push 0x71
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 4]
lea ecx, [esp + 0x20c]
push eax
push 0x104
push ecx
push 0x437430
push str.Background
push str.LAUNCH
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x40b53e
lea edx, [esp + 0x20c]
add esi, 0x410
push edx
push esi
call fcn.004182c8
add esp, 8
pop esi
add esp, 0x410
ret
Function at 0x40fe30
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x424a22
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 0x820]
call dword [sym.imp.uDirector.dll_public:_void___thiscall_IArray::constructor_void_]
xor edi, edi
mov dword [esp + 0x21c], edi
mov word [esi + 0x618], di
mov word [esi + 0x410], di
mov word [esi + 0x208], di
mov word [esi], di
call fcn.00407bd0
push eax
lea eax, [esp + 0x10]
push 0x104
push eax
push str.Background.jpg
push str.DefaultBack
push str.USER
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x104
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.0040e560
add esp, 0xc
test eax, eax
jne 0x40febf
mov word [esi], di
mov ecx, dword [esp + 0x214]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x4102c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov ax, word [0x437430]
push esi
push edi
mov word [esp + 0x14], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov esi, 1
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0x10], esi
push ecx
push 0x20019
push 0
push str.Control_PanelInternational
push 0x80000001
mov dword [esp + 0x20], 0x104
stosw word es:[edi], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410355
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.iCountry
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
push ecx
call fcn.00418721
add esp, 4
pop edi
pop esi
add esp, 0x214
ret
mov eax, esi
pop edi
pop esi
add esp, 0x214
ret
Function at 0x411950
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push str.wmp.ocx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebp
jbe 0x4119c0
push edi
call fcn.00417ebc
add esp, 4
mov esi, eax
push esi
push edi
push ebp
push str.wmp.ocx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411a24
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x42abd4
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411a24
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x10]
and eax, 0xffff0000
cmp eax, 0x90000
jmp 0x411a21
push ebp
push str.wmp.dll
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebp
jbe 0x411a31
push edi
call fcn.00417ebc
add esp, 4
mov esi, eax
push esi
push edi
push ebp
push str.wmp.dll
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x411a24
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x42abd4
push esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411a24
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
and ecx, 0xffff0000
cmp ecx, 0x90000
sbb ebx, ebx
inc ebx
cmp esi, ebp
je 0x411a31
push esi
call fcn.0041783a
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4125b0
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x412667
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x412667
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x41265b
push eax
call fcn.00417ebc
mov esi, eax
add esp, 4
test esi, esi
jne 0x4125fa
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x412652
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push 0x42abd4
push esi
mov dword [esp + 0x28], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x412652
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412652
mov ecx, dword [eax + 8]
push esi
mov dword [ebx + 4], ecx
mov edx, dword [eax + 0xc]
mov dword [ebx], edx
call fcn.0041783a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 8
push esi
call fcn.0041783a
add esp, 4
pop edi
pop esi
mov eax, 0x80004005
pop ebx
pop ecx
ret 8
pop edi
pop esi
mov eax, 0x80070057
pop ebx
pop ecx
ret 8