joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412140
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00408570
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
push esi
push edi
xor ebp, ebp
push 1
push ebp
push ebx
call fcn.0040c4d0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x412280
push 2
push ebp
push ebx
call fcn.0040c4d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x412280
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x412221
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00412780
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4121c6
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040fe40
add esp, 0xc
cmp eax, 0xffffffff
je 0x4121e2
sub esi, eax
test esi, esi
jle 0x4121fa
jmp 0x4121b7
call fcn.0040a580
cmp dword [eax], 5
jne 0x4121f7
call fcn.0040a570
mov dword [eax], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00412780
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040c4d0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x412267
push 0
push ecx
push ebx
call fcn.0040c4d0
add esp, 0xc
push ebx
call fcn.0040cbb0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x412267
call fcn.0040a570
mov dword [eax], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
call fcn.0040a580
mov dword [eax], esi
push 0
push edi
push ebx
call fcn.0040c4d0
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x412640
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x4428a0]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push edi
test eax, eax
jne 0x412688
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x412668
mov eax, 2
jmp 0x412683
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x412768
mov eax, 1
mov dword [0x4428a0], eax
cmp eax, 2
jne 0x4126a8
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 0x41277a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4126c3
mov ecx, dword [0x442750]
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 0x4126e2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00407fb0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4126f9
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 0x41275f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x412740
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 0x41275f
push esi
call fcn.00407f40
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 0x41276f
push esi
call fcn.00407f40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00407f40
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x412af0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x412cae
push 0x3d
push edi
call fcn.00409390
mov esi, eax
add esp, 8
test esi, esi
je 0x412cae
cmp edi, esi
je 0x412cae
mov dl, byte [esi + 1]
mov ecx, dword [0x4423ec]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x4423e8]
cmp eax, ecx
jne 0x412b47
push eax
call fcn.00412d80
add esp, 4
mov dword [0x4423e8], eax
test eax, eax
jne 0x412bc2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412b6e
mov eax, dword [0x4423f0]
test eax, eax
je 0x412b6e
call fcn.004122e0
test eax, eax
je 0x412bbd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x412b7a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00407fb0
add esp, 4
mov dword [0x4423e8], eax
test eax, eax
je 0x412cae
mov dword [eax], 0
mov eax, dword [0x4423f0]
test eax, eax
jne 0x412bbd
push 4
call fcn.00407fb0
add esp, 4
mov dword [0x4423f0], eax
test eax, eax
je 0x412cae
mov dword [eax], 0
mov eax, dword [0x4423e8]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00412d00
mov esi, eax
add esp, 8
test esi, esi
jl 0x412cbf
cmp dword [ebx], 0
je 0x412cbf
test ebp, ebp
je 0x412cb7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00407f40
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x412c19
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x412c08
lea eax, [esi*4]
push eax
push ebx
call fcn.0040ba50
add esp, 8
test eax, eax
je 0x412c33
mov dword [0x4423e8], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412ca6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00407fb0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412ca6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push ebx
call fcn.00407f40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x412c37
test ebp, ebp
jne 0x412ca6
test esi, esi
jge 0x412cc9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040ba50
add esp, 8
test eax, eax
je 0x412cae
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x4423e8], eax
jmp 0x412c37
Function at 0x415f30
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.00408570
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415ffb
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 0x415ffb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415fae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415fb9
or bh, 8
and edi, 0x8000000
je 0x415fd4
mov eax, dword [0x443a9c]
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 0x415ffb
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 0x4163d0
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 0x4163fb
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 0x41641f
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 0x41643a
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 0x417ecc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0042d8a4
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 0x417efd
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.00417f10
pop edi
pop esi
pop ebx
ret 8
Function at 0x4181ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x430e0c
call fcn.00407d30
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.0042d8a4
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41823c
call fcn.0042d8a4
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 0x41824a
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x418258
or eax, 0xffffffff
jmp 0x418344
mov ecx, esi
call fcn.00418179
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00418fb1
push edi
call fcn.00418a54
and dword [ebp - 0x1c], 0
test edi, edi
je 0x418292
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x418292
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.00418f65
push edi
call fcn.00418a54
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00417f10
xor ebx, ebx
cmp eax, ebx
je 0x41830b
test byte [esi + 0x24], 0x10
je 0x4182d6
push 4
mov ecx, esi
pop ebx
call fcn.0041b772
test ah, 1
je 0x4182cc
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041b362
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x41830b
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041b8e9
jmp 0x41830b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x41831d
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x418333
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x418333
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.004181b0
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 0x41947d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4194b5
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.0041c54e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041c526
jmp 0x4194c1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
pop esi
ret 4
Function at 0x41b153
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 0x41b195
call fcn.0042d8a4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x41b195
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x41b18c
xor eax, eax
jmp 0x41b19d
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041b1a3
pop edi
pop esi
pop ebx
ret 4

Function at 0x41dcde
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 0x41dd06
push eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0041eb6f
pop esi
ret 4

Function at 0x41dfb1
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4318c8
call fcn.00407d30
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 0x41e0d6
test byte [ebp - 0x16a], 1
je 0x41e0d6
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x435d60
push ebx
push 0x435d50
call fcn.0041dd88
test eax, eax
jl 0x41e0d6
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x435d40
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x41e0cd
cmp edi, ebx
jne 0x41e042
xor eax, eax
jmp 0x41e063
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.00408570
mov eax, esp
push esi
push edi
push eax
call fcn.0041c5e3
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x41e0c4
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x41e07d
xor eax, eax
jmp 0x41e080
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 0x41e0c4
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.0041dd7a
push 1
pop eax
jmp 0x41e0e4
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.0041dd7a
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 0x4205cc
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 0x4205e4
push 0
jmp 0x4205e7
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x4205f5
pop esi
ret
push 1
pop eax
pop esi
ret

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

Disassembly:
mov eax, 0x431608
call fcn.00407d30
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0041c0b1
test byte [ebp + 0xd], 0x10
je 0x420af1
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0041f0f3
test eax, eax
je 0x420af1
lea ecx, [ebp - 0x10]
call fcn.0041bfdb
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0041e1d4
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 0x420a90
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 0x420ae5
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.0041c4d7
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x4351ac
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041c526
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041c126
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x420bae
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0041da05
test eax, eax
je 0x420bae
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0041c26e
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 0x420b5f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0041f1a5
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 0x420ba9
push dword [ebp + 0xc]
call fcn.00417ccd
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 0x420ba2
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.00417d09
pop ecx
push 1
pop eax
jmp 0x420bc5
mov ecx, edi
call fcn.0041c0b1
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041da05
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x421a75
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 0x421a92
cmp dword [0x441f94], edi
jne 0x421be4
cmp word [0x441fa0], di
mov dword [0x441f94], 1
jne 0x421ac4
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 [0x441f9c], eax
mov word [0x441fa0], cx
cmp word [0x441fa0], 2
jne 0x421b00
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x421b00
mov ecx, dword [0x441f9c]
cmp ecx, edi
je 0x421b00
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x441f98], eax
jmp 0x421be9
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00408080
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x441f98], 3
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x421be4
cmp dword [ebp - 0x8c], 1
je 0x421b54
cmp dword [ebp - 0x8c], 2
jne 0x421be4
cmp dword [ebp - 0x98], 4
jae 0x421bc3
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 0x421be4
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 0x421bb8
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004097a0
add esp, 0xc
mov dword [0x441f98], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421be4
cmp dword [ebp - 0x8c], 2
jne 0x421be4
cmp dword [ebp - 0x98], 4
jb 0x421be4
push edi
push 0x441f98
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x441f98]
pop edi
leave
ret