joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, edx
mov dword [ebp - 0x14], ecx
lea edi, [edx + 0x10]
lea ebx, [edx + 8]
push edi
push 0
push ebx
push 0
push dword [edx + 4]
push dword [edx]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x402349
xor edi, edi
cmp eax, 2
jne 0x402373
cmp dword [esi + 4], 0
jne 0x402373
mov dword [esi + 8], 1
mov dword [esi + 0x10], 2
push 2
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [esi + 0xc], eax
mov word [eax], 0
jmp 0x4023b0
mov eax, dword [esi + 0x10]
add eax, 2
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
push edi
mov dword [ebp - 0x10], eax
push eax
push ebx
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x40239b
mov edi, dword [ebp - 0x10]
push dword [esi + 4]
push 0x8045
push dword [ebp - 0x14]
call sym._error_code_messagebox
add esp, 0xc
push edi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [esi + 0xc], 0
xor eax, eax
jmp 0x4023b5
mov eax, dword [edi]
test al, 1
mov ecx, dword [ebp - 0x10]
jne 0x4023ad
and eax, 0xfffffffe
mov word [ecx + eax], 0
mov dword [esi + 0xc], ecx
mov eax, 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402840
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x2001b
push 0
push ebx
push edi
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x402879
push 0x7df
push esi
call sym._error_code_messagebox
add esp, 8
xor esi, esi
jmp 0x4028c2
push 0x8150
push 0x814f
push 0x34
push esi
call sym._messagebox
add esp, 0x10
xor esi, esi
cmp eax, 6
jne 0x4028b9
push ebx
push edi
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
test eax, eax
je 0x4028b4
push ebx
push 0x805e
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 0xc
jmp 0x4028b9
mov esi, 1
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4028d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x10]
push eax
push 0x2001b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x40292c
mov edi, dword [ebp + 0x14]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
mov esi, eax
test edi, edi
je 0x40291c
test esi, esi
je 0x40291c
push edi
push 0x8045
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 0xc
xor ebx, ebx
test esi, esi
sete bl
push dword [ebp - 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402940
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [esp + 4]
push edx
push 0x2001b
push 0
push ecx
push eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x402994
push 0x7dc
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 8
xor esi, esi
jmp 0x402a90
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
lea ecx, [esp + 0x4c]
push 0x100
push ecx
push 0x805d
push eax
call dword [sym.imp.user32.dll_LoadStringW]
xor esi, esi
test eax, eax
je 0x402a86
mov ebx, dword [ebp + 0x18]
mov esi, 1
mov edi, dword [sym.imp.advapi32.dll_RegQueryValueExW]
nop
nop
nop
nop
nop
nop
push esi
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push 0
push ebx
push dword [esp + 0x18]
call edi
cmp eax, 2
je 0x4029fc
inc esi
cmp esi, 0x64
jne 0x4029d0
jmp 0x402a2b
mov ecx, dword [ebp + 0x14]
lea eax, [ecx - 3]
mov esi, 2
cmp eax, 8
ja 0x402a13
mov esi, dword [ecx*4 + 0x40d260]
lea edi, [esp + 8]
push esi
push edi
push ecx
push 0
push ebx
push dword [esp + 0x18]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
je 0x402a3f
push 0x7dc
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 8
xor esi, esi
jmp 0x402a86
mov eax, dword [0x410488]
push 0xffffffffffffffff
push esi
push edi
push dword [ebp + 0x14]
push ebx
push dword [eax + 8]
call sym._AddEntryToList
add esp, 0x18
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 3
mov ecx, dword [0x410488]
lea edx, [esp + 0x10]
push edx
push eax
push 0x102b
push dword [ecx + 8]
call dword [sym.imp.user32.dll_SendMessageW]
mov esi, 1
push dword [esp + 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402aa0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [ebp + 0x14]
xor esi, esi
test edi, edi
je 0x402b86
mov ebx, dword [ebp + 0x18]
test ebx, ebx
je 0x402b86
lea eax, [ebp - 0x20]
push eax
push 0x2001b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x402af1
push 0x7e1
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 8
jmp 0x402b86
push 0
push 0
push 0
push 0
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x402b5e
mov dword [ebp - 0x1c], edi
lea edx, [ebp - 0x20]
mov ecx, dword [ebp + 8]
call sym._read_value
xor esi, esi
test eax, eax
je 0x402b71
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push 0
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
jne 0x402b4c
push edi
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
test eax, eax
je 0x402b90
push ebx
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
push 0x7e1
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 8
jmp 0x402b71
push edi
push 0x7de
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 0xc
xor esi, esi
push dword [ebp - 0x14]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, 1
jmp 0x402b71
Function at 0x402ba0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
xor edi, edi
test esi, esi
je 0x402ce8
cmp dword [ebp + 0x14], 0
je 0x402ce8
mov edi, dword [ebp + 0xc]
push 0x5c
push esi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x402c33
push esi
call dword [sym.imp.ucrtbase.dll__wcsdup]
add esp, 4
mov edi, eax
push 0x5c
push eax
call dword [sym.imp.ucrtbase.dll_wcsrchr]
add esp, 8
mov ebx, eax
mov word [eax], 0
lea eax, [ebp - 0x14]
push eax
push 0x2001d
push 0
mov dword [ebp - 0x10], edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
je 0x402c41
push 0x7e0
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 8
xor edi, edi
jmp 0x402ccb
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov ebx, esi
jmp 0x402c44
add ebx, 2
mov eax, dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.kernel32.dll_lstrcmpW]
xor edi, edi
test eax, eax
je 0x402ccb
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x1c], 2
je 0x402cba
test eax, eax
jne 0x402cba
push 0
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.shcore.dll_SHCopyKeyW]
test eax, eax
je 0x402cf2
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
push 0x7e0
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 8
jmp 0x402ccb
push ebx
push 0x7dd
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov esi, dword [sym.imp.advapi32.dll_RegCloseKey]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
push ebx
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push esi
push dword [ebp + 0xc]
call dword [sym.imp.shcore.dll_SHDeleteKeyW]
test eax, eax
mov ebx, dword [ebp - 0x10]
je 0x402d15
push 0x7e0
push dword [ebp + 8]
call sym._error_code_messagebox
add esp, 8
jmp 0x402cce
mov edi, 1
jmp 0x402cce
Function at 0x402d20
Capabilities:
Get graphical window text
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, edx
push 0x7d2
mov dword [ebp - 0x1c], ecx
push ecx
call dword [sym.imp.user32.dll_GetDlgItem]
mov ebx, eax
push eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov esi, eax
lea eax, [eax*2 + 2]
inc esi
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
push esi
mov dword [ebp - 0x10], eax
push eax
mov dword [ebp - 0x18], ebx
push ebx
call dword [sym.imp.user32.dll_GetWindowTextW]
mov esi, eax
push dword [edi + 0xc]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 8]
dec eax
cmp eax, 0xa
ja case.0x402d80.3
jmp dword [eax*4 + 0x40d240]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xc], eax
lea eax, [esi*2 + 2]
mov dword [edi + 0x10], eax
jmp 0x402ed9
push dword [ebp - 0x10]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push 0
push 0
push 0x401
mov ebx, dword [ebp - 0x18]
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
mov esi, eax
mov edi, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [edi + 0xc], eax
push eax
push esi
push 0x401
push ebx
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x402ed9
mov edi, dword [ebp - 0x14]
mov dword [edi + 0x10], 4
push 4
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [edi + 0xc], eax
cmp dword [0x410490], 0
mov ecx, 0x40d298
je 0x402e97
mov ecx, 0x40d290
jmp 0x402e97
lea eax, [esi*2 + 4]
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
xor edi, edi
test esi, esi
je 0x402eb1
xor edx, edx
mov ebx, dword [ebp - 0x10]
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebx + edx*2]
cmp cx, 0xd
jne 0x402e60
cmp word [ebx + edx*2 + 2], 0xa
jne 0x402e60
inc edx
cmp word [eax + edi*2 - 2], 0
je 0x402e65
xor ecx, ecx
nop
nop
nop
mov word [eax + edi*2], cx
inc edi
inc edx
cmp edx, esi
jb 0x402e40
jmp 0x402eb4
mov edi, dword [ebp - 0x14]
mov dword [edi + 0x10], 8
push 8
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov dword [edi + 0xc], eax
cmp dword [0x410490], 0
mov ecx, str._I64x
je 0x402e97
mov ecx, 0x40d2a0
push eax
push ecx
mov esi, dword [ebp - 0x10]
push esi
call sym._swscanf
add esp, 0xc
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
jmp 0x402ed9
mov ebx, dword [ebp - 0x10]
mov dword [eax + edi*2], 0
push ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0xc], esi
lea eax, [edi*2 + 4]
mov edi, ecx
mov dword [ecx + 0x10], eax
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 8]
push 0
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x402f05
push 0x7da
push dword [ebp - 0x1c]
call sym._error_code_messagebox
add esp, 8
xor eax, eax
test esi, esi
sete al
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404390
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x7d1
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
cmp esi, 0x111
je 0x404456
cmp esi, 0x110
jne 0x40444a
push 1
push ebx
mov esi, eax
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.user32.dll_EnableWindow]
mov eax, dword [0x410010]
shr eax, 1
and eax, 1
mov edi, dword [sym.imp.user32.dll_CheckDlgButton]
push eax
push 0x7d5
push ebx
call edi
mov eax, dword [0x410010]
shr eax, 2
and eax, 1
push eax
push 0x7d6
push ebx
call edi
mov eax, dword [0x410010]
shr eax, 3
and eax, 1
push eax
push 0x7d7
push ebx
call edi
mov eax, dword [0x410010]
and eax, 1
push eax
push 0x7d8
push ebx
call edi
push 0
push 0x7f
push 0xc5
push esi
call dword [sym.imp.user32.dll_SendMessageW]
push 0x4105d8
push esi
call dword [sym.imp.user32.dll_SetWindowTextW]
mov edi, 1
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov edx, dword [ebp + 0x10]
cmp dx, 1
je 0x4044a0
movzx ecx, dx
cmp ecx, 2
je 0x4044e1
cmp ecx, 0x7d1
jne 0x40444a
and edx, 0xffff0000
cmp edx, 0x4000000
jne 0x40444a
push eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
xor ecx, ecx
test eax, eax
setg cl
mov esi, ecx
push 1
push ebx
call dword [sym.imp.user32.dll_GetDlgItem]
push esi
push eax
call dword [sym.imp.user32.dll_EnableWindow]
jmp 0x404445
mov dword [ebp - 0x10], eax
push eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov edi, 1
test eax, eax
jle 0x40444a
mov esi, dword [sym.imp.user32.dll_IsDlgButtonChecked]
push 0x7d5
push ebx
call esi
mov edx, esi
xor ecx, ecx
test eax, eax
setne cl
mov esi, ecx
push 0x7d6
push ebx
call edx
test eax, eax
je 0x4044ef
lea esi, [esi*2 + 4]
jmp 0x4044f1
push 2
push ebx
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x404445
add esi, esi
push 0x7d7
push ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
test eax, eax
je 0x404504
or esi, 8
push 0x7d8
push ebx
call dword [sym.imp.user32.dll_IsDlgButtonChecked]
xor ecx, ecx
test eax, eax
setne cl
or ecx, esi
mov dword [0x410010], ecx
push 0x80
push 0x4105d8
push dword [ebp - 0x10]
call dword [sym.imp.user32.dll_GetWindowTextW]
push 1
push ebx
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x40444a

Function at 0x404540
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, edx
push ecx
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x4045aa
call dword [sym.imp.user32.dll_EmptyClipboard]
test eax, eax
je 0x4045a0
xor eax, eax
nop
cmp word [esi + eax], 0
lea eax, [eax + 2]
jne 0x404560
push eax
push 0x42
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
xor ebx, ebx
push eax
call dword [sym.imp.kernel32.dll_GlobalLock]
nop
nop
movzx ecx, word [esi + ebx]
mov word [eax + ebx], cx
add ebx, 2
test cx, cx
jne 0x404580
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.user32.dll_SetClipboardData]
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.user32.dll_CloseClipboard]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4045b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x128
mov ebx, dword [ebp + 0xc]
xor edi, edi
push 0x7d1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
mov esi, eax
cmp ebx, 0x111
je 0x40465e
cmp ebx, 0x110
jne 0x4046e4
mov eax, dword [0x410488]
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
push 0
push 9
push 0x110a
push dword [eax + 4]
call ebx
mov dword [ebp - 0x34], 0x11
mov dword [ebp - 0x30], eax
lea edi, [ebp - 0x134]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 0x80
mov eax, dword [0x410488]
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x113e
push dword [eax + 4]
call ebx
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.user32.dll_EnableWindow]
push edi
push esi
call dword [sym.imp.user32.dll_SetWindowTextW]
push 0
push 0x7f
push 0xc5
push esi
call ebx
jmp 0x4046df
mov eax, dword [ebp + 0x10]
cmp ax, 1
je 0x4046a6
movzx ecx, ax
cmp ecx, 2
je 0x4046d4
cmp ecx, 0x7d1
jne 0x4046e4
and eax, 0xffff0000
cmp eax, 0x4000000
jne 0x4046e4
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
xor ebx, ebx
test eax, eax
setg bl
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetDlgItem]
push ebx
push eax
call dword [sym.imp.user32.dll_EnableWindow]
jmp 0x4046df
push esi
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
mov edi, 1
test eax, eax
jle 0x4046e4
push 0x80
push 0x4106d8
push esi
call dword [sym.imp.user32.dll_GetWindowTextW]
push 1
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EndDialog]
jmp 0x4046e4
push 2
push dword [ebp + 8]
call dword [sym.imp.user32.dll_EndDialog]
mov edi, 1
mov eax, edi
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x404ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0x40d4d0
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x404cf6
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x404c33
xor ebx, ebx
test byte [0x410014], 2
je 0x404ced
sub esp, 0x14
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RegQueryInfoKey_failed:__ld_n
mov dword [esp + 8], str.add_favourite_key_items
mov dword [esp], 1
call sym._wine_dbg_log_1
add esp, 0x14
jmp 0x404ced
cmp dword [ebp - 0x14], 0
je 0x404cdd
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 1]
mov dword [ebp - 0x10], ecx
lea eax, [eax*2 + 2]
push eax
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
test edi, edi
je 0x404c76
push 0
push 0
push 0x800
push edi
call dword [sym.imp.user32.dll_AppendMenuW]
cmp dword [ebp - 0x14], 0
je 0x404ce1
xor ebx, ebx
jmp 0x404c97
lea eax, [ebx + 0x80e8]
push esi
push eax
push 0
push edi
call dword [sym.imp.user32.dll_AppendMenuW]
inc ebx
cmp ebx, dword [ebp - 0x14]
jae 0x404ce3
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegEnumValueW]
test eax, eax
jne 0x404c91
cmp dword [ebp - 0x20], 1
jne 0x404c91
test edi, edi
jne 0x404c80
cmp dword [ebp - 0x1c], 0
je 0x404c91
push esi
push 0
push 0x180
push dword [ebp - 0x1c]
call dword [sym.imp.user32.dll_SendMessageW]
jmp 0x404c91
xor ebx, ebx
jmp 0x404ced
xor ebx, ebx
push esi
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406f70
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
Function at 0x407240
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push eax
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, 1
push eax
call sym._output_formatstring
add esp, 4
push 0
call dword [sym.imp.ucrtbase.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4073c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x4074dd
lea eax, [ebp - 0xe]
push esi
push 1
push 2
push eax
call dword [sym.imp.ucrtbase.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4074dd
movzx ecx, byte [ebp - 0xe]
mov eax, ecx
xor eax, 0xff
movzx edx, byte [ebp - 0xd]
mov edi, edx
xor edi, 0xfe
xor ebx, ebx
or di, ax
sete bl
mov dword [ebp - 0x3c], ebx
mov eax, sym._get_lineW
je 0x40741f
mov eax, sym._get_lineA
mov dword [0x411180], eax
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x40]
mov word [ebp - 0x40], cx
mov word [ebp - 0x3e], dx
mov word [ebp - 0x38], 0xffff
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea esi, [ebp - 0x44]
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp - 0x14]
push eax
push esi
call dword [ecx*4 + 0x40de7c]
add esp, 8
test eax, eax
jne 0x407480
mov eax, dword [ebp - 0x38]
lea ecx, [eax - 3]
cmp cx, 1
ja 0x4074aa
xor ebx, ebx
cmp ax, 3
sete bl
jmp 0x4074dd
push dword [ebp - 0x2c]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov ebx, 1
cmp dword [ebp - 0x34], 0
je 0x4074dd
push dword [ebp - 0x30]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [ebp - 0x30], 0
push dword [ebp - 0x34]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4074f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 8]
mov eax, dword [0x411184]
test edi, edi
je 0x407516
test eax, eax
je 0x40753a
mov esi, dword [0x41118c]
test esi, esi
jne 0x407600
jmp 0x40751a
test eax, eax
je 0x407529
push dword [0x411188]
call dword [sym.imp.ucrtbase.dll_free]
add esp, 4
mov dword [0x411184], 0
xor esi, esi
jmp 0x40763a
mov dword [0x411184], 0x1000
push 0x2000
call dword [sym.imp.ucrtbase.dll_malloc]
add esp, 4
mov esi, eax
mov dword [0x411188], eax
mov word [eax], 0
mov dword [0x41118c], eax
jmp 0x407600
xor ecx, ecx
mov eax, dword [0x41118c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x407580
lea ebx, [ecx - 2]
sar ebx, 1
mov esi, dword [0x411188]
push ecx
push eax
push esi
call sym._memmove
add esp, 0xc
mov eax, dword [0x411184]
mov ecx, eax
sub ecx, ebx
cmp ecx, 2
ja 0x4075d1
lea edi, [eax + eax]
mov dword [0x411184], edi
shl eax, 2
push eax
push esi
call dword [sym.imp.ucrtbase.dll_realloc]
add esp, 8
mov esi, eax
mov dword [0x411188], eax
mov eax, edi
mov edi, dword [ebp + 8]
mov ecx, ebx
not ecx
add ecx, eax
lea eax, [esi + ebx*2]
push edi
push ecx
push 2
push eax
call dword [sym.imp.ucrtbase.dll_fread]
add esp, 0x10
test eax, eax
je 0x407641
mov esi, dword [0x411188]
add eax, ebx
mov word [esi + eax*2], 0
mov dword [0x41118c], esi
push 0x40df98
push esi
call dword [sym.imp.ucrtbase.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x407570
lea ecx, [eax + 2]
mov dword [0x41118c], ecx
cmp word [eax], 0xd
jne 0x407635
cmp word [ecx], 0xa
jne 0x407635
lea ecx, [eax + 4]
mov dword [0x41118c], ecx
mov word [eax], 0
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x41118c], 0
mov esi, dword [0x411188]
jmp 0x40763a