joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420b70
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 0x420b9b
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 0x420bbf
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 0x420bda
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 0x423c3b
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 0x423c63
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042991c
pop esi
ret 4
Function at 0x423f0e
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x44501c
call fcn.004115c0
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 0x424033
test byte [ebp - 0x16a], 1
je 0x424033
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
push 0x448238
push ebx
push 0x448228
call fcn.00423ce5
test eax, eax
jl 0x424033
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x448218
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x42402a
cmp edi, ebx
jne 0x423f9f
xor eax, eax
jmp 0x423fc0
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.004118a0
mov eax, esp
push esi
push edi
push eax
call fcn.00423757
mov ecx, dword [ebp - 0x14]
push ebx
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x14]
test eax, eax
jl 0x424021
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x423fda
xor eax, eax
jmp 0x423fdd
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 0x424021
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.00423cd7
push 1
pop eax
jmp 0x424041
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.00423cd7
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 0x4252cd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x425305
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.0042368c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00423664
jmp 0x425311
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
pop esi
ret 4
Function at 0x426fa3
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 0x426fe5
call fcn.0043cce0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x426fe5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x426fdc
xor eax, eax
jmp 0x426fed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00426ff3
pop edi
pop esi
pop ebx
ret 4

Function at 0x427732
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x427755
cmp dword [edi + 0x3c], 0
jne 0x427755
movzx eax, word [edi + 0x40]
mov dword [edi + 0x3c], eax
call fcn.0043cce0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00427782
pop edi
pop esi
pop ebx
ret 8

Function at 0x4277d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0043cce0
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 0x427801
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.00427814
pop edi
pop esi
pop ebx
ret 8
Function at 0x427af2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x445358
call fcn.004115c0
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.0043cce0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x427b40
call fcn.0043cce0
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 0x427b4e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x427b5c
or eax, 0xffffffff
jmp 0x427c48
mov ecx, esi
call fcn.00427a7d
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00424e01
push edi
call fcn.004248a4
and dword [ebp - 0x1c], 0
test edi, edi
je 0x427b96
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x427b96
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.00424db5
push edi
call fcn.004248a4
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00427814
xor ebx, ebx
cmp eax, ebx
je 0x427c0f
test byte [esi + 0x24], 0x10
je 0x427bda
push 4
mov ecx, esi
pop ebx
call fcn.00427fb2
test ah, 1
je 0x427bd0
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004271b2
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x427c0f
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00428129
jmp 0x427c0f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x427c21
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x427c37
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x427c37
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.00427ab4
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 0x427b01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x445358
call fcn.004115c0
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.0043cce0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x427b40
call fcn.0043cce0
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 0x427b4e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x427b5c
or eax, 0xffffffff
jmp 0x427c48
mov ecx, esi
call fcn.00427a7d
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.00424e01
push edi
call fcn.004248a4
and dword [ebp - 0x1c], 0
test edi, edi
je 0x427b96
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x427b96
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.00424db5
push edi
call fcn.004248a4
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00427814
xor ebx, ebx
cmp eax, ebx
je 0x427c0f
test byte [esi + 0x24], 0x10
je 0x427bda
push 4
mov ecx, esi
pop ebx
call fcn.00427fb2
test ah, 1
je 0x427bd0
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004271b2
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x427c0f
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00428129
jmp 0x427c0f
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x427c21
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x427c37
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x427c37
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.00427ab4
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 0x42bfd3
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 0x42bfeb
push 0
jmp 0x42bfee
push dword [esi + 0x20]
mov ecx, esi
call dword [eax + 0xa0]
test eax, eax
jne 0x42bffc
pop esi
ret
push 1
pop eax
pop esi
ret
Function at 0x42c427
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x445bc0
call fcn.004115c0
sub esp, 0x240
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00423222
test byte [ebp + 0xd], 0x10
je 0x42c4f8
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call fcn.00428a6b
test eax, eax
je 0x42c4f8
lea ecx, [ebp - 0x10]
call fcn.0042314c
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00424131
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 0x42c497
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 0x42c4ec
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.00423615
push eax
push 0
lea eax, [ebp - 0x24c]
push 0x44af0c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00423664
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00423297
mov eax, dword [edi]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x42c5b5
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push eax
call fcn.00423962
test eax, eax
je 0x42c5b5
push dword [ebp + 8]
lea ecx, [esi + 0xc]
call fcn.004233df
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 0x42c566
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.00428b1d
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 0x42c5b0
push dword [ebp + 0xc]
call fcn.0042379c
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 0x42c5a9
push ebx
push 4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push ebx
call fcn.004237d8
pop ecx
push 1
pop eax
jmp 0x42c5cc
mov ecx, edi
call fcn.00423222
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00423962
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x42d574
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 0x42d591
cmp dword [0x45e010], edi
jne 0x42d6e3
cmp word [0x45e01c], di
mov dword [0x45e010], 1
jne 0x42d5c3
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 [0x45e018], eax
mov word [0x45e01c], cx
cmp word [0x45e01c], 2
jne 0x42d5ff
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x42d5ff
mov ecx, dword [0x45e018]
cmp ecx, edi
je 0x42d5ff
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x45e014], eax
jmp 0x42d6e8
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.004118f0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x45e014], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x42d6e3
cmp dword [ebp - 0x8c], 1
je 0x42d653
cmp dword [ebp - 0x8c], 2
jne 0x42d6e3
cmp dword [ebp - 0x98], 4
jae 0x42d6c2
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d6e3
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 0x42d6b7
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004128a0
add esp, 0xc
mov dword [0x45e014], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42d6e3
cmp dword [ebp - 0x8c], 2
jne 0x42d6e3
cmp dword [ebp - 0x98], 4
jb 0x42d6e3
push edi
push 0x45e014
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x45e014]
pop edi
leave
ret
Function at 0x433a6b
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.004251e0
test eax, eax
jne 0x433c5a
mov edi, dword [ebx + 4]
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0040a1a1
test byte [esi + 0x64], 0x20
mov dword [ebp - 0x10], eax
jne 0x433ab1
cmp edi, 0x201
je 0x433ab1
cmp edi, 0x202
jne 0x433c10
cmp edi, 0x200
jb 0x433ac1
cmp edi, 0x209
jbe 0x433ad9
cmp edi, 0xa0
jb 0x433c10
cmp edi, 0xa9
ja 0x433c10
call fcn.0043c98d
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.004118f0
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 0x433b32
push dword [ebp - 0x20]
call fcn.00411830
pop ecx
mov eax, 0x201
cmp dword [ebp - 4], eax
jne 0x433b4b
test byte [ebp - 0x3d], 0x80
je 0x433b4b
mov dword [ebp - 8], 1
jmp 0x433b4f
and dword [ebp - 8], 0
cmp dword [ebp - 4], eax
je 0x433b6d
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x433b6d
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x433bd9
cmp dword [ebp - 8], 0
jne 0x433bd9
cmp dword [ebp - 4], 0x202
jne 0x433b98
push 0xffffffffffffffff
mov ecx, esi
call dword [edi + 0xe4]
push 0xc8
push 0xe001
jmp 0x433bc3
test byte [esi + 0x60], 8
jne 0x433bcc
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x433bcc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x433c04
push 0x12c
push 0xe000
mov ecx, esi
call fcn.00433835
jmp 0x433c04
push dword [ebp + 8]
mov ecx, esi
call dword [edi + 0xe4]
jmp 0x433c04
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x433bec
cmp dword [ebp - 8], 0
je 0x433c04
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.00425fe7
test eax, eax
je 0x433c25
cmp dword [eax + 0x50], 0
je 0x433c25
xor eax, eax
jmp 0x433c53
cmp dword [ebp - 0x10], 0
je 0x433c4b
mov edi, dword [ebp - 0x10]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x433c5a
mov ecx, edi
call fcn.00425e7a
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x433c2b
push ebx
mov ecx, esi
call fcn.00427182
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x433c53
Function at 0x435a00
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 0x435a44
push dword [ebp + 8]
call fcn.0043d996
mov esi, eax
test esi, esi
je 0x435a6f
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 0x435a6f
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x44ad84
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 0x43c624
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.0043cce0
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43c663
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43c663
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x43c667
xor eax, eax
jmp 0x43c6e1
movzx eax, word [esi + 6]
shl eax, 2
push eax
call fcn.0042379c
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x43c69d
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 0x43c687
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0043c7d4
push ebx
mov edi, eax
call fcn.004237d8
test edi, edi
pop ecx
je 0x43c6df
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.0043c5d0
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0043c6e8
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43cb00
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44579e
call fcn.004115c0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00422bba
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00422bba
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.004229dd
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x423780
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x43d673
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x445a48
call fcn.004115c0
sub esp, 0x120
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x14], ebx
call fcn.004359dc
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x43d6b9
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.004359ee
cmp eax, ebx
je 0x43d6b4
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 0x43d699
cmp dword [edi + 0x7c], ebx
je 0x43d790
push str.Software_
lea ecx, [ebp - 0x10]
call fcn.00423305
push dword [edi + 0x7c]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004235c1
lea eax, [ebp - 0x10]
push 0x4572bc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004234ee
push dword [edi + 0x90]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004234ee
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00423297
lea eax, [ebp - 0x18]
mov esi, SysReAllocStringLen
push eax
push esi
mov ecx, edi
call fcn.0043d7a2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, ebx
jne 0x43d764
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 0x43d75b
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push esi
call fcn.0043d7a2
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.00423297
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00423297
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret