joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x40a98a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a980
mov eax, 1
add ebx, ebx
jne 0x40a9a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a998
jne 0x40a9b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a998
xor ecx, ecx
sub eax, 3
jb 0x40a9c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40aa3a
mov ebp, eax
add ebx, ebx
jne 0x40a9d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a9e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40aa04
inc ecx
add ebx, ebx
jne 0x40a9f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a9e5
jne 0x40aa01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a9e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40aa24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40aa15
jmp 0x40a986
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40aa24
add edi, ecx
jmp 0x40a986
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40aa83
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xcae0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xcb98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40aa41
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xcba0]
or eax, eax
je 0x40aa7d
mov dword [ebx], eax
add ebx, 4
jmp 0x40aa5e
call dword [esi + 0xcb9c]
mov ebp, dword [esi + 0xcba4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40aab7
sub esp, 0xffffff80
jmp 0x401c30

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41d5b6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b0f8
push 0x42b0f0
push str.FlsAlloc
push 0x1e
call fcn.0041d454
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d5ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271ac]
call esi
jmp 0x41d5f0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41d634
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b108
push 0x42b100
push str.FlsGetValue
push 0x20
call fcn.0041d454
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41d66b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4271ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1014
push ebp
mov ebp, esp
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
or eax, 0xffffffff
mov dword [0x415c84], 9
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
mov dword [ebp - 8], eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
mov ecx, 0x1000
xor eax, eax
lea edx, [ebp - 0x1010]
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
mov edi, eax
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
test eax, eax
mov esi, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x6eaa5d3f
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x9df2da8
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40c1a8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004079ab
mov dword [ebp - 0x14], eax
cmp dword [0x811cc0], esi
jne 0x40c29b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c228
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c37b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c37b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c37b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x811cc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x811cc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x811cc8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811cd0], eax
test eax, eax
je 0x40c298
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x811ccc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c2c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c2b3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push 4
pop eax
jmp 0x40c37d
cmp dword [ebp - 0x14], esi
je 0x40c2d5
push dword [0x811cc0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c2ba
mov eax, dword [0x811ccc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c333
cmp dword [0x811cd0], edi
je 0x40c333
push eax
call ebx
push dword [0x811cd0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c333
test eax, eax
je 0x40c333
call ecx
test eax, eax
je 0x40c328
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c328
test byte [ebp - 8], 1
jne 0x40c333
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c363
mov eax, dword [0x811cc4]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
call eax
mov esi, eax
test esi, esi
je 0x40c360
mov eax, dword [0x811cc8]
cmp eax, edi
je 0x40c360
push eax
call ebx
test eax, eax
je 0x40c360
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x811cc0]
call ebx
test eax, eax
je 0x40c37b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c37d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403b15
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
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], 0x41e4a4
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 0x402e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x10
test eax, eax
je 0x402e4b
lea edx, [ebp - 4]
mov dword [esp + 0x10], 0x41e4a4
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 0x402e78
mov dword [0x41e4a4], 0x6dd
mov dword [0x41e4ac], 0x6dd
mov dword [0x41e4a8], 0x589
mov dword [0x41e4b0], 0x589
leave
ret
cmp dword [ebp - 4], 0x10
jne 0x402e4b
jmp 0x402e73

Function at 0x402e80
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], 0x41e444
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 0x402ec0
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 0x402f0b
lea edx, [ebp - 4]
mov dword [esp + 0x10], 0x41e444
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 0x402f20
mov dword [0x41e444], 1
leave
ret
cmp dword [ebp - 4], 4
jne 0x402f0b
mov eax, dword [0x41e444]
test eax, eax
jle 0x402f0b
cmp eax, 2
jle 0x402f15
mov dword [0x41e444], 2
leave
ret
Function at 0x403d10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x94
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x41e440], 1
mov dword [0x41e458], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [0x41e45c], 0
mov dword [0x41e4a0], eax
mov eax, dword [ebp + 8]
mov dword [0x41e498], 0
mov dword [0x41e49c], 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 [0x41e444], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
add edi, 0x5ab
call fcn.00401b70
mov dword [esp], 7
mov eax, ebx
mov ecx, 0x3f9
mov edx, 0x5a9
call fcn.00401b70
mov dword [esp], 8
mov eax, ebx
mov ecx, 0x3fa
mov edx, 0x5aa
call fcn.00401b70
mov dword [esp], 9
mov edx, edi
mov eax, ebx
mov ecx, 0x3fb
call fcn.00401b70
mov dword [esp], 0xa
mov eax, ebx
mov ecx, 0x3fc
mov edx, 0x5ad
call fcn.00401b70
mov dword [esp], 0xb
mov eax, ebx
mov ecx, 0x3fd
mov edx, 0x5ae
call fcn.00401b70
mov dword [esp], 0xc
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
call fcn.00401b70
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], 0x41242e
mov dword [esp], 0
call edi
mov dword [ebp - 0x70], 0x50
sub esp, 0x30
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x6c], 0x371
mov dword [ebp - 0x68], 0x140
mov dword [ebp - 0x48], 0x16
mov dword [ebp - 0x38], 0x16
mov dword [ebp - 0x4c], 0x5a
mov dword [ebp - 0x44], 0x5a
mov dword [ebp - 0x2c], 0x64
mov dword [ebp - 0x3c], 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 0x4051b0
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 fcn.00404ff0
test eax, eax
je 0x4051e0
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 0x405270
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 fcn.00404ff0
test eax, eax
jne 0x4052dd
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x4052e8
mov dword [ebx], 0xf
cmp eax, 2
je 0x405330
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 0x4052ba
jmp 0x4052c0
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 0x4052c5
jmp 0x4052ce
Function at 0x405380
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 fcn.00404ff0
test eax, eax
je 0x4053c0
mov ecx, str.Settings
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x3c]
call fcn.00404ff0
test eax, eax
je 0x405478
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 fcn.00402dc0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x4053a2
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.00402e80
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 0x4054a0
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], 0x10
call fcn.00404ff0
test eax, eax
je 0x405500
test ebx, ebx
je 0x4054ea
mov dword [ebx], 0
mov dword [ebx + 8], 0x258
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0x12c
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.FrameRect
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4054cb
cmp dword [ebp - 8], 0x10
jne 0x4054cb
jmp 0x4054ea
Function at 0x405540
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 fcn.00404ff0
test eax, eax
je 0x405588
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 0x40556b
cmp dword [ebp - 8], 4
jne 0x40556b
jmp 0x405571
Function at 0x405b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Recent_file_list
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x60]
push ebx
sub esp, 0x70
call fcn.00404ff0
test eax, eax
je 0x405b90
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004055d0
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 - 0x3c]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 0x20
sub esp, 4
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x64], ebx
mov ebx, esi
mov esi, eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
sub esp, 0x10
test eax, eax
je 0x405c0f
mov eax, dword [ebp - 0x1c]
mov dword [ebp + ebx*4 - 0x1000], eax
add ebx, 1
cmp ebx, 0x3f1
jne 0x405bda
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x64]
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp + 4], edi
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x405d10
mov eax, edi
xor edx, edx
mov dword [ebp - 0x64], edi
mov edi, edx
test eax, eax
je 0x405c70
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call esi
sub esp, 8
test eax, eax
je 0x405d2f
add edi, 1
cmp edi, 4
je 0x405c70
mov eax, dword [ebp + edi*4 - 0x4c]
test eax, eax
jne 0x405c3f
lea esi, [esi]
lea esi, [esi]
mov edi, dword [ebp - 0x64]
test edi, edi
je 0x405c86
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], eax
mov edx, ebx
mov edi, dword [sym.imp.user32.dll_wsprintfW]
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x58]
test ebx, ebx
je 0x405d10
add edx, 1
mov dword [esp + 4], str.File_d
mov dword [esp + 8], edx
mov dword [ebp - 0x64], edx
mov dword [esp], esi
call edi
cmp word [ebx], 0
mov edx, dword [ebp - 0x64]
je 0x405d28
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x405cc0
sub eax, ebx
add eax, 2
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
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]
mov edx, dword [ebp - 0x64]
sub esp, 0x18
cmp edx, 4
je 0x405d10
mov ebx, dword [ebp + edx*4 - 0x4c]
jmp 0x405c94
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405b7d
mov eax, 2
jmp 0x405cce
mov edx, edi
test edi, edi
je 0x405c86
lea eax, [ebp - 0x4c]
shl edx, 2
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memmove
jmp 0x405c86