joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f14c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x584a0c
cmp dword [edi], 0
jne 0x44f1c8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x584a08]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x57b168
mov ecx, 2
call fcn.00402bb8
mov edx, 0x44f124
lea eax, [esi + 5]
call fcn.0044f144
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044f144
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x44f19d
mov dword [0x584a08], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44f2e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f334]
test si, 4
je 0x44f2f8
or bl, 1
test si, 8
je 0x44f302
or bl, 4
test si, 1
je 0x44f30c
or bl, 8
test si, 2
je 0x44f316
or bl, 0x10
test si, 0x10
je 0x44f320
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f32f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f338
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f370]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f351
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f360
or bl, 4
test esi, 0x20000000
je 0x44f36b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x455958
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45596a
add esp, 0xfffffff0
call fcn.004036b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041beb4
mov eax, ebx
call fcn.00455ca4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41326c]
call fcn.00403344
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x41326c]
call fcn.00403344
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x41326c]
call fcn.00403344
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x41326c]
call fcn.00403344
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41326c]
call fcn.00403344
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x4523b0
push eax
push 0
push 0
mov eax, dword [0x58159c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d3bc]
call fcn.0041e87c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41d3bc]
call fcn.0041e87c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41d3bc]
call fcn.0041e87c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.00456114
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455fe8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455fe8
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455fe8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455a79
call fcn.0040370c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455dcc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455f77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x455f58
mov dl, 1
mov eax, dword [0x413798]
call fcn.00403344
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.004040f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455f47
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00442ae0
test al, al
je 0x455f3a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455f88
lea eax, [ebp - 0x254]
call fcn.0040d554
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x455f3a
xor eax, eax
push ebp
push 0x455f33
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455fc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x455f1c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404338
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x455f1c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f3a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455e3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004171b0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f7e
lea eax, [ebp - 0x260]
call fcn.004040f8
ret

Function at 0x4568d4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5849fc]
cmp byte [eax + 0x95], 0
jne 0x456945
cmp dword [0x584a18], 0
jne 0x456906
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x456890
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x584a18], eax
cmp dword [0x584a14], 0
jne 0x456921
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x584a14], eax
cmp dword [0x584a1c], 0
jne 0x456945
push esp
push 0
push 0
push 0x456834
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x584a1c], eax
pop edx
ret
Function at 0x456a3c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456a53
add esp, 0xfffffff0
call fcn.004036b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041beb4
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x41326c]
call fcn.00403344
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x41326c]
call fcn.00403344
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x41dcd4]
call fcn.00425da4
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x456bc8
mov eax, dword [0x581424]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00426174
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4584a8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x581424]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ff1c
test eax, eax
je 0x456b46
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040cecc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ff44
test eax, eax
je 0x456b5a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404338
mov eax, dword [0x581228]
cmp byte [eax], 0
jne 0x456b8b
mov eax, ebx
call fcn.00456cb4
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456bbd
call fcn.0040370c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456f24
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5849fc]
cmp dword [eax + 0x24], 0
je 0x456fc7
cmp dword [ebx + 0x84], 0
jne 0x456fc1
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456eb4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x456fc1
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456f8a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456fc1
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.00414e24
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456f99
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4579d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x457a09
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041e0
jmp 0x457a13
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.0040414c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45881c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x458854
mov eax, esi
call fcn.0043e74c
test al, al
je 0x458854
mov eax, dword [ebx + 0x74]
call fcn.0043e450
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458854
push 0
mov eax, dword [ebx + 0x74]
call fcn.0043e450
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4640b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404568
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4640d1
test al, 0x10
jne 0x4640d5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x467a04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x467a2e
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 8]
test eax, eax
je 0x467a39
xor edx, edx
mov dword [eax], edx
xor eax, eax
push ebp
push 0x467b2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], 0x3a
mov byte [ebp - 0xb], 0x5c
mov byte [ebp - 0xa], 0
mov eax, dword [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.004046d8
mov eax, dword [ebp - 8]
mov edx, pe_nt_image_headers32
call fcn.004046d8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004043a4
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404568
push eax
mov eax, dword [ebp + 8]
push eax
push edi
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004043a4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404568
push eax
lea eax, [ebp - 0xd]
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
je 0x467af1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404568
lea edx, [ebp - 0x14]
call fcn.0040d074
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0040414c
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404568
lea edx, [ebp - 0x18]
call fcn.0040d074
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0040414c
jmp 0x467b10
mov eax, dword [ebp - 4]
call fcn.004040f8
mov eax, dword [ebp - 8]
call fcn.004040f8
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [edi], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467b32
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040411c
ret
Function at 0x467b94
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov eax, dword [0x581898]
cmp dword [eax], 2
jne 0x467d49
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push 8
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x467bf1
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3f0
jne 0x467bf1
lea eax, [ebp - 8]
push eax
push 8
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x467d4d
xor eax, eax
push ebp
push 0x467d42
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x400
call fcn.004029f4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x467d24
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x400
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
cmp dword [ebp - 0x10], 0x400
jbe 0x467c81
mov eax, dword [ebp - 0xc]
call fcn.00402a0c
mov eax, dword [ebp - 0x10]
call fcn.004029f4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 2
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x467d0e
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x57b458]
push eax
mov eax, dword [0x57b454]
push eax
push 2
push 0x57b44c
call sub.advapi32.dll_AllocateAndInitializeSid
xor eax, eax
push ebp
push 0x467d07
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor ebx, ebx
jmp 0x467ce3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x467ce2
mov byte [ebp - 1], 1
inc ebx
cmp byte [ebp - 1], 0
jne 0x467cf0
mov eax, dword [ebp - 0xc]
cmp ebx, dword [eax]
jl 0x467cc9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467d0e
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_FreeSid
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467d2b
mov eax, dword [ebp - 0xc]
call fcn.00402a0c
ret
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467ef8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x467f7f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
test eax, eax
je 0x467f75
xor edx, edx
push ebp
push 0x467f6e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov ecx, ebx
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 4]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467f75
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x467f97
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x468060
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
xor edx, edx
mov dword [ebp - 4], edx
push eax
call sub.user32.dll_GetClipboardData
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4680d4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov ebx, eax
test ebx, ebx
je 0x4680d4
xor eax, eax
push ebp
push 0x4680cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalSize
mov dword [ebp - 4], eax
mov edx, ebx
mov ecx, dword [ebp - 4]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4680d4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x46acf4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ae5d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404190
mov eax, dword [ebp - 0x10]
call fcn.0046a974
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x46ad46
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004045ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0046b3ac
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46ae1b
xor eax, eax
push ebp
push 0x46ae14
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0046aae4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0046ae8c
test al, al
je 0x46adf2
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.004041e0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x46adf2
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00404568
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x46adec
mov eax, dword [ebp - 0x14]
call fcn.00404568
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004042c0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0046acf4
dec ebx
cmp ebx, 0xffffffff
jne 0x46ada5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ae1b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0046aae4
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00404568
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0046aad0
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ae64
lea eax, [ebp - 0x3c]
call fcn.004040f8
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040411c
ret

Function at 0x46ae8c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00402f3c
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x5818ac]
cmp byte [edx + 8], 0
je 0x46aef0
mov edx, dword [0x581898]
cmp dword [edx], 2
jne 0x46aef0
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x46aef4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46afac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046ae8c
test al, al
je 0x46af8e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004041e0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x46af8e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404568
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404568
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004042c0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x46af47
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46afb3
lea eax, [ebp - 0x2c]
call fcn.004040f8
lea eax, [ebp - 0xc]
call fcn.004040f8
ret

Function at 0x46afbc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46b074
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046ae8c
test al, al
je 0x46b056
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004041e0
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x46b056
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404568
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00404568
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.004042c0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec ebx
jne 0x46b00f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b07b
lea eax, [ebp - 0x2c]
call fcn.004040f8
lea eax, [ebp - 0xc]
call fcn.004040f8
ret