joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ecd0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4f5e12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebp
call dword [sym.imp.MFC71U.DLL_CGopherFileFind::IsDots]
test al, al
je 0x49ed2b
mov esi, dword [esp + 0x28]
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_9]
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebx
lea eax, [esp + 0x10]
push eax
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, ebp
je 0x49ee4b
push edi
lea edi, [ebx + 0xa]
lea ecx, [edi + edi]
push ecx
call sub.MFC71U.DLL_SerializeElements
mov ecx, edi
mov edx, ecx
mov esi, eax
shr ecx, 2
add esp, 4
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
add ebx, 2
push ebx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
push ebp
lea ecx, [esp + 0x44]
call dword [sym.imp.MFC71U.DLL_CRecordset::GetBoundParamIndex]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
pop edi
je 0x49ee42
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x503d24
push esi
mov dword [esp + 0x28], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49ee42
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x49ee42
cmp dword [esp + 0xc], 0x34
jb 0x49ee42
mov edx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 0xc]
push esi
mov dword [esp + 0x10], eax
call sub.MFC71U.DLL_operator_new
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_9]
mov eax, dword [esp + 0xc]
mov ecx, eax
shr eax, 0x10
and ecx, 0xffff
push ecx
push eax
mov eax, dword [esp + 0x18]
mov edx, eax
and edx, 0xffff
push edx
shr eax, 0x10
push eax
lea eax, [esp + 0x24]
push str._u._u._u._u
push eax
mov byte [esp + 0x3c], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format_1]
mov esi, dword [esp + 0x44]
add esp, 0x18
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_7]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x49ee5c
push esi
call sub.MFC71U.DLL_operator_new
add esp, 4
mov esi, dword [esp + 0x2c]
mov ecx, esi
push 0x4feb50
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
lea ecx, [esp + 0x30]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x1c]
pop ebx
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x49eed0
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4f5e5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_7]
push 0x2f
push 0x5c
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0
call dword [sym.imp.MFC71U.DLL_COleControl::ReparentControlWindow]
lea ecx, [esp]
call dword [sym.imp.MFC71U.DLL_CHtmlView::GetLeft]
dec eax
push eax
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_COleVariant::operator]
cmp ax, 0x2f
je 0x49ef34
push 0x2f
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator]
push ebp
push esi
push edi
push 0x4ffab8
push 0x51690c
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
lea ecx, [esp + 0x10]
or esi, 0xffffffff
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_9]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [esp + 0x20], 1
lea esp, [esp]
inc esi
push esi
push 0x2f
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
mov esi, eax
cmp esi, 0xffffffff
je 0x49f01b
push esi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_CToolBar::Layout]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
call dword [0x4fc954]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
test eax, eax
jne 0x49efd7
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call ebp
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
jne 0x49ef70
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x49fa20
Capabilities:
Copy file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5f72
push eax
mov dword fs:[0], esp
push esi
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call fcn.0049f200
add esp, 8
test eax, eax
je 0x49fa94
push 0
push 4
push 0x516998
call sub.MFC71U.DLL_AfxMessageBox
cmp eax, 6
jne 0x49fa6e
push 0
jmp 0x49fa96
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
push 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
lea ecx, [esp + 0x18]
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x49fae0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4f5f92
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push esi
push eax
call fcn.0049da00
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0
call dword [sym.imp.MFC71U.DLL_CDC::LPtoHIMETRIC]
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_CGopherFileFind::IsDots]
test al, al
jne 0x49fb70
push 0
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, 0x54fe9c
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Find]
cmp eax, 0xffffffff
je 0x49fb70
push esi
call fcn.0049da40
add esp, 4
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push 0
push esi
call fcn.0049f200
add esp, 8
test eax, eax
je 0x49fc0e
push edi
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push 0
push esi
push 0
push 0
call edi
cmp eax, 0x1f
jne 0x49fbee
push str.Shell32.dll_OpenAs_RunDLL
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x28], 1
call fcn.00402c1f
add esp, 0xc
push 1
push 0
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
push str.rundll32.exe
push str.open
push 0
call edi
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x10]
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4a0a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4a0a79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4a0a8d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4a0aae
cmp esi, eax
jae 0x4a0a87
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4a0aa0
cmp esi, eax
jae 0x4a0a87
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4a0c60
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
or ebp, 0xffffffff
test eax, eax
je 0x4a0d52
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a0d4a
test edi, edi
je 0x4a0d4a
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 4
push 0
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x4a0d3a
cmp ebx, 0xffffffff
je 0x4a0d3a
push esi
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x4a0d32
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4a0cf1
mov eax, dword [esp + 0x24]
mov ebp, dword [esi + eax]
jmp 0x4a0d2b
mov ecx, dword [esp + 0x24]
mov dword [esi + ecx], eax
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
mov ebp, eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
push esi
call dword [sym.imp.imagehlp.dll_ImageNtHeader]
test eax, eax
je 0x4a0d2b
mov edx, dword [eax + 0x58]
cmp edx, dword [esp + 0x10]
jne 0x4a0d2b
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x58], ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
pop edi
mov eax, ebp
pop ebp
add esp, 8
ret
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x4a0d60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.BugReportU.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4a0d82
xor eax, eax
add esp, 0x10
ret
mov eax, 4
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 4]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0
push str.TcpNumConnections
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp]
add esp, 0x10
ret
Function at 0x4a0dc0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.BugReportU.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4a0ddd
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.TcpNumConnections
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop ecx
ret
Function at 0x4a14b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push edi
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 6
jne 0x4a14ff
cmp word [esp + 0x11c], 0
jne 0x4a14ff
mov cl, byte [esp + 0x122]
mov eax, 1
cmp cl, al
je 0x4a1501
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4a1750
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f60eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x552838]
push ebx
push esi
push edi
mov ecx, 0x552838
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
xor ebx, ebx
xor eax, eax
mov word [esp + 0x20], bx
mov ecx, 0x81
lea edi, [esp + 0x22]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [esp + 0x234], ebx
jne 0x4a17c1
push 0x103
lea ecx, [esp + 0x24]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4a1874
push eax
call sub.MFC71U.DLL_SerializeElements
mov ecx, dword [esp + 0x20]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x10]
push ebx
push eax
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4a186b
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push 0x503d24
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a186b
mov esi, dword [esp + 0x14]
mov edi, dword [ebp + 0xc]
mov ecx, 0xd
push ebx
rep movsd dword es:[edi], dword [esi]
call sub.MFC71U.DLL_CNoTrackObject::operator_new
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1851
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call sub.MFC71U.DLL_operator_new
add esp, 4
lea eax, [esi - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1899
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2a10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4a2a31
add esp, 0x208
ret
push str.drivers_tcpip.sys
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp]
push 0
push edx
call fcn.004a29a0
add esp, 8
add esp, 0x208
ret

Function at 0x4a2a60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4a2a81
add esp, 0x208
ret
push str.drivers_tcpip.sys
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [esp + 0x20c]
push edx
lea eax, [esp + 4]
push eax
call fcn.004a29a0
add esp, 8
add esp, 0x208
ret

Function at 0x4a2c30
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x618
push 0x104
lea eax, [esp + 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4a2cf9
push esi
mov esi, dword [sym.imp.MSVCR71.dll_swprintf]
push str.drivers_tcpip.sys
lea ecx, [esp + 0x418]
push ecx
lea edx, [esp + 0x214]
push str._s_s
push edx
call esi
push str.drivers_tcpip.sys.td
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call esi
mov eax, dword [esp + 0x640]
add esp, 0x20
test eax, eax
pop esi
lea edx, [esp]
push 0
push edx
je 0x4a2cbf
call fcn.004a2ab0
add esp, 8
test eax, eax
je 0x4a2cf9
push 0
lea eax, [esp + 0x20c]
push eax
lea ecx, [esp + 8]
push ecx
jmp 0x4a2cef
call fcn.004a2ab0
add esp, 8
test eax, eax
jne 0x4a2d02
push eax
lea eax, [esp + 0x20c]
push eax
call fcn.004a2ab0
add esp, 8
test eax, eax
je 0x4a2cf9
push 0
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a2d02
xor eax, eax
add esp, 0x618
ret
mov eax, 1
add esp, 0x618
ret
Function at 0x4a3520
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetForegroundWindow]
push esi
call ebp
mov esi, dword [esp + 0xc]
cmp eax, esi
je 0x4a35d8
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push edi
push 0
push esi
call ebx
push 0
mov edi, eax
call ebp
push eax
call ebx
mov ebx, eax
cmp ebx, edi
je 0x4a35c4
push 1
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call ebp
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push ebx
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
je 0x4a35c9
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
lea eax, [esp + 0x18]
push eax
push 0
push 0x2000
call edi
push 2
push 0
push 0
push 0x2001
call edi
push esi
call ebp
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push 2
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x2001
call edi
pop edi
pop ebx
pop esi
pop ebp
ret
push esi
call ebp
push esi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop ebx
pop esi
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
pop ebp
ret

Function at 0x4a50e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f639c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], 0x516d94
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
push eax
push eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
push 1
push eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x78], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 8]
mov dword [esi + 0x84], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4a5480
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f63d9
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
push esi
push edi
mov ebx, ecx
je 0x4a55b7
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4a55b7
xor esi, esi
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x4a551e
mov eax, dword [ebx + 0x2c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4a551e
mov eax, ecx
lea ecx, [eax + esi*4]
lea edi, [eax + esi*4]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push ebp
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push eax
call edi
test eax, eax
je 0x4a54fa
inc esi
jmp 0x4a54b8
mov eax, dword [ebx + 0x28]
lea eax, [eax + esi*4]
push ebp
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x20]
push eax
push ebp
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call edi
test eax, eax
je 0x4a559d
mov ecx, dword [ebx + 0x28]
test ecx, ecx
lea edi, [ebx + 0x24]
je 0x4a5574
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x4a5574
mov eax, dword [ebx + 0x28]
shl esi, 2
lea ecx, [esi + eax]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x4a5574
mov ecx, dword [ebx + 0x28]
add ecx, esi
push ebp
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebp
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.004a4fd0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x4a5b00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f6482
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, ecx
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Trim_1]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Trim_1]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebx
test eax, eax
jle 0x4a5b7d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a5ba7
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
lea ecx, [esp + 0xc]
lea esi, [edi + 4]
push ecx
mov ecx, esi
call fcn.004a4fd0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4a5bcb
lea edx, [esp + 0x28]
push edx
lea ecx, [edi + 0x44]
call fcn.004a47b0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call ebx
test eax, eax
jle 0x4a5c40
lea eax, [esp + 0x20]
add edi, 0x14
push eax
mov ecx, edi
call fcn.004a4fd0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a5bf6
xor esi, esi
jmp 0x4a5bfe
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
mov eax, dword [edi + 4]
test eax, eax
jne 0x4a5c09
xor edi, edi
jmp 0x4a5c11
mov edi, dword [edi + 8]
sub edi, eax
sar edi, 2
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor eax, eax
cmp esi, edi
pop edi
pop esi
sete al
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esi + 4]
test eax, eax
jne 0x4a5c4b
xor esi, esi
jmp 0x4a5c53
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor ecx, ecx
cmp ecx, esi
mov ecx, dword [esp + 0x10]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc