joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4208c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4a16f0]
push edi
mov dword [ebp - 0x21c], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x218]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.explorer.exe
lea ecx, [ebp - 4]
call fcn.004070c2
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00408ead
lea ecx, [ebp - 4]
call fcn.00401802
push 0x45b008
push 0x45affc
lea ecx, [ebp - 8]
call fcn.00401c3b
push 0x45bb28
lea ecx, [ebp - 4]
call fcn.0040182e
push str.__select__
lea ecx, [ebp - 0x10]
call fcn.0040182e
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004019f3
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004019f3
lea ecx, [ebp - 0x14]
call fcn.00401802
lea ecx, [ebp - 0x10]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.00401802
push 3
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 8]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0xc]
call fcn.00401802
lea ecx, [ebp - 8]
call fcn.00401802
lea ecx, [ebp + 8]
call fcn.00401802
pop edi
leave
ret

Function at 0x420b71
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
xor ebx, ebx
mov eax, 0x4a594c
cmp esi, edi
je 0x420b8c
cmp dword [eax - 0x14], esi
je 0x420bb7
jmp 0x420b94
mov ecx, dword [eax]
cmp ecx, dword [esp + 0x10]
je 0x420ba9
add eax, 0x5c8
inc ebx
cmp eax, 0x4c9b6c
jl 0x420b81
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
mov eax, ebx
imul eax, eax, 0x5c8
mov esi, dword [eax + 0x4a5938]
cmp esi, edi
je 0x420bf8
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x420bf8
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x420bf8
push 1
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, ebx
imul ecx, ecx, 0x5c8
add ecx, 0x4a5730
call fcn.00437327
push 1
pop eax
jmp 0x420ba3
Function at 0x429228
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ca400]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
push edi
jl 0x42924f
mov dword [ebp - 8], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x429261
mov ecx, dword [0x4581d0]
push eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
call fcn.00401988
cmp dword [ebp + 0x10], ebx
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x42926c
dec esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push eax
call fcn.00408ead
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push ecx
lea ecx, [ebp + 0x10]
push ecx
push ebx
push 2
push ebx
push ebx
push ebx
push eax
push esi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x4292ab
lea ecx, [ebp - 4]
call fcn.0040df4e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
call fcn.00401802
mov esi, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
lea eax, [eax + eax + 2]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 1
push ebx
push str.DisplayName
push dword [ebp - 4]
call esi
mov eax, dword [ebp + 8]
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.UninstallString
push dword [ebp - 4]
call esi
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push ebx
push str.EstimatedSize
push dword [ebp - 4]
mov dword [ebp + 0x10], 0xc8
call esi
mov eax, dword [ebp + 0xc]
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.DisplayIcon
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push eax
call fcn.0043581e
mov eax, dword [ebp - 0xc]
pop ecx
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.URLInfoAbout
push dword [ebp - 4]
call esi
lea eax, [ebp - 0xc]
push str._History
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00401a95
mov eax, dword [eax]
push eax
mov dword [ebp + 0x10], eax
call edi
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.URLUpdateInfo
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x14]
call fcn.00401802
push 0x45c410
lea ecx, [ebp - 4]
push dword [0x4ca400]
call fcn.00420554
lea eax, [ebp - 0x10]
push eax
call fcn.0043581e
mov dword [esp], str.Publisher
push dword [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.00420554
lea ecx, [ebp - 4]
call fcn.0040df4e
lea ecx, [ebp - 0x10]
call fcn.00401802
lea ecx, [ebp - 0xc]
call fcn.00401802
lea ecx, [ebp - 8]
call fcn.00401802
lea ecx, [ebp - 4]
call fcn.0040df4e
lea ecx, [ebp + 8]
call fcn.00401802
lea ecx, [ebp + 0xc]
call fcn.00401802
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ad020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a08
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4039e8
xor eax, eax
push ebp
push 0x4039e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a24
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4039e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4ad020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ad020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404824
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b004c], 0
je 0x404885
cmp word [0x4b0220], 0xd7b2
jne 0x40484d
cmp dword [0x4b0228], 0
jbe 0x40484d
mov eax, 0x4b021c
call dword [0x4b0238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4048ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ad02c], 0
jne 0x4048a1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4063f4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406477
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406624
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406477
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406500
xor eax, eax
push ebp
push 0x4064f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406230
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064de
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406660
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4064de
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406500
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40661a
cmp byte [ebp - 0xd], 0
jne 0x406547
cmp byte [ebp - 0x12], 0
je 0x40661a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406560
dec ebx
cmp byte [ebx], 0x2e
je 0x40656f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40655f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40661a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4065ac
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40661a
cmp byte [ebp - 0xd], 0
je 0x40661a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40661a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409328
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40937a
test eax, edx
je 0x40937d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40933d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409363
add ecx, 4
js 0x409353
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409360
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409389
test edx, edx
jne 0x409330
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e34
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e3d
test al, 0x10
je 0x409e41
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404e34
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409e61
test al, 0x10
jne 0x409e65
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40cb2c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cb65
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a94
jmp 0x40cb6e
mov eax, ebx
mov edx, esi
call fcn.004049f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cb78
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40cb9a
movzx eax, byte [esp]
jmp 0x40cb9c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d22c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d0a4
mov eax, dword [0x4afb60]
cmp byte [eax], 0
je 0x40d2a8
mov eax, dword [0x4af8f8]
call fcn.00403314
call fcn.00403098
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a024
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d2f0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d2de
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4af898]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b27f8]
call fcn.004061d8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40dba8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40dc7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a3c
lea eax, [ebp - 4]
call fcn.00404e8c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e34
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40dc68
mov eax, ebx
call fcn.00402f3c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dc61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e34
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40dc4b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40dc90
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40dc4b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc68
mov eax, dword [ebp - 0x10]
call fcn.00402f58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dc85
lea eax, [ebp - 4]
call fcn.004049a4
ret
Function at 0x4223c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b49ec
cmp dword [edi], 0
jne 0x422440
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4b49e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4adc0c
mov ecx, 2
call fcn.0040312c
mov edx, 0x42239c
lea eax, [esi + 5]
call fcn.004223bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004223bc
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 0x422415
mov dword [0x4b49e8], 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 0x424ddc
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 - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x424f46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a3c
mov eax, dword [ebp - 4]
call fcn.00424898
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x424e2e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404edc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004251c8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x424f03
xor eax, eax
push ebp
push 0x424efc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00424a08
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00424f54
test al, al
je 0x424eda
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404a94
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x424eda
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e34
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x424ed4
mov eax, dword [ebp - 8]
call fcn.00404e34
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404b9c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00424ddc
dec ebx
cmp ebx, 0xffffffff
jne 0x424e8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424f03
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00424a08
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00404e34
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004249f4
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 0x424f4d
lea eax, [ebp - 0x3c]
call fcn.004049a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049c8
ret
Function at 0x424f03
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x424f46
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404a3c
mov eax, dword [ebp - 4]
call fcn.00424898
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x424e2e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00404edc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004251c8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x424f03
xor eax, eax
push ebp
push 0x424efc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00424a08
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00424f54
test al, al
je 0x424eda
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404a94
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x424eda
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e34
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x424ed4
mov eax, dword [ebp - 8]
call fcn.00404e34
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404b9c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00424ddc
dec ebx
cmp ebx, 0xffffffff
jne 0x424e8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424f03
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00424a08
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00404e34
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004249f4
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 0x424f4d
lea eax, [ebp - 0x3c]
call fcn.004049a4
lea eax, [ebp - 8]
mov edx, 2
call fcn.004049c8
ret

Function at 0x424f54
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.00403488
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 [0x4afcc8]
cmp byte [edx + 0xc], 0
je 0x424fb8
mov edx, dword [0x4afcb8]
cmp dword [edx], 2
jne 0x424fb8
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 0x4250dc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004248ac
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404e34
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42513b
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4afa4c]
mov dl, 1
mov eax, dword [0x424738]
call fcn.0040d3f8
call fcn.004043ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x425144
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404e34
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42519c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4afcd8]
mov dl, 1
mov eax, dword [0x424738]
call fcn.0040d3f8
call fcn.004043ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004248dc
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4253f8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x42550f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.00424a08
xor eax, eax
push ebp
push 0x4254ea
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00424f54
test al, al
je 0x4254ce
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004252d8
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404a94
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4254ce
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e34
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x4254ca
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e34
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00404b9c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004252d8
pop ecx
inc edi
dec ebx
jne 0x42547f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4254f1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.00424a08
ret