joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40874d
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.0040a6c9
lea eax, [ebp - 4]
push eax
push 0x401998
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40888c
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.0040de58
mov esi, dword [ebp - 8]
test esi, esi
je 0x4087f5
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x4087f5
lea esi, [eax + 1]
add esi, 1
jne 0x4087de
mov edx, edi
jmp 0x408835
cmp word [edi], bx
je 0x408830
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 0x40885f
push 0x10
push 0xac
push 0xab
push dword [ebp + 8]
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x14
mov edx, 0x1000
mov ecx, dword [ebp - 0xc]
push esi
call fcn.00404fa9
mov edi, dword [ebp - 0xc]
push edi
push 0x408670
push dword [ebp + 8]
push 0x70
push dword [0x41edf4]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x4087f9
jmp 0x40888c
mov ecx, dword [ebp - 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408865
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 0x40889a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
call fcn.004157b5
mov ecx, dword [ebp - 0xc]
call fcn.004157b5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408a79
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.0041d440
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, 0x45f800
xor eax, eax
mov dword [ebp - 0x2008], ebx
cmp ax, word [0x45f800]
jne 0x408b2a
push 0x104
push edi
push 0x22
push dword [0x41edf4]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x408b03
mov word [0x45f800], ax
jmp 0x408cb4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408b08
sub ecx, edx
sar ecx, 1
mov dword [0x45fa28], ecx
cmp word [0x45f800], bx
je 0x408cb4
push ebx
lea ecx, [ebp - 0x2008]
call fcn.0040a6c9
lea eax, [ebp - 0x2008]
push eax
push 0x401998
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408cb4
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 0x408c96
cmp dword [ebp - 0x201c], 1
jne 0x408cb4
cmp dword [ebp - 0x2010], ebx
jbe 0x408cb4
push 0x5c
push dword [ebp - 0x200c]
call dword [sym.imp.SHLWAPI.dll_StrChrIW]
push 0x45f800
push dword [ebp - 0x200c]
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov ecx, eax
test ecx, ecx
je 0x408c66
cmp ecx, dword [ebp - 0x200c]
jne 0x408c66
test esi, esi
je 0x408c66
mov eax, dword [0x45fa28]
lea eax, [ecx + eax*2]
cmp eax, esi
jne 0x408c66
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x13
push dword [0x41edf4]
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.00404fde
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408c33
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 0x408b86
cmp dword [ebp - 0x2008], 0
pop edi
pop esi
pop ebx
je 0x408ccc
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2014]
call fcn.004157b5
mov ecx, dword [ebp - 0x200c]
call fcn.004157b5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cc10
leave
ret
Function at 0x408cee
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.00408a79
push edi
lea ecx, [ebp - 4]
call fcn.0040a6c9
lea eax, [ebp - 4]
push eax
push 0x401998
push MenuHelp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x408d9d
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 0x408d9d
cmp dword [ebp - 0x18], 1
jne 0x408d9d
cmp dword [ebp - 0xc], edi
jbe 0x408d9d
push 1
push dword [ebp - 8]
mov ecx, esi
call fcn.00406ebb
cmp dword [ebp - 4], edi
je 0x408dab
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
call fcn.004157b5
mov ecx, dword [ebp - 0x10]
call fcn.004157b5
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a20f
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 0x40a42e
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.0041d440
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.0040a335
mov ecx, dword [ebp - 0x1040]
lea edx, [ebp - 0x830]
push 0x401
mov edi, eax
call fcn.0040e1e0
xor eax, eax
cmp edi, dword [esi + 0x40]
setne al
mov dword [ebp - 0x104c], eax
je 0x40a4df
push 0x10
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.0040e1e0
jmp 0x40a4fa
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 0x40a50d
and dword [ebp - 0x1044], 0
jmp 0x40a522
push eax
push 3
push 0x110a
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, edi
jne 0x40a526
xor edi, edi
jmp 0x40a548
mov edx, dword [ebp - 0x103c]
lea eax, [ebp - 0x1038]
mov ecx, dword [esi + 0x60]
push 0
push 0x401
push eax
call fcn.0040de58
lea edi, [ebp - 0x1038]
push dword [ebp - 0x1040]
mov ecx, esi
call fcn.0040a360
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.0041083d
test eax, eax
jne 0x40a599
push dword [ebp - 0x1050]
push ebx
call dword [sym.imp.ACLUI.dll_EditSecurity]
push dword [esi + 0x60]
mov ecx, esi
call fcn.0040c9df
jmp 0x40a5b6
push 0
push 0x10
push 0x1b58
push 0x1b8c
push ebx
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc10
leave
ret 4
Function at 0x40cba7
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d440
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 [0x45ef88]
xor edi, edi
push eax
push 0
inc edi
call fcn.0040c822
test eax, eax
je 0x40cc16
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 0x40cc16
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.0041cc10
leave
ret
Function at 0x40dda1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0041d440
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.0040de58
lea ecx, [ebp - 0x1008]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dde1
sub ecx, edx
sar ecx, 1
push esi
lea edi, [ecx*2 + 2]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40de48
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40de42
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.0041cc10
leave
ret 8

Function at 0x40dfab
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 0x40e0cc
xor ebx, ebx
lea eax, [ebp - 0x808]
push ebx
push 0x400
push eax
mov edx, edi
mov ecx, esi
call fcn.0040de58
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 0x40e019
xor eax, eax
jmp 0x40e0cf
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40e022
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 0x40e0a1
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 0x40e07a
lea ecx, [ebp - 0x810]
call fcn.0040e0de
jmp 0x40e07c
xor eax, eax
push ecx
push eax
lea eax, [ebp - 0x808]
mov edx, edi
push eax
push 0xffff0001
mov ecx, esi
call fcn.0040df5f
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 0x40e04a
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.0041cc10
leave
ret
Function at 0x40e4f9
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 0x401d98
push MenuHelp
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40e583
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 0x401e0c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e579
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
call fcn.0040ed4f
test eax, eax
jne 0x40e579
cmp dword [ebp - 8], edi
jne 0x40e579
cmp dword [ebp - 4], edi
jne 0x40e579
mov eax, dword [ebp - 0xc]
sub eax, esi
je 0x40e579
sub eax, 1
je 0x40e576
sub eax, 1
jne 0x40e579
push 2
pop esi
jmp 0x40e579
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 0x40e588
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 [0x41edf4], 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 0x40e5e4
mov ecx, eax
call fcn.0040e6b0
jmp 0x40e5e6
mov eax, edi
push eax
call fcn.0040a969
call fcn.0040e4f9
cmp eax, 2
jne 0x40e600
call fcn.0040e224
jmp 0x40e6a2
mov ecx, eax
call fcn.0040e23b
sub eax, 1
je 0x40e684
sub eax, 1
je 0x40e6a2
mov ecx, dword [0x45ef88]
mov eax, dword [ecx + 0x50]
test eax, eax
je 0x40e67d
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40e644
push 9
call fcn.00404473
mov ecx, eax
call fcn.0040e220
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40e6a2
mov eax, dword [0x45ef88]
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [0x45ef88]
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov ecx, dword [0x45ef88]
mov esi, eax
cmp esi, dword [ecx + 0x50]
je 0x40e674
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x40e6a2
call fcn.00406403
jmp 0x40e6a2
mov eax, dword [0x45ef88]
cmp dword [eax + 0x50], edi
je 0x40e6a2
push edi
push 0x288
push 0x111
push dword [eax + 0x50]
call dword [sym.imp.USER32.dll_PostMessageW]
push ecx
call fcn.0040e761
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e8f9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], edx
push eax
xor ebx, ebx
mov dword [ebp - 0x10], ecx
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 0x400
push eax
push ebx
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov eax, dword [0x45ef88]
inc esi
add eax, 0x878
push eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40ea08
inc ebx
cmp dword [ebp - 4], 1
je 0x40e956
cmp dword [ebp - 4], 2
je 0x40e956
cmp dword [ebp - 4], 7
je 0x40e956
xor ecx, ecx
jmp 0x40e959
push 2
pop ecx
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40e9ca
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x45ef88]
push 0
add eax, 0x878
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e9bf
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 4]
call fcn.0040ed4f
test eax, eax
jne 0x40e9bf
push dword [ebp - 8]
push edi
push dword [ebp - 4]
push eax
mov eax, dword [0x45ef88]
add eax, 0x878
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40e9c1
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40e9cc
xor esi, esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x400
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0x45ef88]
add eax, 0x878
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40e93f
test esi, esi
je 0x40ea96
mov ebx, dword [ebp - 0x10]
xor edi, edi
mov eax, dword [0x45ef88]
push 0x400
add eax, 0x78
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc edi
test eax, eax
jne 0x40ea96
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x45ef88]
push 9
push 0
add eax, 0x78
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ea8e
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x45ef88]
add eax, 0x78
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40ea85
push dword [ebp + 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0040e845
push dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov esi, eax
mov ecx, dword [ebp - 0x18]
call fcn.0040e8f9
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ea0d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x40ec65
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 9
push esi
mov ebx, edx
mov dword [ebp - 0xc], esi
mov edi, ecx
push ebx
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ec96
push ebx
push edi
jmp 0x40ed44
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x40ecd8
cmp edi, 0xea
je 0x40ecd8
cmp edi, 0x7a
jne 0x40ecf4
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40ed01
push 8
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40ed4a
mov eax, dword [ebp - 8]
inc eax
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40ed23
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.0040ec65
test eax, eax
je 0x40ed24
inc esi
cmp eax, 0x103
je 0x40ed30
cmp esi, dword [ebp - 0x10]
jb 0x40ed01
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fada
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x220], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], eax
mov dword [eax], edi
mov dword [ebp - 0x214], edi
cmp dword [ebx + 0x10], edi
jne 0x40fb26
mov eax, dword [ebx + 0x2c]
mov ebx, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
jmp 0x40fb8f
mov esi, 0x8007000e
call fcn.0040f760
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40fb7b
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp + 8]
push edi
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x40fb5e
movzx esi, si
or esi, 0x80070000
mov ebx, dword [ebp - 0x218]
mov eax, esi
push dword [ebp - 0x21c]
not eax
shr eax, 0x1f
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40fb81
mov ebx, dword [ebp - 0x218]
test esi, esi
js 0x40fc1a
mov eax, dword [ebp - 0x214]
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jle 0x40fbca
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x40fc00
cmp dword [ebp - 0x218], edi
je 0x40fbfc
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jle 0x40fbfe
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x40fc1a
cmp esi, 0x80070005
je 0x40fc1a
cmp dword [ebx], edi
je 0x40fc20
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40fc20
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.0041cc10
leave
ret 0xc