joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d7b0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x44ec70]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x41d7f8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d7dc
mov eax, 1
jmp 0x41d7f3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x41d8d8
mov eax, 2
mov dword [0x44ec70], eax
cmp eax, 2
jne 0x41d818
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x41d8ea
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x41d833
mov ecx, dword [0x44e798]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x41d852
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.0040e300
mov esi, eax
add esp, 4
test esi, esi
jne 0x41d869
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41d8cf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x41d8b0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x41d8cf
push esi
call fcn.0040e3d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x41d8df
push esi
call fcn.0040e3d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.0040e3d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4220e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041dcb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4221ab
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4221ab
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42215e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x422169
or bh, 8
and edi, 0x8000000
je 0x422184
mov eax, dword [0x551d3c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4221ab
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4225ab
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4225cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4225ea
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4227a0
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0x74
push 1
xor edi, edi
call fcn.0040ef40
mov esi, eax
add esp, 8
test esi, esi
je 0x422800
push esi
call fcn.00411e00
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x48], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x14]
push eax
push esi
push 0x422820
push ecx
push edx
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x422818
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.0040e3d0
add esp, 4
test edi, edi
je 0x422816
push edi
call fcn.0040f5d0
add esp, 4
xor eax, eax
pop edi
pop esi
ret

Function at 0x424f13
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0043a365
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x424f44
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00424f57
pop edi
pop esi
pop ebx
ret 8
Function at 0x425230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43cbd0
call fcn.00422778
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.0043a365
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x42527e
call fcn.0043a365
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42528c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42529a
or eax, 0xffffffff
jmp 0x425386
mov ecx, esi
call fcn.004251bb
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.004276d8
push edi
call fcn.00427158
and dword [ebp - 0x1c], 0
test edi, edi
je 0x4252d4
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4252d4
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.0042768c
push edi
call fcn.00427158
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00424f57
xor ebx, ebx
cmp eax, ebx
je 0x42534d
test byte [esi + 0x24], 0x10
je 0x425318
push 4
mov ecx, esi
pop ebx
call fcn.00429e67
test ah, 1
je 0x42530e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00429a2b
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x42534d
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00429fc3
jmp 0x42534d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x42535f
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x425375
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x425375
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.004251f2
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x427ba5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x427bdd
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.00426c21
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00426bf9
jmp 0x427be9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
pop esi
ret 4
Function at 0x42981c
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 0x42985e
call fcn.0043a365
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x42985e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x429855
xor eax, eax
jmp 0x429866
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042986c
pop edi
pop esi
pop ebx
ret 4

Function at 0x42a719
Capabilities:
Clear file content

Disassembly:
push esi
mov esi, ecx
push 0
mov eax, dword [esi]
push dword [esp + 0xc]
call dword [eax + 0x30]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a741
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042bf65
pop esi
ret 4

Function at 0x42a9ee
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x43d2f8
call fcn.00422778
sub esp, 0x168
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0x800
push 0x160
mov byte [eax], bl
lea eax, [ebp - 0x174]
push eax
push ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x42ab13
test byte [ebp - 0x16a], 1
je 0x42ab13
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x4426b0
push ebx
push 0x4426a0
call fcn.0042a7c5
test eax, eax
jl 0x42ab13
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x442690
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x42ab0a
cmp edi, ebx
jne 0x42aa7f
xor eax, eax
jmp 0x42aaa0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0041dcb0
mov eax, esp
push esi
push edi
push eax
call fcn.00426cb6
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x42ab01
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x42aaba
xor eax, eax
jmp 0x42aabd
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebp + 0xc]
push 2
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x4c]
test eax, eax
jl 0x42ab01
mov eax, dword [ebp + 0xc]
push ebx
push ebx
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 0x10]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a7b7
push 1
pop eax
jmp 0x42ab21
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042a7b7
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x180]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42ccad
Capabilities:
Get file attributes

Disassembly:
push esi
mov esi, ecx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
mov eax, dword [esi]
push 1
je 0x42ccc5
push 0
jmp 0x42ccc8
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x42ccd6
pop esi
ret
push 1
pop eax
pop esi
ret

Function at 0x42d0fb
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x43d008
call fcn.00422778
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.004267fa
test byte [ebp + 0xd], 0x10
je 0x42d1cc
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0042c4e9
test eax, eax
je 0x42d1cc
lea ecx, [ebp - 0x10]
call fcn.00426724
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0042ac11
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x42d16b
mov ebx, dword [ebp - 0x2c]
imul ebx, dword [ebp - 0x30]
imul ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x13c]
add eax, eax
cmp ebx, eax
jle 0x42d1c0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [ebp - 0x1c]
push 0x105
mov ecx, edi
and byte [eax], 0
call fcn.00426baa
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x441c4c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00426bf9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042686f
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x42d289
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0042a440
test eax, eax
je 0x42d289
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.004269b7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42d23a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0042c59b
pop ecx
lea eax, [ebp - 0x20]
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
push eax
push ebx
push ebx
push 4
push dword [ebp + 8]
mov dword [ebp + 0xc], ebx
call esi
test eax, eax
je 0x42d284
push dword [ebp + 0xc]
call fcn.0040da40
mov ebx, eax
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push 4
push dword [ebp + 8]
call esi
test eax, eax
je 0x42d27d
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.0040d940
pop ecx
push 1
pop eax
jmp 0x42d2a0
mov ecx, edi
call fcn.004267fa
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a440
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x42e113
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x42e130
cmp dword [0x450590], edi
jne 0x42e282
cmp word [0x45059c], di
mov dword [0x450590], 1
jne 0x42e162
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x450598], eax
mov word [0x45059c], cx
cmp word [0x45059c], 2
jne 0x42e19e
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x42e19e
mov ecx, dword [0x450598]
cmp ecx, edi
je 0x42e19e
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x450594], eax
jmp 0x42e287
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00422720
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x450594], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42e282
cmp dword [ebp - 0x8c], 1
je 0x42e1f2
cmp dword [ebp - 0x8c], 2
jne 0x42e282
cmp dword [ebp - 0x98], 4
jae 0x42e261
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42e282
lea eax, [ebp - 4]
mov dword [ebp - 4], pe_nt_image_headers32
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42e256
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.0040f560
add esp, 0xc
mov dword [0x450594], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42e282
cmp dword [ebp - 0x8c], 2
jne 0x42e282
cmp dword [ebp - 0x98], 4
jb 0x42e282
push edi
push 0x450594
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x450594]
pop edi
leave
ret

Function at 0x431a4c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x431a90
push dword [ebp + 8]
call fcn.0043b255
mov esi, eax
test esi, esi
je 0x431abb
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x431abb
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x449258
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x432ba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call fcn.00427ab8
test eax, eax
jne 0x432d91
mov edi, dword [ebx + 4]
mov ecx, esi
call fcn.0041e2c9
test byte [esi + 0x64], 0x20
mov dword [ebp - 0xc], eax
jne 0x432be3
cmp edi, 0x201
je 0x432be3
cmp edi, 0x202
jne 0x432d47
cmp edi, 0x200
jb 0x432bf3
cmp edi, 0x209
jbe 0x432c0b
cmp edi, 0xa0
jb 0x432d47
cmp edi, 0xa9
ja 0x432d47
call fcn.0043a079
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00422720
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x28
push ecx
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [eax + 0x6c]
cmp dword [ebp - 0x1c], 0xffffffff
mov dword [ebp + 8], eax
je 0x432c66
push dword [ebp - 0x1c]
call fcn.0040e3d0
pop ecx
mov eax, 0x201
cmp edi, eax
jne 0x432c7e
test byte [ebp - 0x39], 0x80
je 0x432c7e
mov dword [ebp - 4], 1
jmp 0x432c82
and dword [ebp - 4], 0
cmp edi, eax
je 0x432c9f
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x432c9f
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x432d0e
cmp dword [ebp - 4], 0
jne 0x432d0e
cmp edi, 0x202
jne 0x432ccb
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xc8
push 0xe001
jmp 0x432cf6
test byte [esi + 0x60], 8
jne 0x432cff
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x432cff
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x432d3b
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0043296f
jmp 0x432d3b
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xe4]
jmp 0x432d3b
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x432d21
cmp dword [ebp - 4], 0
je 0x432d3b
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.0042888f
test eax, eax
je 0x432d5c
cmp dword [eax + 0x50], 0
je 0x432d5c
xor eax, eax
jmp 0x432d8a
cmp dword [ebp - 0xc], 0
je 0x432d82
mov edi, dword [ebp - 0xc]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x432d91
mov ecx, edi
call fcn.00428722
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x432d62
push ebx
mov ecx, esi
call fcn.004299fb
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x432d8a
Function at 0x439c80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x43cdc4
call fcn.00422778
sub esp, 0x120
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x14], ebx
call fcn.004305ec
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x439cc6
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004305fe
cmp eax, ebx
je 0x439cc1
mov edx, dword [eax]
push ebx
push ebx
push 0xfffffffffffffffc
push ebx
mov ecx, eax
call dword [edx + 0x14]
cmp dword [ebp - 0x1c], ebx
jne 0x439ca6
cmp dword [edi + 0x7c], ebx
je 0x439d9d
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.004268dd
push dword [edi + 0x7c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00426b56
lea eax, [ebp - 0x10]
push 0x449f84
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00426a83
push dword [edi + 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00426a83
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0042686f
lea eax, [ebp - 0x18]
mov esi, 0x80000001
push eax
push esi
mov ecx, edi
call fcn.00439daf
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x439d71
lea eax, [ebp - 0x12c]
push 0x104
push eax
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x439d68
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push esi
call fcn.00439daf
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0042686f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042686f
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret