joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419b4d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
je 0x419bcc
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], edi
je 0x419bcc
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], edi
je 0x419bcc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x419bcc
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push 0x104
push eax
push dword [esi + 4]
call fcn.00419c5e
test eax, eax
je 0x419bcc
push dword [esi + 0xc]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00419be7
neg eax
sbb eax, eax
inc eax
jmp 0x419bce
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00496974
leave
ret

Function at 0x419c5e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.00496b80
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x419d3c
test edi, edi
je 0x419d3c
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x104
jl 0x419d3c
push 0x4000
lea eax, [ebp - 0x4004]
push 0
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x400c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x419d3c
cmp eax, 0x3fff
ja 0x419d3c
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x419d3c
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x4008]
push eax
push 0x50b988
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x419d3c
push ebx
push 0
push edi
call fcn.004d8680
mov ecx, dword [ebp - 0x4008]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebx - 1]
push eax
push edi
call fcn.00419ded
xor eax, eax
add esp, 0x28
inc eax
jmp 0x419d3e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496974
leave
ret 0xc
Function at 0x41a076
Capabilities:
Check if file exists
Copy file
Create directory

Disassembly:
push 0x2c
mov eax, 0x502c9e
call fcn.004969f0
mov esi, ecx
mov dword [ebp - 0x38], esi
lea eax, [esi + 0x40]
mov dword [esi + 0x28], 2
push 0
push dword [eax]
mov dword [ebp - 0x2c], eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
and dword [ebp - 0x24], 0
lea eax, [esi + 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], str.update.exe
mov dword [ebp - 0x18], str.UtilModule.dll
mov dword [ebp - 0x14], str.curlnet.dll
mov dword [ebp - 0x28], eax
push 0x50e0d4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040c138
mov edi, dword [ebp + esi*4 - 0x1c]
and dword [ebp - 4], 0
push edi
call fcn.00404bde
add esp, 0x10
lea ecx, [ebp - 0x20]
push eax
push edi
call fcn.0040bcc3
push edi
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
call fcn.0040c138
add esp, 0xc
push dword [ebp - 0x20]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a19e
push edi
push dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
call fcn.0040c138
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.0040bb50
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00405428
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a19e
push str.Utils
push dword [ebp - 0x28]
lea eax, [ebp - 0x34]
push eax
call fcn.0040c138
add esp, 0xc
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040bb50
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00405428
push edi
call fcn.00404bde
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call fcn.0040bcc3
push dword [ebp - 0x20]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a1a8
push 0
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405428
mov eax, dword [ebp - 0x28]
inc esi
cmp esi, 3
jb 0x41a0c8
mov ecx, dword [ebp - 0x38]
call fcn.0041a30a
xor eax, eax
call fcn.0049699a
ret 4
Function at 0x41a1e1
Capabilities:
Read .ini file

Disassembly:
push 0x218
mov eax, 0x502ce4
call fcn.004969f0
mov edi, ecx
lea esi, [edi + 0x44]
mov ecx, esi
call fcn.00411de0
test eax, eax
je 0x41a302
cmp dword [ebp + 0xc], 0
je 0x41a302
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [edi + 0x38]
push 0x103
push eax
push 0x50d630
push 0x50e180
push str.ADBlockMasterSetup_officialwebsite.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00404804
and dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.00419de1
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, esi
call fcn.00414ff6
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x41a2f0
push str.update_
lea eax, [edi + 0x34]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040c138
push str.ADBlockMasterSetup_officialwebsite.exe
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040c138
add esp, 0x18
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00419dd5
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, dword [ebp - 0x220]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00405428
mov ecx, esi
call fcn.00419b4d
test eax, eax
je 0x41a302
mov dword [edi + 0x28], 3
call fcn.0049699a
ret 0xc

Function at 0x41a30a
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.adbk_update.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.00496974
leave
ret
Function at 0x41b446
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
mov dword [ebp - 0x874], ecx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.update_temp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.00418476
push 0x50e440
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.0041ba35
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x41b50d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41b637
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x41b5e9
mov esi, dword [ebp - 0x86c]
and esi, 0x10
je 0x41b59b
mov ecx, 0x50e448
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b554
test dx, dx
je 0x41b550
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b554
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b52e
xor eax, eax
jmp 0x41b559
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b5e9
mov ecx, 0x50e44c
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41b592
test dx, dx
je 0x41b58e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41b592
add eax, 4
add ecx, 4
test dx, dx
jne 0x41b56c
xor eax, eax
jmp 0x41b597
sbb eax, eax
or eax, 1
test eax, eax
je 0x41b5e9
test esi, esi
jne 0x41b5e9
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x86c]
push eax
push edi
call ebx
test eax, eax
jne 0x41b518
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x870]
call fcn.00404804
lea ecx, [ebp - 0x870]
push ecx
mov ecx, dword [ebp - 0x874]
call fcn.0041b665
mov ecx, dword [ebp - 0x870]
add ecx, 0xfffffff0
call fcn.00405428
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496974
leave
ret
Function at 0x41b665
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00496b80
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x41b6f2
push edi
push 7
pop ecx
lea edi, [ebp - 0x2024]
rep stosd dword es:[edi], eax
push 0x2000
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x2004]
push eax
mov dword [ebp - 0x2020], 3
call fcn.004d8680
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.004def72
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00496974
leave
ret 4

Function at 0x41b7c6
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push 0x210
mov eax, 0x502f0f
call fcn.004969f0
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x218]
mov ebx, 0x104
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.config.ini
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b8c9
mov dword [ebp - 4], edi
call fcn.00404f6e
push eax
lea ecx, [ebp - 0x21c]
call fcn.004047db
push ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 1
call fcn.00405303
push ebx
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.0040546c
lea eax, [ebp - 0x218]
push eax
push ebx
push esi
push 0x50d0a8
push str.state
push str.update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x21c]
call fcn.00405440
mov esi, dword [ebp - 0x21c]
push str.ADBlockMasterUpdate
push esi
call fcn.0041baad
pop ecx
pop ecx
test eax, eax
je 0x41b8bc
push str.bigupdate
push esi
call fcn.0041baad
pop ecx
pop ecx
test eax, eax
jne 0x41b8bf
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.00405428
mov eax, edi
call fcn.0049699a
ret

Function at 0x41c4fb
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41c570
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00406343
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00496974
leave
ret
Function at 0x41c7b9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1058
call fcn.00496b80
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x1058]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x44
pop edi
push edi
push 0
push eax
call fcn.004d8680
add esp, 0xc
mov dword [ebp - 0x1058], edi
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor eax, eax
mov dword [ebp - 0x102c], 1
mov word [ebp - 0x1028], ax
lea edi, [ebp - 0x1014]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ebx, ebx
je 0x41c86a
push 0x1000
xor edi, edi
lea eax, [ebp - 0x1004]
push edi
push eax
call fcn.004d8680
push ebx
push esi
lea eax, [ebp - 0x1004]
push str.__s___s
push eax
call fcn.0041c189
add esp, 0x1c
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x1004]
push eax
push edi
jmp 0x41c882
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1058]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x41c8a4
push dword [ebp - 0x1010]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1014]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496974
leave
ret
Function at 0x41ff70
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503243
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x420015
cmp word [esi], di
je 0x420015
test eax, eax
je 0x41ffd1
cmp word [eax], di
je 0x41ffd1
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x420015
jmp 0x420010
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d8680
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x420015
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x42007b
lea esi, [ebx + 0x38]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x42003b
mov eax, dword [esi]
push esi
call dword [eax]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x42009b
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov byte [ebp - 4], 2
test esi, esi
je 0x420063
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x42007b
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496974
mov esp, ebp
pop ebp
ret 0x30
call fcn.0041d423
int3
Function at 0x421180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x54a708]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x551a10], 0
push esi
jne 0x4212a7
cmp dword [ecx + 0x2c], 8
lea eax, [ecx + 0x18]
mov dword [ebp - 0x818], 0
mov dword [ebp - 0x814], 0
mov dword [ebp - 0x810], 0
jb 0x4211cb
mov eax, dword [eax]
push edi
push 0x20219
push eax
push dword [ecx + 0x30]
lea ecx, [ebp - 0x818]
call fcn.0040fa50
mov edi, dword [ebp - 0x818]
test eax, eax
jne 0x42129b
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], 0x800
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push 0x5118d4
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42129b
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x42122f
cmp eax, 2
jne 0x42129b
mov eax, dword [ebp - 0x808]
test eax, eax
je 0x42124c
test al, 1
jne 0x42129b
shr eax, 1
cmp word [ebp + eax*2 - 0x806], 0
je 0x421255
jmp 0x42129b
xor eax, eax
mov word [ebp - 0x804], ax
mov ecx, 0x551a10
lea esi, [ebp - 0x804]
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42128e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42128e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x421270
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x4212a6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push 0x551a10
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4212fb
mov ecx, 0x551a10
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x4212ee
movzx eax, word [esi + ecx]
test ax, ax
je 0x4212ee
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4212d0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 0x551a10
xor ecx, ebp
pop esi
call fcn.00496974
mov esp, ebp
pop ebp
ret
Function at 0x429040
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x429065
or esi, 1
push 1
call edi
test ax, ax
jns 0x429071
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x42907d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x429089
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x42be60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
xor esi, esi
lea ecx, [ebx + 0xe0]
call fcn.00425a90
mov edi, dword [ebp + 8]
test eax, eax
jle 0x42bebb
nop
push esi
lea ecx, [ebx + 0xe0]
mov byte [ebp + 0xb], 0
call fcn.00425360
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x42bfec
lea ecx, [ebx + 0xe0]
inc esi
call fcn.00425a90
cmp esi, eax
jl 0x42be80
sub edi, 0x100
je 0x42bf81
sub edi, 4
je 0x42bf22
sub edi, 2
jne 0x42bf76
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
call fcn.004df344
mov ecx, dword [ebx + 0x58]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push VariantTimeToDosDateTime
push edx
push 0x42dcd0
call dword [eax + 0x14c]
mov esi, eax
test esi, esi
je 0x42bf76
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x13c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0x5c], 0
je 0x42bf76
xor eax, eax
mov dword [ebp - 0x20], 6
mov word [ebp - 2], ax
xorps xmm0, xmm0
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x74]
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0xa], xmm0
mov dword [ebp - 0x10], eax
call fcn.00429040
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x5c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + pe_nt_image_headers32]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x42bf76
mov ecx, dword [ebx + 0x5c]
test ecx, ecx
je 0x42bfd3
mov eax, dword [ecx]
mov eax, dword [eax + 0x110]
call eax
test al, al
je 0x42bfd3
mov ecx, dword [ebx + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x11c]
call eax
test al, al
je 0x42bfd3
mov ecx, dword [ebx + 0x5c]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0x10]
push eax
call fcn.004d74e0
add esp, 8
test eax, eax
je 0x42bfd3
mov ecx, dword [ebx + 0x5c]
call fcn.00440890
test al, al
jne 0x42bf76
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, ebx
setns al
movzx eax, al
push eax
call fcn.0042d470
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42e590
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esi + 4]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x20], xmm0
xor ebx, ebx
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42e659
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x42e659
cmp dword [ebp - 0x1c], 0x10
jne 0x42e620
cmp dword [ebp - 0x20], esi
jne 0x42e620
mov eax, dword [ebp - 0x18]
push 1
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov ebx, 1
lea eax, [ebp - 0x20]
push eax
call fcn.0042da60
add esp, 4
test al, al
jne 0x42e644
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x42e659
test ebx, ebx
jne 0x42e659
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x42e5e6
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x42e67b
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x42e690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42e6d5
cmp byte [ebp + 8], 0
je 0x42e6c9
cmp byte [ebp + 0xc], 0
mov ecx, 1
mov eax, 4
cmovne eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
xor eax, eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8