joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e91c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406d68
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00449714
test ebx, ebx
jne 0x44e96f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0044e858
mov ebx, eax
test ebx, ebx
je 0x44ea5a
cmp esi, ebx
je 0x44e998
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x44e9ad
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x44e9e5
add eax, 0xffffff5f
sub eax, 2
jb 0x44e9fd
dec eax
sub eax, 2
jb 0x44ea11
dec eax
sub eax, 2
jb 0x44ea07
jmp 0x44ea1b
add eax, 0xfffffdff
sub eax, 2
jb 0x44e9fd
dec eax
sub eax, 2
jb 0x44ea11
dec eax
sub eax, 2
jb 0x44ea07
jmp 0x44ea1b
mov byte [esp + 0x120], 0
jmp 0x44ea23
mov byte [esp + 0x120], 2
jmp 0x44ea23
mov byte [esp + 0x120], 1
jmp 0x44ea23
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0042c700
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0044ae84
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x44ea5c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x456bac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45bb44]
cmp byte [eax + 0xc], 0
je 0x456d19
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456d12
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x460fa8], 0
jne 0x456c00
push 0x456d20
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x456d28
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fa8], eax
cmp dword [0x45b758], 0
jne 0x456cfb
push 0x456d38
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45b758], eax
cmp dword [0x45b758], 0
je 0x456cfb
push 0x456d44
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fac], eax
push 0x456d54
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fb0], eax
push 0x456d68
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fb4], eax
push 0x456d80
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fb8], eax
push 0x456d98
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fbc], eax
push 0x456dac
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fc0], eax
push 0x456dc4
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fc4], eax
push 0x456ddc
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fc8], eax
push 0x456df8
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fcc], eax
push 0x456e04
mov eax, dword [0x45b758]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460fd0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456d19
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4582ec
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x458316
push edi
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x458398
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403880
mov eax, esi
xor ecx, ecx
mov edx, 0x10
call fcn.00403880
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 0x40
test bx, bx
je 0x4583e7
or dword [ebp - 0x20], 1
mov word [ebp - 0x1c], bx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 8]
call fcn.00405360
push eax
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405360
push eax
mov eax, edi
call fcn.00405360
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x458425
mov edi, esi
lea esi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402e4c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404458
test esi, esi
jne 0x402e83
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.00404548
jmp 0x402ea4
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce8
mov dword [esp], eax
test esi, esi
je 0x402ea4
cmp dword [ebx], 0
je 0x402ea4
dec esi
jmp 0x402e8b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403538
Capabilities:
Query or enumerate registry value

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

Function at 0x4042d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47904c], 0
je 0x404335
cmp word [0x479220], 0xd7b2
jne 0x4042fd
cmp dword [0x479228], 0
jbe 0x4042fd
mov eax, 0x47921c
call dword [0x479238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47706c
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 0x40435c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x477030], 0
jne 0x404351
push 0
push 0x477064
push 0x47706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40637c
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 0x4063e2
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.004046c8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030fc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4063cc
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063e9
lea eax, [ebp - 0x10]
call fcn.00404458
ret

Function at 0x40b804
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
add byte [ebp - 0xff73], cl
call dword [ecx + 0x52]

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

Function at 0x40bf08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd70
mov eax, dword [0x478afc]
cmp byte [eax], 0
je 0x40bf84
mov eax, dword [0x4788e8]
call fcn.00402f68
call fcn.00402c14
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.00408f7c
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 0x40bfcc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bfba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x478894]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x479668]
call fcn.004057e8
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 0x40c87c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c952
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044f0
lea eax, [ebp - 8]
call fcn.00404968
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404918
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c93c
mov eax, ebx
call fcn.00402a88
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c935
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 - 8]
call fcn.00404918
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c91f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c964
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c91f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c93c
mov eax, dword [ebp - 0x10]
call fcn.00402ab8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c959
lea eax, [ebp - 8]
call fcn.00404458
ret

Function at 0x40ceb8
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 0x40cf1c
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.004046c8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a5c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf23
lea eax, [ebp - 0xc]
call fcn.00404458
ret

Function at 0x41e800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x479888
cmp dword [edi], 0
jne 0x41e87c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x479884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4773fc
mov ecx, 2
call fcn.00402ca8
mov edx, 0x41e7d8
lea eax, [esi + 5]
call fcn.0041e7f8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e7f8
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 0x41e851
mov dword [0x479884], 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 0x41fdd0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41fdd6
ret
Function at 0x422254
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4222a5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42228c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42227c
jmp 0x4222a5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x42228d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c424
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 0x42c58d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004044f0
mov eax, dword [ebp - 0x10]
call fcn.0042c0b0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42c476
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004049b8
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.0042c758
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42c54b
xor eax, eax
push ebp
push 0x42c544
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042c220
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042c59c
test al, al
je 0x42c522
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404548
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42c522
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.00404918
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x42c51c
mov eax, dword [ebp - 0x14]
call fcn.00404918
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404650
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042c424
dec ebx
cmp ebx, 0xffffffff
jne 0x42c4d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c54b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042c220
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404918
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042c20c
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 0x42c594
lea eax, [ebp - 0x3c]
call fcn.00404458
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040447c
ret
Function at 0x42c54b
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 0x42c58d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004044f0
mov eax, dword [ebp - 0x10]
call fcn.0042c0b0
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x42c476
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.004049b8
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.0042c758
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42c54b
xor eax, eax
push ebp
push 0x42c544
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0042c220
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0042c59c
test al, al
je 0x42c522
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00404548
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42c522
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.00404918
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x42c51c
mov eax, dword [ebp - 0x14]
call fcn.00404918
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404650
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0042c424
dec ebx
cmp ebx, 0xffffffff
jne 0x42c4d5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c54b
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0042c220
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 0x10]
call fcn.00404918
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0042c20c
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 0x42c594
lea eax, [ebp - 0x3c]
call fcn.00404458
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040447c
ret

Function at 0x42c59c
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.004030dc
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 [0x478c20]
cmp byte [edx + 0xc], 0
je 0x42c600
mov edx, dword [0x478c14]
cmp dword [edx], 2
jne 0x42c600
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 0x42c67c
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.0042c0c4
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.00404918
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42c6da
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x478a10]
mov dl, 1
mov eax, dword [0x42bf7c]
call fcn.0040c0d4
call fcn.00403e6c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42c6e4
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.00404918
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42c73c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x478c2c]
mov dl, 1
mov eax, dword [0x42bf7c]
call fcn.0040c0d4
call fcn.00403e6c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042c0f4
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 0x42c97c
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 - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x42ca93
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.0042c220
xor eax, eax
push ebp
push 0x42ca6e
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.0042c59c
test al, al
je 0x42ca52
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0042c85c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.00404548
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x42ca52
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
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.00404918
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
test eax, eax
jne 0x42ca4e
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404918
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00404650
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0042c85c
pop ecx
inc edi
dec ebx
jne 0x42ca03
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ca75
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0042c220
ret