joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a1d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
push edi
mov ecx, esi
call fcn.0040aa12
lea eax, [ebp - 4]
push 0x4dec78
lea edi, [esi + 0x3e4]
push eax
call fcn.0040b3a6
pop ecx
pop ecx
push 1
xor edi, edi
push edi
push edi
push dword [ebp - 4]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
call fcn.004201f0
push edi
push edi
push 0x12
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040112f
pop edi
pop esi
leave
ret
Function at 0x40aa12
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push 0x7f4
mov eax, 0x4b34e3
call fcn.004989ce
mov edi, ecx
mov eax, dword [edi + 0x3c0]
mov eax, dword [eax + 0x4d0]
cmp eax, 2
jne 0x40ac9a
mov eax, dword [edi + 0x3bc]
mov al, byte [eax + 0x958]
cmp al, 1
jne 0x40ac9a
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x628], ax
xor ebx, ebx
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.0049ac70
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0049ac70
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.0049ac70
add esp, 0xc
push dword [0x4dec64]
lea eax, [ebp - 0x218]
push str._s.lnk
push eax
call fcn.0040c15f
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x800]
push 0x4dec78
add edi, 0x3e4
push eax
call fcn.0040b3a6
pop ecx
pop ecx
lea eax, [ebp - 0x7fc]
push eax
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
push 0x19
push ebx
mov dword [ebp - 0x7fc], ebx
call esi
mov edi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40ab1b
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x7fc]
call edi
push dword [ebp - 0x7fc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x7fc]
push eax
push ebx
push ebx
mov dword [ebp - 0x7fc], ebx
call esi
test eax, eax
jne 0x40ab4b
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x7fc]
call edi
push dword [ebp - 0x7fc]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x76c]
mov dword [ebp - 0x770], eax
xor eax, eax
mov word [ebp - 0x76c], ax
lea eax, [ebp - 0x218]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x770]
call fcn.0041a260
lea eax, [ebp - 0x6e4]
mov dword [ebp - 0x6e8], eax
xor eax, eax
mov word [ebp - 0x6e4], ax
lea eax, [ebp - 0x420]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x6e8]
call fcn.0041a260
lea eax, [ebp - 0x770]
push eax
lea eax, [ebp - 0x7f8]
mov edx, esi
call fcn.0041a370
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041a0f0
lea ecx, [ebp - 0x770]
call fcn.0041a0f0
push dword [ebp - 0x7f8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40abf2
push dword [ebp - 0x7f8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push str.DESKTOP_SHORTCUT_COMMENT
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x630], 7
mov dword [ebp - 0x634], ebx
mov word [ebp - 0x644], ax
call fcn.00401ab5
mov byte [ebp - 4], 2
call fcn.004012c0
push eax
lea ecx, [ebp - 0x644]
lea esi, [ebp - 0x660]
call fcn.00401224
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40ac42
mov eax, dword [eax]
mov edi, dword [ebp - 0x800]
lea ecx, [ebp - 0x628]
push ecx
mov ebx, eax
lea ecx, [ebp - 0x218]
call fcn.0040d2b5
pop ecx
push 0
push 1
lea ecx, [ebp - 0x660]
call fcn.00401adc
push 0
push 1
lea ecx, [ebp - 0x644]
call fcn.00401adc
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x7f8]
call fcn.0041a0f0
mov eax, dword [ebp - 0x800]
add eax, 0xfffffff0
call fcn.0040112f
call fcn.00498a51
ret
Function at 0x40aca0
Capabilities:
Read .ini file

Disassembly:
push 0x250
mov eax, 0x4b3021
call fcn.004989ce
xor esi, esi
mov dword [ebp - 4], esi
mov edi, ecx
mov ecx, ebx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x258], esi
call fcn.0040adff
mov dword [ebp - 4], esi
mov eax, dword [edi]
mov dword [ebp - 0x258], 1
cmp dword [eax - 0xc], esi
je 0x40adf7
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.0049ac70
lea eax, [ebp - 0x254]
push 0x4dec68
push eax
call fcn.0040b3a6
add esp, 0x14
mov dword [ebp - 4], 1
push dword [ebp - 0x254]
mov eax, dword [ebx]
push 0x208
lea ecx, [ebp - 0x218]
push ecx
push eax
push str.path
push str.Network
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00401b25
push ebx
call fcn.0040b24a
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], esi
mov byte [ebp - 0x234], 0
xor eax, eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], ax
mov byte [ebp - 4], 3
push dword [ebx]
lea esi, [ebp - 0x234]
call fcn.00403595
cmp dword [ebp - 0x220], 0x10
mov eax, dword [ebp - 0x234]
pop ecx
jae 0x40ada2
mov eax, esi
lea ecx, [ebp - 0x250]
push ecx
call fcn.0040388b
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
pop ecx
jae 0x40adc4
lea eax, [ebp - 0x250]
push eax
push ebx
call fcn.00401b25
push 0
push 1
lea ecx, [ebp - 0x250]
call fcn.00401adc
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.0040197a
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
call fcn.0040112f
mov eax, ebx
call fcn.00498a51
ret
Function at 0x40adff
Capabilities:
Get common file path

Disassembly:
push 0x220
mov eax, 0x4b2fb6
call fcn.004989ce
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x22c], ebx
call fcn.0040378f
mov dword [ebp - 4], ebx
xor esi, esi
lea eax, [ebp - 0x220]
inc esi
mov dword [esp], 0x4dec8c
push eax
mov dword [ebp - 0x22c], esi
call fcn.0040b3a6
mov eax, dword [eax]
pop ecx
pop ecx
mov ecx, eax
lea edx, [ecx + 2]
mov di, word [ecx]
add ecx, 2
cmp di, bx
jne 0x40ae4f
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jb 0x40ae6a
call fcn.0040af35
jmp 0x40ae6c
xor eax, eax
cmp eax, ebx
mov eax, dword [ebp - 0x220]
sete byte [ebp - 0x219]
add eax, 0xfffffff0
call fcn.0040112f
cmp byte [ebp - 0x219], bl
je 0x40af1e
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0049ac70
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40af1e
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x228]
push eax
lea edi, [ebp - 0x218]
call fcn.004017e2
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x224]
call fcn.0040b209
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
call fcn.0040112f
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x224]
call fcn.0040b3f5
mov eax, dword [ebp - 0x224]
call fcn.00498a51
ret

Function at 0x40becf
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4b262c
call fcn.004989ce
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x40bfb0
cmp byte [edi + 0x49], bl
je 0x40bfb0
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40bf04
xor al, al
jmp 0x40bfb2
lea esi, [ebp - 0x2c]
call fcn.0040bcf9
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40bf52
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x40bf57
dec eax
je 0x40bf5b
dec eax
dec eax
je 0x40bfac
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040197a
mov al, bl
jmp 0x40bfb2
mov edx, dword [ebp - 0x2c]
jmp 0x40bf1d
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40bf67
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x40bf8d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40bf7a
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.00496a47
add esp, 0x10
cmp esi, eax
jne 0x40bf40
cmp byte [edi + 0x49], 0
je 0x40bfac
test esi, esi
jne 0x40bf0f
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00403afd
jmp 0x40bf0f
mov bl, 1
jmp 0x40bf42
mov al, 1
call fcn.00498a51
ret
Function at 0x40cde5
Capabilities:
Set registry value

Disassembly:
push 0x214
mov eax, 0x4b25c8
call fcn.004989ce
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov ebx, ecx
call fcn.0049ac70
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x4c11c4]
mov word [ebp + eax - 0x218], cx
add eax, 2
test cx, cx
jne 0x40ce16
mov eax, dword [0x4ded44]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce34
lea edi, [ebp - 0x218]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40ce4a
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x21c]
push eax
push 0xf003f
and ecx, 3
push 0
lea eax, [ebp - 0x218]
rep movsb byte es:[edi], byte [esi]
push eax
mov esi, SysReAllocStringLen
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ceab
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40ceab
xor al, al
jmp 0x40cf54
mov eax, dword [0x4d71b4]
mov ecx, 0x4d71b4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
and dword [ebp - 4], 0
push dword [ebx]
lea eax, [ebp - 0x220]
push 0x4c0914
call fcn.00403c85
mov edi, dword [ebp - 0x220]
pop ecx
mov eax, edi
pop ecx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40cee4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push str.AppPath
push dword [ebp - 0x21c]
call esi
mov ecx, dword [ebx + 0xc]
mov eax, ecx
lea edx, [eax + 2]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x40cf18
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push 0
push 0x4be7f8
push dword [ebp - 0x21c]
call esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
call fcn.0040112f
mov al, 1
call fcn.00498a51
ret
Function at 0x40cf5a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4d897c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0049ac70
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_]
mov word [ebp + eax - 0x20c], cx
add eax, 2
cmp cx, bx
jne 0x40cf9b
mov eax, dword [0x4ded44]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cfb9
lea edi, [ebp - 0x20c]
sub eax, edx
sub edi, 2
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x40cfcf
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x210]
push eax
push 0xf023f
and ecx, 3
push ebx
lea eax, [ebp - 0x20c]
rep movsb byte es:[edi], byte [esi]
push eax
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d02f
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40d02f
xor al, al
jmp 0x40d17e
mov edi, dword [ebp - 0x214]
mov ecx, dword [edi + 4]
mov eax, ecx
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x40d03d
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push str.DisplayIcon
push dword [ebp - 0x210]
call esi
mov ecx, dword [0x4ded34]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x214], edx
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40d079
sub eax, dword [ebp - 0x214]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push str.DisplayName
push dword [ebp - 0x210]
call esi
mov ecx, dword [edi + 0xc]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x214], edx
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40d0b0
sub eax, dword [ebp - 0x214]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push str.DisplayVersion
push dword [ebp - 0x210]
call esi
mov ecx, dword [0x4ded3c]
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x214], edx
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40d0ea
sub eax, dword [ebp - 0x214]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push str.Publisher
push dword [ebp - 0x210]
call esi
mov ecx, dword [edi + 8]
mov eax, ecx
lea edx, [eax + 2]
mov di, word [eax]
add eax, 2
cmp di, bx
jne 0x40d11b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push str.UninstallString
push dword [ebp - 0x210]
call esi
mov ecx, dword [0x4ded30]
mov eax, ecx
lea edx, [eax + 2]
mov di, word [eax]
add eax, 2
cmp di, bx
jne 0x40d14b
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 1
push ebx
push str.URLInfoAbout
push dword [ebp - 0x210]
call esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00494bb0
leave
ret 4
Function at 0x40d25f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40d2b0
push ebx
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ebx, eax
sub esi, 2
mov ax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x40d289
push 0x15
pop ecx
push dword [ebp - 4]
mov edi, esi
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
mov eax, ebx
pop ebx
jmp 0x40d2b2
xor eax, eax
pop esi
leave
ret
Function at 0x40d2b5
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4d897c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], ecx
test eax, eax
jne 0x40d2e2
xor eax, eax
jmp 0x40d4c2
lea eax, [ebp - 0x418]
push eax
push 0x4b8eb0
push 1
push 0
push 0x4b8ec0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40d2db
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x41c]
push edx
push 0x4b8ee0
push eax
call dword [ecx]
test eax, eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
jns 0x40d32a
push eax
call dword [ecx + 8]
jmp 0x40d2db
test edi, edi
jne 0x40d336
push dword [0x4dd9d0]
jmp 0x40d337
push edi
push eax
call dword [ecx + 0x50]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.0049ac70
push 0x5c
push edi
call fcn.004979e4
add esp, 0x14
test eax, eax
jne 0x40d377
push 0x2f
push edi
call fcn.004979e4
pop ecx
pop ecx
test eax, eax
jne 0x40d377
mov eax, edi
jmp 0x40d37a
add eax, 2
sub eax, edi
push esi
sar eax, 1
mov esi, eax
push esi
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.00495d52
xor eax, eax
add esp, 0xc
mov word [ebp + esi*2 - 0x414], ax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
lea edx, [ebp - 0x414]
push edx
push eax
call dword [ecx + 0x24]
test ebx, ebx
je 0x40d3c0
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
cmp dword [ebp - 0x420], 0
je 0x40d3fd
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x424]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40d48b
push 0x5c
test edi, edi
je 0x40d406
push edi
jmp 0x40d40c
push dword [0x4dd9d0]
call fcn.004979e4
pop ecx
pop ecx
test eax, eax
jne 0x40d436
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x40d4c1
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d45b
push 0x6c
pop ecx
sub eax, edx
sar eax, 1
push 0x6e
mov word [ebp + eax*2 - 0x212], cx
pop ecx
push 0x6b
mov word [ebp + eax*2 - 0x210], cx
pop ecx
mov word [ebp + eax*2 - 0x20e], cx
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
test esi, esi
setns al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00494bb0
leave
ret
Function at 0x414970
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jns 0x414988
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414994
or esi, 1
push 1
call edi
test ax, ax
jns 0x4149a0
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4149ac
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4149b8
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x415610
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ebx, eax
cmp dword [edi + 0x1e8], esi
jle 0x415663
jmp 0x415630
mov eax, dword [edi + 0x1e4]
mov byte [ebp - 1], 0
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call edx
cmp byte [ebp - 1], 0
jne 0x415801
inc esi
cmp esi, dword [edi + 0x1e8]
jl 0x415630
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x41578a
sub eax, 4
je 0x4156d7
sub eax, 2
jne 0x41577f
push ebx
mov dword [ebp + 8], eax
call fcn.00495fa2
mov ecx, dword [edi + 0x16c]
add esp, 4
mov word [ebp + 8], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0xfc]
push reloc.OLEAUT32.dll_VariantCopyInd
lea eax, [ebp + 8]
push eax
push 0x4197d0
call edx
mov esi, eax
test esi, esi
je 0x41577f
mov eax, dword [esi]
mov edx, dword [eax + 0xf0]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0x170], 0
je 0x41577f
mov ecx, dword [edi + 0x184]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x180]
mov word [ebp - 0x10], bx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
call ebx
test ax, ax
jns 0x41572e
mov esi, 8
push 2
call ebx
test ax, ax
jns 0x41573a
or esi, 1
push 1
call ebx
test ax, ax
jns 0x415746
or esi, 2
push 0x10
call ebx
test ax, ax
jns 0x415752
or esi, 4
push 0x12
call ebx
test ax, ax
jns 0x41575e
or esi, 0x20
mov word [ebp - 0xe], si
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x170]
mov dword [ebp - 0x1c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [ebp - 0x24]
push eax
call edx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 9
jne 0x41577f
cmp dword [edi + 0x170], 0
je 0x4157ee
mov ecx, dword [edi + 0x170]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x4157ee
mov ecx, dword [edi + 0x170]
mov eax, dword [ecx]
mov edx, dword [eax + 0xd4]
call edx
test al, al
je 0x4157ee
mov ecx, dword [edi + 0x170]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push str.RichEditUI
call edx
push eax
call fcn.0049676b
add esp, 8
test eax, eax
je 0x4157ee
mov eax, dword [edi + 0x170]
cmp byte [eax + 0x4d9], 0
jne 0x41577f
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns bl
call fcn.004183f0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x417e90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
mov edi, eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi + 0x120]
cmp eax, ecx
je 0x417ebc
cmp esi, dword [edi + 0x170]
je 0x417ebc
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x170]
cmp esi, eax
je 0x417fd3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x417f39
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0x170]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 8]
push edx
call eax
mov ecx, dword [edi + 0x170]
push 0
push 0
push 0
push str.killfocus
call fcn.004188b0
mov dword [edi + 0x170], 0
test esi, esi
je 0x417fd3
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, edi
jne 0x417fd3
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x417fd3
mov edx, dword [esi]
mov eax, dword [edx + 0xd4]
mov ecx, esi
call eax
test al, al
je 0x417fd3
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [edi + 0x170], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0x170]
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 8]
push eax
call edx
mov ecx, dword [edi + 0x170]
push 0
push 0
push 0
push str.setfocus
call fcn.004188b0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420df0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1f8b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4d897c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 8], eax
xor ebx, ebx
mov dword [esi], vtable.DuiLib::CWindowWnd.0
mov dword [esi + 4], ebx
mov byte [esi + 0xc], bl
xor ecx, ecx
mov dword [esi + 0x10], vtable.DuiLib::CNotifyPump.0
mov eax, 0x53
mov dword [esi + 0x18], eax
mov edx, 4
mul edx
seto cl
mov dword [esi + 0x1c], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0045bc5f
push 0x14c
push ebx
push eax
mov dword [esi + 0x14], eax
call fcn.0049ac70
add esp, 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x20], vtable.DuiLib::INotifyUI.0
mov dword [esi + 0x24], vtable.DuiLib::IMessageFilterUI.0
mov dword [esi + 0x28], vtable.DuiLib::IDialogBuilderCallback.0
mov dword [esi], vtable.DuiLib::WindowImplBase.0
mov dword [esi + 0x10], vtable.DuiLib::WindowImplBase.1.0
mov dword [esi + 0x20], vtable.DuiLib::WindowImplBase.2.0
mov dword [esi + 0x24], vtable.DuiLib::WindowImplBase.3.0
mov dword [esi + 0x28], vtable.DuiLib::WindowImplBase.4.0
lea edi, [esi + 0x40]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
call fcn.004149c0
mov dword [esi + 0x2c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4