joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d24
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d45
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d5f
inc edi
cmp edi, 0x3330601
jl 0x401d30
cmp dword [0x2087874], 0x400
jne 0x401d93
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call fcn.00404491
push esi
push esi
call fcn.00404958
push esi
call fcn.004049ca
add esp, 0x10
xor edi, edi
cmp edi, 0x16c76
jge 0x401da5
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401dcb
inc edi
cmp edi, 0x3003f
jl 0x401d95
mov eax, dword [0x43a894]
mov dword [0x2087874], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x2087874], 0x51f
jne 0x401df7
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x401ddf
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x402965
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x433aed
call fcn.00433968
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00403722
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004049d9
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x4029ad
call fcn.004034d6
mov dword [ebx], eax
call fcn.00403295
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029af
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405524
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x439354]
jne 0x40552e
repz ret
jmp fcn.0040a7fc
Function at 0x40f01e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x439354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408f46
and dword [ebp - 0x14], 0
cmp dword [0x445a68], 0
mov dword [ebp - 0x18], eax
jne 0x40f0d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f179
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40f179
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x445a68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x445a6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x445a70], eax
call edi
push eax
call esi
mov dword [0x445a78], eax
test eax, eax
je 0x40f0d1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x445a74], eax
mov eax, dword [0x445a74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f12a
cmp dword [0x445a78], ecx
je 0x40f12a
push eax
call esi
push dword [0x445a78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f12a
test ebx, ebx
je 0x40f12a
call edi
test eax, eax
je 0x40f121
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f121
test byte [ebp - 8], 1
jne 0x40f12a
or dword [ebp + 0x10], 0x200000
jmp 0x40f15d
mov eax, dword [0x445a6c]
cmp eax, dword [ebp - 0x18]
je 0x40f15d
push eax
call esi
test eax, eax
je 0x40f15d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f15d
mov eax, dword [0x445a70]
cmp eax, dword [ebp - 0x18]
je 0x40f15d
push eax
call esi
test eax, eax
je 0x40f15d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445a68]
call esi
test eax, eax
je 0x40f179
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f17b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405524
leave
ret
Function at 0x401260
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [eax + ebx + 0x7c]
mov dword [ebp - 0x11c], eax
test ecx, ecx
je 0x401304
mov edx, dword [ebx + ecx + 0x24]
lea eax, [ebx + ecx]
mov ecx, dword [eax + 0x1c]
add edx, ebx
mov esi, dword [eax + 0x18]
add ecx, ebx
mov dword [ebp - 0x118], ecx
xor edi, edi
mov ecx, dword [eax + 0x20]
add ecx, ebx
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], esi
test esi, esi
je 0x401304
mov edx, dword [ecx + edi*4]
xor eax, eax
mov cl, byte [edx + ebx]
add edx, ebx
test cl, cl
je 0x4012f4
ror eax, 0xc
movsx esi, cl
cmp cl, 0x61
jl 0x4012e4
add eax, 0xffffffe0
mov cl, byte [edx + 1]
inc edx
add eax, esi
test cl, cl
jne 0x4012d6
mov esi, dword [ebp - 0x10c]
cmp eax, dword [ebp + 0xc]
je 0x401317
mov ecx, dword [ebp - 0x110]
inc edi
cmp edi, esi
jb 0x4012c8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b61
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x114]
mov edx, dword [ebp - 0x118]
movzx eax, word [eax + edi*2]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x120]
add edx, ebx
cmp edx, eax
jbe 0x401407
add eax, dword [ebp - 0x11c]
cmp edx, eax
jae 0x401407
xor ebx, ebx
xor eax, eax
nop dword [eax]
mov cl, byte [edx + eax]
cmp cl, 0x2e
je 0x401367
mov byte [ebp + eax - 0x108], cl
inc eax
cmp eax, 0x104
jb 0x401350
lea ecx, [eax + 4]
mov dword [ebp + eax - 0x108], 0x6c6c642e
cmp ecx, 0x104
jae 0x40141a
lea esi, [eax + 1]
mov byte [ebp + ecx - 0x108], bl
mov cl, byte [ebp - 0x108]
lea edi, [ebp - 0x108]
add esi, edx
xor eax, eax
test cl, cl
je 0x4013b8
nop
ror eax, 0xc
movsx edx, cl
cmp cl, 0x61
jl 0x4013ae
add eax, 0xffffffe0
mov cl, byte [edi + 1]
inc edi
add eax, edx
test cl, cl
jne 0x4013a0
push eax
call fcn.00401420
mov edi, eax
add esp, 4
test edi, edi
je 0x4013f4
mov cl, byte [esi]
xor eax, eax
test cl, cl
je 0x4013e8
nop
ror eax, 0xc
movsx edx, cl
cmp cl, 0x61
jl 0x4013de
add eax, 0xffffffe0
mov cl, byte [esi + 1]
inc esi
add eax, edx
test cl, cl
jne 0x4013d0
push eax
push edi
call fcn.00401260
add esp, 8
mov ebx, eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b61
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b61
mov esp, ebp
pop ebp
ret
call fcn.00401a86
int3

Function at 0x402275
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4022b4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4022b4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4022b4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4022b4
cmp dword [ecx + 0x74], 0xe
jbe 0x4022b4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x406b29
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x406b74
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00406d46
test al, al
jne 0x406b6e
sub edx, 2
cmp edx, edi
jne 0x406b54
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406b96
lea eax, [edi + 2]
cmp edx, eax
je 0x406b96
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00406a75
add esp, 0x10
jmp 0x406c90
push esi
lea ecx, [ebp - 0x255]
call fcn.00406d46
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406bd9
push dword [ebp - 0x25c]
jmp 0x406b86
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406c16
cmp word [ebp - 0x226], 0
je 0x406c37
cmp word [ebp - 0x226], ax
jne 0x406c16
cmp word [ebp - 0x224], 0
je 0x406c37
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00406a75
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406c83
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406bf0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x406c6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406c90
push 0x4068a5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004098f0
add esp, 0x10
jmp 0x406c60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b61
leave
ret

Function at 0x4087c3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffac
push 0x40ffa4
push str.FlsAlloc
push 0x1f
call fcn.004086fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4087f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e104]
call esi
jmp 0x4087fd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408841
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffbc
push 0x40ffb4
push str.FlsGetValue
push 0x21
call fcn.004086fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408878
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e104]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x408880
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffc4
push 0x40ffbc
push str.FlsSetValue
push 0x22
call fcn.004086fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088ba
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e104]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d63d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d63d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402511
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
neg esi
sbb esi, esi
lea eax, [ebp - 4]
push eax
and esi, 0xfff2ffda
add esi, 0xf003f
push esi
push ebx
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionExplorerBitBucketVolume
push edi
push 0x80000001
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 5
jne 0x40257f
push edi
push 0x80000002
call fcn.00404c42
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4026d1
lea eax, [ebp - 4]
push eax
push esi
push ebx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4026be
cmp dword [ebp - 4], ebx
je 0x4026be
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4026be
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x218]
dec eax
push ecx
mov dword [ebp - 0xc], eax
push eax
jmp 0x4026a1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x26
jne 0x40268c
cmp word [ebp - 0x218], 0x7b
jne 0x40268c
mov ecx, dword [0x40ba00]
lea eax, [ebp - 0x218]
push eax
call fcn.004039d6
test eax, eax
jne 0x40268c
mov eax, 0x407f88
cmp dword [ebp + 8], ebx
jne 0x40261d
mov eax, 0x407f84
lea ecx, [ebp - 0x218]
push ecx
push edi
push eax
push str.Regkey__sdelete_HKCU_s_s_n
call fcn.0040335e
add esp, 0x10
cmp dword [ebp + 8], ebx
je 0x40263d
inc dword [ebp - 8]
jmp 0x40268c
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x420]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebx
jne 0x40267f
push str._OK_n
call fcn.0040335e
inc dword [ebp - 8]
jmp 0x40268b
push eax
push str._failed__err_u__n
call fcn.0040335e
pop ecx
pop ecx
dec dword [ebp - 0xc]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x100
call esi
test eax, eax
je 0x4025d4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x4026d1
push dword [ebp - 0x14]
push edi
push 0x80000002
call fcn.00404bf1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4026db
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
neg eax
sbb eax, eax
and eax, 0xfff2ffda
add eax, 0xf003f
push eax
push esi
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionEMDMgmt
push edi
mov ebx, 0x80000002
push ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402852
cmp dword [ebp - 4], esi
je 0x402852
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x402852
mov eax, dword [ebp - 0x14]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x214]
dec eax
push ecx
mov dword [ebp - 0xc], eax
push eax
jmp 0x402831
push str.____
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
lea ecx, [ebp - 0x214]
cmp eax, ecx
mov eax, ecx
push eax
jne 0x402793
mov ecx, dword [0x40ba04]
call fcn.00401c10
jmp 0x40279e
mov ecx, dword [0x40ba00]
call fcn.00403a74
test eax, eax
jne 0x40281c
mov eax, 0x407f88
cmp dword [ebp + 8], esi
jne 0x4027b1
mov eax, 0x407f84
lea ecx, [ebp - 0x214]
push ecx
push edi
push eax
push str.Regkey__sdelete_HKCU_s_s_n
call fcn.0040335e
add esp, 0x10
cmp dword [ebp + 8], esi
je 0x4027d1
inc dword [ebp - 8]
jmp 0x40281c
lea eax, [ebp - 0x214]
push eax
push edi
lea eax, [ebp - 0x41c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jne 0x40280f
push str._OK_n
call fcn.0040335e
inc dword [ebp - 8]
jmp 0x40281b
push eax
push str._failed__err_u__n
call fcn.0040335e
pop ecx
pop ecx
dec dword [ebp - 0xc]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x402767
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40289f
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x294
push esi
push edi
lea eax, [ebp + 0x70]
push eax
mov eax, dword [ebp + 0x7c]
xor esi, esi
neg eax
sbb eax, eax
and eax, 0xfff2ffda
add eax, 0xf003f
push eax
push esi
mov edi, str.SYSTEMCurrentControlSetEnum
push edi
push 0x80000002
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x70], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x402a22
cmp dword [ebp + 0x70], esi
je 0x402a22
push esi
push esi
push esi
push esi
lea eax, [ebp + 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x70]
mov dword [ebp + 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x402a17
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebx
mov ebx, dword [ebp + 0x64]
mov dword [ebp + 0x60], esi
jmp 0x4029ee
push str.NextParentID.
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
lea ecx, [ebp - 0x220]
cmp eax, ecx
jne 0x4029ee
xor eax, eax
push 0x7e
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x1e]
push esi
push eax
call fcn.0040348e
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0040285c
test eax, eax
je 0x4029ee
mov ecx, dword [0x40ba04]
lea eax, [ebp - 0x20]
push eax
call fcn.00401c66
test eax, eax
je 0x40298a
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4029ee
mov eax, 0x407f88
cmp dword [ebp + 0x7c], esi
jne 0x402999
mov eax, 0x407f84
lea ecx, [ebp - 0x220]
push ecx
push eax
push str.Regvalue__sdelete_HKLMSYSTEMCurrentControlSetEnum_s_n
call fcn.0040335e
add esp, 0xc
cmp dword [ebp + 0x7c], esi
je 0x4029b8
inc dword [ebp + 0x6c]
jmp 0x4029ee
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4029db
push str._OK_n
call fcn.0040335e
inc dword [ebp + 0x6c]
jmp 0x4029ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._failed__err_u__n
call fcn.0040335e
pop ecx
pop ecx
push esi
push esi
lea eax, [ebp + 0x60]
push eax
push esi
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x220]
push eax
dec ebx
push ebx
push dword [ebp + 0x70]
mov dword [ebp + 0x68], 0x100
call edi
test eax, eax
je 0x402921
pop ebx
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402a37
push edi
push eax
call fcn.00405680
push eax
push str.Error__S_accessing__s_n
call fcn.0040335e
add esp, 0xc
mov eax, dword [ebp + 0x6c]
pop edi
pop esi
add ebp, 0x74
leave
ret 4
Function at 0x402a43
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
neg esi
sbb esi, esi
lea ecx, [ebp - 4]
push ecx
and esi, 0xfff2ffda
add esi, 0xf003f
push esi
push eax
mov edi, str.SYSTEMCurrentControlSetControlUsbFlags
push edi
mov ebx, 0x80000002
push ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 5
jne 0x402aab
push edi
push ebx
call fcn.00404c42
mov dword [ebp - 0x14], eax
test eax, eax
je 0x402bfb
lea eax, [ebp - 4]
push eax
push esi
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
cmp eax, esi
jne 0x402bec
cmp dword [ebp - 4], esi
je 0x402bec
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x402bec
mov eax, dword [ebp - 0x18]
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x218]
dec eax
push ecx
mov dword [ebp - 0xc], eax
push eax
jmp 0x402bcb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0xc
jne 0x402bb6
lea eax, [ebp - 0x218]
push eax
call fcn.004054b3
test eax, eax
je 0x402bb6
mov ecx, dword [0x40ba04]
lea eax, [ebp - 0x218]
push eax
call fcn.00401ca8
test eax, eax
jne 0x402bb6
mov eax, 0x407f88
cmp dword [ebp + 8], esi
jne 0x402b4b
mov eax, 0x407f84
lea ecx, [ebp - 0x218]
push ecx
push edi
push eax
push str.Regkey__sdelete_HKLM_s_s_n
call fcn.0040335e
add esp, 0x10
cmp dword [ebp + 8], esi
je 0x402b6b
inc dword [ebp - 8]
jmp 0x402bb6
lea eax, [ebp - 0x218]
push eax
push edi
lea eax, [ebp - 0x420]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jne 0x402ba9
push str._OK_n
call fcn.0040335e
inc dword [ebp - 8]
jmp 0x402bb5
push eax
push str._failed__err_u__n
call fcn.0040335e
pop ecx
pop ecx
dec dword [ebp - 0xc]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [ebp - 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x402afc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], esi
je 0x402bfb
push dword [ebp - 0x14]
push edi
push ebx
call fcn.00404bf1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4