joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae41
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [esp + 0xc], edi
jne 0x40ae76
mov eax, dword [0x423544]
cmp eax, edi
je 0x40ae64
mov ebx, dword [eax + 4]
jmp 0x40ae66
xor ebx, ebx
cmp ebx, edi
jne 0x40ae76
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x40ae9b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x40ae9b
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40ae9b
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0xc], 1
push dword [esp + 0x1c]
mov ecx, esi
push ebx
mov dword [esi + 0x2fc], edi
call fcn.004097fd
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x40aec5
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x40afac
push eax
call fcn.0040254c
cmp dword [esp + 0x20], edi
pop ecx
mov dword [esp + 0x10], eax
jne 0x40aedf
push ebx
lea ecx, [esi + 4]
call fcn.00402118
cmp dword [esi + 0x2f8], edi
je 0x40af51
push ebp
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x20]
je 0x40af34
push 1
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x20]
je 0x40af50
push edi
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
mov ecx, esi
call fcn.00413471
push 0x97
push edi
push edi
push edi
push edi
push edi
push dword [esi + 4]
mov dword [esi + 0x2fc], edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0xc], edi
je 0x40af96
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x40af96
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x40af96
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [esp + 0x10]
call fcn.0040254c
pop ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x28]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x40ee4b
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x423620], esi
mov dword [ebp - 4], esi
je 0x40ee67
xor eax, eax
inc eax
jmp 0x40ef05
push 0xf001f
push 4
push esi
lea eax, [ebp - 4]
push eax
push str.9287D704_2045_478e_A975_E1AFA99073D9
push 4
mov ecx, 0x423618
call fcn.0040e7f8
test eax, eax
jge 0x40ee8c
xor eax, eax
jmp 0x40ef05
cmp dword [ebp - 4], esi
je 0x40ef03
mov eax, dword [0x423618]
push ebx
mov ebx, dword [eax]
push edi
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push eax
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
call ebx
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [ebp - 4]
call ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
call edi
xor esi, esi
pop edi
inc esi
pop ebx
mov eax, esi
pop esi
leave
ret

Function at 0x40f2b7
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x40f30d
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x40f323
push 0x80004005
call fcn.00401020
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40f326
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40f883
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4234f4]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.0040f282
mov edi, eax
cmp edi, esi
je 0x40f8eb
lea ecx, [ebp - 0x70]
call fcn.0040f21d
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c236
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40f903
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.0040f883
cmp eax, esi
jne 0x40f936
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call edi
test eax, eax
je 0x40f8f3
lea ecx, [ebp - 0x70]
call fcn.0040f21d
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.0040f21d
mov eax, esi
jmp 0x40f8d1
Function at 0x412168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4234f4]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3b0]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call dword [0x4234ec]
xor edi, edi
push 2
push edi
push ebx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x78], ebx
jne 0x4121d3
call fcn.0040e7e3
mov esi, eax
jmp 0x41229f
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4121f0
call fcn.0040e7e3
jmp 0x412294
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x6c], eax
je 0x4121e6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x412249
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x412220
lea ecx, [ebp - 0x68]
call fcn.0040f832
mov esi, 0x8007000e
lea ecx, [ebp - 0x70]
call fcn.0040f769
mov ecx, dword [ebp + 0x39c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c236
add ebp, 0x3a0
leave
ret 0x10
push eax
lea ecx, [ebp - 0x68]
call fcn.00410298
mov ebx, dword [ebp - 0x68]
cmp ebx, edi
jne 0x412260
mov esi, 0x8007000e
jmp 0x412296
call dword [0x4234ec]
push esi
push ebx
push esi
push dword [ebp - 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x4121e6
mov ecx, dword [ebp - 0x68]
push dword [ebp + 0x3b4]
mov word [ecx + eax*2], di
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.00411746
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x412225
lea ecx, [ebp - 0x68]
call fcn.0040f832
jmp 0x412225

Function at 0x4131ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413255
cmp dword [ebp + 0x10], 1
je 0x41322e
cmp dword [ebp + 0x10], 2
je 0x41322e
push 0xd
pop eax
jmp 0x413255
test edi, edi
mov eax, dword [ebp - 4]
je 0x41324f
test eax, eax
je 0x41324b
test al, 1
jne 0x413229
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x41324f
jmp 0x413229
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4137fc
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x413846
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x41383f
cmp dword [esp + 8], 0x1b
jne 0x413826
push 0
push 2
jmp 0x413831
cmp dword [esp + 8], 0xd
jne 0x41383f
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x300], 0
pop esi
ret 0xc

Function at 0x413a33
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x413b4a
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
xor edi, edi
inc edi
cmp eax, edi
jne 0x413a70
push dword [ebp + 0x14]
mov dword [esi + 0x24], edi
call fcn.00413941
mov dword [ebx], eax
cmp dword [esi + 0x24], 0
je 0x413b11
mov eax, edi
jmp 0x413b4c
cmp eax, 5
jne 0x413a96
mov ecx, dword [ebp + 0x14]
movsx eax, word [ebp + 0x14]
shr ecx, 0x10
movsx ecx, cx
push ecx
push eax
push dword [ebp + 0x10]
mov ecx, esi
mov dword [esi + 0x24], edi
call fcn.004138f7
and dword [ebx], 0
jmp 0x413a5f
cmp eax, 0x133
jne 0x413ab9
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
push ecx
mov dword [esi + 0x24], edi
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.00413a10
jmp 0x413a5d
cmp eax, 0x138
jne 0x413adc
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
push ecx
mov dword [esi + 0x24], edi
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov eax, esp
mov dword [eax], ecx
mov ecx, esi
call fcn.00413a10
jmp 0x413a5d
cmp eax, 0xc
jne 0x413af5
push dword [ebp + 0x14]
mov dword [esi + 0x24], edi
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x413a5d
cmp eax, 0xd
jne 0x413b14
push dword [ebp + 0x10]
mov dword [esi + 0x24], edi
push dword [ebp + 0x14]
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413a5d
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 0x1c]
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
mov dword [ebp + 0x1c], edi
push eax
call fcn.0040a086
test eax, eax
mov dword [ebx], eax
jne 0x413b40
mov eax, dword [ebp + 0xc]
add eax, 0xfffffece
cmp eax, 6
ja 0x413b40
and dword [ebp + 0x1c], 0
cmp dword [ebp + 0x1c], 0
jne 0x413a69
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x4142d6
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [esp + 0xc]
lea edi, [eax + 1]
push edi
call fcn.00401650
push edi
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push esi
call fcn.00414006
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x4143b4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
push 0x4237c4
lea ecx, [ebp - 4]
call fcn.00402cf4
lea eax, [ebp - 4]
add esi, 0x38
push eax
mov ecx, esi
call fcn.004142d6
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
jne 0x4143ea
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [edi - 0x10]
call fcn.00401234
pop edi
pop esi
leave
ret

Function at 0x414620
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1bc]
sub esp, 0x23c
mov eax, dword [0x4234f4]
xor eax, ebp
mov dword [ebp + 0x1b8], eax
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x76]
push esi
push eax
mov word [ebp - 0x78], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push 9
pop ecx
mov word [ebp + 0x190], si
xor eax, eax
lea edi, [ebp + 0x192]
rep stosd dword es:[edi], eax
push 0x4237c4
lea ecx, [ebp - 0x7c]
stosw word es:[edi], ax
call fcn.00402cf4
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00401b67
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004018aa
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00401234
push str.securitykxescanquarantine.ini
lea ecx, [ebp - 0x7c]
call fcn.00401850
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push 0x208
push eax
push esi
push str.Path
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x41473d
push 0x14
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x41473d
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x7c]
mov word [ebp + 0x194], 0x5c
mov word [ebp + 0x196], si
call fcn.0040191b
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0041426b
add esp, 0xc
push eax
lea ecx, [ebp - 0x7c]
call fcn.004018aa
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00401234
push dword [ebp - 0x7c]
call fcn.00401f27
lea eax, [ebp - 0x7c]
push eax
call fcn.00401ab3
push dword [ebp - 0x7c]
call fcn.00401f27
add esp, 0xc
inc esi
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.00401234
mov ecx, dword [ebp + 0x1b8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041c236
add ebp, 0x1bc
leave
ret

Function at 0x414b59
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
inc eax
push eax
push 0
push 0
push str.http:__bbs.duba.net_forum_6412_1.html
push 0x41e1ac
push dword [ecx + 4]
mov dword [ecx + 0x3ac], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
ret
Function at 0x414b7b
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb0
mov eax, dword [0x4234f4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
mov esi, ecx
mov edi, 0x4237c4
push edi
lea ecx, [ebp - 0x34]
call fcn.00402cf4
push edi
lea ecx, [ebp - 0x30]
call fcn.00402cf4
xor edi, edi
push 0x9e
lea eax, [ebp - 0x2a]
push edi
push eax
mov word [ebp - 0x2c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x348]
call fcn.004142d6
push 0x50
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x378]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040191b
mov eax, dword [ebp - 0x30]
mov eax, dword [eax - 0xc]
cmp eax, 0x46
jle 0x414c1e
push 0x46
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040167a
push eax
lea ecx, [ebp - 0x30]
call fcn.004018aa
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.00401234
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebx - 0xc]
mov eax, 0x12c
cmp ecx, eax
jle 0x414c51
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040167a
push eax
lea ecx, [ebp - 0x34]
call fcn.004018aa
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.00401234
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebx - 0xc]
cmp eax, edi
jne 0x414c68
mov eax, dword [ebp - 0x30]
cmp dword [eax - 0xc], edi
jne 0x414c68
cmp dword [esi + 0x3ac], edi
je 0x414cb9
push 1
push edi
push dword [esi + 0x3ac]
lea eax, [ebp - 0x30]
push ecx
mov ecx, esp
push eax
call fcn.00401632
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401632
call fcn.0041a603
add esp, 0x14
push edi
push edi
push dword [esi + 0x3ac]
lea eax, [ebp - 0x30]
push ecx
mov ecx, esp
push eax
call fcn.00401632
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.00401632
call fcn.0041a6ac
add esp, 0x14
push 1
mov ecx, esi
call fcn.0041325b
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401234
lea ecx, [ebx - 0x10]
call fcn.00401234
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c236
add ebp, 0x78
leave
ret
Function at 0x415606
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [esp + 0xc], edi
jne 0x41563b
mov eax, dword [0x423544]
cmp eax, edi
je 0x415629
mov ebx, dword [eax + 4]
jmp 0x41562b
xor ebx, ebx
cmp ebx, edi
jne 0x41563b
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x415660
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x415660
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x415660
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0xc], 1
push dword [esp + 0x1c]
mov ecx, esi
push ebx
mov dword [esi + 0x2fc], edi
call fcn.00414e90
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x41568a
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x415771
push eax
call fcn.0040254c
cmp dword [esp + 0x20], edi
pop ecx
mov dword [esp + 0x10], eax
jne 0x4156a4
push ebx
lea ecx, [esi + 4]
call fcn.00402118
cmp dword [esi + 0x2f8], edi
je 0x415716
push ebp
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x20]
je 0x4156f9
push 1
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x20]
je 0x415715
push edi
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
mov ecx, esi
call fcn.00413471
push 0x97
push edi
push edi
push edi
push edi
push edi
push dword [esi + 4]
mov dword [esi + 0x2fc], edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0xc], edi
je 0x41575b
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x41575b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x41575b
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [esp + 0x10]
call fcn.0040254c
pop ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x28]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x4157c3
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov esi, ecx
mov dword [esp + 0xc], edi
jne 0x4157f8
mov eax, dword [0x423544]
cmp eax, edi
je 0x4157e6
mov ebx, dword [eax + 4]
jmp 0x4157e8
xor ebx, ebx
cmp ebx, edi
jne 0x4157f8
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
cmp ebx, edi
je 0x41581d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x41581d
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41581d
push edi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esp + 0xc], 1
push dword [esp + 0x1c]
mov ecx, esi
push ebx
mov dword [esi + 0x2fc], edi
call fcn.00415044
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x415847
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
jmp 0x41592e
push eax
call fcn.0040254c
cmp dword [esp + 0x20], edi
pop ecx
mov dword [esp + 0x10], eax
jne 0x415861
push ebx
lea ecx, [esi + 4]
call fcn.00402118
cmp dword [esi + 0x2f8], edi
je 0x4158d3
push ebp
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push edi
push edi
push 0x2001
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0x43
push edi
push edi
push edi
push edi
push edi
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp ebp, dword [esp + 0x20]
je 0x4158b6
push 1
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp ebp, dword [esp + 0x20]
je 0x4158d2
push edi
push ebp
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
mov ecx, esi
call fcn.00413471
push 0x97
push edi
push edi
push edi
push edi
push edi
push dword [esi + 4]
mov dword [esi + 0x2fc], edi
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [esp + 0xc], edi
je 0x415918
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp ebx, edi
je 0x415918
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 4]
jne 0x415918
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
push dword [esp + 0x10]
call fcn.0040254c
pop ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x28]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x418784
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4234f4]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
test esi, esi
je 0x418833
push 1
push 0x23
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x418801
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x418833
lea eax, [ebp - 0x20c]
push str.All_UsersApplication_Data
push eax
call fcn.00418747
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00418747
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 0xc
cmp eax, dword [ebp + 0x10]
jae 0x418833
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041c236
leave
ret 0xc

Function at 0x418972
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x4189f3
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call esi
cmp dword [ebp - 8], 1
jne 0x4189f2
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.004014ae
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
inc eax
push eax
call fcn.00401650
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call esi
test eax, eax
jne 0x4189f1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shr eax, 1
and word [ebx + eax*2], 0
push 0xffffffffffffffff
call fcn.00414006
mov dword [ebp - 0xc], 1
pop ebx
pop esi
mov eax, dword [ebp - 0xc]
pop edi
leave
ret 8