joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e40
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408048
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x408040]
sub esp, 4
test ebx, ebx
je 0x401e8b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401e84
test esi, esi
je 0x401e84
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401e60
mov dword [esp], 0x408048
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402070
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4020c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x402198
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4020fe
cmp eax, 4
jne 0x402120
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40210e
cmp edx, 4
je 0x40210e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402070
Function at 0x402e84
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402edd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402d20
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402d20
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402ec7
inc ebx
jmp 0x402eb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ee4
lea eax, [ebp - 8]
call fcn.00404da0
ret

Function at 0x402eec
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404da0
test esi, esi
jne 0x402f23
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404e90
jmp 0x402f44
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402d20
mov dword [esp], eax
test esi, esi
je 0x402f44
cmp dword [ebx], 0
je 0x402f44
dec esi
jmp 0x402f2b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403d08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403da0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403d80
xor eax, eax
push ebp
push 0x403d79
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 0x403dbc
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 0x403d80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b98
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c04c], 0
je 0x404bf9
cmp word [0x46c220], 0xd7b2
jne 0x404bc1
cmp dword [0x46c228], 0
jbe 0x404bc1
mov eax, 0x46c21c
call dword [0x46c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46a090
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 0x404c20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46a030], 0
jne 0x404c15
push 0
push 0x46a088
push 0x46a090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404d54
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402ae0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46c04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d1c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406f8c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406ff2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405010
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403758
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406fdc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406ff9
lea eax, [ebp - 0x10]
call fcn.00404da0
ret

Function at 0x409b04
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405260
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x409b26
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40c954
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 0x40c98d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e90
jmp 0x40c996
mov eax, ebx
mov edx, esi
call fcn.00404df4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c9a0
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 0x40c9c1
mov al, byte [esp]
jmp 0x40c9c3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d058
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cec0
mov eax, dword [0x46b404]
cmp byte [eax], 0
je 0x40d0d4
mov eax, dword [0x46b228]
call fcn.0040337c
call fcn.00402c40
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.0040a02c
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 0x40d11c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d10a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b1e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c668]
call fcn.0040636c
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 0x40e010
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40e074
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405010
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409680
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e07b
lea eax, [ebp - 0xc]
call fcn.00404da0
ret

Function at 0x417bf8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x417c8c
push 0
mov eax, ebx
call fcn.00405260
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x417c67
mov eax, esi
call fcn.00405060
inc eax
push eax
mov eax, esi
call fcn.00405260
push eax
push 1
push 0
mov eax, edi
call fcn.00405260
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x417c82
mov ecx, dword [0x46b244]
mov dl, 1
mov eax, dword [0x41693c]
call fcn.0040d1dc
call fcn.004046cc
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x420fe0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00420e38
dec esi
jne 0x421002
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x429590
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x429770
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b7]
push eax
call sub.user32.dll_GetClientRect
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x4295ed
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b7]
push eax
call sub.user32.dll_BeginPaint
mov ebx, eax
jmp 0x429600
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WindowFromDC
test eax, eax
jne 0x429600
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x429650
mov eax, dword [ebp - 4]
cmp dword [eax + 0xdb], 0
jne 0x429650
push 0
call sub.user32.dll_GetDC
mov esi, eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push esi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 0x10], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
jmp 0x429660
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xdb]
test eax, eax
je 0x429660
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42975f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xdb], edx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x14
mov eax, dword [ebp - 4]
push eax
call fcn.0042bc70
cmp dword [0x46c984], 0
je 0x4296a2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call dword [0x46c984]
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0xf
mov eax, dword [ebp - 4]
push eax
call fcn.0042bc70
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e7]
test eax, eax
je 0x4296c7
xor edx, edx
call fcn.004262f0
push 0
push ebx
call sub.gdi32.dll_SelectClipRgn
cmp ebx, dword [ebp - 0xc]
je 0x4296f3
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x5c]
push eax
push 0
push 0
push ebx
call sub.gdi32.dll_BitBlt
cmp dword [ebp - 8], 0
jne 0x42970c
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b7]
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429766
cmp dword [ebp - 0x10], 0
je 0x42974b
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0xc]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xdb], edx
jmp 0x42975e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x42975e
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xdb], edx
ret
Function at 0x42ed4c
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 0x42eeb5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404e38
mov eax, dword [ebp - 0x10]
call fcn.0042ea78
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42ed9e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00405300
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.0042f2e0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42ee73
xor eax, eax
push ebp
push 0x42ee6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042ec24
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042eee4
test al, al
je 0x42ee4a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404e90
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42ee4a
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.00405260
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x42ee44
mov eax, dword [ebp - 0x14]
call fcn.00405260
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404f98
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042ed4c
dec ebx
cmp ebx, 0xffffffff
jne 0x42edfd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ee73
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042ec24
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00405260
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042ec10
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 0x42eebc
lea eax, [ebp - 0x3c]
call fcn.00404da0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404dc4
ret
Function at 0x42ee73
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 - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42eeb5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00404e38
mov eax, dword [ebp - 0x10]
call fcn.0042ea78
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42ed9e
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00405300
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.0042f2e0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42ee73
xor eax, eax
push ebp
push 0x42ee6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042ec24
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042eee4
test al, al
je 0x42ee4a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404e90
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42ee4a
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.00405260
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x42ee44
mov eax, dword [ebp - 0x14]
call fcn.00405260
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404f98
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042ed4c
dec ebx
cmp ebx, 0xffffffff
jne 0x42edfd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ee73
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042ec24
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00405260
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042ec10
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 0x42eebc
lea eax, [ebp - 0x3c]
call fcn.00404da0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404dc4
ret

Function at 0x42eee4
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.00403608
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 [0x46b518]
cmp byte [edx + 0xc], 0
je 0x42ef48
mov edx, dword [0x46b504]
cmp dword [edx], 2
jne 0x42ef48
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 0x42ef4c
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 0x42f004
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0042eee4
test al, al
je 0x42efe6
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404e90
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x42efe6
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.00405260
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueA
mov eax, dword [ebp - 0xc]
call fcn.00405260
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404f98
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x42ef9f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f00b
lea eax, [ebp - 0x2c]
call fcn.00404da0
lea eax, [ebp - 0xc]
call fcn.00404da0
ret

Function at 0x42f1d0
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
mov al, byte [ebp + 8]
call fcn.0042ea8c
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.00405260
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42f22e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46b31c]
mov dl, 1
mov eax, dword [0x42e984]
call fcn.0040d2ac
call fcn.004046cc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42f238
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.00405260
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42f290
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46b52c]
mov dl, 1
mov eax, dword [0x42e984]
call fcn.0040d2ac
call fcn.004046cc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042eabc
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 0x42f3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42f5af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
call fcn.00404df4
xor edx, edx
push ebp
push 0x42f58f
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x219]
mov edx, esi
call fcn.0040a0c4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x219]
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x42f44e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42f599
xor edx, edx
push ebp
push 0x42f57e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, 0x40000
call fcn.00402ae0
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x42f560
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x40e]
xor ecx, ecx
mov edx, 0x1f5
call fcn.00403608
mov eax, dword [ebp - 0x20]
xor ecx, ecx
mov edx, 0x40000
call fcn.00403608
mov dword [ebp - 0x10], 0x3ffff
mov dword [ebp - 0xc], 0x1f5
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x40e]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumValueA
inc dword [ebp - 0x18]
test eax, eax
je 0x42f4f6
call fcn.00404778
call fcn.00404778
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42f599
xor eax, eax
push ebp
push 0x42f51c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x40e]
call fcn.0040a1f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42f52e
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
call fcn.004051ac
jne 0x42f47c
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
call fcn.0040a1f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f567
mov eax, dword [ebp - 0x20]
call fcn.00402b10
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f5b6
lea eax, [ebp - 0x24]
call fcn.00404da0
ret