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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push esi
push edi
push eax
push 1
xor ebx, ebx
mov esi, ecx
push ebx
push 0x401958
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4066ab
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
add esi, 0x4c
lea eax, [ebp - 8]
push esi
push eax
push ebx
push 0x401a64
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406661
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 8]
call fcn.0040ecbf
push 0x40
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push edi
lea eax, [ebp - 8]
push eax
push ebx
push 0x401a58
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4066a2
lea eax, [ebp - 4]
push eax
push edi
lea ecx, [ebp - 8]
call fcn.0040ecbf
test eax, eax
jne 0x4066a2
cmp dword [ebp - 8], 3
jne 0x4066a2
cmp dword [ebp - 4], esi
jne 0x4066a2
xor ebx, ebx
inc ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x406721
test byte [edi + 0x3c], 2
jne 0x4066fd
call dword [sym.imp.USER32.dll_GetDpiForSystem]
mov esi, eax
push esi
push 0x60
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0x60
push dword [edi + 0x30]
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0x60
push dword [edi + 0x34]
mov dword [edi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push esi
push 0x60
push dword [edi + 0x38]
mov dword [edi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [edi + 0x38], eax
or dword [edi + 0x3c], 2
push 0x60
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetricsForDpi]
cmp dword [edi + 0x30], eax
jge 0x40670f
mov dword [edi + 0x30], eax
cmp dword [edi + 0x38], eax
jge 0x406717
mov dword [edi + 0x38], eax
cmp dword [edi + 0x2c], eax
jge 0x40673f
mov dword [edi + 0x2c], eax
jmp 0x40673f
push 0x78
pop eax
mov dword [edi + 0x3c], 3
mov dword [edi + 0x2c], 0xd8
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0x120
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x407567
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 3
mov edi, 0x104
lea eax, [ebp - 0x418]
push edi
push eax
xor ebx, ebx
mov esi, ecx
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x60]
mov edx, eax
call fcn.0040ddc8
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4075d0
sub ecx, edx
sar ecx, 1
lea ebx, [ecx - 1]
test ebx, ebx
je 0x407622
lea edi, [ebx + ebx]
movzx eax, word [ebp + edi - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_isspace]
pop ecx
test eax, eax
jne 0x407608
cmp word [ebp + edi - 0x210], 0x5c
jne 0x407622
cmp edi, 0x208
jae 0x407675
xor eax, eax
mov word [ebp + edi - 0x210], ax
sub edi, 2
sub ebx, 1
jne 0x4075e9
lea eax, [ebp - 0x210]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.00406e4e
test eax, eax
je 0x40764e
mov eax, dword [esi + 0x60]
mov dword [esi + 8], eax
jmp 0x407656
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, esi
call fcn.0040dcae
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret
call fcn.0041cbb8
int3
Function at 0x408457
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x204c
call fcn.0041d2a0
mov eax, dword [0x41e024]
xor eax, esp
mov dword [esp + 0x2048], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push 0x401958
xor ebx, ebx
mov esi, ecx
push MenuHelp
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4085ca
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x2c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esi + 0xc]
mov edi, 0x101d
push ebx
push ebx
push edi
push dword [esi]
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0x10dc]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
push 1
push edi
push dword [esi]
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0x10dc]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push ebx
push 2
push edi
push dword [esi]
mov dword [esp + 0x54], eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx ecx, word [esi + 0x10dc]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x48], eax
xor eax, eax
cmp dword [esi + 0x18], ebx
push 0x40
setne al
add eax, 2
mov dword [esp + 0x50], eax
lea eax, [esp + 0x14]
push eax
push 3
push ebx
push 0x401a58
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [esi + 0x4c]
push eax
push 4
push ebx
push 0x401a64
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 3
push 0x1000
lea eax, [esp + 0x58]
push eax
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x60]
mov edx, eax
call fcn.0040ddc8
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408592
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [esp + 0x54]
push eax
push 1
push ebx
push 0x401a78
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 9
push 0x110b
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x2054]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ca70
mov esp, ebp
pop ebp
ret 4
Function at 0x4086dd
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, 0x2000
xor ebx, ebx
push edi
push ebx
push dword [eax + 0x18]
mov esi, ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
mov eax, dword fs:[0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push ebx
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call fcn.0040a619
lea eax, [ebp - 4]
push eax
push 0x4019d0
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40881c
push 3
mov edi, 0x1000
push edi
push dword [ebp - 8]
push ebx
push 9
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x60]
mov edx, eax
call fcn.0040ddc8
mov esi, dword [ebp - 8]
test esi, esi
je 0x408785
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x408785
lea esi, [eax + 1]
add esi, 1
jne 0x40876e
mov edx, edi
jmp 0x4087c5
cmp word [edi], bx
je 0x4087c0
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4087ef
push 0x10
push 0xac
push 0xab
push dword [ebp + 8]
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x14
mov edx, 0x1000
mov ecx, dword [ebp - 0xc]
push esi
call fcn.00404f69
mov edi, dword [ebp - 0xc]
push edi
push 0x408600
push dword [ebp + 8]
push 0x70
push dword [0x41edec]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x408789
jmp 0x40881c
mov ecx, dword [ebp - 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4087f5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push dword [ebp - 8]
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 4], ebx
je 0x40882a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
call fcn.004156df
mov ecx, dword [ebp - 0xc]
call fcn.004156df
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408a09
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0041d2a0
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov esi, 0x2000
xor ebx, ebx
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x2014], eax
mov eax, dword fs:[0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x200c], eax
mov edi, 0x45f7f0
xor eax, eax
mov dword [ebp - 0x2008], ebx
cmp ax, word [0x45f7f0]
jne 0x408aba
push 0x104
push edi
push 0x22
push dword [0x41edec]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x408a93
mov word [0x45f7f0], ax
jmp 0x408c44
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408a98
sub ecx, edx
sar ecx, 1
mov dword [0x45fa18], ecx
cmp word [0x45f7f0], bx
je 0x408c44
push ebx
lea ecx, [ebp - 0x2008]
call fcn.0040a619
lea eax, [ebp - 0x2008]
push eax
push 0x4019d0
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408c44
lea eax, [ebp - 0x2010]
mov dword [ebp - 0x2010], esi
push eax
push dword [ebp - 0x200c]
lea eax, [ebp - 0x201c]
xor edi, edi
push eax
push ebx
lea eax, [ebp - 0x2018]
inc edi
push eax
push dword [ebp - 0x2014]
push ebx
jmp 0x408c26
cmp dword [ebp - 0x201c], 1
jne 0x408c44
cmp dword [ebp - 0x2010], ebx
jbe 0x408c44
push 0x5c
push dword [ebp - 0x200c]
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
push 0x45f7f0
push dword [ebp - 0x200c]
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, eax
test ecx, ecx
je 0x408bf6
cmp ecx, dword [ebp - 0x200c]
jne 0x408bf6
test esi, esi
je 0x408bf6
mov eax, dword [0x45fa18]
lea eax, [ecx + eax*2]
cmp eax, esi
jne 0x408bf6
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x13
push dword [0x41edec]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x1000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAddBackslash]
lea eax, [esi + 2]
mov edx, 0x1000
push eax
lea ecx, [ebp - 0x2004]
call fcn.00404f9e
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408bc3
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x2004]
push eax
push 1
push ebx
push dword [ebp - 0x2014]
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x2010], 0x2000
push ecx
push dword [ebp - 0x200c]
lea ecx, [ebp - 0x201c]
mov eax, edi
push ecx
push ebx
lea ecx, [ebp - 0x2018]
inc edi
push ecx
push dword [ebp - 0x2014]
push eax
push dword [ebp - 0x2008]
mov dword [ebp - 0x2018], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x408b16
cmp dword [ebp - 0x2008], 0
pop edi
pop esi
pop ebx
je 0x408c5c
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2014]
call fcn.004156df
mov ecx, dword [ebp - 0x200c]
call fcn.004156df
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ca70
leave
ret
Function at 0x408c7e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov ebx, 0x2000
xor edi, edi
push ebx
push edi
push dword [eax + 0x18]
mov esi, ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 8], eax
mov eax, dword fs:[0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
call fcn.00408a09
push edi
lea ecx, [ebp - 4]
call fcn.0040a619
lea eax, [ebp - 4]
push eax
push 0x4019d0
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408d2d
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0x1000
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ebx
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffafe
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x408d2d
cmp dword [ebp - 0x18], 1
jne 0x408d2d
cmp dword [ebp - 0xc], edi
jbe 0x408d2d
push 1
push dword [ebp - 8]
mov ecx, esi
call fcn.00406e4e
cmp dword [ebp - 4], edi
je 0x408d3b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
call fcn.004156df
mov ecx, dword [ebp - 0x10]
call fcn.004156df
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a19f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push esi
push 0xe
mov esi, ecx
call dword [sym.imp.USER32.dll_GetSysColor]
push 0xd
mov dword [esi + 0x1084], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 8
mov dword [esi + 0x1080], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
mov dword [esi + 0x107c], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [esi + 0x10]
mov dword [esi + 0x1078], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push dword [esi + 0x1078]
push 0
push 0x1001
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret

Function at 0x40a3be
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0041d2a0
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x5c
pop eax
push 8
mov esi, ecx
mov word [ebp - 0x28], ax
pop ecx
push 0
mov word [ebp - 0x26], ax
lea edi, [ebp - 0x24]
push 9
xor eax, eax
push 0x110a
push dword [esi + 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x1044], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
push 3
push 0x110a
push dword [esi + 0x60]
mov dword [ebp - 0x1040], edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov ecx, esi
mov dword [ebp - 0x103c], eax
call fcn.0040a2c5
mov ecx, dword [ebp - 0x1040]
lea edx, [ebp - 0x830]
push 0x401
mov edi, eax
call fcn.0040e150
xor eax, eax
cmp edi, dword [esi + 0x40]
setne al
mov dword [ebp - 0x104c], eax
je 0x40a46f
push 0x10
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.0040e150
jmp 0x40a48a
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1048], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 0x103c]
cmp eax, edi
jne 0x40a49d
and dword [ebp - 0x1044], 0
jmp 0x40a4b2
push eax
push 3
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jne 0x40a4b6
xor edi, edi
jmp 0x40a4d8
mov edx, dword [ebp - 0x103c]
lea eax, [ebp - 0x1038]
mov ecx, dword [esi + 0x60]
push 0
push 0x401
push eax
call fcn.0040ddc8
lea edi, [ebp - 0x1038]
push dword [ebp - 0x1040]
mov ecx, esi
call fcn.0040a2f0
lea ecx, [ebp - 0x1050]
mov edx, edi
push ecx
mov ecx, dword [ebp - 0x1044]
push ebx
push eax
push dword [ebp - 0x104c]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004107ad
test eax, eax
jne 0x40a529
push dword [ebp - 0x1050]
push ebx
call dword [sym.imp.ACLUI.dll_EditSecurity]
push dword [esi + 0x60]
mov ecx, esi
call fcn.0040c94f
jmp 0x40a546
push 0
push 0x10
push 0x1b58
push 0x1b8c
push ebx
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 4
Function at 0x40cb17
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d2a0
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x1004]
push esi
push ecx
mov ecx, dword [0x45ef80]
xor edi, edi
push eax
push 0
inc edi
call fcn.0040c792
test eax, eax
je 0x40cb86
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40cb86
push dword [ebp - 0x1008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1004]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0041ca70
leave
ret
Function at 0x40dd11
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d2a0
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x1008]
mov ecx, dword [ecx + 0x60]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push 0x800
push eax
call fcn.0040ddc8
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dd51
sub ecx, edx
sar ecx, 1
push esi
lea edi, [ecx*2 + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40ddb8
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40ddb2
push edi
lea eax, [ebp - 0x1008]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ca70
leave
ret 8

Function at 0x40df1b
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push 3
push 0x110a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40e03c
xor ebx, ebx
lea eax, [ebp - 0x808]
push ebx
push 0x400
push eax
mov edx, edi
mov ecx, esi
call fcn.0040ddc8
lea ecx, [ebp - 0x80c]
push ecx
push 8
push ebx
lea ecx, [ebp - 0x808]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40df89
xor eax, eax
jmp 0x40e03f
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40df92
sub ecx, edx
mov eax, 0x3ff
sar ecx, 1
sub eax, ecx
push eax
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x808]
push eax
push 0
jmp 0x40e011
lea eax, [ebp - 0x810]
inc ebx
push eax
push 9
push 0
lea eax, [ebp - 0x808]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40dfea
lea ecx, [ebp - 0x810]
call fcn.0040e04e
jmp 0x40dfec
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x808]
mov edx, edi
push eax
push 0xffff0001
mov ecx, esi
call fcn.0040decf
push dword [ebp - 0x814]
lea eax, [ebp - 0x808]
push eax
push ebx
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40dfba
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 0
push 0x1113
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret
Function at 0x40e469
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
push eax
push 0x401dc8
push MenuHelp
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e4f3
push edi
push 4
pop edi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x401e3c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e4e9
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.0040ecbf
test eax, eax
jne 0x40e4e9
cmp dword [ebp - 8], edi
jne 0x40e4e9
cmp dword [ebp - 4], edi
jne 0x40e4e9
mov eax, dword [ebp - 0xc]
sub eax, esi
je 0x40e4e9
sub eax, 1
je 0x40e4e6
sub eax, 1
jne 0x40e4e9
push 2
pop esi
jmp 0x40e4e9
xor esi, esi
inc esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40e4f8
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x41edec], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0xffff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov eax, dword fs:[0x30]
push 0x10e0
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x40e554
mov ecx, eax
call fcn.0040e620
jmp 0x40e556
mov eax, edi
push eax
call fcn.0040a8ad
call fcn.0040e469
cmp eax, 2
jne 0x40e570
call fcn.0040e194
jmp 0x40e612
mov ecx, eax
call fcn.0040e1ab
sub eax, 1
je 0x40e5f4
sub eax, 1
je 0x40e612
mov ecx, dword [0x45ef80]
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x40e5ed
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40e5b4
push 9
call fcn.00404433
mov ecx, eax
call fcn.0040e190
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e612
mov eax, dword [0x45ef80]
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [0x45ef80]
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ecx, dword [0x45ef80]
mov esi, eax
cmp esi, dword [ecx + 0x50]
je 0x40e5e4
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40e612
call fcn.00406383
jmp 0x40e612
mov eax, dword [0x45ef80]
cmp dword [eax + 0x50], edi
je 0x40e612
push edi
push 0x288
push 0x111
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
push ecx
call fcn.0040e6d1
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]