joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4129a0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x412b5e
push 0x3d
push edi
call fcn.00407b10
mov esi, eax
add esp, 8
test esi, esi
je 0x412b5e
cmp edi, esi
je 0x412b5e
mov dl, byte [esi + 1]
mov ecx, dword [0x4402d0]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x4402cc]
cmp eax, ecx
jne 0x4129f7
push eax
call fcn.00412c30
add esp, 4
mov dword [0x4402cc], eax
test eax, eax
jne 0x412a72
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412a1e
mov eax, dword [0x4402d4]
test eax, eax
je 0x412a1e
call fcn.00411bd0
test eax, eax
je 0x412a6d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x412a2a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.00407be0
add esp, 4
mov dword [0x4402cc], eax
test eax, eax
je 0x412b5e
mov dword [eax], 0
mov eax, dword [0x4402d4]
test eax, eax
jne 0x412a6d
push 4
call fcn.00407be0
add esp, 4
mov dword [0x4402d4], eax
test eax, eax
je 0x412b5e
mov dword [eax], 0
mov eax, dword [0x4402cc]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00412bb0
mov esi, eax
add esp, 8
test esi, esi
jl 0x412b6f
cmp dword [ebx], 0
je 0x412b6f
test ebp, ebp
je 0x412b67
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.00407cb0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x412ac9
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 0x412ab8
lea eax, [esi*4]
push eax
push ebx
call fcn.0040a740
add esp, 8
test eax, eax
je 0x412ae3
mov dword [0x4402cc], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412b56
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00407be0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412b56
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.00407cb0
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 0x412ae7
test ebp, ebp
jne 0x412b56
test esi, esi
jge 0x412b79
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.0040a740
add esp, 8
test eax, eax
je 0x412b5e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x4402cc], eax
jmp 0x412ae7
Function at 0x415f20
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.00408260
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x415feb
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 0x415feb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x415f9e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x415fa9
or bh, 8
and edi, 0x8000000
je 0x415fc4
mov eax, dword [0x44191c]
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 0x415feb
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 0x4163c0
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 0x4163eb
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 0x41640f
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 0x41642a
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 0x417ec4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42f8e8
call fcn.00407a90
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.0042d807
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x417f12
call fcn.0042d807
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 0x417f20
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x417f2e
or eax, 0xffffffff
jmp 0x41801a
mov ecx, esi
call fcn.00417e4f
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00418c87
push edi
call fcn.0041872a
and dword [ebp - 0x1c], 0
test edi, edi
je 0x417f68
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417f68
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.00418c3b
push edi
call fcn.0041872a
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00417be6
xor ebx, ebx
cmp eax, ebx
je 0x417fe1
test byte [esi + 0x24], 0x10
je 0x417fac
push 4
mov ecx, esi
pop ebx
call fcn.0041b387
test ah, 1
je 0x417fa2
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041af77
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x417fe1
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0041b479
jmp 0x417fe1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x417ff3
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x418009
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x418009
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.00417e86
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 0x419153
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41918b
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.0041ce1b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041cdf3
jmp 0x419197
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
pop esi
ret 4
Function at 0x41ad68
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 0x41adaa
call fcn.0042d807
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41adaa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ada1
xor eax, eax
jmp 0x41adb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041adb8
pop edi
pop esi
pop ebx
ret 4

Function at 0x41bfbd
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 0x41bfe5
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041e30e
pop esi
ret 4

Function at 0x41c290
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x42fbe0
call fcn.00407a90
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 0x41c3b5
test byte [ebp - 0x16a], 1
je 0x41c3b5
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x433548
push ebx
push 0x433538
call fcn.0041c067
test eax, eax
jl 0x41c3b5
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x433528
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x41c3ac
cmp edi, ebx
jne 0x41c321
xor eax, eax
jmp 0x41c342
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.00408260
mov eax, esp
push esi
push edi
push eax
call fcn.0041cee6
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x41c3a3
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x41c35c
xor eax, eax
jmp 0x41c35f
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 0x41c3a3
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.0041c059
push 1
pop eax
jmp 0x41c3c3
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.0041c059
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 0x42060f
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 0x420627
push 0
jmp 0x42062a
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x420638
pop esi
ret
push 1
pop eax
pop esi
ret

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

Disassembly:
mov eax, 0x42ffd8
call fcn.00407a90
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.0041c9b1
test byte [ebp + 0xd], 0x10
je 0x420b34
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.0041e1ad
test eax, eax
je 0x420b34
lea ecx, [ebp - 0x10]
call fcn.0041c8db
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0041c4b3
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 0x420ad3
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 0x420b28
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.0041cda4
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x433f8c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0041cdf3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0041ca26
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x420bf1
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.0041bce4
test eax, eax
je 0x420bf1
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.0041cb6e
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 0x420ba2
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0041e25f
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 0x420bec
push dword [ebp + 0xc]
call fcn.004179e7
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 0x420be5
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.00417a23
pop ecx
push 1
pop eax
jmp 0x420c08
mov ecx, edi
call fcn.0041c9b1
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041bce4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x421aa4
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 0x421ac1
cmp dword [0x44024c], edi
jne 0x421c13
cmp word [0x440258], di
mov dword [0x44024c], 1
jne 0x421af3
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 [0x440254], eax
mov word [0x440258], cx
cmp word [0x440258], 2
jne 0x421b2f
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x421b2f
mov ecx, dword [0x440254]
cmp ecx, edi
je 0x421b2f
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x440250], eax
jmp 0x421c18
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00407ab0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x440250], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x421c13
cmp dword [ebp - 0x8c], 1
je 0x421b83
cmp dword [ebp - 0x8c], 2
jne 0x421c13
cmp dword [ebp - 0x98], 4
jae 0x421bf2
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 0x421c13
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 0x421be7
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00408bd0
add esp, 0xc
mov dword [0x440250], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421c13
cmp dword [ebp - 0x8c], 2
jne 0x421c13
cmp dword [ebp - 0x98], 4
jb 0x421c13
push edi
push 0x440250
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x440250]
pop edi
leave
ret
Function at 0x4252a6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call fcn.00419066
test eax, eax
jne 0x425495
mov edi, dword [ebx + 4]
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00406452
test byte [esi + 0x64], 0x20
mov dword [ebp - 0x10], eax
jne 0x4252ec
cmp edi, 0x201
je 0x4252ec
cmp edi, 0x202
jne 0x42544b
cmp edi, 0x200
jb 0x4252fc
cmp edi, 0x209
jbe 0x425314
cmp edi, 0xa0
jb 0x42544b
cmp edi, 0xa9
ja 0x42544b
call fcn.0042d4b4
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x44]
pop edi
push edi
push 0
push eax
call fcn.00407ab0
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], edi
mov edi, dword [esi]
push eax
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [edi + 0x6c]
cmp dword [ebp - 0x20], 0xffffffff
mov dword [ebp + 8], eax
je 0x42536d
push dword [ebp - 0x20]
call fcn.00407cb0
pop ecx
mov eax, 0x201
cmp dword [ebp - 4], eax
jne 0x425386
test byte [ebp - 0x3d], 0x80
je 0x425386
mov dword [ebp - 8], 1
jmp 0x42538a
and dword [ebp - 8], 0
cmp dword [ebp - 4], eax
je 0x4253a8
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4253a8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x425414
cmp dword [ebp - 8], 0
jne 0x425414
cmp dword [ebp - 4], 0x202
jne 0x4253d3
push 0xffffffffffffffff
mov ecx, esi
call dword [edi + 0xe4]
push 0xc8
push 0xe001
jmp 0x4253fe
test byte [esi + 0x60], 8
jne 0x425407
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x425407
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x42543f
push 0x12c
push 0xe000
mov ecx, esi
call fcn.00425070
jmp 0x42543f
push dword [ebp + 8]
mov ecx, esi
call dword [edi + 0xe4]
jmp 0x42543f
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x425427
cmp dword [ebp - 8], 0
je 0x42543f
push 0xffffffffffffffff
mov ecx, esi
call dword [edi + 0xe4]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.00419e6d
test eax, eax
je 0x425460
cmp dword [eax + 0x50], 0
je 0x425460
xor eax, eax
jmp 0x42548e
cmp dword [ebp - 0x10], 0
je 0x425486
mov edi, dword [ebp - 0x10]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x425495
mov ecx, edi
call fcn.00419d00
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x425466
push ebx
mov ecx, esi
call fcn.0041af47
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x42548e
Function at 0x427172
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 0x4271b6
push dword [ebp + 8]
call fcn.0042e3f8
mov esi, eax
test esi, esi
je 0x4271e1
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 0x4271e1
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x4342d8
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 0x42c3b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
call fcn.0042d807
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42c3f1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42c3f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x42c3f5
xor eax, eax
jmp 0x42c46f
movzx eax, word [esi + 6]
shl eax, 2
push eax
call fcn.004179e7
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x42c42b
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x42c415
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0042c562
push ebx
mov edi, eax
call fcn.00417a23
test edi, edi
pop ecx
je 0x42c46d
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0042c35e
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0042c476
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42d173
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x42fdc8
call fcn.00407a90
sub esp, 0x110
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
push eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x42d232
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebx, 0xff
lea eax, [ebp - 0x11c]
push ebx
push eax
push esi
push dword [ebp - 0x14]
call edi
mov esi, eax
test esi, esi
jne 0x42d212
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041ca94
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 4], esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
call fcn.0042d173
mov esi, eax
xor eax, eax
test esi, esi
setne al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], al
call fcn.0041ca26
cmp byte [ebp - 0xd], 0
jne 0x42d212
lea eax, [ebp - 0x11c]
push ebx
push eax
push 0
push dword [ebp - 0x14]
jmp 0x42d1bc
cmp esi, 0x103
je 0x42d222
cmp esi, 0x3f2
jne 0x42d232
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8