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

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
lea eax, [ebp - 0x258]
sub esp, 0x27c
mov dword [esp + 0x10], eax
mov eax, 0x2001b
mov esi, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x25c], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
jne 0x4039c0
mov dword [esp], 0
lea edi, [ebp - 0x218]
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov edx, 0x100
mov ecx, 0x805d
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
test eax, eax
mov ebx, eax
je 0x403987
mov ebx, 1
jmp 0x403892
inc ebx
cmp ebx, 0x64
je 0x4039a8
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wsprintfW
xor eax, eax
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
mov eax, dword [ebp - 0x258]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
cmp eax, 2
jne 0x403888
mov eax, 4
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
lea ebx, [ebp - 0x25c]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x258]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
test eax, eax
jne 0x4039a8
mov eax, dword [ebp + 0x14]
mov ecx, 0xffffffff
mov edi, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov ebx, 0x102b
mov dword [esp + 0x10], edi
mov dword [esp + 8], eax
mov eax, dword [0x416e20]
mov dword [esp + 4], esi
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._AddEntryToList
mov edx, 3
mov ecx, 3
mov dword [ebp - 0x248], edx
lea edx, [ebp - 0x254]
mov dword [esp + 4], ebx
mov ebx, 1
mov dword [ebp - 0x244], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [0x416e20]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
mov eax, dword [ebp - 0x258]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov esi, 0x7dc
xor ebx, ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403987
mov eax, dword [ebp + 8]
mov ebx, 0x7dc
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp], eax
call sym._error_code_messagebox
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4039e0
Capabilities:
Delete registry value
Get process heap flags
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
test esi, esi
je 0x403b20
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403b20
lea eax, [ebp - 0x1c]
mov ebx, 0x2001b
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._RegOpenKeyExW_20
sub esp, 0x14
test eax, eax
mov ebx, eax
jne 0x403b38
mov dword [esp + 4], esi
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
je 0x403b60
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
mov dword [esp], eax
mov eax, dword [ebp + 8]
call sym._read_value
test eax, eax
mov edi, eax
je 0x403ae1
mov dword [esp + 0x10], edi
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
test eax, eax
jne 0x403b9a
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegDeleteValueW_8
sub esp, 8
test eax, eax
jne 0x403b88
mov ebx, 1
mov dword [esp + 8], edi
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, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [esp], eax
call sym._RegCloseKey_4
mov esi, dword [ebp - 8]
mov eax, ebx
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
sub esp, 4
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov eax, ebx
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x7e1
xor ebx, ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._error_code_messagebox
mov esi, dword [ebp - 8]
mov eax, ebx
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [esp + 8], eax
mov eax, 0x7de
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403ae1
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegDeleteValueW_8
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, 0x7e1
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._error_code_messagebox
jmp 0x403ae1
Function at 0x404380
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp eax, 0x110
je 0x4043d8
cmp eax, 0x111
je 0x4044a0
cmp eax, 0x4e
je 0x4043e0
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [0x416020], ecx
jmp 0x4043be
mov eax, dword [ecx + 8]
cmp eax, 0xfffffda2
je 0x4044c8
cmp eax, 0xfffffda7
jne 0x4043be
mov eax, dword [0x416e20]
xor ecx, ecx
xor esi, esi
mov dword [esp + 4], esi
xor edi, edi
mov dword [esp + 8], ecx
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym._GetItemFullPath
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, 0xc
mov dword [esp + 8], eax
mov eax, 0x67
mov dword [esp + 4], eax
call sym._SendDlgItemMessageW_20
sub esp, 0x14
test esi, esi
je 0x404570
xor eax, eax
cmp word [esi], 0
setne al
lea edi, [eax + 0x65]
mov dword [esp + 8], esi
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]
sub esp, 0xc
mov dword [esp + 0xc], edi
mov dword [esp], ebx
mov eax, 0x66
mov dword [esp + 8], eax
mov eax, 0x65
mov dword [esp + 4], eax
call sym._CheckRadioButton_16
sub esp, 0x10
jmp 0x4043be
cmp dx, 0x67
jne 0x4043be
shr edx, 0x10
cmp edx, 0x400
jne 0x4043be
mov eax, 0x66
mov dword [esp + 0xc], eax
jmp 0x404474
mov dword [esp], ebx
mov eax, 0x66
mov esi, dword [0x416020]
mov dword [esp + 4], eax
call sym._IsDlgButtonChecked_8
sub esp, 8
test eax, eax
je 0x404550
xor edx, edx
mov ecx, 0xe
mov dword [esp + 0xc], edx
xor eax, eax
mov edi, 0x67
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
mov dword [esp], ebx
call sym._SendDlgItemMessageW_20
lea edi, [eax + 1]
sub esp, 0x14
lea eax, [edi + edi]
mov dword [esp], eax
call sym._heap_xalloc
mov dword [esi + 0x40], eax
mov dword [esp + 0x10], eax
mov eax, 0xd
mov dword [esp + 8], eax
mov eax, 0x67
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._SendDlgItemMessageW_20
sub esp, 0x14
jmp 0x4043be
mov dword [esp], 2
call sym._heap_xalloc
mov dword [esi + 0x40], eax
mov word [eax], 0
jmp 0x4043be
mov edi, 0x65
jmp 0x40444e
Function at 0x404880
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [ecx + 8]
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp], ebx
mov dword [ebp - 0x20], eax
mov eax, 0x7d4
mov dword [esp + 4], eax
call sym._GetDlgItem_8
sub esp, 8
cmp esi, 0x110
mov edi, eax
je 0x404910
cmp esi, 0x111
jne 0x4048f1
mov edx, dword [ebp - 0x1c]
cmp dx, 2
movzx eax, dx
je 0x404a40
cmp eax, 0x7d4
je 0x404a60
dec eax
je 0x404948
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edx, eax
xor eax, eax
call sym._add_favourite_key_items
test eax, eax
je 0x4048f1
mov eax, 0x186
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor esi, esi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._SendMessageW_16
mov eax, 1
sub esp, 0x10
jmp 0x4048f3
mov dword [esp], edi
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, 0x188
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov edx, 0x18a
sub esp, 0x10
mov esi, eax
mov dword [esp + 8], esi
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call sym._SendMessageW_16
mov ecx, eax
sub esp, 0x10
test ecx, ecx
mov eax, 1
jle 0x4048f3
mov dword [ebp - 0x20], ecx
lea eax, [ecx + ecx + 2]
mov dword [esp], eax
call sym._heap_xalloc
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov dword [ebp - 0x1c], eax
mov eax, 0x189
mov dword [esp + 4], eax
call sym._SendMessageW_16
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
cmp ecx, 0x7f
jle 0x4049d9
xor esi, esi
mov word [edx + 0xfe], si
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [edx + eax]
add eax, 2
mov word [eax + 0x4168de], cx
test ecx, ecx
jne 0x4049e0
mov dword [ebp - 0x1c], edx
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp], ebx
call sym._EndDialog_8
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, dword fs:[0x18]
sub esp, 8
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, 1
sub esp, 0xc
jmp 0x4048f3
mov dword [esp], ebx
mov eax, 2
mov dword [esp + 4], eax
call sym._EndDialog_8
mov eax, 1
sub esp, 8
jmp 0x4048f3
mov esi, dword [ebp - 0x1c]
shr esi, 0x10
dec esi
jne 0x4048f1
mov dword [esp], ebx
mov ecx, 1
mov dword [esp + 4], ecx
call sym._GetDlgItem_8
sub esp, 8
mov edx, eax
mov dword [esp], edx
xor eax, eax
cmp dword [ebp - 0x20], 0xffffffff
setne al
mov dword [esp + 4], eax
call sym._EnableWindow_8
mov eax, 1
sub esp, 8
jmp 0x4048f3
Function at 0x404d10
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
xor edx, edx
push ebx
sub esp, 0x14
mov dword [esp + 8], eax
mov eax, dword [0x416e20]
mov dword [esp + 4], edx
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym._GetItemFullPath
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov ebx, eax
mov eax, 0x40b
mov dword [esp + 4], eax
mov eax, dword [0x416ec4]
mov dword [esp], eax
call sym._SendMessageW_16
xor edx, edx
mov eax, dword fs:[0x18]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret
Function at 0x406bc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov esi, dword [eax + 0x10]
mov edi, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x18]
mov eax, esi
shr eax, 0x1f
add eax, esi
sar eax, 1
cdq
idiv edi
mov dword [ebp - 0x30], eax
imul eax, edi
mov esi, edx
mov edx, dword [ebx + 0x14]
sub ecx, eax
cmp ecx, edi
cmovg ecx, edi
mov dword [ebp - 0x2c], ecx
sub edi, ecx
mov dword [esp], edi
call sym._HexEdit_GetLineText
mov ecx, dword [ebp - 0x2c]
test byte [ebx + 8], 2
mov edi, eax
je 0x406d10
mov edx, dword [ebx + 0x10]
lea esi, [esi + esi*2 + 6]
mov eax, edx
shr eax, 0x1f
add edx, eax
and edx, 1
sub edx, eax
lea eax, [esi + edx]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebx]
mov dword [esp], eax
call sym._GetDC_4
mov esi, eax
mov eax, dword [ebx + 4]
sub esp, 4
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._SelectObject_8
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x20]
sub esp, 8
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._GetTextExtentPoint32W_16
mov edx, dword [ebp - 0x34]
sub esp, 0x10
mov dword [esp + 4], edx
mov dword [esp], esi
call sym._SelectObject_8
mov eax, dword [ebx]
sub esp, 8
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._ReleaseDC_8
mov ecx, dword [ebp - 0x38]
sub esp, 8
test ecx, ecx
jne 0x406c9c
mov dword [ebp - 0x20], 0
mov dword [esp + 8], edi
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]
sub esp, 0xc
mov dword [esp], 6
call sym._GetSystemMetrics_4
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebp - 0x30]
mov edi, dword [ebx + 0xc]
sub esi, ecx
imul esi, edi
sub esp, 4
mov dword [esp], 5
add esi, eax
call sym._GetSystemMetrics_4
mov edx, dword [ebp - 0x20]
sub esp, 4
add eax, edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._SetCaretPos_8
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebx + 0x1c]
lea eax, [eax + eax*2 + 0xa]
add eax, esi
mov dword [ebp - 0x2c], eax
jmp 0x406c27
Function at 0x407e40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov edx, dword [0x416e24]
mov eax, dword fs:[0x18]
mov ebx, dword [ebp + 8]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
cmp word [ebx], 0
je 0x407ec0
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407e80
sub eax, ebx
add eax, 2
mov dword [esp], eax
call sym._heap_xalloc
xor edx, edx
mov dword [0x416e24], eax
lea esi, [esi]
movzx ecx, word [ebx + edx]
mov word [eax + edx], cx
add edx, 2
test ecx, ecx
jne 0x407ea0
mov ebx, dword [ebp - 4]
mov eax, 1
leave
ret
mov eax, 2
jmp 0x407e8e
Function at 0x407ed0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xec
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp eax, 5
ja 0x407f48
cmp eax, 3
ja 0x407f90
dec eax
cmp eax, 1
ja 0x407ff0
mov eax, 2
test ebx, ebx
mov dword [ebp - 0x90], eax
mov eax, 0x416ba0
cmove ebx, eax
mov dword [ebp - 0x84], ebx
lea eax, [ebp - 0x98]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x1074
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 7
jne 0x407ff0
movzx edx, word [ebx]
mov eax, ebx
lea esi, [esi]
lea edi, [edi]
test edx, edx
je 0x407f79
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x407f70
movzx edx, word [eax + 2]
test edx, edx
je 0x407fe0
mov word [eax], 0x2c
add eax, 2
jmp 0x407f60
cmp eax, 5
mov edx, dword [ebx]
je 0x4080c5
mov dword [esp + 0xc], edx
lea ebx, [ebp - 0x98]
mov eax, str.0x_08x___u_
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._wsprintfW
mov eax, 2
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 0xc0], ebx
jmp 0x407f1b
mov eax, 2
mov dword [ebp - 0x90], eax
jmp 0x407f0f
mov eax, dword [ebp + 0x18]
lea edi, [eax + eax*2]
lea eax, [edi + edi]
mov dword [ebp - 0xe0], eax
add eax, 2
mov dword [esp], eax
call sym._heap_xalloc
mov esi, dword [ebp + 0x18]
test esi, esi
mov dword [ebp - 0xdc], eax
je 0x408050
mov edi, ebx
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp - 0xdc]
add ebx, edi
lea esi, [esi]
lea edi, [edi]
movzx eax, byte [edi]
inc edi
mov dword [esp], esi
add esi, 6
mov dword [esp + 8], eax
mov eax, str._02X
mov dword [esp + 4], eax
call sym._wsprintfW
cmp edi, ebx
jne 0x408030
mov esi, dword [ebp - 0xdc]
mov ecx, 0x1074
mov edx, 2
mov eax, dword [ebp - 0xe0]
xor ebx, ebx
mov word [esi + eax], 0
lea eax, [ebp - 0x98]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x84], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._SendMessageW_16
mov eax, dword fs:[0x18]
sub esp, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
bswap edx
jmp 0x407f9b
Function at 0x409bd0
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0xc38
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, 0x600
mov dword [ebp - 4], edi
mov edi, dword [ecx]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
lea esi, [ebp - 0xc18]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._LoadStringW_16
sub esp, 0x10
test eax, eax
jne 0x409c48
test byte [0x411188], 1
jne 0x409c60
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret
lea edx, [ebx + 4]
mov eax, esi
call sym._output_formatstring
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
nop
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, str.error_exit
mov ecx, 0x411188
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 0
mov dword [esp + 0x10], eax
mov eax, str.LoadString_failed_with__lu_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0_3
jmp 0x409c32
Function at 0x40a380
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
cmp eax, 9
je 0x40a3a0
cmp eax, 0x20
jne 0x40a3b1
nop
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 0x20
je 0x40a3a0
cmp eax, 9
je 0x40a3a0
test eax, eax
je 0x40a3d0
cmp eax, 0x3b
je 0x40a3d0
mov dword [esi + 0x30], 2
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call sym._RegDeleteValueW_8
mov eax, ebx
mov dword [esi + 0x30], 2
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40a590
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0x1c]
sub eax, 3
cmp eax, 1
jbe 0x40a5c0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov ebx, dword [ebp - 4]
leave
ret
mov edx, dword [ebx + 0x24]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40a5a4

Function at 0x40a5f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call sym._RegSetValueExW_24
mov eax, ebx
sub esp, 0x18
call sym._free_parser_data
xor eax, eax
cmp word [ebx + 0xc], 0
setne al
inc eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40a760
Capabilities:
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword fs:[0x18]
mov edx, dword [ebx + 0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x30], 7
mov ebx, dword [ebp - 4]
add eax, 2
sub esp, 0xc
leave
ret
Function at 0x40a7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x412b1e
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x1c
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x40a8a0
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.ucrtbase.dll__fileno]
mov edx, 0x8000
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__setmode]
mov dword [esp + 0xc], ebx
test edi, edi
je 0x40a878
mov dword [esp], 0x412c4e
mov esi, 2
mov edi, 1
mov dword [esp + 8], esi
mov esi, dword [sym.imp.ucrtbase.dll_fwrite]
mov dword [esp + 4], edi
call esi
mov eax, str.Windows_Registry_Editor_Version_5.00_r_n
lea esi, [esi]
lea edi, [edi]
add eax, 2
cmp word [eax], 0
jne 0x40a840
mov dword [esp + 0xc], ebx
sub eax, str.Windows_Registry_Editor_Version_5.00_r_n
mov ecx, 2
mov dword [esp + 4], ecx
sar eax, 1
mov dword [esp + 8], eax
mov dword [esp], str.Windows_Registry_Editor_Version_5.00_r_n
call esi
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.REGEDIT4_r_n
mov eax, 0xa
mov edx, 1
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sym._fwrite
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov eax, 0x412b22
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll__wfopen]
test eax, eax
mov ebx, eax
jne 0x40a804
mov dword [esp], 0x412b28
call dword [sym.imp.ucrtbase.dll__wperror]
mov dword [esp + 4], esi
mov dword [esp], 0xbbf
call sym._error_exit
jmp 0x40a804

Function at 0x40aa70
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, eax
mov dword [ebp - 4], esi
mov esi, edx
mov edx, dword [edx]
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
xor edx, edx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [ebx]
sub esp, 0xc
mov dword [esp], eax
call sym._RegCloseKey_4
mov esi, dword [ebp - 4]
mov dword [ebx], 0
mov ebx, dword [ebp - 8]
sub esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x40ab50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
test byte [0x4111c4], 2
jne 0x40ab70
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
mov edx, str.heap_xrealloc
mov ecx, 0x4111c4
mov dword [esp + 8], edx
mov eax, str.Out_of_memory__n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_4
jmp 0x40ab5f