joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c30
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 [0x41b440], 1
mov dword [0x41b458], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esp + 4], 0x7d4
mov dword [0x41b4a0], eax
mov eax, dword [ebp + 8]
mov dword [0x41b45c], 0
mov dword [esp], eax
mov dword [0x41b498], 0
mov dword [0x41b49c], 0
call sym._GetDlgItem_8
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x41b444], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
add edi, 0x5ab
call dbg.AddTextButton
mov dword [esp], 7
mov eax, ebx
mov ecx, 0x3f9
mov edx, 0x5a9
call dbg.AddTextButton
mov dword [esp], 8
mov eax, ebx
mov ecx, 0x3fa
mov edx, 0x5aa
call dbg.AddTextButton
mov dword [esp], 9
mov edx, edi
mov eax, ebx
mov ecx, 0x3fb
call dbg.AddTextButton
mov dword [esp], 0xa
mov eax, ebx
mov ecx, 0x3fc
mov edx, 0x5ad
call dbg.AddTextButton
mov dword [esp], 0xb
mov eax, ebx
mov ecx, 0x3fd
mov edx, 0x5ae
call dbg.AddTextButton
mov dword [esp], 0xc
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
call dbg.AddTextButton
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 sym._CreateWindowExW_48
mov dword [ebp - 0x7c], 0x50
sub esp, 0x30
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x7c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
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
call sym._SendMessageW_16
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 sym._CreateWindowExW_48
sub esp, 0x30
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x10]
sub esp, 0x34
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
call dbg.registry_get_handle
test eax, eax
je 0x404ff8
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
lea ebx, [eax*4]
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
add eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, dword [ebp - 0x10]
add ebx, dword [ebp + 0x14]
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 sym._RegSetValueExW_24
mov eax, dword [ebp - 0x10]
sub esp, 0x18
mov dword [esp], eax
call sym._RegCloseKey_4
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret

Function at 0x405090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x20]
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xc]
lea eax, [esi*4]
add ebx, eax
add eax, dword [ebp + 0x14]
mov dword [ebx], 0
mov edi, eax
mov dword [eax], 0
lea eax, [ebp - 0x24]
call dbg.registry_get_handle
test eax, eax
jne 0x4050fc
mov eax, dword [ebp - 0x20]
cmp eax, 2
je 0x405108
mov dword [ebx], 0xf
cmp eax, 2
je 0x405150
xor eax, eax
test esi, esi
sete al
mov dword [edi], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
mov dword [esp], eax
mov dword [ebp - 0x1c], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x4050da
jmp 0x4050e0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Wrap
mov dword [esp], eax
mov dword [ebp - 0x1c], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4050e5
jmp 0x4050ee
Function at 0x4051a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Options
mov ebp, esp
sub esp, 0x68
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
call dbg.registry_get_handle
test eax, eax
je 0x405200
mov ecx, str.Settings
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
call dbg.registry_get_handle
test eax, eax
je 0x4051e0
leave
ret
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dbg.registry_set_previewpages
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 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 sym._GetWindowPlacement_8
xor eax, eax
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 sym._RegSetValueExW_24
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 sym._RegSetValueExW_24
mov eax, dword [ebp - 0x40]
sub esp, 0x18
mov dword [esp], eax
call dbg.registry_set_pagemargins
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x4051c1

Function at 0x4052b0
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 dbg.registry_get_handle
test eax, eax
je 0x405310
test ebx, ebx
je 0x4052fa
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 sym._RegCloseKey_4
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 sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4052db
cmp dword [ebp - 0xc], 0x10
jne 0x4052db
jmp 0x4052fa

Function at 0x405350
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 dbg.registry_get_handle
test eax, eax
je 0x405398
mov dword [ebx], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._RegCloseKey_4
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 sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40537b
cmp dword [ebp - 0xc], 4
jne 0x40537b
jmp 0x405381
Function at 0x405960
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
mov edi, dword [ebp + 8]
call dbg.registry_get_handle
test eax, eax
je 0x4059a0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.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 esi, 0x3ed
mov dword [esp], eax
call sym._GetMenu_4
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x44], 0x20
sub esp, 4
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x7c], ebx
mov ebx, esi
mov esi, eax
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._GetMenuItemInfoW_16
sub esp, 0x10
test eax, eax
je 0x405a1d
mov eax, dword [ebp - 0x28]
mov dword [ebp + ebx*4 - 0x100c], eax
add ebx, 1
cmp ebx, 0x3f1
jne 0x4059e6
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x7c]
mov dword [esp], edi
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x7c], eax
mov dword [esp + 4], eax
call esi
sub esp, 8
test eax, eax
je 0x405b08
mov eax, dword [ebp - 0x7c]
xor edx, edx
mov dword [ebp - 0x80], ebx
mov ebx, edx
test eax, eax
je 0x405a78
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x405b27
add ebx, 1
cmp ebx, 4
je 0x405a78
mov eax, dword [ebp + ebx*4 - 0x58]
test eax, eax
jne 0x405a4e
lea esi, [esi]
mov eax, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x80]
test eax, eax
je 0x405a94
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
lea esi, [ebp - 0x64]
test edi, edi
je 0x405b08
add ebx, 1
mov dword [esp + 4], str.File_d
mov dword [esp + 8], ebx
mov dword [esp], esi
call sym._wsprintfW
cmp word [edi], 0
je 0x405b20
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405ac0
sub eax, edi
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
cmp ebx, 4
je 0x405b08
mov edi, dword [ebp + ebx*4 - 0x58]
jmp 0x405a97
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x405983
mov eax, 2
jmp 0x405ace
mov edx, ebx
mov ebx, dword [ebp - 0x80]
test edx, edx
je 0x405a94
lea eax, [ebp - 0x58]
shl edx, 2
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memmove
jmp 0x405a94
Function at 0x4065a0
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 0x4065f1
cmp dword [ebp - 0x1c], ebx
je 0x406600
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 0x4067f0
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 0x406843
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 0x4075e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x6f8]
push ebx
sub esp, 0x71c
mov eax, dword [0x41d708]
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov ebx, eax
mov dword [esp + 4], 0x7dd
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call sym._SendMessageW_16
mov ecx, 0x1c
lea edx, [ebp - 0x6fc]
mov dword [ebp - 0x6fc], 0x74
mov esi, eax
xor eax, eax
sub esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x41d704]
mov dword [esp + 0xc], edx
lea edi, [ebp - 0x612]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
jne 0x4076b8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.kernel32.dll_lstrcmpW]
lea ecx, [ebp - 0x6e2]
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [ebp - 0x70c], eax
call eax
sub esp, 8
test eax, eax
je 0x407720
lea ecx, [ebp - 0x6e2]
mov dword [esp], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 4], 0x7de
call sym._GetDlgItem_8
sub esp, 8
call dbg.populate_size_list
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x710], eax
mov eax, dword [0x41d708]
lea edi, [ebp - 0x684]
lea ebx, [ebp - 0x688]
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call sym._SendMessageW_16
mov ecx, 0x1c
mov dword [ebp - 0x688], 0x74
mov esi, eax
mov eax, dword [ebp - 0x710]
sub esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x41d704]
mov dword [esp + 0xc], ebx
lea edi, [ebp - 0x414]
mov dword [esp + 8], 1
lea ebx, [ebp - 0x216]
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov dword [esp], esi
call sym._SendMessageW_16
mov ecx, dword [ebp - 0x67c]
mov edx, 0x66666667
sub esp, 0x10
mov eax, ecx
sar ecx, 0x1f
mov dword [esp + 4], 0x411cf8
imul edx
mov dword [esp], ebx
sar edx, 3
sub edx, ecx
mov dword [esp + 8], edx
call sym._wsprintfW
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x70c]
mov dword [esp], edi
call eax
sub esp, 8
test eax, eax
je 0x4076aa
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4076aa
Function at 0x407860
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [0x41d708]
mov dword [esp + 4], 0x7d0
mov dword [esp], eax
call sym._GetDlgItem_8
sub esp, 8
test ebx, ebx
je 0x4078b8
mov dword [esp + 4], 5
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x410284]
sub esp, 8
mov dword [esp], eax
call sym._reg_formatindex
mov ebx, dword [ebp - 4]
or dword [eax*4 + 0x41d6e8], 2
leave
ret
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._ShowWindow_8
mov eax, dword [0x410284]
sub esp, 8
mov dword [esp], eax
call sym._reg_formatindex
mov ebx, dword [ebp - 4]
and dword [eax*4 + 0x41d6e8], 0xfffffffd
leave
ret
Function at 0x407b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
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 0x407d78
mov edi, eax
lea edx, [ebp - 0x24]
cmp ebx, 0x11
je 0x407d28
mov eax, dword [0x41d704]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x44a
mov dword [esp], eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], dbg.stream_out
call sym._SendMessageW_16
sub esp, 0x10
mov dword [ebp - 0x3c], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41d704]
sub esp, 4
mov dword [esp], eax
call sym._SetFocus_4
mov edx, dword [ebp - 0x3c]
sub esp, 4
test edx, edx
je 0x407ce0
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
add eax, 2
mov word [eax + 0x41d4de], dx
test dx, dx
jne 0x407c50
mov eax, 0x41d4e0
call dbg.set_caption
mov eax, dword [0x41d704]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call sym._SendMessageW_16
mov dword [0x410284], ebx
sub esp, 0x10
call dbg.set_bar_states
call dbg.set_default_font
mov eax, dword [0x410284]
mov dword [esp], eax
call sym._reg_formatindex
mov eax, dword [eax*4 + 0x41d6f0]
mov dword [esp + 4], eax
mov eax, dword [0x41d708]
mov dword [esp], eax
call dbg.target_device
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [0x41d704]
mov dword [esp + 4], 0x45f
mov dword [esp], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x4b0
call sym._SendMessageW_16
mov edx, dword [ebp - 0x3c]
sub esp, 0x10
test eax, eax
je 0x407c44
jmp 0x407ccf
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 2
mov dword [esp + 4], global_unicode
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea edx, [ebp - 0x24]
sub esp, 0x14
cmp dword [ebp - 0x24], 2
je 0x407bf0
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor edx, edx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
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], global_lpCaption
movzx eax, al
add eax, 0x6ab
mov dword [esp + 4], eax
mov eax, dword [0x41d708]
mov dword [esp], eax
call sym._MessageBoxW_16
xor edx, edx
sub esp, 0x10
jmp 0x407ccf
Function at 0x407f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov eax, dword [0x41d704]
cmp word [0x41d4e0], 0
jne 0x407fd6
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 4], 0x45f
mov dword [esp], eax
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], 0x4b0
call sym._SendMessageW_16
mov edx, eax
sub esp, 0x10
mov eax, dword [0x41d704]
test edx, edx
je 0x4080d8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
test eax, eax
je 0x4080d8
cmp word [0x41d4e0], 0
movzx eax, word [0x41caa0]
mov ebx, 0x41caa0
jne 0x4080e8
test ax, ax
je 0x408130
mov eax, ebx
lea esi, [esi]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x408030
sub eax, ebx
sar eax, 1
cmp word [0x41c8a0], 0
je 0x408063
mov edx, 0x41c8a0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x408050
sub edx, 0x41c8a0
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 0x40817c
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41c8a0
mov dword [esp], eax
call sym._wsprintfW
mov eax, dword [0x41d708]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0x33
mov dword [esp + 8], global_lpCaption
mov dword [esp], eax
call sym._MessageBoxW_16
sub esp, 0x10
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, 6
je 0x408140
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, 0x41d4e0
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4080f0
cmp ebx, 0x41d4e0
jbe 0x408130
lea esi, [esi]
cmp ax, 0x5c
je 0x408170
cmp ax, 0x2f
je 0x408170
sub ebx, 2
movzx eax, word [ebx]
cmp ebx, 0x41d4e0
ja 0x408108
jmp 0x40801b
xor eax, eax
jmp 0x40803d
cmp word [0x41d4e0], 0
je 0x408160
mov edx, dword [0x410284]
lea esp, [ebp - 8]
mov eax, 0x41d4e0
pop ebx
pop esi
pop ebp
jmp dbg.DoSaveFile
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp dbg.DialogSaveFile
movzx eax, word [ebx + 2]
add ebx, 2
jmp 0x40801b
xor eax, eax
jmp 0x4080ce
Function at 0x40e640
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 0x40e69b
cmp byte [esi + ebx - 1], 0xa
je 0x40e66f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41d7a4], 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
Function at 0x40ebb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x41d7b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x40ed70
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x41d7b4]
movzx eax, al
bt eax, esi
jae 0x40edd0
mov ecx, dword [0x41d7a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x40ec76
test byte [0x410290], 8
jne 0x40ed10
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x4102a0], 8
jne 0x40ecc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40ec45
cmp esi, 3
jbe 0x40ec80
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x417f20]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x40ec45
mov ecx, dword [0x41d7b4]
test ecx, ecx
je 0x40edb0
mov dword [esp], 0x4102a0
call dword [0x41d7b4]
test al, 8
je 0x40ec1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40ec1c
mov ebx, dword [0x41d7b4]
test ebx, ebx
je 0x40ed90
mov dword [esp], 0x410290
call dword [0x41d7b4]
test al, 8
je 0x40ec09
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40ec0f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41d7b4
call sym._load_func.part.0
jmp 0x40ebd0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41d7b4
call sym._load_func.part.0
jmp 0x40ed1a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41d7b4
call sym._load_func.part.0
jmp 0x40ecce
mov eax, 0xffffffff
jmp 0x40ec76