joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x41d440], 1
mov dword [0x41d458], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [0x41d45c], 0
mov dword [0x41d4a0], eax
mov eax, dword [ebp + 8]
mov dword [0x41d498], 0
mov dword [0x41d49c], 0
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x41d444], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
add edi, 0x5ab
call sym._AddTextButton
mov dword [esp], 7
mov eax, ebx
mov ecx, 0x3f9
mov edx, 0x5a9
call sym._AddTextButton
mov dword [esp], 8
mov eax, ebx
mov ecx, 0x3fa
mov edx, 0x5aa
call sym._AddTextButton
mov dword [esp], 9
mov edx, edi
mov eax, ebx
mov ecx, 0x3fb
call sym._AddTextButton
mov dword [esp], 0xa
mov eax, ebx
mov ecx, 0x3fc
mov edx, 0x5ad
call sym._AddTextButton
mov dword [esp], 0xb
mov eax, ebx
mov ecx, 0x3fd
mov edx, 0x5ae
call sym._AddTextButton
mov dword [esp], 0xc
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
call sym._AddTextButton
mov edi, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41142e
mov dword [esp], 0
call edi
mov dword [ebp - 0x7c], 0x50
sub esp, 0x30
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], 0x371
mov dword [ebp - 0x74], 0x140
mov dword [ebp - 0x54], 0x16
mov dword [ebp - 0x44], 0x16
mov dword [ebp - 0x58], 0x5a
mov dword [ebp - 0x50], 0x5a
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x48], 0xd
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [ebp + 8]
sub esp, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7e0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50300000
mov dword [esp + 8], 0
mov dword [esp + 4], str.PrtPreview
mov dword [esp], 0
call edi
sub esp, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4051a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, edx
push ebx
lea edx, [ebp - 0xc]
mov ebx, eax
lea eax, [ebp - 0x10]
sub esp, 0x30
mov dword [ebp - 0xc], 0
call sym._registry_get_handle
test eax, eax
je 0x4051d0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x10]
shl ebx, 2
mov dword [esp + 0x14], 4
add esi, ebx
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x10]
add ebx, dword [ebp + 8]
sub esp, 0x18
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Wrap
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x10]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x405260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
lea ebx, [eax*4]
lea eax, [ebp - 0x24]
lea esi, [ecx + ebx]
mov ecx, edx
lea edx, [ebp - 0x20]
sub esp, 0x3c
add ebx, dword [ebp + 8]
mov dword [esi], 0
mov dword [ebx], 0
mov dword [ebp - 0x20], 0
call sym._registry_get_handle
test eax, eax
jne 0x4052c7
mov eax, dword [ebp - 0x20]
cmp eax, 2
je 0x4052d0
mov dword [esi], 0xf
cmp eax, 2
je 0x405318
xor eax, eax
test edi, edi
sete al
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x4052a4
jmp 0x4052aa
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Wrap
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4052af
jmp 0x4052b8
Function at 0x405360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Options
mov ebp, esp
push ebx
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
sub esp, 0x64
mov dword [ebp - 0x40], 0
call sym._registry_get_handle
test eax, eax
je 0x4053a0
mov ecx, str.Settings
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
call sym._registry_get_handle
test eax, eax
je 0x405458
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowPlacement]
xor eax, eax
mov ebx, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 8
cmp dword [ebp - 0x2c], 3
sete al
mov dword [esp + 0x14], 0x10
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.FrameRect
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x38]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x40]
sub esp, 0x18
mov dword [esp], eax
call sym._registry_set_pagemargins
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405382
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._registry_set_previewpages
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret

Function at 0x405480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ecx, str.Options
mov ebp, esp
push ebx
lea eax, [ebp - 0x10]
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], 0x10
call sym._registry_get_handle
test eax, eax
je 0x4054e0
test ebx, ebx
je 0x4054ca
mov dword [ebx], 0
mov dword [ebx + 8], 0x258
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0x12c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FrameRect
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4054ab
cmp dword [ebp - 0xc], 0x10
jne 0x4054ab
jmp 0x4054ca
Function at 0x405520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ecx, str.Options
mov ebp, esp
push ebx
lea eax, [ebp - 0x10]
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], 4
call sym._registry_get_handle
test eax, eax
je 0x405568
mov dword [ebx], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x40554b
cmp dword [ebp - 0xc], 4
jne 0x40554b
jmp 0x405551
Function at 0x405b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Recent_file_list
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x6c]
push ebx
sub esp, 0x9c
call sym._registry_get_handle
test eax, eax
je 0x405b68
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._registry_read_filelist
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edi, 0x3ed
lea esi, [ebp - 0x48]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x7c], eax
sub esp, 4
mov dword [ebp - 0x44], 0x20
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
sub esp, 0x10
test eax, eax
je 0x405be4
mov eax, dword [ebp - 0x28]
mov dword [ebp + edi*4 - 0x100c], eax
inc edi
cmp edi, 0x3f1
jne 0x405bae
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x7c], eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x405cd8
mov eax, dword [ebp - 0x7c]
xor edi, edi
mov ecx, esi
mov esi, edi
mov edi, ecx
test eax, eax
je 0x405c40
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edi
sub esp, 8
test eax, eax
je 0x405cf7
inc esi
cmp esi, 4
je 0x405c40
mov eax, dword [ebp + esi*4 - 0x58]
test eax, eax
jne 0x405c16
lea esi, [esi]
nop
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x405c59
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov edi, dword [sym.imp.user32.dll_wsprintfW]
mov edx, dword [ebp + 8]
lea esi, [ebp - 0x64]
test edx, edx
je 0x405cd8
inc ebx
mov dword [ebp + 8], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str.File_d
mov dword [esp], esi
call edi
mov edx, dword [ebp + 8]
cmp word [edx], 0
je 0x405cf0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405c90
sub eax, edx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
cmp ebx, 4
je 0x405cd8
mov edx, dword [ebp + ebx*4 - 0x58]
jmp 0x405c65
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405b50
mov eax, 2
jmp 0x405c9e
test esi, esi
je 0x405c59
lea eax, [ebp - 0x58]
lea edx, [esi*4]
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memmove
jmp 0x405c59
Function at 0x405dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x411638
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp], esi
mov ecx, ebx
call sym._registry_read_formatopts
mov dword [ebp + 8], esi
add esp, 0x10
mov ecx, ebx
mov edx, 0x41162c
pop ebx
mov eax, 1
pop esi
pop ebp
jmp sym._registry_read_formatopts

Function at 0x405e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov edx, 0x411638
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp], esi
mov ecx, ebx
call sym._registry_set_formatopts
mov dword [ebp + 8], esi
add esp, 0x10
mov ecx, ebx
mov edx, 0x41162c
pop ebx
mov eax, 1
pop esi
pop ebp
jmp sym._registry_set_formatopts

Function at 0x4067c0
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x3c
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, eax
sub esp, 0x14
mov eax, 1
test edx, edx
je 0x406811
cmp dword [ebp - 0x1c], ebx
je 0x406820
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi], ebx
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10

Function at 0x406a20
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x3c
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, eax
sub esp, 0x14
mov eax, 1
test edx, edx
je 0x406a73
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
Function at 0x407810
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x6fc]
push ebx
sub esp, 0x71c
mov eax, dword [0x41f708]
mov ebx, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call ebx
mov dword [ebp - 0x710], ebx
sub esp, 8
mov dword [ebp - 0x714], eax
mov dword [esp + 4], 0x7dd
mov dword [esp], eax
call ebx
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call ebx
lea edx, [ebp - 0x6f8]
mov ecx, 0x1c
mov dword [ebp - 0x6fc], 0x74
mov edi, edx
mov dword [ebp - 0x70c], eax
xor eax, eax
sub esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x41f704]
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x612]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x70c]
sub esp, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov dword [esp], ecx
call ebx
sub esp, 0x10
test eax, eax
jne 0x4078f8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x6e2]
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], edi
call esi
mov dword [ebp - 0x718], eax
sub esp, 8
test eax, eax
je 0x407968
mov ecx, dword [ebp - 0x70c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp], ecx
mov dword [esp + 4], 0xc
call ebx
mov eax, dword [ebp - 0x714]
mov ebx, dword [ebp - 0x710]
sub esp, 0x10
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call ebx
sub esp, 8
call sym._populate_size_list
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41f708]
mov edi, dword [ebp - 0x710]
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call edi
sub esp, 8
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call edi
lea edi, [ebp - 0x684]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call ebx
mov ecx, 0x1c
lea edx, [ebp - 0x688]
mov dword [ebp - 0x688], 0x74
mov dword [ebp - 0x70c], eax
mov eax, dword [ebp - 0x718]
sub esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x41f704]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x70c]
lea ecx, [ebp - 0x414]
sub esp, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov dword [esp], eax
call ebx
mov edi, dword [ebp - 0x67c]
mov edx, 0x66666667
sub esp, 0x10
mov eax, edi
sar edi, 0x1f
mov dword [esp + 4], 0x411d18
imul edx
sar edx, 3
sub edx, edi
lea edi, [ebp - 0x216]
mov dword [esp + 8], edx
mov dword [esp], edi
call dword [sym.imp.user32.dll_wsprintfW]
lea ecx, [ebp - 0x414]
mov dword [esp + 4], edi
mov dword [esp], ecx
call esi
sub esp, 8
test eax, eax
je 0x4078ed
mov eax, dword [ebp - 0x70c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call ebx
sub esp, 0x10
jmp 0x4078ed
Function at 0x407aa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [0x41f708]
mov dword [esp + 4], 0x7d0
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
test ebx, ebx
je 0x407af8
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x410284]
sub esp, 8
mov dword [esp], eax
call sym._reg_formatindex
mov ebx, dword [ebp - 4]
or dword [eax*4 + 0x41f6e8], 2
leave
ret
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x410284]
sub esp, 8
mov dword [esp], eax
call sym._reg_formatindex
mov ebx, dword [ebp - 4]
and dword [eax*4 + 0x41f6e8], 0xfffffffd
leave
ret
Function at 0x407dd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x407fb0
mov edx, eax
lea esi, [ebp - 0x24]
cmp ebx, 0x11
je 0x407f60
mov eax, dword [0x41f704]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x40], edx
mov dword [esp + 0xc], esi
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [ebp - 0x1c], sym._stream_out_16
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x44a
mov dword [esp], eax
call esi
mov edx, dword [ebp - 0x40]
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41f704]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
mov ecx, dword [ebp - 0x3c]
sub esp, 4
test ecx, ecx
je 0x407f20
xor eax, eax
movzx edx, word [edi + eax]
add eax, 2
mov word [eax + 0x41f4de], dx
test dx, dx
jne 0x407e90
mov eax, 0x41f4e0
call sym._set_caption
mov eax, dword [0x41f704]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call esi
mov dword [0x410284], ebx
sub esp, 0x10
call sym._set_bar_states
call sym._set_default_font
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
mov eax, dword [eax*4 + 0x41f6f0]
mov dword [esp + 4], eax
mov eax, dword [0x41f708]
mov dword [esp], eax
call sym._target_device
mov ecx, 1
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [esp + 8], eax
mov eax, dword [0x41f704]
mov dword [ebp - 0x28], 0x4b0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x3c]
sub esp, 0x10
test eax, eax
je 0x407e8e
jmp 0x407f0c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x411b44
mov dword [esp], eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x3c]
sub esp, 0x14
cmp dword [ebp - 0x24], 2
je 0x407e30
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor ecx, ecx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov dword [esp + 0xc], 0x30
sete al
mov dword [esp + 8], 0x411d38
movzx eax, al
add eax, 0x6ab
mov dword [esp + 4], eax
mov eax, dword [0x41f708]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
xor ecx, ecx
sub esp, 0x10
jmp 0x407f0c
Function at 0x4081c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
cmp word [0x41f4e0], 0
jne 0x408218
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 8
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], eax
mov eax, dword [0x41f704]
mov dword [ebp - 0xc], 0x4b0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x408320
mov eax, dword [0x41f704]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x408320
cmp word [0x41f4e0], 0
movzx eax, word [0x41eaa0]
mov ebx, 0x41eaa0
jne 0x408330
test ax, ax
je 0x408370
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408270
sub eax, ebx
sar eax, 1
cmp word [0x41e8a0], 0
je 0x4082a3
mov edx, 0x41e8a0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x408290
sub edx, 0x41e8a0
sar edx, 1
add eax, edx
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov esi, eax
test eax, eax
je 0x4083bc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41e8a0
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [0x41f708]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0x33
mov dword [esp + 8], 0x411d38
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, 6
je 0x408380
xor eax, eax
cmp ebx, 7
sete al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret
mov ebx, 0x41f4e0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x408338
cmp ebx, 0x41f4e0
jbe 0x408370
lea esi, [esi]
cmp ax, 0x5c
je 0x4083b0
cmp ax, 0x2f
je 0x4083b0
sub ebx, 2
movzx eax, word [ebx]
cmp ebx, 0x41f4e0
ja 0x408350
jmp 0x40825f
xor eax, eax
jmp 0x40827d
cmp word [0x41f4e0], 0
je 0x4083a0
mov edx, dword [0x410284]
lea esp, [ebp - 8]
mov eax, 0x41f4e0
pop ebx
pop esi
pop ebp
jmp sym._DoSaveFile
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp sym._DialogSaveFile
movzx eax, word [ebx + 2]
add ebx, 2
jmp 0x40825f
xor eax, eax
jmp 0x408310
Function at 0x40e5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40e64b
cmp byte [esi + ebx - 1], 0xa
je 0x40e61f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41f7c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret