joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423220
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
sub esp, 0x824
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x820], eax
push edi
mov edi, dword [esp + 0x82c]
test edi, edi
jne 0x423274
push 0x471e88
push str...commonutility.cpp
push 0x10c
push str.Line_no_d_source_s_SHDeleteFile_NULL__sfile__s._r_n
call fcn.0040cfa0
add esp, 0x10
xor eax, eax
pop edi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x824
ret
xor eax, eax
push 0x81e
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0044fe60
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423293
sub eax, edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 8]
push edi
push eax
call fcn.00450ff0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4232de
mov eax, 1
pop edi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x824
ret
push 0x80
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x423310
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str...commonutility.cpp
push 0x119
push str.Line_no_d_source_s_SHDeleteFile
call fcn.0040cfa0
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4232c3
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x423326
mov ecx, dword [str..old]
mov edx, dword [0x471d78]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [eax], ecx
mov cx, word [0x471d7c]
mov dword [eax + 4], edx
push 1
lea edx, [esp + 0xc]
push edx
push edi
mov word [eax + 8], cx
call esi
test eax, eax
jne 0x4233c6
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423370
sub eax, edx
sar eax, 1
add eax, 4
cmp eax, 0x40f
jae 0x4233ed
lea eax, [esp + 8]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x423390
mov ecx, dword [str..old]
mov edx, dword [0x471d78]
mov dword [eax], ecx
mov cx, word [0x471d7c]
mov dword [eax + 4], edx
push 1
lea edx, [esp + 0xc]
push edx
push edi
mov word [eax + 8], cx
call esi
test eax, eax
je 0x423363
push 4
push 0
lea eax, [esp + 0x10]
push eax
call esi
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x824
ret
mov ecx, dword [esp + 0x828]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.0044ffb3
add esp, 0x824
ret
Function at 0x423410
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x2214
call fcn.00450b30
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x2210], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2220]
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x1020]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4234c2
mov edx, dword [esp + 0x10]
shr edx, 2
xor edi, edi
test edx, edx
jle 0x4234c2
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esp + edi*4 + 0x1018]
push eax
push 0
push 0x410
call ebx
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x20]
mov esi, eax
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov ecx, dword [esp + 0x18]
push 0x208
lea eax, [esp + 0x201c]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [esp + 0x2018]
push ebp
push edx
call fcn.0045378e
add esp, 8
test eax, eax
jne 0x4234dd
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
cmp edi, eax
jl 0x423461
xor eax, eax
mov ecx, dword [esp + 0x2220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ffb3
add esp, 0x2214
ret
mov eax, dword [esp + edi*4 + 0x1018]
jmp 0x4234c4

Function at 0x4234f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call fcn.00423410
add esp, 4
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x423513
xor eax, eax
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x42350f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
ret

Function at 0x423560
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
mov ebx, dword [esp + 0x118]
push esi
push edi
mov edi, dword [esp + 0x11c]
push 0x104
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0044fe60
mov eax, dword [esp + 0x130]
lea edx, [esp + 0x1c]
add esp, 0xc
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4235a6
lea eax, [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4235b7
lea ecx, [esp + 0xc]
push ecx
push edi
sub eax, edx
push SysReAllocString
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4235f0
push esi
lea edx, [esp + 0x14]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x423615
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x10c
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044ffb3
add esp, 0x10c
ret
Function at 0x423670
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x489320], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4236c2
push 0
push esi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4236b2
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x489320]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x4236d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, dword [esp + 0x44]
push edi
push esi
xor edi, edi
call fcn.00423030
add esp, 4
test eax, eax
je 0x423762
push 0x38
lea eax, [esp + 0x10]
push edi
push eax
call fcn.0044fe60
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add esp, 0xc
neg edx
sbb edx, edx
lea eax, [esp + 8]
and edx, 5
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], str.open
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
cmp dword [esp + 0x54], edi
je 0x423764
mov ecx, dword [esp + 0x40]
push 0x7d0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov eax, esi
pop esi
add esp, 0x3c
ret
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret

Function at 0x423770
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
movzx edi, word [esp + 0x18]
push eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4237b1
mov ecx, dword [esp + 0x14]
push edi
push ecx
push str...commonutility.cpp
push 0x325
push str.Line_no_d_source_s_Resource_not_found:__s_ResId_d_r_n
call fcn.0040cfa0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x423811
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str...commonutility.cpp
push 0x335
push str.Line_no_d_source_s_File_create_failed_FileName_s_GetLastError_d_r_n
call fcn.0040cfa0
add esp, 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x423840
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x134], eax
push edi
mov edi, dword [esp + 0x140]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x10]
mov ecx, 9
cmp cx, ax
je 0x42388a
mov edx, 0xa
cmp dx, ax
je 0x42388a
mov ecx, 6
cmp cx, ax
jne 0x4238b2
lea edx, [esp + 4]
push edx
push 0xf023f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4238cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x423914
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x423914
push 0x104
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.0044fe60
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.DisplayVersion
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42394e
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str...commonutility.cpp
push 0x3a3
push str.Line_no_d_source_s_GetAdsVersion_failed._r_n
call fcn.0040cfa0
add esp, 0xc
xor eax, eax
pop edi
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x138
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
push ecx
push 0
push 0
call esi
push eax
push edi
push 0xffffffffffffffff
lea edx, [esp + 0x44]
push edx
push 0
push 0
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
pop esi
pop edi
xor ecx, esp
mov eax, 1
call fcn.0044ffb3
add esp, 0x138
ret

Function at 0x4239a0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 4]
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x423a13
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 4]
push esi
push esi
push 0x10
neg edx
lea eax, [esp + 0x14]
push eax
sbb edx, edx
push esi
and edx, 2
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 4]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x423a20
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x134], eax
push ebx
mov ebx, dword [esp + 0x140]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x10]
mov ecx, 9
cmp cx, ax
je 0x423a6a
mov edx, 0xa
cmp dx, ax
je 0x423a6a
mov ecx, 6
cmp cx, ax
jne 0x423a88
lea edx, [esp + 4]
push edx
push 0xf023f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x423a9d
lea eax, [esp + 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallADSafe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x423ae9
push 0x104
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0044fe60
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.DisplayIcon
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x423b2a
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str...commonutility.cpp
push 0x150
push str.Line_no_d_source_s_GetInstallFileName_failed_error_d._r_n
call fcn.0040cfa0
add esp, 0x10
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x134]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x138
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
call edi
mov esi, eax
push esi
push ebx
push 0xffffffffffffffff
lea edx, [esp + 0x48]
push edx
push 0
push 0
call edi
mov ecx, dword [esp + 0xc]
xor eax, eax
push ecx
mov word [ebx + esi*2], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044ffb3
add esp, 0x138
ret
Function at 0x423b90
Capabilities:
Create directory

Disassembly:
sub esp, 0x234
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x230], eax
xor eax, eax
push esi
mov esi, dword [esp + 0x23c]
push 3
mov dword [esp + 8], 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 + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 8]
push esi
push eax
call fcn.004537ef
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x423c0b
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x234
ret
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call edi
test eax, eax
je 0x423c35
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x234
ret
push 0x208
lea edx, [esp + 0x34]
push 0
push edx
call fcn.0044fe60
push esi
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.00453839
add esp, 0x18
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x423c8f
lea ecx, [esp + eax*2 + 0x2e]
movzx eax, word [ecx]
cmp ax, 0x5c
je 0x423c7b
cmp ax, 0x2f
jne 0x423c80
xor edx, edx
mov word [ecx], dx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x423ca8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x234
ret
lea ecx, [esp + 0x30]
push ecx
call edi
test eax, eax
jne 0x423cc0
lea edx, [esp + 0x30]
push edx
call fcn.00423b90
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x238]
pop edi
pop esi
xor ecx, esp
call fcn.0044ffb3
add esp, 0x234
ret
Function at 0x423fe0
Capabilities:
Copy file
Delete file
Move file
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4693cb
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov edi, dword [esp + 0x264]
mov esi, dword [esp + 0x268]
push edi
call fcn.00423030
add esp, 4
test eax, eax
je 0x424155
cmp dword [esp + 0x26c], 0
jne 0x424053
push esi
call fcn.00423030
add esp, 4
test eax, eax
jne 0x424155
push esi
call fcn.004230a0
push esi
call fcn.00423030
add esp, 8
test eax, eax
je 0x424147
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x424147
push esi
lea ecx, [esp + 0x30]
call fcn.00404430
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x268], 0
mov dword [esp + 0x18], 0x5c
call fcn.00401ad0
cmp eax, 0xffffffff
je 0x42413e
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x38]
call fcn.004044a0
push 0x208
lea edx, [esp + 0x4c]
push 0
push edx
call fcn.0044fe60
add esp, 0xc
push 0x208
lea eax, [esp + 0x4c]
push eax
push 0x4720b4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x4240fb
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov edx, ecx
push 0x46c8b4
push edx
call fcn.00401040
add esp, 0x10
push 1
lea eax, [esp + 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x10]
test eax, eax
jne 0x424139
call fcn.004021f0
lea ecx, [esp + 0x2c]
call fcn.004021f0
xor eax, eax
jmp 0x42415e
call fcn.004021f0
lea ecx, [esp + 0x2c]
call fcn.004021f0
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x424159
xor eax, eax
jmp 0x42415e
mov eax, 1
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x254
ret
Function at 0x4242e0
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x61c
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x618], eax
push esi
push 0x208
lea eax, [esp + 0x210]
push 0
push eax
call fcn.0044fe60
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add esp, 0xc
push 0x208
lea ecx, [esp + 0x210]
push ecx
push str.PROGRAMFILES
call esi
push str.ADSafe
lea edx, [esp + 0x210]
push edx
mov eax, edx
push 0x46c8b4
push eax
call fcn.00401040
lea eax, [esp + 0x21c]
add esp, 0x10
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424350
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x210]
push ecx
mov ecx, 0x486e54
call fcn.00403680
push 0x208
lea edx, [esp + 8]
push 0
push edx
call fcn.0044fe60
add esp, 0xc
push 0x208
lea eax, [esp + 8]
push eax
push str.APPDATA
call esi
push str.ADSafe3
lea ecx, [esp + 8]
push ecx
mov edx, ecx
push 0x46c8b4
push edx
call fcn.00401040
add esp, 0x10
lea eax, [esp + 4]
lea edx, [eax + 2]
pop esi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4243c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 4]
push eax
mov ecx, 0x486e8c
call fcn.00403680
push 0x208
lea ecx, [esp + 0x414]
push 0
push ecx
call fcn.0044fe60
add esp, 0xc
lea edx, [esp + 0x410]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x424417
xor ecx, ecx
mov word [esp + eax*2 + 0x40e], cx
lea eax, [esp + 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x424421
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x414]
push edx
mov ecx, 0x486e70
call fcn.00403680
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x61c
ret
Function at 0x427329
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x42733f
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x42734b
or edi, 1
push 1
call esi
test ax, ax
jge 0x427357
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x427363
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x42736f
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x428c80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x428ca5
cmp ebx, dword [esi + 0x54]
je 0x428ca5
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x428d67
push edi
test eax, eax
je 0x428cf8
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + pe_nt_image_headers32]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.004287b8
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x428d66
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x428d66
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x428d66
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x428d66
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + pe_nt_image_headers32]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call fcn.004287b8
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x428f64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call fcn.0042620f
test eax, eax
jle 0x428fb3
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.004256c7
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x429014
mov ecx, edi
inc ebx
call fcn.0042620f
cmp ebx, eax
jl 0x428f82
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x42906d
sub eax, 4
je 0x429018
dec eax
dec eax
jne 0x429064
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.00451a56
pop ecx
mov ecx, dword [esi + 0x50]
push 0x8000000a
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x42823f
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x429064
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x429066
cmp dword [esi + 0x54], 0
je 0x429064
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00427329
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + pe_nt_image_headers32]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x429064
cmp dword [esi + 0x54], 0
je 0x4290bc
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4290bc
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4290bc
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0045378e
pop ecx
pop ecx
test eax, eax
je 0x4290bc
mov ecx, dword [esi + 0x54]
call fcn.0042ff6d
test al, al
jne 0x429064
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
movzx eax, al
push eax
mov ecx, esi
call fcn.00428e18
jmp 0x429014