joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, edx
sub esp, 0x2c
mov dword [ebp - 0x1c], eax
mov ecx, dword [0x41a44c]
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x401ff0
mov eax, dword [0x41a450]
cmp eax, esi
jle 0x401fb0
mov dword [esp], 0
call sym._GetStockObject_4
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov eax, dword [ebx]
mov dword [esp], eax
call sym._FillRect_12
xor ecx, ecx
mov eax, dword [0x41a44c]
sub esp, 0xc
cmp esi, 1
jle 0x401f4a
mov ecx, dword [eax + esi*4 - 8]
cmp ecx, dword [0x41a454]
jge 0x401fa0
lea esi, [eax + esi*4 - 4]
mov eax, 1
mov edi, dword [ebx + 0x14]
mov dword [ebx + 0x28], ecx
mov edx, 0x439
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._SendMessageW_16
xor ecx, ecx
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [ebx + 0x14], edi
mov esi, 0x439
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ecx
shl eax, 3
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x401fa0
shl dword [0x41a450], 1
mov dword [0x41a44c], eax
jmp 0x401f0e
xor ecx, ecx
mov edx, pe_nt_image_headers32
mov dword [esp + 8], edx
mov eax, 0x20
mov dword [esp + 4], ecx
mov dword [0x41a450], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x41a44c], eax
sub esp, 0xc
test eax, eax
jne 0x401f0e
jmp 0x401fa0

Function at 0x402e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], eax
xor eax, eax
mov edx, 0x41a4a4
mov dword [esp + 8], eax
mov eax, str.PageMargin
mov ecx, 3
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
leave
ret

Function at 0x402e70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 0x10
mov eax, dword [ebp + 8]
test eax, eax
je 0x402eb8
mov dword [esp], eax
lea edx, [ebp - 0xc]
xor ecx, ecx
mov dword [esp + 0x14], edx
mov edx, 0x41a4a4
mov dword [esp + 0x10], edx
xor edx, edx
mov dword [esp + 0xc], ecx
mov ecx, str.PageMargin
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402ee8
mov eax, 0x6dd
mov dword [0x41a4a4], eax
mov eax, 0x6dd
mov dword [0x41a4ac], eax
mov eax, 0x589
mov dword [0x41a4a8], eax
mov eax, 0x589
mov dword [0x41a4b0], eax
leave
ret
cmp dword [ebp - 0xc], 0x10
jne 0x402eb8
jmp 0x402ee0
Function at 0x402ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov eax, 4
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], eax
xor eax, eax
mov edx, 0x41a444
mov dword [esp + 8], eax
mov eax, str.PreviewPages
mov ecx, 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
leave
ret

Function at 0x402f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x402f78
mov dword [esp], eax
lea edx, [ebp - 0xc]
mov ecx, 0x41a444
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov edx, str.PreviewPages
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x402f88
mov edx, 1
mov dword [0x41a444], edx
leave
ret
cmp dword [ebp - 0xc], 4
jne 0x402f78
mov eax, dword [0x41a444]
test eax, eax
jle 0x402f78
cmp eax, 2
jle 0x402f83
mov eax, 2
mov dword [0x41a444], eax
leave
ret
Function at 0x403d00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x7d4
push ebx
xor ebx, ebx
sub esp, 0xac
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
xor edx, edx
xor ecx, ecx
mov dword [0x41a458], edx
mov dword [0x41a45c], ecx
mov dword [0x41a49c], ebx
mov dword [0x41a498], 0
mov edi, eax
mov eax, 1
mov dword [0x41a440], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [esp + 4], esi
mov dword [0x41a4a0], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetDlgItem_8
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
cmp dword [0x41a444], 1
mov dword [esp], 6
setg al
movzx esi, al
mov eax, ebx
call sym._AddTextButton
mov eax, ebx
mov ecx, 0x3f9
mov dword [esp], 7
mov edx, 0x5a9
add esi, 0x5ab
call sym._AddTextButton
mov eax, ebx
mov ecx, 0x3fa
mov dword [esp], 8
mov edx, 0x5aa
call sym._AddTextButton
mov edx, esi
mov eax, ebx
mov dword [esp], 9
mov ecx, 0x3fb
mov esi, 0x50000000
call sym._AddTextButton
mov eax, ebx
mov ecx, 0x3fc
mov dword [esp], 0xa
mov edx, 0x5ad
call sym._AddTextButton
mov eax, ebx
mov ecx, 0x3fd
mov dword [esp], 0xb
mov edx, 0x5ae
call sym._AddTextButton
mov eax, ebx
mov ecx, 0x3e8
mov dword [esp], 0xc
mov edx, 0x5af
call sym._AddTextButton
xor eax, eax
xor edx, edx
mov dword [esp + 0x2c], eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x41042e
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], esi
xor esi, esi
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
mov dword [ebp - 0x7c], 0x50
mov dword [ebp - 0x78], 0x371
mov dword [ebp - 0x74], 0x140
mov dword [ebp - 0x54], 0x16
mov dword [ebp - 0x44], 0x16
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x7c]
sub esp, 0x30
mov dword [esp + 0xc], eax
mov eax, 0xffffffff
mov dword [esp + 8], eax
mov eax, 0x40a
mov dword [esp], ebx
mov ebx, 0xc8
mov dword [esp + 4], eax
mov dword [ebp - 0x58], 0x5a
mov dword [ebp - 0x50], 0x5a
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x48], 0xd
call sym._SendMessageW_16
xor eax, eax
mov edx, 0x7e0
mov ecx, 0xa
sub esp, 0x10
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], edi
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], eax
mov eax, 0x50300000
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.PrtPreview
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 4], eax
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 0x403f50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov eax, 0x7e0
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x1c
mov dword [esp + 4], eax
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sym._GetDlgItem_8
mov edx, dword [0x41a44c]
sub esp, 8
mov edi, eax
mov dword [esp + 8], edx
xor eax, eax
xor edx, edx
mov dword [0x41a468], eax
xor eax, eax
mov dword [0x41a46c], eax
xor eax, eax
mov dword [esp + 4], edx
mov dword [0x41a440], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [0x41a49c]
xor ecx, ecx
mov dword [0x41a44c], ecx
mov dword [0x41a450], esi
sub esp, 0xc
test eax, eax
jle 0x403fd2
mov eax, dword [0x41a448]
mov dword [0x41a444], eax
mov eax, dword [0x41a458]
test eax, eax
je 0x404013
mov dword [esp], eax
mov esi, 7
mov dword [esp + 4], esi
call sym._GetCurrentObject_8
mov esi, eax
mov eax, dword [0x41a458]
sub esp, 8
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov dword [esp], esi
call sym._DeleteObject_4
xor eax, eax
mov dword [0x41a458], eax
sub esp, 4
mov eax, dword [0x41a45c]
test eax, eax
je 0x404055
mov dword [esp], eax
mov edx, 7
mov dword [esp + 4], edx
call sym._GetCurrentObject_8
mov esi, eax
mov eax, dword [0x41a45c]
sub esp, 8
mov dword [esp], eax
call sym._DeleteDC_4
sub esp, 4
mov dword [esp], esi
call sym._DeleteObject_4
xor ecx, ecx
mov dword [0x41a45c], ecx
sub esp, 4
mov dword [esp], ebx
mov eax, 0x7d4
mov ebx, 6
mov dword [esp + 4], eax
call sym._GetDlgItem_8
sub esp, 8
mov esi, eax
mov dword [esp + 8], ebx
xor eax, eax
mov edx, 0x410
mov dword [esp + 4], edx
inc ebx
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sym._SendMessageW_16
xor ecx, ecx
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, 0x402
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._SendMessageW_16
sub esp, 0x10
cmp ebx, 0xe
jne 0x404070
mov dword [esp], edi
call sym._DestroyWindow_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404e30
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsWordpad
sub esp, 0x5c
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x5c
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404e50
sub edx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsWordpad
sar edx, 1
cmp word [edi], 0
mov eax, edx
je 0x404e7f
mov eax, edi
nop
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x404e70
sub eax, edi
sar eax, 1
add eax, edx
lea eax, [eax + eax + 4]
mov dword [esp + 8], eax
mov eax, 8
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
sub esp, 0xc
xor eax, eax
test ebx, ebx
je 0x404fd0
lea esi, [esi]
lea edi, [edi]
movzx edx, word [eax + str.SoftwareMicrosoftWindowsCurrentVersionAppletsWordpad]
mov word [ebx + eax], dx
add eax, 2
test edx, edx
jne 0x404ec0
cmp word [ebx], 0
mov edx, ebx
je 0x404ee9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404ee0
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [ebp + eax - 0x1c]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x404ef0
cmp word [ebx], 0
mov edx, ebx
je 0x404f19
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404f10
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test ecx, ecx
jne 0x404f20
test esi, esi
je 0x404fa0
mov dword [esp + 0x20], esi
mov eax, dword [ebp - 0x2c]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
mov dword [esp + 0x1c], eax
mov eax, 0x2001f
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
call sym._RegCreateKeyExW_36
sub esp, 0x24
mov esi, eax
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov ecx, 0x2001f
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov dword [esp], 0x80000001
call sym._RegOpenKeyExW_20
sub esp, 0x14
mov esi, eax
jmp 0x404f74
lea esp, [ebp - 0xc]
mov esi, 1
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x404fe0
Capabilities:
Set registry value

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

Function at 0x4050a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ebx
lea ebx, [eax*4]
mov dword [ebp - 4], edi
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
lea esi, [ecx + ebx]
mov ecx, edx
mov dword [esi], 0
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
add ebx, eax
mov dword [ebx], 0
lea eax, [ebp - 0x24]
call sym._registry_get_handle
test eax, eax
jne 0x40510e
mov eax, dword [ebp - 0x20]
cmp eax, 2
je 0x405120
mov dword [esi], 0xf
cmp eax, 2
je 0x405160
xor eax, eax
test edi, edi
sete al
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], esi
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.BarState0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], 4
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x4050ec
jmp 0x4050f2
lea eax, [ebp - 0x1c]
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, str.Wrap
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x1c], 4
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4050f7
jmp 0x405100
Function at 0x4051b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Options
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x40], 0
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
call sym._registry_get_handle
test eax, eax
je 0x405210
lea edx, [ebp - 0x3c]
mov ecx, str.Settings
lea eax, [ebp - 0x40]
call sym._registry_get_handle
test eax, eax
je 0x4051f0
leave
ret
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._registry_set_previewpages
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
leave
ret
mov dword [ebp - 0x34], 0x2c
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetWindowPlacement_8
xor eax, eax
mov edx, 3
sub esp, 8
cmp dword [ebp - 0x2c], 3
mov dword [esp + 0xc], edx
sete al
xor ecx, ecx
mov dword [ebp - 0x38], eax
mov eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x10], eax
mov eax, str.FrameRect
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, 4
sub esp, 0x18
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, 4
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.Maximized
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym._RegSetValueExW_24
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 sym._RegCloseKey_4
sub esp, 4
jmp 0x4051d1

Function at 0x4052d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov ecx, str.Options
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 0x405330
test ebx, ebx
je 0x40531a
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]
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, str.FrameRect
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4052fb
cmp dword [ebp - 0xc], 0x10
jne 0x4052fb
jmp 0x40531a
Function at 0x405370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov ecx, str.Options
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 0x4053b8
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]
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, str.Maximized
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
jne 0x40539b
cmp dword [ebp - 0xc], 4
jne 0x40539b
jmp 0x4053a1
Function at 0x405960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Recent_file_list
mov ebp, esp
push edi
push esi
push ebx
lea edx, [ebp - 0x68]
sub esp, 0x9c
lea eax, [ebp - 0x6c]
call sym._registry_get_handle
test eax, eax
je 0x405998
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 esi, 0x3ed
lea edi, [ebp - 0x48]
mov dword [esp], eax
call sym._GetMenu_4
mov dword [ebp - 0x7c], ebx
mov ebx, esi
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x44], 0x20
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
sub esp, 4
mov esi, eax
mov dword [ebp - 0x4c], 0
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._GetMenuItemInfoW_16
sub esp, 0x10
test eax, eax
je 0x405a11
mov eax, dword [ebp - 0x28]
mov dword [ebp + ebx*4 - 0x100c], eax
inc ebx
cmp ebx, 0x3f1
jne 0x4059e1
mov eax, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x7c]
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 0x405b10
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x58]
xor edx, edx
mov ebx, edx
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x405a65
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 4], ecx
call esi
sub esp, 8
test eax, eax
je 0x405b2f
inc ebx
cmp ebx, 4
jne 0x405a41
mov esi, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x80]
test esi, esi
je 0x405a81
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]
mov edx, ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405b10
mov dword [esp], esi
inc edx
mov ecx, str.File_d
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [ebp - 0x7c], edx
call sym._wsprintfW
mov edx, dword [ebp - 0x7c]
cmp word [ebx], 0
je 0x405b28
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x405ac0
sub eax, ebx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], edx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RegSetValueExW_24
mov edx, dword [ebp - 0x7c]
sub esp, 0x18
cmp edx, 4
je 0x405b10
mov ebx, dword [edi + edx*4]
jmp 0x405a89
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x405980
mov eax, 2
jmp 0x405ace
mov edx, ebx
mov ebx, dword [ebp - 0x80]
test edx, edx
je 0x405a81
lea eax, [edi + edx*4]
mov edx, dword [eax - 4]
sub eax, 4
mov dword [eax + 4], edx
cmp edi, eax
jne 0x405b3f
jmp 0x405a81
Function at 0x405c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x410638
mov ebp, esp
xor eax, eax
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [ebp - 0xc], ecx
call sym._registry_read_formatopts
mov ecx, dword [ebp - 0xc]
mov edx, 0x41062c
mov dword [ebp + 8], ebx
add esp, 0x24
mov eax, 1
pop ebx
pop ebp
jmp sym._registry_read_formatopts

Function at 0x405c40
Capabilities:
Set registry value

Disassembly:
push ebp
mov edx, 0x410638
mov ebp, esp
xor eax, eax
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [ebp - 0xc], ecx
call sym._registry_set_formatopts
mov ecx, dword [ebp - 0xc]
mov edx, 0x41062c
mov dword [ebp + 8], ebx
add esp, 0x24
mov eax, 1
pop ebx
pop ebp
jmp sym._registry_set_formatopts
Function at 0x406f80
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
mov eax, 1
je 0x406fd3
cmp ebx, dword [ebp - 0x1c]
je 0x406fe8
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi], ebx
xor eax, eax
jmp 0x406fd3
Function at 0x407750
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], esi
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea ecx, [ebp - 0x1c]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4077b8
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, 1
jmp 0x4077a0