joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006c05a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006c0a4
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1006c04b
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1006c05a
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10471cfd
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1006c0ab
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10052f21
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1006c14a
add edi, 4
add eax, 2
dec ecx
jne 0x1006c090
call 0x1006c0f7
loope 0x1006c0ed
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1006c147
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1006c158
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1006c10b
cmp eax, ecx
ja 0x1006c10b
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1006c195
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1006c18b
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.10053400
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x83fb8b
Capabilities:
Encode data using xor

Disassembly:
inc eax
add eax, 0x51b70f00
adc ah, byte [esi - 0x77]
push eax
push es
mov edx, dword [ecx + 0xc]
mov dword [eax - 0x7a], edx
push ecx
adc byte [ebx], cl
mov byte [0xc0deeee], al
xor edx, edx
add eax, 0xf9718b0e
push cs
mov esi, dword [ecx - 7]
inc ebx
out dx, eax
call 0x723b0b0c
and esi, dword [eax + 0x2b]
push eax
push ss
mov dword [eax - 0x40], edx
jg 0x83fbb5
ret
push eax
cmp bh, byte [esi]
xor dword [ebp + 0x40], eax
inc eax
dec ebp
fmul qword [esi]
push cs
neg dword [0x89487057]
push eax
dec edx
sbb byte [ecx + esi*2], cl
inc edx
daa
pop edi
imul edi
or esp, dword [edx + edi + 0x50895039]
push eax
pop edx
sbb byte [esi + 0x31], bl
inc esp
cmpsd dword [esi], dword es:[edi]
jnp 0x83fb82
jge 0x83fbbd
pushal
xor dword [edx + 0x68], ecx
mov dword [eax + 0x6a], edx
sbb byte [esi - 0x2d], ch
mov esp, 0x704e9e69
push esi
js 0x83fb49
push eax
jp 0x83fc41
jecxz 0x83fba2
and edi, dword [edx + 0x1bfe1147]
pushal
mov word [eax + 0x537a6768], si
cmc
mov dword [eax - 0x6f7699eb], edx
mov ds, word [ebx]
and al, 0x1f
fstp qword [edi]
frstor dword [edx + 0x3d]
sbb byte [esi + 0xf], 0xb7
dec ecx
push edx
mov byte [ebp + 5], dh
xor byte [esp + edx*8 + 7], dl
push 0x1080
invalid
add ebp, dword [edx]
adc edi, dword [esi + 0x63]
pop edx
add byte [ecx + 0x47], al
sub al, 6
fist word [esi - 0x72]
mov esi, 0xa7edcea9
add byte [0xf77cbce8], dl
push dword [edi + 0x5208c151]
lea ebp, [edi]
add al, 0x45
dec dword [edi - 0x75317622]
inc ebp
or al, 0xf
adc byte [ebp + 0x10], al
mov ecx, dword [ebp]
cli
les edx, [edi + 0xe89f4c7]
or ch, ah
adc al, 0xc1
push es
test al, 0x2e
mov ah, 4
jne 0x83fc89
and al, 0x3f
stosb byte es:[edi], al
sti
xlatb
lodsd eax, dword [esi]
in al, 0x47
int1
call 0xc3d279f0
inc esp
add ch, al
adc dword [esi - 0xf5f3e7e], esp
sbb al, 0x68
or edx, 0xdace07c4
adc byte [edi + 0x2c], cl
mov al, byte [0x5eae80ff]
pop ebx
pop ebp
ret 0x18
Function at 0x9b0500
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x66100d
lea edi, [esi - 0x26000d]
push edi
or ebp, 0xffffffff
jmp 0x9b0522
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9b0529
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9b0518
mov eax, 1
add ebx, ebx
jne 0x9b053b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9b0530
jne 0x9b054c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9b0530
xor ecx, ecx
sub eax, 3
jb 0x9b0560
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9b05d2
mov ebp, eax
add ebx, ebx
jne 0x9b056b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9b0578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9b059c
inc ecx
add ebx, ebx
jne 0x9b0588
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9b057d
jne 0x9b0599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9b057d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9b05bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9b05ad
jmp 0x9b051e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9b05bc
add edi, ecx
jmp 0x9b051e
pop esi
mov edi, esi
mov ecx, 0x1880
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9b05da
cmp byte [edi], 0x11
jne 0x9b05da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9b05df
lea edi, [esi + 0x5ac000]
mov eax, dword [edi]
or eax, eax
je 0x9b064e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b302c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b3084]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9b060c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b308c]
or eax, eax
je 0x9b0648
mov dword [ebx], eax
add ebx, 4
jmp 0x9b0629
call dword [esi + 0x5b3088]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9b067f
cmp al, 0xef
ja 0x9b0672
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9b0654
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9b0661
mov ebp, dword [esi + 0x5b3090]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x9b06b3
sub esp, 0xffffff80
jmp 0x40ec9c
Function at 0x402df0
Capabilities:
Set registry value

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

Function at 0x402e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0x10
test eax, eax
je 0x402e7b
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x41d4a4
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 0x402ea8
mov dword [0x41d4a4], 0x6dd
mov dword [0x41d4ac], 0x6dd
mov dword [0x41d4a8], 0x589
mov dword [0x41d4b0], 0x589
leave
ret
cmp dword [ebp - 0xc], 0x10
jne 0x402e7b
jmp 0x402ea3

Function at 0x402eb0
Capabilities:
Set registry value

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

Function at 0x402ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 4
test eax, eax
je 0x402f3b
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x41d444
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 0x402f50
mov dword [0x41d444], 1
leave
ret
cmp dword [ebp - 0xc], 4
jne 0x402f3b
mov eax, dword [0x41d444]
test eax, eax
jle 0x402f3b
cmp eax, 2
jle 0x402f45
mov dword [0x41d444], 2
leave
ret
Function at 0x403d50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x41d440], 1
mov dword [0x41d458], 0
mov esi, eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [0x41d45c], 0
mov dword [0x41d4a0], eax
mov dword [0x41d498], 0
mov dword [0x41d49c], 0
mov dword [esp + 4], 0x7d4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x41d444], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
add edi, 0x5ab
call 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 edi, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41142e
mov dword [esp], 0
call edi
mov dword [ebp - 0x7c], 0x50
mov dword [ebp - 0x5c], eax
sub esp, 0x30
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], 0x371
mov dword [ebp - 0x74], 0x140
mov dword [ebp - 0x54], 0x16
mov dword [ebp - 0x44], 0x16
mov dword [ebp - 0x58], 0x5a
mov dword [ebp - 0x50], 0x5a
mov dword [ebp - 0x38], 0x64
mov dword [ebp - 0x48], 0xd
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7e0
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x20], eax
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 0x405160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, edx
push ebx
lea edx, [ebp - 0xc]
mov ebx, eax
lea eax, [ebp - 0x10]
sub esp, 0x30
mov dword [ebp - 0xc], 0
call dbg.registry_get_handle
test eax, eax
je 0x405190
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
shl ebx, 2
mov dword [esp + 0x14], 4
add esi, ebx
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call esi
sub esp, 0x18
mov dword [esp + 0x14], 4
add ebx, dword [ebp + 8]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Wrap
mov eax, dword [ebp - 0x10]
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 0x405220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
lea ebx, [eax*4]
lea eax, [ebp - 0x24]
lea esi, [ecx + ebx]
mov ecx, edx
lea edx, [ebp - 0x20]
sub esp, 0x4c
add ebx, dword [ebp + 8]
mov dword [esi], 0
mov dword [ebx], 0
mov dword [ebp - 0x20], 0
call dbg.registry_get_handle
test eax, eax
jne 0x405280
cmp dword [ebp - 0x20], 2
je 0x405290
mov dword [esi], 0xf
xor eax, eax
test edi, edi
sete al
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 4
mov edx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call edx
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
sub esp, 0x18
test eax, eax
mov eax, dword [ebp - 0x20]
je 0x4052e1
mov dword [esi], 0xf
cmp eax, 2
jne 0x405268
mov dword [ebp - 0x1c], 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Wrap
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call edx
sub esp, 0x18
test eax, eax
je 0x405271
jmp 0x405268
Function at 0x405330
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Options
mov ebp, esp
push ebx
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
sub esp, 0x64
mov dword [ebp - 0x40], 0
call dbg.registry_get_handle
test eax, eax
je 0x405370
mov ecx, str.Settings
lea edx, [ebp - 0x3c]
lea eax, [ebp - 0x40]
call dbg.registry_get_handle
test eax, eax
je 0x405428
mov ebx, dword [ebp - 4]
leave
ret
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x2c
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowPlacement]
xor eax, eax
mov ebx, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 8
cmp dword [ebp - 0x2c], 3
sete al
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x18]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.FrameRect
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x38]
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call ebx
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 dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405352
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dbg.registry_set_previewpages
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret

Function at 0x405450
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 0x4054b0
test ebx, ebx
je 0x40549a
mov dword [ebx], 0
mov dword [ebx + 8], 0x258
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0x12c
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FrameRect
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x40547b
cmp dword [ebp - 0xc], 0x10
jne 0x40547b
jmp 0x40549a
Function at 0x4054f0
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 0x405538
mov dword [ebx], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x40551b
cmp dword [ebp - 0xc], 4
jne 0x40551b
jmp 0x405521
Function at 0x405b40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ecx, str.Recent_file_list
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x68]
lea eax, [ebp - 0x6c]
push ebx
sub esp, 0x9c
call dbg.registry_get_handle
test eax, eax
je 0x405b78
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
lea edi, [ebp - 0x48]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
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
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 0x405bf7
mov eax, dword [ebp - 0x28]
mov dword [ebp + ebx*4 - 0x100c], eax
add ebx, 1
cmp ebx, 0x3f1
jne 0x405bc2
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 0x405ce0
xor edi, edi
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, dword [ebp + esi*4 - 0x58]
test eax, eax
je 0x405c4c
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call edi
sub esp, 8
test eax, eax
je 0x405cff
add esi, 1
cmp esi, 4
jne 0x405c25
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x405c65
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x54], eax
mov edi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, dword [ebp + 8]
test esi, esi
je 0x405ce0
lea edx, [ebp - 0x64]
add ebx, 1
mov dword [esp + 4], str.File_d
mov dword [esp], edx
mov dword [esp + 8], ebx
call dword [sym.imp.user32.dll_wsprintfW]
cmp word [esi], 0
lea edx, [ebp - 0x64]
je 0x405cf8
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405ca0
sub eax, esi
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call edi
sub esp, 0x18
cmp ebx, 4
je 0x405ce0
mov esi, dword [ebp + ebx*4 - 0x58]
jmp 0x405c6e
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405b60
mov eax, 2
jmp 0x405cae
test esi, esi
je 0x405c65
lea eax, [ebp - 0x58]
lea edx, [esi*4]
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memmove
jmp 0x405c65
Function at 0x405dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0x411618
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp], esi
mov ecx, ebx
call dbg.registry_read_formatopts
mov dword [ebp + 8], esi
add esp, 0x10
mov ecx, ebx
mov edx, 0x41160c
pop ebx
mov eax, 1
pop esi
pop ebp
jmp dbg.registry_read_formatopts

Function at 0x405e10
Capabilities:
Set registry value

Disassembly:
push ebp
mov edx, 0x411618
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp], esi
mov ecx, ebx
call dbg.registry_set_formatopts
mov dword [ebp + 8], esi
add esp, 0x10
mov ecx, ebx
mov edx, 0x41160c
pop ebx
mov eax, 1
pop esi
pop ebp
jmp dbg.registry_set_formatopts

Function at 0x4067c0
Capabilities:
Write file on windows

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

Function at 0x406a20
Capabilities:
Read file on windows

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