joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d865
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 0x80], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x7f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x108], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x80
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x40d8ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSyncEngine::GetAndDisplaySystemInfo__GetWindowsDirectory___Fail__ErrCode___d
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [0x476a9c]
call fcn.004092d8
or eax, 0xffffffff
jmp 0x40da8e
push 0x80
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x40d941
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSyncEngine::GetAndDisplaySystemInfo__GetSystemDirectory___Fail__ErrCode___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov eax, 0xfffffffe
jmp 0x40da8e
call fcn.00404470
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
je 0x40d97d
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xd0]
push edx
push 0x46e6d4
mov eax, dword [ebp - 0x10c]
add eax, 0xdc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
jmp 0x40d993
push str.Unknown_program_version
mov ecx, dword [ebp - 0x10c]
add ecx, 0xdc
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x80]
push ecx
push 0x46e704
push 0x4767b0
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
push str.CSyncEngine::GetAndDisplaySystemInfo__Windows_Directory_:__s
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
lea ecx, [ebp - 0x80]
push ecx
push 0x46e748
mov edx, dword [ebp - 0x10c]
add edx, 0xdc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x46e764
push 0x4767b4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push str.CSyncEngine::GetAndDisplaySystemInfo__System_Directory_:__s
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push 0x46e7a4
mov ecx, dword [ebp - 0x10c]
add ecx, 0xdc
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov edx, dword [ebp - 0x10c]
add edx, 0x1c
push edx
call fcn.0040af0b
add esp, 4
mov eax, dword [ebp - 0x10c]
add eax, 0x1c
push eax
push str.CSyncEngine::GetAndDisplaySystemInfo__Local_IP_Addr_:__s
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov edx, dword [ebp - 0x10c]
add edx, 0x1c
push edx
push 0x46e7fc
mov eax, dword [ebp - 0x10c]
add eax, 0xdc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4114a3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c839
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 1
push 0x470304
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx + 0x2c]
call fcn.0044fb09
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x24]
add ecx, 0x34
call fcn.00415db0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4115cd
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x34
call fcn.00415dd0
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x1c], 6
jne 0x4115c8
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x30], 0
je 0x4115c8
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.004115e8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4115c8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::HandleRegistryTypeFiles__Delete_Local_Flle___s
push 3
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4115c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::HandleRegistryTypeFiles__DeleteFile__s__Error__ErrCode___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov dword [ebp - 0x14], 0
jmp 0x41150f
cmp dword [ebp - 0x14], 1
jne 0x4115d7
xor eax, eax
jmp 0x4115da
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4115e8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push 0x4703b4
lea edx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::ProcessRegistryFile__Cmd_Str_:_regedit__s__s
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
push 0x5c
mov ecx, dword [ebp + 8]
add ecx, 0x14
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x14
call sub.MFC42.DLL_CString::Left
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
add edx, 1
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
call sub.MFC42.DLL_CString::Mid
mov byte [ebp - 4], 2
push 0
push 0x4703f8
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x20]
call fcn.004020c0
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44]
call fcn.004020c0
push eax
lea ecx, [ebp - 0x18]
call fcn.004020c0
push eax
push str.regedit
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x10], 0x20
jle 0x41175f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
push 0x47040c
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2c]
jmp 0x4117ad
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::ProcessRegistryFile___s
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov dword [ebp - 0x30], 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x411ddd
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 8]
call fcn.004020a0
test eax, eax
je 0x411e24
push str.CSyncEngine::ProcessRegisterFile2ByRegSvr32__Unknown_file_path.
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0xc
or eax, 0xffffffff
jmp 0x411f94
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push str.CSyncEngine::ProcessRegisterFile2ByRegSvr32__Target_file___s
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
push 0x5c
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::Mid
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [0x4767b4]
push eax
push str._s_regsvr32.exe__s__s
lea ecx, [ebp - 0x20]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [ebp - 0x20]
push edx
push str.CSyncEngine::ProcessRegisterFile2ByRegSvr32__Cmd_Str___s
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
push 0
lea ecx, [ebp - 0x20]
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x1f
jg 0x411f43
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push str.CSyncEngine::ProcessRegisterFile2ByRegSvr32__WinExec__s__Fail__ErrCode___d
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov dword [ebp - 0x24], 0xfffffffe
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
jmp 0x411f94
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.CSyncEngine::ProcessRegisterFile2ByRegSvr32__File__s__is_registered._RetVal___d
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x14
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41236e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c98d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 0
push 0x470bc8
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0x2c]
call fcn.0044fb09
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x20]
add ecx, 0x34
call fcn.00415db0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x412466
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x34
call fcn.00415dd0
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x1c], 4
jne 0x412461
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::HandleDeleteTypeFiles__Delete_Local_Flle___s
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x412461
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::HandleDeleteTypeFiles__DeleteFile__s__Error__ErrCode___d
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
jmp 0x4123d3
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x416090
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cd12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], 1
push 0x3c
push 0
lea eax, [ebp - 0x48]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.CSyncEngine::GetProcessHandleByShellExecute__File_s__Parameters_s
push 2
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0x500
mov dword [ebp - 0x3c], 0x4725dc
lea ecx, [ebp + 8]
call fcn.004020c0
mov dword [ebp - 0x38], eax
lea ecx, [ebp + 0xc]
call fcn.004020a0
test eax, eax
jne 0x416120
lea ecx, [ebp + 0xc]
call fcn.004020c0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0x40
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x41618c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
push edx
push str.CSyncEngine::GetProcessHandleByShellExecute__ShellExecuteEx___Fail__ErrNo___d
push 2
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x50]
jmp 0x4161b0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x417900
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x41b5ef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 0x14]
call sub.MFC42.DLL_CString::Empty
lea eax, [ebp - 0x40c]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41b62d
xor eax, eax
jmp 0x41b6c4
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x404], eax
mov dword [ebp - 0x408], 0x400
push 0x400
push 0
lea ecx, [ebp - 0x400]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x404]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41b69a
mov ecx, dword [ebp - 0x40c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x41b6c4
mov edx, dword [ebp - 0x40c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x400]
push eax
push 0x4729a8
mov ecx, dword [ebp + 0x14]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 0x14

Function at 0x429bd7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x10], 0
je 0x429bfb
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0042fe9c
jmp 0x429cc3
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x138]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00429cc9
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jge 0x429c3f
jmp 0x429cc3
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00402060
cmp eax, dword [ebp - 4]
jge 0x429c5f
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.00402060
mov dword [ebp - 0x14], eax
jmp 0x429c65
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x138], eax
cmp dword [ebp - 8], 0
jne 0x429c8b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x138]
mov dword [ecx + 0x13c], eax
jmp 0x429ca3
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x13c], 0xffffffff
jne 0x429ca3
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x13c], eax
cmp dword [ebp + 0x14], 0
jne 0x429cc3
mov ecx, dword [ebp - 0x10]
call fcn.0042a0e0
mov ecx, dword [ebp - 0x10]
call fcn.00428ba0
push 0
mov ecx, dword [ebp - 0x10]
call fcn.00404a40
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42aa59
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
and eax, 0xffff
mov word [ebp - 4], ax
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0x412
jne 0x42aa8b
mov ax, 1
jmp 0x42ab27
mov ecx, dword [ebp - 4]
and ecx, 0xffff
cmp ecx, 0x411
jne 0x42aaa5
mov ax, 2
jmp 0x42ab27
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 0x804
je 0x42aaf6
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0x404
je 0x42aaf6
mov ecx, dword [ebp - 4]
and ecx, 0xffff
cmp ecx, 0xc04
je 0x42aaf6
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 0x1004
je 0x42aaf6
mov eax, dword [ebp - 4]
and eax, 0xffff
cmp eax, 0x1404
jne 0x42aafc
mov ax, 3
jmp 0x42ab27
mov ecx, dword [ebp - 4]
and ecx, 0xffff
cmp ecx, 0x401
je 0x42ab1e
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 0xc01
jne 0x42ab24
mov ax, 4
jmp 0x42ab27
xor ax, ax
mov esp, ebp
pop ebp
ret
Function at 0x42e287
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x42e2a3
jmp 0x42e31e
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
neg edx
sbb edx, edx
neg edx
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x42e2e3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x13c], 0
jge 0x42e2e1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x138]
mov dword [ecx + 0x13c], eax
jmp 0x42e2f0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x13c], 0xffffffff
mov ecx, dword [ebp - 8]
add ecx, 0x44
call fcn.00402060
mov edx, dword [ebp - 8]
mov dword [edx + 0x138], eax
mov ecx, dword [ebp - 8]
call fcn.0042a0e0
push 0
mov ecx, dword [ebp - 8]
call fcn.00404a40
mov ecx, dword [ebp - 8]
call fcn.00428ba0
mov esp, ebp
pop ebp
ret
Function at 0x430942
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ddd5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x120], 0
je 0x430973
xor eax, eax
jmp 0x430a64
mov dword [ebp - 0x14], 0xd
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x43098f
xor eax, eax
jmp 0x430a64
mov ecx, dword [ebp - 0x28]
call fcn.00433810
test eax, eax
jne 0x4309a2
xor eax, eax
jmp 0x430a64
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4309e6
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4309dc
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x430a64
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
push edx
push 0x472b80
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 0x476840
push str._r_n_t___0_X___
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Replace
push 0x472b88
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::TrimRight
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
lea edx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
call fcn.0042706b
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4330fd
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0xe5
jne 0x433153
cmp dword [ebp + 0xc], 0
jbe 0x43313c
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00433194
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x43313c
cmp dword [ebp - 4], 0xe5
je 0x43313c
mov eax, dword [ebp - 4]
jmp 0x43318e
push 1
mov edx, dword [ebp + 0xc]
shr edx, 0x10
and edx, 0xffff
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
jmp 0x43318e
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040c572
add esp, 4
test eax, eax
je 0x43318b
push 2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x433180
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
jmp 0x433186
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x43318e
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 8