joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45097b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x48]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x44]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x40], 0
je 0x4509ce
call fcn.004ab732
mov dword [ebp - 0x10], eax
push 5
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x40]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4509e1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x450a75
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
jne 0x450a2c
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0x12]
mov word [ebp - 0x18], ax
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + 0x14]
mov word [ebp - 0x1c], dx
jmp 0x450a42
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 0xa]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0xc]
mov ax, word [edx + 0xc]
mov word [ebp - 0x1c], ax
mov ecx, dword [ebp - 0x20]
and ecx, 0x1801
test ecx, ecx
jne 0x450a68
movsx edx, word [ebp - 0x18]
test edx, edx
jne 0x450a68
movsx eax, word [ebp - 0x1c]
test eax, eax
jne 0x450a68
mov dword [ebp - 0x28], 1
jmp 0x450a6f
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
jne 0x450a87
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x44], 0
je 0x450a90
mov ecx, dword [ebp - 4]
push ecx
call fcn.00402aa0
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x40], 0
je 0x450aa3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x450c36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x450c59
push 0x33f
push str.dlgcore.cpp
call fcn.004a24f0
test eax, eax
je 0x450c59
int3
xor eax, eax
test eax, eax
jne 0x450c3f
call fcn.004ab732
mov dword [ebp - 8], eax
push 5
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x450cc5
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x450ca7
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Cannot_find_dialog_template_named__s._n
call fcn.00437c15
add esp, 8
jmp 0x450cbe
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Cannot_find_dialog_template_with_IDD_0x_04X._n
call fcn.00437c15
add esp, 8
xor eax, eax
jmp 0x450def
cmp dword [ebp + 0xc], 0
jne 0x450cd5
mov eax, 1
jmp 0x450def
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x450d08
push str.Warning:_LoadResource_failed_for_dialog_template._n
push 0x4d72cc
call fcn.00437c15
add esp, 8
mov eax, 1
jmp 0x450def
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0xffff
jne 0x450d31
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x14], eax
jmp 0x450d39
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00402aa0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edx, dword [ebp - 0x14]
and edx, 0x10000000
test edx, edx
je 0x450d9b
mov eax, dword [ebp + 8]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
test eax, eax
je 0x450d80
mov ecx, dword [ebp + 8]
push ecx
push str.ERROR:_Dialog_named__s_must_be_invisible._n
call fcn.00437c15
add esp, 8
jmp 0x450d97
mov edx, dword [ebp + 8]
and edx, 0xffff
push edx
push str.ERROR:_Dialog_with_IDD_0x_04X_must_be_invisible._n
call fcn.00437c15
add esp, 8
xor eax, eax
jmp 0x450def
mov eax, dword [ebp - 0x14]
and eax, 0x40000000
test eax, eax
jne 0x450dea
mov ecx, dword [ebp + 8]
shr ecx, 0x10
and ecx, 0xffff
and ecx, 0xffff
test ecx, ecx
je 0x450dd0
mov edx, dword [ebp + 8]
push edx
push str.ERROR:_Dialog_named__s_must_have_the_child_style._n
call fcn.00437c15
add esp, 8
jmp 0x450de6
mov eax, dword [ebp + 8]
and eax, 0xffff
push eax
push str.ERROR:_Dialog_with_IDD_0x_04X_must_have_the_child_style._n
call fcn.00437c15
add esp, 8
xor eax, eax
jmp 0x450def
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x452d06
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x452d37
push 0x412
push str.wincore.cpp
call fcn.004a24f0
test eax, eax
je 0x452d37
int3
xor edx, edx
test edx, edx
jne 0x452d12
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x452d83
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00459344
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.004592d0
jmp 0x452d9b
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
mov eax, dword [edx]
call dword [eax + 0x90]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x456623
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x4566af
call fcn.004ab732
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4566af
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x456682
xor eax, eax
jmp 0x4566e0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4566a9
push 0xce2
push str.wincore.cpp
call fcn.004a24f0
test eax, eax
je 0x4566a9
int3
xor edx, edx
test edx, edx
jne 0x45668f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.004566e9
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x4566dd
cmp dword [ebp - 8], 0
je 0x4566dd
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402aa0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45bb92
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
push 0xfd
push str.filecore.cpp
mov eax, dword [ebp - 8]
push eax
call fcn.004599c0
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0xffffffff
jne 0x45bbce
push 0xfe
push str.filecore.cpp
call fcn.004a24f0
test eax, eax
je 0x45bbce
int3
xor edx, edx
test edx, edx
jne 0x45bbb1
cmp dword [ebp + 0xc], 0
jne 0x45bbdf
jmp 0x45bc80
cmp dword [ebp + 8], 0
jne 0x45bbf9
push 0x103
push str.filecore.cpp
call fcn.004a24f0
test eax, eax
je 0x45bbf9
int3
xor eax, eax
test eax, eax
jne 0x45bbdf
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00437e56
test eax, eax
jne 0x45bc26
push 0x104
push str.filecore.cpp
call fcn.004a24f0
test eax, eax
je 0x45bc26
int3
xor eax, eax
test eax, eax
jne 0x45bbff
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x45bc63
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.0049ee22
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045d5d0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x45bc80
mov ecx, dword [ebp - 8]
add ecx, 0xc
call fcn.0049ee22
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0045d7b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45c3e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push str.CLSID
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45c4bc
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45c4b2
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
push str.InProcServer32
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x45c4a8
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.004591c8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], 0x104
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
push 0x4e3d64
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.004592d0
xor ecx, ecx
cmp dword [ebp - 0x18], 0
sete cl
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x45c4c5
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1842
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
mov dword [ebp - 0x17c], 0
lea ecx, [ebp - 0x10]
call fcn.00403120
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
push 0x800
push 0x160
lea ecx, [ebp - 0x178]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x45c532
mov eax, dword [ebp - 0x170]
and eax, 0x10000
test eax, eax
jne 0x45c556
mov dword [ebp - 0x180], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0045c142
mov eax, dword [ebp - 0x180]
jmp 0x45c6c8
lea ecx, [ebp - 0x18]
push ecx
push 0x4c7070
push 0
push 0x4c7060
lea ecx, [ebp - 0x10]
call fcn.0045c161
test eax, eax
jge 0x45c596
mov dword [ebp - 0x184], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0045c142
mov eax, dword [ebp - 0x184]
jmp 0x45c6c8
lea edx, [ebp - 0x14]
push edx
push 0x4c7050
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx]
test eax, eax
jl 0x45c69d
cmp dword [ebp + 0xc], 0
jne 0x45c5c4
mov dword [ebp - 0x190], 0
jmp 0x45c60c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x17c]
shl eax, 1
add eax, 3
and al, 0xfc
call fcn.00412be0
mov dword [ebp - 0x194], esp
mov ecx, dword [ebp - 0x17c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x194]
push eax
call fcn.004597e7
mov dword [ebp - 0x190], eax
push 0
mov ecx, dword [ebp - 0x190]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [eax + 0x14]
test eax, eax
jl 0x45c691
push 2
mov ecx, dword [ebp + 8]
call fcn.004a51bc
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [eax + 0x4c]
test eax, eax
jl 0x45c691
push 0
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 8]
mov dword [ebp - 0x188], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0045c142
mov eax, dword [ebp - 0x188]
jmp 0x45c6c8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 8]
mov dword [ebp - 0x18c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0045c142
mov eax, dword [ebp - 0x18c]
lea esp, [ebp - 0x194]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45c6de
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1855
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x15c
push ebx
push esi
push edi
push 1
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.00437e56
test eax, eax
jne 0x45c727
push 0x21e
push str.filecore.cpp
call fcn.004a24f0
test eax, eax
je 0x45c727
int3
xor ecx, ecx
test ecx, ecx
jne 0x45c6ff
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x45c77d
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
je 0x45c763
mov ecx, dword [ebp + 0xc]
push ecx
push str.Warning:_could_not_parse_the_path__s._n
call fcn.00437c15
add esp, 8
push 0x104
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x45c870
lea ecx, [ebp - 0x1c]
call fcn.0045864a
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0045c883
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.0049ee22
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x45c7f5
lea ecx, [ebp - 0x1c]
call fcn.0049ee22
push eax
push str.Warning:_could_not_get_volume_information__s._n
call fcn.00437c15
add esp, 8
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00458a12
mov eax, dword [ebp - 0x164]
jmp 0x45c870
mov edx, dword [ebp - 0x18]
and edx, 2
test edx, edx
jne 0x45c809
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov ecx, dword [ebp - 0x18]
and ecx, 4
test ecx, ecx
jne 0x45c851
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x45c851
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x168], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00458a12
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46c570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
cmp dword [ebp + 8], 0
jne 0x46c592
cmp dword [0x4e3e18], 0
je 0x46c592
mov eax, dword [0x4e3e1c]
jmp 0x46c745
mov dword [0x4e3e18], 1
xor eax, eax
mov ax, word [0x4e3e24]
test eax, eax
jne 0x46c5d5
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov dword [0x4e3e20], eax
cmp dword [0x4e3e20], 0
jne 0x46c5cc
mov word [0x4e3e24], 1
jmp 0x46c5d5
mov word [0x4e3e24], 2
xor ecx, ecx
mov cx, word [0x4e3e24]
cmp ecx, 2
jne 0x46c63c
mov dword [ebp - 0x98], 0
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x46c63c
cmp dword [0x4e3e20], 0
je 0x46c63c
push 0
push 0
mov edx, dword [0x4e3e20]
push edx
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x4e3e1c], eax
mov eax, dword [0x4e3e1c]
jmp 0x46c745
push 0x94
push 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.004103c0
add esp, 0xc
mov dword [ebp - 0x94], 0x94
mov dword [0x4e3e1c], 3
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x46c681
mov eax, dword [0x4e3e1c]
jmp 0x46c745
cmp dword [ebp - 0x84], 1
je 0x46c697
cmp dword [ebp - 0x84], 2
jne 0x46c71d
cmp dword [ebp - 0x90], 4
jae 0x46c71d
lea eax, [ebp - 0x9c]
push eax
push 1
push 0
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46c71b
mov dword [ebp - 0x124], pe_nt_image_headers32
lea ecx, [ebp - 0x124]
push ecx
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x120]
push eax
push 0
push str.WheelScrollLines
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x46c70e
push 0xa
push 0
lea edx, [ebp - 0x11c]
push edx
call fcn.00415130
add esp, 0xc
mov dword [0x4e3e1c], eax
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46c740
cmp dword [ebp - 0x84], 2
jne 0x46c740
cmp dword [ebp - 0x90], 4
jb 0x46c740
push 0
push 0x4e3e1c
push 0
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x4e3e1c]
mov esp, ebp
pop ebp
ret
Function at 0x46f116
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.0049ee22
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x46f16c
push 1
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x46f16a
push str.Warning:_File_save_with_new_name_failed._n
push 0x4db870
call fcn.00437c15
add esp, 8
xor eax, eax
jmp 0x46f1a7
jmp 0x46f1a2
push 1
mov ecx, dword [ebp - 8]
add ecx, 0x20
call fcn.0049ee22
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
call dword [edx + 0xa0]
test eax, eax
jne 0x46f1a2
push str.Warning:_File_save_failed._n
push 0x4db890
call fcn.00437c15
add esp, 8
xor eax, eax
jmp 0x46f1a7
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x476f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x476f36
push 0x10a
push str.appui3.cpp
call fcn.004a24f0
test eax, eax
je 0x476f36
int3
xor eax, eax
test eax, eax
jne 0x476f1c
cmp dword [ebp + 0xc], 0
jne 0x476f56
push 0x10b
push str.appui3.cpp
call fcn.004a24f0
test eax, eax
je 0x476f56
int3
xor ecx, ecx
test ecx, ecx
jne 0x476f3c
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x80], 0
je 0x476fb4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004b8ac2
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x476f84
xor eax, eax
jmp 0x47700c
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 8], 0
sete al
jmp 0x47700c
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x94], 0
jne 0x476fd4
push 0x11a
push str.appui3.cpp
call fcn.004a24f0
test eax, eax
je 0x476fd4
int3
xor eax, eax
test eax, eax
jne 0x476fb4
mov ecx, dword [ebp + 0x10]
push ecx
push 0x4d863c
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x94]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x477015
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 8], 0
jne 0x47703b
push 0x126
push str.appui3.cpp
call fcn.004a24f0
test eax, eax
je 0x47703b
int3
xor eax, eax
test eax, eax
jne 0x477021
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x80], 0
je 0x477126
cmp dword [ebp + 0xc], 0
jne 0x47708f
mov ecx, dword [ebp - 0x14]
call fcn.004b89bc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47706f
xor eax, eax
jmp 0x477199
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47711b
cmp dword [ebp + 0x10], 0
jne 0x4770ce
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004b8ac2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4770b1
xor eax, eax
jmp 0x477199
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47711b
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004b8ac2
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4770ea
xor eax, eax
jmp 0x477199
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0x10]
push edx
push 1
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
jmp 0x477199
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x94], 0
jne 0x477146
push 0x14a
push str.appui3.cpp
call fcn.004a24f0
test eax, eax
je 0x477146
int3
xor ecx, ecx
test ecx, ecx
jne 0x477126
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0xfff
jl 0x477177
push 0x14b
push str.appui3.cpp
call fcn.004a24f0
test eax, eax
je 0x477177
int3
xor ecx, ecx
test ecx, ecx
jne 0x47714c
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x94]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc