joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403840
Capabilities:
Check if file exists
Get file attributes
Manipulate boot configuration
Set registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x206
lea eax, [esp + 0x1a]
push esi
push eax
mov word [esp + 0x20], si
call sub.ntdll.dll_memset
add esp, 0xc
test byte [0x4f190c], 1
jne 0x40388c
or dword [0x4f190c], 1
mov dword [0x4f1908], 0x4db424
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
jmp 0x4038a0
push 0x1fe
lea edx, [esp + 0x222]
lea ecx, [ebx + 0x42]
push esi
push edx
movzx edi, cx
mov word [esp + 0x228], si
call sub.ntdll.dll_memset
push 0x1fe
lea eax, [esp + 0x42e]
push esi
push eax
mov word [esp + 0x434], si
call sub.ntdll.dll_memset
push 0x1fe
lea ecx, [esp + 0x63a]
push esi
push ecx
mov word [esp + 0x640], si
call sub.ntdll.dll_memset
movzx esi, di
push esi
push 0x469758
lea edx, [esp + 0x248]
call fcn.00404520
push esi
push str._c:_boot.ini
lea edx, [esp + 0x650]
call fcn.00404520
push esi
push str._c:_bootmgr
lea edx, [esp + 0x458]
call fcn.00404520
add esp, 0x3c
lea edx, [esp + 0x61c]
push edx
call ebp
cmp eax, 0xffffffff
je 0x403951
lea eax, [esp + 0x21c]
push eax
call ebp
cmp eax, 0xffffffff
jne 0x403973
lea ecx, [esp + 0x41c]
push ecx
call ebp
cmp eax, 0xffffffff
jne 0x403973
add ebx, 1
cmp ebx, 0x19
jge 0x4039ee
xor esi, esi
jmp 0x4038a0
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SystemSetup
push 0x80000002
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403a09
test byte [0x4f1904], 1
jne 0x4039cc
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x6d
add esi, 8
call fcn.00403640
push eax
mov eax, dword [esi]
push str._s:_Failed_to_RegOpenKeyEx.
push 0x4f18dc
call eax
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x81c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462b77
add esp, 0x810
ret
mov edx, dword [0x4f1908]
mov eax, dword [edx + 0x24]
push edi
push 0x104
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x4f1908
call eax
lea eax, [esp + 0x14]
lea edx, [eax + 2]
jmp 0x403a30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a30
sub eax, edx
sar eax, 1
lea ecx, [eax + eax]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 1
push 0
push str.SystemPartition
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push ecx
add esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4039f0
Function at 0x40ecb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
push 0
lea eax, [esp + 0x10]
push eax
push 0
push esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40ed49
call fcn.0040ec50
test eax, eax
jne 0x40ed49
mov eax, 1
test byte [0x4f1904], al
jne 0x40ed18
or dword [0x4f1904], eax
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x76
mov ecx, str.d:workDDCIncludeDiskIO.h
add esi, 8
call fcn.0040eb80
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Failed_to_SetSectorPos_in_ReadSector.
push 0x4f18dc
call ecx
add esp, 0xc
xor eax, eax
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 8]
push edx
push 0x200
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x40ed42
test eax, eax
je 0x40ed42
test ecx, 0x1ff
jne 0x40ed42
mov eax, 1
pop esi
add esp, 0xc
ret
Function at 0x411420
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 5
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4114bc
lea edx, [esp + 4]
push edx
push 1
push 0x2000a
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4114ce
lea eax, [esp + 4]
push eax
push 0x2000a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4114ce
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00462b77
add esp, 0x1c
ret
mov eax, dword [esp + 4]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push 2
push eax
mov dword [esp + 0x2c], ebx
call edi
mov eax, dword [esp + 0x18]
push 1
push eax
mov ebp, eax
call dword [sym.imp.MSVCR80.dll_calloc]
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x41152e
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00462b77
add esp, 0x1c
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ebp
push esi
push 2
push ecx
call edi
cmp dword [esi], ebx
jbe 0x411578
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea edi, [esi + 8]
jmp 0x411550
mov edx, dword [esp + 0x14]
mov eax, dword [edi - 4]
push edx
push eax
call ebp
test eax, eax
je 0x411564
test byte [edi], 6
jne 0x411570
add ebx, 1
add edi, 8
cmp ebx, dword [esi]
jb 0x411550
jmp 0x411578
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.MSVCR80.dll_free]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00462b77
add esp, 0x1c
ret
Function at 0x4115b0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4115d1
xor eax, eax
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4115cb
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret

Function at 0x411630
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x411650
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41164a
push eax
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x4116b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.00462b77
add esp, 0x118
ret
Function at 0x411a40
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 4]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareSysinternalsLdmDump
push 0x80000001
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x411a84
xor eax, eax
add esp, 0xc
ret
mov eax, dword [esp]
push esi
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.EulaAccepted
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
add esp, 0xc
ret

Function at 0x4127b0
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x464e41
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 0
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x34], 1
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
call edi
test ax, ax
jne case.0x412836.513
push 2
call edi
test ax, ax
jne case.0x412836.513
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 4]
add eax, 0xfffffe00
cmp eax, 7
ja case.0x412836.514
movzx ecx, byte [eax + 0x412914]
jmp dword [ecx*4 + 0x412908]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.00413010
test eax, eax
je 0x4128bf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00413030
mov ebp, eax
test ebp, ebp
je 0x4128bf
mov ebx, dword [ebp + 0x20]
lea ecx, [esp + 0x20]
push ecx
lea edi, [esi + 0x80]
call fcn.00412a70
test eax, eax
je 0x4128bf
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x5c], edx
mov dword [esi + 0x60], eax
call fcn.00412940
lea ecx, [esp + 0x18]
push ecx
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
call fcn.00412150
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
push eax
push ecx
lea eax, [esp + 0x20]
call fcn.00413010
test eax, eax
je case.0x412836.514
push 0
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_6086
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x4129d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x464e08
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov eax, dword [esp + 0x2c]
xor esi, esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], esi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
sub esp, 8
mov dword [esp + 0x14], esi
mov esi, esp
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], esp
push ecx
mov ecx, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esi + 4], edx
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x2c]
push ecx
add edx, 0x80
push edx
call fcn.00412ad0
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret 0xc
Function at 0x413990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465c10
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, ecx
push esi
lea ecx, [esp + 0x60]
call sub.MFC80U.DLL_Ordinal_501
mov dword [esp + 0xc8], 0
mov eax, dword [esi + 0x78]
test eax, eax
je 0x413a0c
mov edi, edi
test eax, eax
mov ecx, eax
je 0x413bb2
mov edi, dword [ecx + 8]
cmp dword [edi + 0x90], 0
mov eax, dword [eax]
jne 0x413a0e
test eax, eax
jne 0x4139f0
xor edi, edi
mov eax, dword [edi]
mov edx, dword [eax + 0x194]
mov ecx, edi
call edx
test eax, eax
jne 0x413b7a
mov eax, dword [edi]
mov edx, dword [eax + 0x190]
mov ecx, edi
call edx
test eax, eax
jne 0x413b7a
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x3eb
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_2651
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_5609
mov edx, dword [esp + 0x58]
push 0xb3592d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x64]
mov dword [esp + 0x30], edx
call sub.MFC80U.DLL_Ordinal_2255
lea esi, [esp + 0x10]
mov eax, edi
call fcn.00413db0
lea esi, [esp + 0x14]
mov eax, edi
mov byte [esp + 0xc8], 1
call fcn.00413e30
mov byte [esp + 0xc8], 2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x48], eax
mov ebx, eax
sub eax, ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], edx
cdq
sub eax, edx
sar eax, 1
lea edx, [eax - 2]
sub esp, 0x10
mov dword [esp + 0x40], ecx
add eax, 2
mov dword [esp + 0x58], edx
mov dword [esp + 0x40], eax
mov eax, esp
push 0x28
mov edx, 0xc
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x5c]
push 1
push 0x10
push ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
lea edx, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov edi, esi
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0xffffff
lea esi, [esp + 0x80]
call fcn.004030c0
add esp, 0x14
mov eax, esp
mov ecx, 0x1a
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
push 0x20
push 0
push 0xf
push ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MFC80U.DLL_Ordinal_280]
push 0xffffff
call fcn.004030c0
add esp, 0x24
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xc8], 0xffffffff
call sub.MFC80U.DLL_Ordinal_709
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret
jmp fcn.00462724
Function at 0x413e90
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465bbc
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov eax, dword [0x4ea51c]
cmp eax, 0xffffffff
je 0x413ee0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
push 0x44
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x69]
push 0
push ecx
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x54], 1
mov word [esp + 0x58], 5
mov byte [esp + 0x70], 0
call sub.ntdll.dll_memset
add esp, 0xc
push esi
push str.Help.exe__s
lea edx, [esp + 0x6c]
push 0x400
push edx
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x10
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x84]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x413fe7
push 0x468b68
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov dword [esp + 0x478], 0
test byte [0x4f321c], 1
jne 0x413fb1
or dword [0x4f321c], 1
call fcn.00429bf0
push 0x467b40
call fcn.00462d9a
add esp, 4
mov eax, dword [0x4f16b0]
mov edx, dword [eax]
push str.3111
mov ecx, 0x4f16b0
call edx
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
mov eax, dword [esp + 8]
push 0
push 0
push eax
call sub.MFC80U.DLL_Ordinal_1118
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
mov dword [0x4ea51c], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret
Function at 0x414110
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x464288
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov ecx, esi
call sub.MFC80U.DLL_Ordinal_572
xor edi, edi
mov dword [esp + 0x20], edi
lea ecx, [esi + 0x60]
mov dword [esi], vtable.CXHTMLStatic.0
call sub.MFC80U.DLL_Ordinal_563
lea ebp, [esi + 0x170]
mov ecx, ebp
mov byte [esp + 0x20], 1
call sub.MFC80U.DLL_Ordinal_530
lea ebx, [esi + 0x184]
mov ecx, ebx
mov byte [esp + 0x20], 2
call sub.MFC80U.DLL_Ordinal_557
push 0x5c
lea eax, [esi + 0xd8]
push edi
push eax
mov byte [esp + 0x2c], 3
call sub.ntdll.dll_memset
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov dword [esi + 0x134], 1
mov dword [esi + 0x13c], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x1b0], edi
mov dword [esi + 0x1ac], edi
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x1a4], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call sub.MFC80U.DLL_Ordinal_6001
push 0xffffffffffffffff
push edi
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_6002
call sub.MFC80U.DLL_Ordinal_1079
mov ebp, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push edi
call ebp
cmp eax, edi
mov dword [esi + 0x198], eax
jne 0x414283
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0x104
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 4
call dword [sym.imp.MFC80U.DLL_Ordinal_2460]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_5398]
push 0x46d2c8
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x41426d
push 0x6a
push ebx
call ebp
cmp eax, edi
je 0x41426d
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [esi + 0x198], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 3
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
xor ecx, ecx
cmp dword [str.amp_], edi
je 0x4142ac
xor eax, eax
nop
lea edx, [ecx + 2]
add ecx, 1
mov word [eax + 0x4ea524], dx
lea eax, [ecx*8]
cmp dword [eax + 0x4ea520], edi
jne 0x414290
call fcn.00414400
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x416a20
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4e9028]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
mov esi, dword [sym.imp.ntdll.dll__wcsnicmp]
push edi
push 4
mov ebx, edx
push str.APP:
push ebx
mov edi, ecx
mov dword [ebp - 0x80], ebx
call esi
add esp, 0xc
test eax, eax
jne 0x416a6f
mov eax, 4
lea eax, [ebx + eax*2]
push eax
call fcn.00416c60
jmp 0x416c3e
push 5
push str._APP:
push ebx
call esi
add esp, 0xc
test eax, eax
jne 0x416a93
mov eax, 5
lea eax, [ebx + eax*2]
push eax
call fcn.00416c60
jmp 0x416c3e
push 5
xor esi, esi
push esi
push esi
push ebx
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov dword [ebp - 0x7c], eax
ja 0x416c32
push 0x40e
lea ecx, [ebp - 0x72]
push esi
push ecx
mov word [ebp - 0x74], si
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x78]
push edx
push 1
push esi
push str..htm
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov word [ebp - 0x74], si
jne 0x416c32
lea eax, [ebp - 0x78]
push eax
lea ebx, [ebp - 0x74]
call fcn.00416de0
cmp eax, esi
jne 0x416c32
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x416b04
mov ecx, 0xa
mov esi, str._shellopencommand
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x78]
push ecx
push 1
push 0
lea edx, [ebp - 0x74]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov word [ebp - 0x74], 0
jne 0x416c32
lea eax, [ebp - 0x78]
push eax
lea ebx, [ebp - 0x74]
call fcn.00416de0
test eax, eax
jne 0x416c32
mov esi, dword [sym.imp.ntdll.dll_wcsstr]
mov ecx, ebx
push str.__1_
push ecx
call esi
add esp, 8
test eax, eax
jne 0x416b97
mov edx, ebx
push 0x46d524
push edx
call esi
add esp, 8
test eax, eax
jne 0x416b97
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416b82
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x76]
jmp 0x416b9c
mov word [eax], 0
mov edi, eax
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x416ba1
mov ecx, dword [0x46c538]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x80]
mov esi, ecx
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x416bc0
sub ecx, esi
mov edx, ecx
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x416bd2
mov ecx, edx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x4e9030]
lea edx, [ebp - 0x74]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x416c0e
xor eax, eax
jmp 0x416c26
lea edi, [eax + eax]
mov eax, edi
call fcn.004639f0
mov esi, esp
mov edx, ebx
mov ecx, edi
lea eax, [ebp - 0x74]
call fcn.00416f80
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x7c], eax
mov eax, 0x20
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
xor ecx, ebp
call fcn.00462b77
add ebp, 0x3a0
mov esp, ebp
pop ebp
ret