joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a46c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x48
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rdi, rcx
lea rax, [0x00437340]
mov qword [rcx], rax
add rcx, 0x10
lea rax, [fcn.0041a0a0]
mov qword [rsp + 0x20], rax
lea r9, [0x00419f28]
mov edx, 0x30
lea r8d, [rdx - 0x10]
call fcn.0042e940
nop
cmp qword [0x0045cca8], 0
jne 0x41a572
lea rcx, str.powrprof.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rdx, str.EnumPwrSchemes
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0045cca8], rax
lea rdx, str.PowerEnumerate
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0045ccb0], rax
lea rdx, str.PowerReadFriendlyName
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0045ccb8], rax
lea rdx, str.PowerGetActiveScheme
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0045ccc0], rax
lea rdx, str.GetActivePwrScheme
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0045ccc8], rax
lea rdx, str.SetActivePwrScheme
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0045ccd0], rax
lea rdx, str.PowerSetActiveScheme
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x0045ccd8], rax
mov dword [rdi + 8], 0xffffffff
mov rcx, rdi
call fcn.0041a2c4
nop
mov rax, rdi
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x41a5ec
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
cmp edx, ebx
mov dword [rcx], ebx
je 0x41a600
mov dword [rcx], 4
mov ecx, dword [rcx]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, 1
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x41a618
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov dword [rcx], 2
cmp edx, ebx
je 0x41a630
mov dword [rcx], 6
mov ecx, dword [rcx]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, 1
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x41a648
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
mov dword [rcx], 1
cmp edx, ebx
je 0x41a660
mov dword [rcx], 5
mov ecx, dword [rcx]
xor edx, edx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
cmp eax, 1
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x41a7ec
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, str.user32.dll_LockWorkStation
lea r8, [0x00434d40]
lea rdx, [0x00433c30]
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
test rax, rax
setne al
add rsp, 0x38
ret

Function at 0x41a8c8
Capabilities:
Create process on windows
Shutdown system

Disassembly:
sub rsp, 0x38
lea r9, str._s__t_0
lea r8, str.shutdown.exe
lea rdx, [0x00433c30]
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x0045dae4], 5
jae 0x41a90e
xor edx, edx
lea ecx, [rdx + 1]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x38
ret
Function at 0x41a914
Capabilities:
Create process on windows
Shutdown system

Disassembly:
sub rsp, 0x38
lea r9, str.__s__f__t_0
lea r8, str.shutdown.exe
lea rdx, [0x00433c30]
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [0x0045dae4], 5
jae 0x41a95d
mov edx, 4
lea ecx, [rdx - 3]
call qword [sym.imp.USER32.dll_ExitWindowsEx]
add rsp, 0x38
ret

Function at 0x41a964
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
lea r9, str.powrprof.dll_SetSuspendState
lea r8, [0x00434d40]
lea rdx, [0x00433c30]
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
add rsp, 0x38
ret
Function at 0x41ad7c
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x30
mov ebx, dword [rcx + 0xe0]
mov rsi, rcx
test ebx, ebx
jne 0x41ad9e
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x41afd5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, 1
cmp ebx, ebp
mov dword [0x0045cce0], eax
jne 0x41adb8
call fcn.0041a8c8
cmp ebx, 2
jne 0x41adc2
call fcn.0041a914
cmp ebx, 3
jne 0x41adce
xor ecx, ecx
call fcn.0041a964
cmp ebx, 4
je 0x41af61
cmp ebx, 5
je 0x41af61
cmp ebx, 6
je 0x41af61
cmp ebx, 7
je 0x41af61
cmp dword [rsi + 0xe0], 8
lea rbx, str.shutdown.exe
jne 0x41ae2c
lea r9, str.__r__f__t_0
lea rdx, [0x00433c30]
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [rsi + 0xe0], 9
jne 0x41ae5f
lea r9, str.__r__t_0
lea rdx, [0x00433c30]
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [rsi + 0xe0], 0xa
jne 0x41ae92
lea r9, str.__l__f__t_0
lea rdx, [0x00433c30]
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [rsi + 0xe0], 0xb
jne 0x41aec5
lea r9, [0x00437750]
lea rdx, [0x00433c30]
mov r8, rbx
xor ecx, ecx
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [rsi + 0xe0]
cmp eax, 0xc
jne 0x41af05
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsi + 0xc0]
mov edx, ebp
mov dword [0x0045cce0], eax
call fcn.0041a5ec
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
jmp 0x41afd5
cmp eax, 0xd
jne 0x41af31
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsi + 0xc0]
mov edx, ebp
mov dword [0x0045cce0], eax
call fcn.0041a5d4
jmp 0x41aef5
cmp eax, 0xe
jne 0x41ad91
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rsi + 0xc0]
mov edx, ebp
mov dword [0x0045cce0], eax
call fcn.0041a5bc
jmp 0x41aef5
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
cmp ebx, 7
je 0x41af92
cmp dword [0x0045c7f0], 0
je 0x41af92
lea rcx, [0x0045c7f4]
xor edx, edx
mov dword [0x0045c7f0], 0
call fcn.0041fc00
cmp ebx, 5
jne 0x41afa5
lea rcx, [rsi + 0xc0]
mov edx, ebp
call fcn.0041a5bc
cmp ebx, 6
jne 0x41afb1
xor ecx, ecx
call fcn.0041a964
cmp ebx, 7
jne 0x41afd5
mov ecx, ebp
mov dword [0x0045ba10], ebp
call fcn.0040ca68
mov edx, dword [0x0045ba10]
lea rcx, [0x0045ba14]
call fcn.0041fc00
add rsp, 0x30
pop rsi
pop rbp
pop rbx
ret
Function at 0x41b120
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, r8
mov ebx, edx
mov rdi, rcx
lea rcx, str.ShowInfo_int_type_CString_info_str__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp qword [rdi + 0x40], 0
je 0x41b15b
xor edx, edx
mov rcx, rdi
call sub.MFC42u.dll_DDX_DateTimeCtrl
cmp ebx, 7
jne 0x41b173
mov rcx, rdi
call fcn.0041ad7c
nop
mov ebx, 1
jmp 0x41b294
cmp qword [rdi + 0x40], 0
jne 0x41b18a
xor r8d, r8d
mov edx, 0xed
mov rcx, rdi
call sub.MFC42u.dll_CMiniDockFrameWnd::Create
mov edx, 5
mov rcx, rdi
call sub.MFC42u.dll_DDX_DateTimeCtrl
mov dword [rdi + 0xc8], ebx
mov dword [rdi + 0xc4], 0xa
lea rcx, [rdi + 0xd8]
mov rdx, rsi
call sub.MFC42u.dll_AfxDaoGetEngine
mov dword [rdi + 0xe0], ebx
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
lea rdx, [0x00434fc0]
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
mov r9d, dword [rdi + 0xc4]
mov r8, qword [rsi]
mov rdx, qword [rax]
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CPtrList::FreeNode
nop
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rcx, [rdi + 0xe8]
mov rdx, qword [rsp + 0x50]
call sub.MFC42u.dll_COleControlSite::CreateControl
lea rdx, str._s___d_
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
mov rbx, qword [rax]
mov ecx, WSAStartup
call fcn.00421aa0
mov r8, rax
mov r9d, dword [rdi + 0xc4]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CPtrList::FreeNode
nop
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, 0x3e8
mov rdx, rbx
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
xor r9d, r9d
mov r8d, ebx
mov rdx, rbx
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SetTimer]
nop
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
xor ebx, ebx
mov rcx, rsi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x41fae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x0045d4f0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x0045d5e8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x41fb61
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x0045d5e8]
jmp 0x41fb7d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x0045d5e8], r11
mov qword [0x0045d588], rax
mov rax, qword [0x004583d0]
mov qword [0x0045d460], r11
mov qword [0x0045d570], rdi
mov dword [0x0045d450], 0xc0000409
mov dword [0x0045d454], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x004583c8]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004389e8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x004583d0]
jne 0x42ec39
rol rcx, 0x10
test cx, 0xffff
jne 0x42ec35
ret
ror rcx, 0x10
jmp 0x41fae0

Function at 0x41fca0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1048
call fcn.0042ec50
sub rsp, rax
mov rax, qword [0x004583d0]
mov qword [rsp + 0x1030], rax
mov qword [rsp + 0x1060], rbx
mov rbx, rcx
lea rcx, [rsp + 0x34]
mov qword [rsp + 0x1068], rdi
mov edi, edx
mov r8d, 0x7fc
xor edx, edx
mov dword [rsp + 0x30], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x834]
xor edx, edx
mov r8d, 0x7fc
mov dword [rsp + 0x830], 0
call sub.msvcrt.dll_memset
lea rdx, [0x00434534]
lea rcx, [rsp + 0x830]
mov r8d, edi
call qword [sym.imp.USER32.dll_wsprintfW]
mov rax, qword [0x0045df38]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x30]
lea rcx, str.Program
mov rdx, rbx
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rbx, qword [rsp + 0x1060]
test eax, eax
je 0x41fd6a
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll__wtoi]
jmp 0x41fd6c
mov eax, edi
mov rdi, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1030]
call fcn.0042ec20
add rsp, 0x1048
ret

Function at 0x41fd90
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x48
mov rax, qword [0x004583d0]
mov qword [rsp + 0x30], rax
mov rax, qword [0x0045df38]
mov r9, rdx
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x28], rax
lea rcx, str.Program
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rcx, qword [rsp + 0x30]
call fcn.0042ec20
add rsp, 0x48
ret
Function at 0x420450
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x110
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x004583d0]
mov qword [rsp + 0x108], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x28], 0
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
mov dword [rsp + 0x28], 1
mov byte [rsp + 0xf0], WSAGetLastError
mov byte [rsp + 0xf1], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0xf2], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0xf3], WSAStartup
mov byte [rsp + 0xf4], 0x3a
mov byte [rsp + 0xf5], 0x2f
mov byte [rsp + 0xf6], 0x2f
mov byte [rsp + 0xf7], 0x77
mov byte [rsp + 0xf8], 0x77
mov byte [rsp + 0xf9], 0x77
mov byte [rsp + 0xfa], 0x2e
mov byte [rsp + 0xfb], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0xfc], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0xfd], 0x66
mov byte [rsp + 0xfe], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0xff], 0x77
mov byte [rsp + 0x100], 0x61
mov byte [rsp + 0x101], WSAStartup
mov byte [rsp + 0x102], 0x65
mov byte [rsp + 0x103], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x104], WSAGetLastError
mov byte [rsp + 0x105], 0x2e
mov byte [rsp + 0x106], 0
lea rdx, [rsp + 0xf0]
mov rcx, rbx
call sub.MFC42u.dll_AfxDaoTerm
cmp dword [0x0047ff80], 0
jne 0x420591
lea rdx, [0x00438ab8]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rax, rbx
jmp 0x42063d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
test eax, eax
je 0x420610
mov eax, dword [rsp + 0x40]
cmp eax, 0xffffff10
jl 0x4205e1
cmp eax, 0xf0
jg 0x4205e1
lea rdx, [0x00438ab4]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rax, rbx
jmp 0x42063d
lea rdx, [0x00438ab0]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rax, rbx
jmp 0x42063d
lea rdx, [0x00438ab0]
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rax, rbx
mov rcx, qword [rsp + 0x108]
call fcn.0042ec20
add rsp, 0x110
pop rbx
ret
Function at 0x420710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov rax, rsp
sub rsp, 0x68
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov rbp, rdx
mov r12, rcx
lea rdx, str._InternetShortcut_
lea rcx, [rax - 0x40]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [0x00436c8c]
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, str.URL
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
mov r8, rbp
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [0x00436c8c]
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
lea rdx, [0x00436c8c]
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rdx, r12
lea rcx, [rsp + 0x38]
call sub.MFC42u.dll_CControlBar::CControlBar
mov rsi, rax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x20], 0xfeff
lea rdx, [0x00433b4c]
mov rcx, qword [rax]
call qword [sym.imp.msvcrt.dll__wfopen]
mov rdi, rax
test rax, rax
jne 0x42085f
mov rcx, rsi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
jmp 0x4208b7
mov r9, rax
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_fwrite]
mov r11, qword [rsp + 0x28]
movsxd rdx, dword [r11 - 8]
mov rbx, rdx
lea edx, [rdx + rdx + 1]
lea rcx, [rsp + 0x28]
call fcn.0042e2a2
mov rcx, rax
mov r9, rdi
mov r8, rbx
mov edx, 2
call qword [sym.imp.msvcrt.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
nop
mov rcx, rsi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, r12
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
mov rcx, rbp
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rbx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
add rsp, 0x68
ret
Function at 0x4221e0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
sub rsp, 0x478
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov rax, qword [0x004583d0]
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rdx, [0x00438c10]
mov rcx, qword [rcx]
call qword [sym.imp.msvcrt.dll__wfopen]
mov rsi, rax
test rax, rax
jne 0x422244
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x422349
mov word [rsp + 0x20], 0
mov r9, rax
mov ebp, 1
mov r8, rbp
lea edx, [rbp + 1]
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_fread]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fclose]
xor r11d, r11d
cmp word [rsp + 0x20], 0xfeff
cmove r11d, ebp
mov dword [0x0047ffb8], r11d
lea rdx, [0x00438c10]
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll__wfopen]
mov rsi, rax
mov edx, 0x400
mov rcx, rbx
call fcn.0042e2a2
mov byte [rsp + 0x40], 0
mov r9, rsi
mov r8d, 0x400
mov rdx, rbp
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_fread]
test eax, eax
je 0x422335
cmp word [rsp + 0x20], 0xfeff
jne 0x4222e6
cdqe
mov byte [rsp + rax + 0x40], 0
mov byte [rsp + rax + 0x41], 0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.MFC42u.dll_Ordinal_1287
jmp 0x422315
cdqe
mov byte [rsp + rax + 0x40], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CCtrlView::CCtrlView
nop
lea rdx, [rsp + 0x28]
mov rcx, rbx
call sub.MFC42u.dll_Ordinal_1284
nop
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov byte [rsp + 0x40], 0
mov r9, rsi
mov r8d, 0x400
mov rdx, rbp
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_fread]
test eax, eax
jne 0x4222c2
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fclose]
nop
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebp
mov rcx, qword [rsp + 0x450]
call fcn.0042ec20
mov rbx, qword [rsp + 0x490]
mov rbp, qword [rsp + 0x498]
mov rsi, qword [rsp + 0x470]
mov rdi, qword [rsp + 0x468]
add rsp, 0x478
ret
Function at 0x423390
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov rbp, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x4235c5
mov r8, qword [rbp + 0x20]
mov r9d, 1
mov qword [rsp + 0x30], r12
lea edx, [r9 + 0x2f]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [rbp]
mov rcx, qword [rbp + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, qword [rbp + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor r8d, r8d
cmp word [rax + 2], 0xffff
mov r12, rax
sete r8b
test r8d, r8d
je 0x42340a
mov edx, dword [rax + 0xc]
lea rcx, [rax + 0x1a]
jmp 0x423410
mov edx, dword [rax]
lea rcx, [rax + 0x12]
cmp word [rcx], 0xffff
jne 0x423420
add rcx, 4
jmp 0x42342c
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423420
cmp word [rcx], 0xffff
jne 0x423440
add rcx, 4
jmp 0x423450
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423440
nop
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423450
test dl, 0x40
je 0x42347c
test r8d, r8d
je 0x42346c
add rcx, 6
jmp 0x423470
add rcx, 2
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x423470
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
lea rdi, [rcx + 3]
mov rcx, r12
xor esi, esi
and rdi, 0xfffffffffffffffc
call fcn.00423350
cmp word [rax], si
jbe 0x423594
mov qword [rsp + 0x40], rbx
mov rbx, qword [rsp + 0x20]
nop
nop
test esi, esi
jne 0x4234c6
mov rcx, qword [rbp + 0x10]
lea edx, [rsi + 5]
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
jmp 0x4234d7
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rbx, rbx
je 0x42358f
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, dword [rdi + 0x14]
je 0x423509
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
mov rbx, rax
jne 0x4234e0
jmp 0x42358f
test rbx, rbx
je 0x42358f
mov r8, qword [rbp + 0x20]
mov r9d, 1
mov rcx, rbx
lea edx, [r9 + 0x2f]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp word [rdi + 0x18], 0xffff
lea r11, [rdi + 0x18]
jne 0x423540
add r11, 4
jmp 0x42354d
movzx eax, word [r11]
add r11, 2
test ax, ax
jne 0x423540
cmp word [r11], 0xffff
jne 0x423560
add r11, 4
jmp 0x42356d
movzx eax, word [r11]
add r11, 2
test ax, ax
jne 0x423560
movzx eax, word [r11]
mov rcx, r12
inc esi
lea rdi, [rax + r11 + 5]
and rdi, 0xfffffffffffffffc
call fcn.00423350
movzx ecx, word [rax]
cmp esi, ecx
jl 0x4234b0
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov rbp, qword [rsp + 0x48]
add rsp, 0x38
ret
jmp 0x423390