joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402410
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402435
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402440
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402435
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402488
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40247e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40248a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402470
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401450
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e276b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMemDC.0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4014e0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4014a7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4014d1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014e6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014e6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], vtable.CObject.0
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4118e0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4e458b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CCannotPlayResolveStatue.0
mov eax, dword [0x53d420]
mov ecx, 0x53d420
mov dword [esp + 0x2c], 7
mov dword [esp + 0x14], ecx
call dword [eax + 4]
mov eax, dword [0x537184]
mov bl, 8
test eax, eax
mov byte [esp + 0x2c], bl
jne 0x4119b6
mov eax, dword [0x537180]
test eax, eax
jne 0x4119b6
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x2c], 9
je 0x41195d
mov ecx, eax
call fcn.0040b9f0
jmp 0x41195f
xor eax, eax
mov ecx, dword [0x53bea8]
mov ebp, dword [0x5295d0]
mov byte [esp + 0x2c], bl
xor edi, edi
lea ebx, [ecx - 1]
mov dword [0x537180], eax
test ebx, ebx
jl 0x411998
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, 0x53bea0
call fcn.00407bd0
cmp ebp, dword [esp + 0x20]
jge 0x411998
inc edi
cmp edi, ebx
jle 0x41197d
push 1
mov eax, 0x40b4e0
push ebp
push eax
push edi
mov ecx, 0x53bea0
call fcn.00407bf0
mov dword [0x537184], 1
mov eax, dword [0x53d420]
mov ebx, dword [0x537180]
mov ecx, 0x53d420
mov byte [esp + 0x2c], 7
call dword [eax + 8]
lea edi, [esi + 0x108]
mov ecx, ebx
push edi
call fcn.0040f500
mov eax, dword [esi + 0x264]
test eax, eax
je 0x4119fc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebp, [esi + 0x17c]
mov dword [esp + 0x18], ebp
lea ebx, [ebp + 0xe0]
mov dword [esp + 0x14], ebx
mov dword [ebx], vtable.CGdiObject.0
mov ecx, ebx
mov byte [esp + 0x2c], 0xd
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [ebp + 0xa0]
mov dword [ebx], vtable.CObject.0
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [ebp + 0x60]
mov byte [esp + 0x2c], 0xa
call sub.MFC42.DLL_CStatic::CStatic
mov ecx, ebp
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esi + 0x120]
mov byte [esp + 0x2c], 5
call fcn.004e0694
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea edi, [esi + 0x100]
mov dword [esp + 0x18], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x2c], 0xe
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xf8]
mov dword [edi], vtable.CObject.0
mov byte [esp + 0x2c], 2
call fcn.004e069a
lea ecx, [esi + 0xa0]
mov byte [esp + 0x2c], 1
call fcn.0040aac0
lea ecx, [esi + 0x60]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CStatic::CStatic
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x413190
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e4782
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push esi
mov esi, dword [esp + 0x34]
cmp esi, eax
je 0x41320f
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x41320f
mov dl, byte [esp + 0x34]
mov dword [esp + 8], eax
mov byte [esp + 4], dl
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x34]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
add ecx, 0x30
add esi, 0x30
push ecx
push esi
mov byte [esp + 0x34], 1
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x24]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x414e30
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x29c]
cmp eax, 1
jne 0x414e79
mov eax, dword [esi + 0x38c]
lea edi, [esi + 0x38c]
test eax, eax
jne 0x414e67
push edi
push 0x529420
call fcn.00418660
mov ecx, eax
call fcn.0043f780
mov eax, dword [edi]
test eax, eax
je 0x414eb6
mov ecx, dword [eax]
push 0x5287c4
push str.DAILY.BKBNOPLAYBTNSUCC2
push eax
call dword [ecx + 0x24]
jmp 0x414eb6
cmp eax, 2
jne 0x414eb6
mov eax, dword [esi + 0x38c]
lea edi, [esi + 0x38c]
test eax, eax
jne 0x414ea6
push edi
push 0x529420
call fcn.00418660
mov ecx, eax
call fcn.0043f780
mov eax, dword [edi]
test eax, eax
je 0x414eb6
mov edx, dword [eax]
push 0x5287c4
push str.DAILY.BKBBADPLAYBTNSUCC2
push eax
call dword [edx + 0x24]
mov ecx, esi
call fcn.00414ef0
test eax, eax
je 0x414eec
push 0
push 0
push esi
push 0x413320
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
lea ecx, [esi + 0x184]
mov dword [esi + 0x388], eax
add esp, 0x18
mov eax, dword [ecx]
call dword [eax + 0xc0]
pop edi
pop esi
ret
Function at 0x418d90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x30c
mov dl, byte [0x537100]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x114]
push 0x104
push ecx
push 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x114]
push 0x52abe4
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [esp + 0x324]
xor ebx, ebx
test eax, eax
jle 0x418eca
mov eax, dword [esp + 0x320]
lea esi, [eax + 4]
mov ecx, dword [esi - 4]
lea edx, [esp + 0x114]
push ecx
push edx
push 0x52abdc
lea eax, [esp + 0x1c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x418f0f
cmp dword [esi], 0
je 0x418eb7
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x218]
lea edx, [esp + 0x218]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.00418f40
mov eax, dword [esi]
lea ecx, [esp + 0x218]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jl 0x418ee9
mov eax, dword [esp + 0x324]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x418e3a
mov ecx, dword [esp + 0x328]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
mov eax, 1
pop ebx
add esp, 0x30c
ret 0xc
mov eax, dword [esp + 0x320]
lea edx, [ebx + ebx*2]
pop edi
pop esi
mov ecx, dword [eax + edx*4 + 8]
mov edx, dword [esp + 0x320]
pop ebp
xor eax, eax
mov dword [edx], ecx
pop ebx
add esp, 0x30c
ret 0xc
mov ecx, dword [esp + 0x320]
lea eax, [ebx + ebx*2]
pop edi
pop esi
mov edx, dword [ecx + eax*4 + 8]
mov eax, dword [esp + 0x320]
pop ebp
pop ebx
mov dword [eax], edx
xor eax, eax
add esp, 0x30c
ret 0xc
Function at 0x418f40
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004e0dc0
mov al, byte [0x537100]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x201c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
je 0x418f73
mov byte [esi], 0
mov edi, dword [esp + 0x2018]
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x419025
cmp eax, 0x1fff
ja 0x419025
lea edx, [esp + 0x14]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x419025
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x529918
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x419025
mov edx, dword [esp + 0x2020]
push ebx
mov ecx, edx
xor eax, eax
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push 0x5295e8
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret 0xc
Function at 0x41a9d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push eax
call esi
test eax, eax
jne 0x41aa25
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push ecx
call esi
test eax, eax
jne 0x41aa25
pop edi
pop esi
add esp, 0xc0
ret
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xd0]
push str.GetNativeSystemInfo
mov dword [edx], eax
mov edx, dword [esp + 0x38]
push str.kernel32.dll
mov dword [ecx], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41aa63
lea ecx, [esp + 8]
push ecx
call eax
jmp 0x41aa6e
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x3c]
sub eax, 2
je 0x41aa82
pop edi
xor eax, eax
pop esi
add esp, 0xc0
ret
mov ax, word [esp + 8]
cmp ax, 6
jne 0x41aa9b
pop edi
mov eax, 2
pop esi
add esp, 0xc0
ret
xor ecx, ecx
cmp ax, 9
sete cl
pop edi
mov eax, ecx
pop esi
add esp, 0xc0
ret
Function at 0x425140
Capabilities:
Check os version
Set global application hook

Disassembly:
sub esp, 0xac
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x7c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebx + 0x80]
mov ebp, dword [ebx + 0x7c]
mov edi, eax
xor eax, eax
inc edi
sub ecx, edi
add edi, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CDialog::PreModal
mov dword [ebx + 0x64], eax
call sub.MFC42.DLL_AfxUnhookWindowCreate
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x4251bd
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4251bd
mov eax, dword [ebx + 0x64]
push 0
push eax
mov dword [esp + 0x18], 1
call dword [sym.imp.USER32.dll_EnableWindow]
call sub.MFC42.DLL_AfxGetThreadState
mov ecx, dword [ebx + 0x94]
mov dword [esp + 0x18], eax
test ecx, 0x80000
je 0x4251d9
mov dword [eax + 0x18], ebx
jmp 0x4251df
push ebx
call sub.MFC42.DLL_AfxHookWindowCreate
lea ebp, [ebx + 0x1fc]
mov ecx, 0x16
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
lea esi, [ebx + 0x60]
mov ecx, 0x13
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x27
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x9c
push ecx
call esi
test eax, eax
jne 0x425233
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x94
push edx
call esi
test eax, eax
je 0x42524a
mov eax, dword [esp + 0x30]
sub eax, 2
jne 0x42524a
cmp dword [esp + 0x24], 5
jb 0x42524a
mov dword [ebp], 0x58
mov dword [0x5371d4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x4253b0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x5371d0], eax
mov eax, dword [ebx + 0xac]
test eax, eax
push ebp
je 0x425282
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
jmp 0x425288
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
mov dword [esp + 0x14], eax
mov eax, dword [0x5371d0]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x5371d4]
test eax, eax
je 0x4252a9
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
lea eax, [ebx + 0x60]
mov ecx, 0x13
mov esi, ebp
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [eax], 0x4c
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [ecx + 0x18], 0
je 0x4252e5
mov edx, dword [ebx + 0x200]
push 1
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4252fb
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, ebx
call sub.MFC42.DLL_CDialog::PostModal
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
jne 0x425313
mov eax, 2
add esp, 0xac
ret
Function at 0x4254d0
Capabilities:
Check os version
Set global application hook

Disassembly:
sub esp, 0xa0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
mov edx, eax
add esp, 4
inc edx
xor eax, eax
sub ecx, edx
shl ecx, 1
lea edi, [edi + edx*2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [esp + 0x10], eax
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [esi + 8], eax
test eax, eax
je 0x425540
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x425540
mov eax, dword [esi + 8]
push 0
push eax
mov ebx, 1
call ebp
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x9c
call edi
test eax, eax
jne 0x425579
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push edx
call edi
test eax, eax
je 0x425590
mov eax, dword [esp + 0x24]
sub eax, 2
jne 0x425590
cmp dword [esp + 0x18], 5
jb 0x425590
mov dword [esi + 4], 0x58
mov dword [0x5371dc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x425630
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x5371d8], eax
mov eax, dword [esi]
test eax, eax
je 0x4255c7
lea eax, [esi + 4]
push eax
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x4255d1
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
mov edx, dword [0x5371d8]
mov edi, eax
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x5371dc]
test eax, eax
je 0x4255f1
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
call dword [sym.imp.comdlg32.dll_CommDlgExtendedError]
test ebx, ebx
je 0x425603
mov eax, dword [esi + 8]
push 1
push eax
call ebp
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x425619
push esi
call dword [sym.imp.USER32.dll_SetFocus]
test edi, edi
mov eax, edi
jne 0x425624
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x425b90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
add ecx, 4
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10

Function at 0x425bc0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
add ecx, 4
push ecx
mov ecx, dword [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
ret 0xc
Function at 0x426bc0
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e6924
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x120
test eax, eax
push ebp
push esi
push edi
jne 0x426bed
xor eax, eax
jmp 0x426dbb
push ecx
mov dword [esp + 0x14], esp
mov ebp, esp
push 0xc
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x140]
mov dword [esp + 0x138], 0
test esi, esi
je 0x426c44
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call fcn.004e113d
test eax, eax
mov dword [esi], eax
jne 0x426c46
test edi, edi
je 0x426c46
push 0x8007000e
call fcn.004e1090
jmp 0x426c46
xor esi, esi
test esi, esi
mov dword [esp + 0x138], 0xffffffff
mov dword [ebp], esi
jne 0x426c62
push 0x8007000e
call fcn.004e1090
mov ecx, dword [esp + 0x144]
call fcn.004280f0
cmp ax, 0xffff
je 0x426db6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
lea eax, [esp + 0x28]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x28]
push ecx
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x3c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x134], 1
jne 0x426cdb
xor eax, eax
jmp 0x426dbb
lea ecx, [esp + 0x24]
push 0
push ecx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x426cfd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x426dbb
or edi, 0xffffffff
push esi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
mov word [esp + 0x14], 8
push edx
call fcn.004e113d
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x426d3a
lea ecx, [esp + 0x28]
test ecx, ecx
je 0x426d3a
push 0x8007000e
call fcn.004e1090
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0xe]
push ecx
mov esi, dword [esp + 0x144]
sub esp, 0x10
mov byte [esp + 0x148], 2
mov ecx, esp
mov edx, dword [esi]
push esi
mov dword [ecx], ebp
mov ebp, dword [esp + 0x30]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0xc], eax
call dword [edx + 0xe8]
test eax, eax
jge 0x426d83
push 0x529810
push esi
push eax
call fcn.004e109e
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x426da0
push eax
call fcn.004e1090
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp word [esp + 0xe], di
je 0x426db6
xor eax, eax
jmp 0x426dbb
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x12c
ret
Function at 0x426de0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e6938
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x426e17
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x28], 0
call ebx
test eax, eax
jge 0x426e41
push eax
call fcn.004e1090
mov esi, dword [esp + 0x2c]
mov word [esp + 0xc], 8
push esi
call fcn.004e113d
test eax, eax
mov dword [esp + 0x14], eax
jne 0x426e68
test esi, esi
je 0x426e68
push 0x8007000e
call fcn.004e1090
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0xc]
sub esp, 0x10
mov eax, esp
mov edx, dword [edi]
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
call dword [edx + 0x108]
mov esi, eax
test esi, esi
jge 0x426eb6
push 0x529810
push edi
push esi
call fcn.004e109e
test esi, esi
mov dword [esp + 0x24], 0xffffffff
je 0x426ee5
lea edx, [esp + 0xc]
push edx
call ebx
test eax, eax
jge 0x426ed1
push eax
call fcn.004e1090
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0xc]
push eax
call ebx
test eax, eax
jge 0x426ef6
push eax
call fcn.004e1090
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret

Function at 0x426f80
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 0x426f9f
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
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
je 0x426fe9
xor eax, eax
add esp, 0x14
ret
push 0
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret