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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa0
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x4214a0], ebx
sub esp, 4
mov dword [ebp - 0x7c], eax
mov dword [esp], edi
mov dword [0x421440], 1
mov dword [0x421458], 0
mov dword [0x42145c], 0
mov dword [0x421498], 0
mov dword [0x42149c], 0
mov dword [esp + 4], 0x7d4
call dword [sym.imp.user32.dll_GetDlgItem]
xor edx, edx
mov ecx, 0x3f2
sub esp, 8
cmp dword [0x421444], 1
mov ebx, eax
mov dword [esp], 6
setg dl
mov esi, edx
mov edx, 0x5a8
add esi, 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, esi
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 esi, 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], 0x411492
mov dword [esp], 0
call esi
mov edx, 0x16
mov dword [ebp - 0x70], 0x140
movq xmm0, qword [0x411530]
mov dword [ebp - 0x58], eax
mov eax, 0x5a
sub esp, 0x30
mov dword [ebp - 0x54], eax
mov eax, 0xd
mov dword [ebp - 0x50], edx
mov edx, 0x16
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x40], edx
movq qword [ebp - 0x78], xmm0
mov dword [ebp - 0x4c], 0x5a
mov dword [ebp - 0x34], 0x64
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 - 0x7c]
sub esp, 0x10
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x7e0
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], 0x4114a0
mov dword [esp], 0
call esi
sub esp, 0x30
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x408cf0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x40b570
Capabilities:
Write file on windows

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x423724]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
cmp word [0x423500], 0
jne 0x40b5dd
lea edx, [ebp - 0x18]
mov ecx, 8
mov ebx, 0x4b0
mov dword [esp], eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], edx
mov dword [ebp - 0x18], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0x45f
call ebx
mov edx, eax
sub esp, 0x10
mov eax, dword [0x423724]
test edx, edx
je 0x40b6e0
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 0x40b6e0
cmp word [0x423500], 0
movzx eax, word [0x422ac0]
mov ebx, 0x422ac0
jne 0x40b6f8
test ax, ax
je 0x40b740
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b630
sub eax, ebx
sar eax, 1
cmp word [0x4228c0], 0
je 0x40b663
mov edx, 0x4228c0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x40b650
sub edx, 0x4228c0
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 0x40b7a5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x4228c0
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [0x423728]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0x33
mov dword [esp + 8], 0x411758
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 0x40b750
xor eax, eax
cmp ebx, 7
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, 0x423500
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40b700
cmp eax, 0x423500
ja 0x40b71a
jmp 0x40b79c
mov eax, ebx
movzx edx, word [eax]
cmp dx, 0x5c
je 0x40b790
cmp dx, 0x2f
je 0x40b790
lea ebx, [eax - 2]
cmp ebx, 0x423500
ja 0x40b718
movzx eax, word [eax - 2]
jmp 0x40b61f
xor eax, eax
jmp 0x40b63d
cmp word [0x423500], 0
je 0x40b778
mov edx, dword [0x40f284]
lea esp, [ebp - 0xc]
mov eax, 0x423500
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp sym._DoSaveFile
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp sym._DialogSaveFile
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
jmp 0x40b61f
mov ebx, eax
xor eax, eax
jmp 0x40b63d
xor eax, eax
jmp 0x40b6d4
Function at 0x40bf00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x14]
push ebx
sub esp, 0x24
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], 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 - 0x18]
call sym._registry_get_handle
test eax, eax
jne 0x40bf6d
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x40bf78
mov dword [ebx], 0xf
cmp eax, 2
je 0x40bfc0
xor eax, eax
test esi, esi
sete al
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
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 - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], ebx
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 - 0x14]
jne 0x40bf4a
jmp 0x40bf50
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x10], edi
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 0x40bf55
jmp 0x40bf5e

Function at 0x40c060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ecx, str.Options
mov ebp, esp
push ebx
lea eax, [ebp - 0xc]
sub esp, 0x20
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], 4
call sym._registry_get_handle
test eax, eax
je 0x40c0a8
mov dword [ebx], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
lea eax, [ebp - 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0xc]
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 0x40c08b
cmp dword [ebp - 8], 4
jne 0x40c08b
jmp 0x40c091

Function at 0x40c180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea ecx, [ebp + 8]
sub esp, 0x1c
mov eax, dword [ecx]
mov dword [ebp - 8], 0x10
test eax, eax
je 0x40c1ce
lea edx, [ebp - 8]
mov dword [esp + 0x10], 0x4214b0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x40c1e0
movdqu xmm0, xmmword [0x411550]
movups xmmword [0x4214b0], xmm0
leave
ret
cmp dword [ebp - 8], 0x10
jne 0x40c1ce
jmp 0x40c1dd
Function at 0x40c1f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 4
test eax, eax
je 0x40c23b
lea edx, [ebp - 4]
mov dword [esp + 0x10], 0x421444
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x40c250
mov dword [0x421444], 1
leave
ret
cmp dword [ebp - 4], 4
jne 0x40c23b
mov eax, dword [0x421444]
test eax, eax
jle 0x40c23b
cmp eax, 2
jle 0x40c245
mov dword [0x421444], 2
leave
ret

Function at 0x40c270
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push ebx
push ecx
lea ecx, [ebp + 8]
lea eax, [ebp - 0x10]
sub esp, 0x20
mov ebx, dword [ecx]
mov ecx, str.Options
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x10
call sym._registry_get_handle
test eax, eax
je 0x40c2c8
test ebx, ebx
je 0x40c2ad
movdqu xmm0, xmmword [0x4116d0]
movups xmmword [ebx], xmm0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
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 0x40c29e
cmp dword [ebp - 0xc], 0x10
jne 0x40c29e
jmp 0x40c2ad
Function at 0x40c310
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x68]
push ebx
push ecx
add esp, 0xffffff80
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov ecx, str.Recent_file_list
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x6c]
call sym._registry_get_handle
test eax, eax
je 0x40c360
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._registry_read_filelist
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edi, eax
mov eax, dword [ebp - 0x70]
mov esi, 0x3ed
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov edx, 0x20
pxor xmm0, xmm0
mov dword [ebp - 0x74], ebx
mov ecx, eax
mov eax, 0x30
mov dword [ebp - 0x44], edx
mov ebx, esi
mov dword [ebp - 0x48], eax
sub esp, 4
mov esi, ecx
movups xmmword [ebp - 0x58], xmm0
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
sub esp, 0x10
test eax, eax
je 0x40c3cf
mov eax, dword [ebp - 0x28]
mov dword [ebp + ebx*4 - 0x100c], eax
add ebx, 1
cmp ebx, 0x3f1
jne 0x40c397
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x74], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
je 0x40c4b8
xor edx, edx
mov dword [ebp - 0x78], edi
mov edi, edx
mov eax, dword [ebp + edi*4 - 0x58]
test eax, eax
je 0x40c41d
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x40c4d7
add edi, 1
cmp edi, 4
jne 0x40c3f9
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x78]
test eax, eax
je 0x40c440
mov eax, dword [ebp - 0x50]
movd xmm1, dword [ebp - 0x54]
movd xmm0, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
punpckldq xmm0, xmm1
movq qword [ebp - 0x54], xmm0
lea esi, [ebp - 0x64]
test ebx, ebx
je 0x40c4b8
add edi, 1
mov dword [esp + 4], str.File_d
mov dword [esp + 8], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
cmp word [ebx], 0
je 0x40c4d0
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40c470
sub eax, ebx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x10], ebx
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 edi, 4
je 0x40c4b8
mov ebx, dword [ebp + edi*4 - 0x58]
jmp 0x40c443
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40c340
mov eax, 2
jmp 0x40c47e
mov edx, edi
mov edi, dword [ebp - 0x78]
test edx, edx
je 0x40c440
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 0x40c440
Function at 0x40c510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x10]
sub esp, 0x20
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
call sym._registry_get_handle
test eax, eax
je 0x40c540
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
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 esi
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 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 0x40c620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Options
mov ebp, esp
push ebx
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
sub esp, 0x50
mov dword [ebp - 0x3c], 0
call sym._registry_get_handle
test eax, eax
je 0x40c660
mov ecx, str.Settings
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
call sym._registry_get_handle
test eax, eax
je 0x40c718
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 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 - 0x28], 3
sete al
mov dword [esp + 0x14], 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
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 - 0x34]
sub esp, 0x18
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
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 - 0x3c]
sub esp, 0x18
mov dword [esp], eax
call sym._registry_set_pagemargins
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40c642
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._registry_set_previewpages
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret

Function at 0x40c740
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0x4214b0
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
leave
ret
Function at 0x40c780
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x421444
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
leave
ret

Function at 0x40d370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 8
mov eax, dword [0x423728]
mov dword [esp + 4], 0x7d0
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
test ebx, ebx
je 0x40d3c8
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40f284]
sub esp, 8
mov dword [esp], eax
call sym._reg_formatindex
mov ebx, dword [ebp - 4]
or dword [eax*4 + 0x423708], 2
leave
ret
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40f284]
sub esp, 8
mov dword [esp], eax
call sym._reg_formatindex
mov ebx, dword [ebp - 4]
and dword [eax*4 + 0x423708], 0xfffffffd
leave
ret

Function at 0x40d680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, eax
sub esp, 0x14
mov eax, 1
test edx, edx
je 0x40d6c7
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [eax], edx
xor eax, eax
leave
ret 0x10

Function at 0x40d6d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0x18
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
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 0x40d713
cmp dword [ebp - 8], ebx
je 0x40d720
mov ebx, dword [ebp - 4]
leave
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret 0x10
Function at 0x40e3a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x6f0]
push ebx
sub esp, 0x704
mov eax, dword [0x423728]
mov edi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call edi
mov dword [ebp - 0x6f8], edi
sub esp, 8
mov dword [ebp - 0x6fc], eax
mov dword [esp + 4], 0x7dd
mov dword [esp], eax
call edi
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 - 0x6ec]
mov ecx, 0x1c
mov dword [ebp - 0x6f0], 0x74
mov edi, edx
mov dword [ebp - 0x6f4], eax
xor eax, eax
sub esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [0x423724]
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x606]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x6f4]
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 0x40e488
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_lstrcmpW]
lea edi, [ebp - 0x6d6]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [ebp - 0x700], edx
call edx
sub esp, 8
mov esi, eax
test eax, eax
je 0x40e500
mov ecx, dword [ebp - 0x6f4]
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 - 0x6fc]
mov edi, dword [ebp - 0x6f8]
sub esp, 0x10
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call edi
sub esp, 8
call sym._populate_size_list
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x423728]
mov edi, dword [ebp - 0x6f8]
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 - 0x678]
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 - 0x67c]
mov dword [ebp - 0x67c], 0x74
mov dword [ebp - 0x6f4], eax
mov eax, esi
sub esp, 0x10
lea esi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov eax, dword [0x423724]
mov dword [esp + 0xc], edx
lea edi, [ebp - 0x408]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x6f4]
sub esp, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0xd
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x670]
mov edx, 0x66666667
sub esp, 0x10
mov eax, ecx
sar ecx, 0x1f
mov dword [esp + 4], 0x411730
imul edx
mov dword [esp], esi
sar edx, 3
sub edx, ecx
mov dword [esp + 8], edx
call dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x700]
mov dword [esp], edi
call eax
sub esp, 8
test eax, eax
je 0x40e47d
mov eax, dword [ebp - 0x6f4]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call ebx
sub esp, 0x10
jmp 0x40e47d
Function at 0x40eea0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40ef1f
cmp al, 9
je 0x40ef10
cmp al, 0x20
je 0x40ef10
mov dword [ebp - 0x54], 0
xor esi, esi
nop
cmp al, 0x5c
je 0x40ef78
cmp al, 0x22
je 0x40ef88
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40ef1f
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x40eed0
test esi, 1
jne 0x40eed0
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x40ef10
cmp al, 0x20
je 0x40ef10
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x40ef3a
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [ebp - 0x54], 1
jmp 0x40eee7
and dword [ebp - 0x54], 1
jne 0x40eee0
xor esi, 1
jmp 0x40eee7