joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46aca4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov eax, edi
call fcn.00407c30
call fcn.0046c2bc
test al, al
jne 0x46aec8
mov eax, dword [ebx + 0xc]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46aec8
xor eax, eax
push ebp
push 0x46aebe
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x46aead
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x48]
inc eax
call fcn.004045e8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
mov byte [eax + edx], 0
cmp dword [ebp - 8], 0
jne 0x46ad35
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aec8
xor eax, eax
push ebp
push 0x46ae8f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push 0x20498
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualQueryEx
test eax, eax
jne 0x46ad72
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aec8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
jne 0x46ada6
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aec8
mov ebx, 0x20498
sub ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
lea esi, [eax + ebx]
mov eax, esi
call fcn.0040814c
inc eax
add eax, eax
add ebx, eax
cmp ebx, 0x1002
jl 0x46ade0
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aec8
inc ebx
mov eax, ebx
and eax, 0x80000003
jns 0x46adee
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
jne 0x46addf
cmp ebx, 0x1002
jl 0x46ae11
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aec8
mov eax, dword [ebp - 8]
lea esi, [eax + ebx]
mov eax, esi
call fcn.0040814c
inc eax
add eax, eax
add ebx, eax
cmp ebx, 0x1002
jl 0x46ae42
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aec8
mov eax, dword [ebp - 8]
cmp byte [eax + ebx], 0
jne 0x46ae4e
add ebx, 2
cmp ebx, 0x1002
jl 0x46ae6a
call fcn.0040741c
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46aec8
mov eax, dword [ebp - 8]
lea esi, [eax + ebx]
mov eax, edi
mov edx, esi
call fcn.00408908
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ae96
mov eax, dword [ebp - 8]
call fcn.00404604
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46bb84
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov edi, 0x5330d4
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x46bcfd
push dword fs:[edx]
mov dword fs:[edx], esp
test esi, esi
jne 0x46bbb9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bd07
call fcn.00469354
push esi
push 0
push 0x100001
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46bbe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bd07
xor edx, edx
push ebp
push 0x46bcec
push dword fs:[edx]
mov dword fs:[edx], esp
test bl, bl
je 0x46bcba
push 0x64
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_WaitForInputIdle
push 0
mov eax, edi
mov ecx, 1
mov edx, dword [0x46bae4]
call fcn.00409cc0
add esp, 4
push esi
push 0x46bb14
call sub.user32.dll_EnumWindows
mov dword [ebp - 0xc], 0x79
mov eax, dword [edi]
call fcn.00409b0c
test eax, eax
je 0x46bcba
mov eax, dword [edi]
call fcn.00409b0c
mov esi, eax
dec esi
test esi, esi
jl 0x46bc82
inc esi
xor ebx, ebx
push 0
push 0
push 0x10
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 0
push 0x11
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
push 0
push 1
push 0x16
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
push eax
call sub.user32.dll_PostMessageW
inc ebx
dec esi
jne 0x46bc4b
push 0x19
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
push 1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x46bcb1
mov byte [ebp - 1], 1
call fcn.0040741c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46bd07
dec dword [ebp - 0xc]
jne 0x46bc2b
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
sete byte [ebp - 1]
cmp byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bcf3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c15c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov byte [ebp - 1], 6
xor edx, edx
push ebp
push 0x46c23f
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x46c1fa
mov byte [ebp - 1], 4
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x46c1d6
mov byte [ebp - 1], 9
cmp byte [ebp - 6], 1
jne 0x46c1c3
cmp dword [ebp - 0x118], 1
jb 0x46c235
mov byte [ebp - 1], 0xc
jmp 0x46c235
mov byte [ebp - 1], 0xa
cmp dword [ebp - 0x118], 1
jb 0x46c235
mov byte [ebp - 1], 0xb
jmp 0x46c235
cmp eax, 5
jb 0x46c235
mov byte [ebp - 1], 5
cmp dword [ebp - 0x118], 1
jb 0x46c235
cmp byte [ebp - 6], 1
jne 0x46c1f4
mov byte [ebp - 1], 6
jmp 0x46c235
mov byte [ebp - 1], 8
jmp 0x46c235
cmp eax, 1
jne 0x46c231
mov byte [ebp - 1], 0
cmp dword [ebp - 0x11c], 4
jne 0x46c219
cmp dword [ebp - 0x118], 0xa
jne 0x46c219
mov byte [ebp - 1], 1
cmp dword [ebp - 0x11c], 4
jne 0x46c235
cmp dword [ebp - 0x118], 0x5a
jne 0x46c235
mov byte [ebp - 1], 2
jmp 0x46c235
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46c249
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e550
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 0x46e70b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408058
mov eax, dword [ebp - 4]
call fcn.0046dea0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x46e5a2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408d24
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.0046f18c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46e681
xor eax, eax
push ebp
push 0x46e67a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0046e140
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0046e740
test al, al
je 0x46e658
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407db8
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x46e658
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.004088b0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e0a0
test al, al
je 0x46e652
mov eax, dword [ebp - 8]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00408908
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0046e550
dec ebx
cmp ebx, 0xffffffff
jne 0x46e601
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e681
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0046e140
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5330f8], 0
je 0x46e6c1
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.004088b0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0046e12c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e0a0
mov ebx, eax
jmp 0x46e6e8
mov eax, dword [ebp - 4]
call fcn.004088b0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0046e12c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0046e0a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e712
lea eax, [ebp - 0x3c]
call fcn.00407c30
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret
Function at 0x46ea1c
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 - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46ead4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0046e740
test al, al
je 0x46eab6
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407db8
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x46eab6
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
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.004088b0
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00408908
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x46ea6f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46eadb
lea eax, [ebp - 0x2c]
call fcn.00407c30
lea eax, [ebp - 4]
call fcn.00407c30
ret

Function at 0x46f068
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.0046deb8
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.004088b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0046e0a0
test al, al
jne 0x46f0d0
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52ce9c]
mov dl, 1
mov eax, dword [0x46cc8c]
call fcn.004250d4
call fcn.00407328
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46f0dc
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.004088b0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0046e0a0
test al, al
jne 0x46f13d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x52d19c]
mov dl, 1
mov eax, dword [0x46cc8c]
call fcn.004250d4
call fcn.00407328
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046dee8
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 0x46f73c
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 0x46f864
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.0046e140
xor eax, eax
push ebp
push 0x46f83f
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.0046e740
test al, al
je 0x46f823
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0046f61c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407db8
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x46f823
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.004088b0
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046e0a0
test al, al
je 0x46f81f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00408908
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0046f61c
pop ecx
inc edi
dec ebx
jne 0x46f7c7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f846
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0046e140
ret
Function at 0x46f874
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46fac2
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 - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0046e140
xor eax, eax
push ebp
push 0x46fa98
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046e740
test al, al
je 0x46fa7c
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407db8
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x46fa7c
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
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 - 4]
call fcn.004088b0
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046e0a0
test al, al
je 0x46fa70
mov eax, dword [ebp - 4]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00408908
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046f18c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x46fa70
xor eax, eax
push ebp
push 0x46fa69
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 - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0046e140
xor eax, eax
push ebp
push 0x46fa4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00408908
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046e144
mov eax, dword [ebp - 4]
call fcn.004088b0
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00408908
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0046f18c
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x46fa28
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0046f73c
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0046f874
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fa2f
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x46f8ff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fa9f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0046e140
ret
Function at 0x46fc68
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00407d14
mov eax, dword [ebp - 8]
call fcn.00407d14
xor eax, eax
push ebp
push 0x46fd7b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [0x52cbdc]
cmp byte [eax], 0
je 0x46fcce
call fcn.0040bce8
cmp byte [eax + 0x19], 0
je 0x46fcbb
mov ebx, pe_nt_image_headers32
jmp 0x46fcce
call fcn.0040bce8
cmp byte [eax + 0x18], 0
je 0x46fcce
mov ebx, 0x200
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
or ebx, 0x20006
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004088b0
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x46fd60
cmp dword [ebp - 8], 0
jne 0x46fd29
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
jmp 0x46fd51
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004088b0
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fd82
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret
Function at 0x46fd90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00407d14
mov eax, dword [ebp - 8]
call fcn.00407d14
xor eax, eax
push ebp
push 0x46fed0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [edi], eax
xor ebx, ebx
mov eax, dword [0x52cbdc]
cmp byte [eax], 0
je 0x46fe06
call fcn.0040bce8
cmp byte [eax + 0x19], 0
je 0x46fdf3
mov ebx, pe_nt_image_headers32
jmp 0x46fe06
call fcn.0040bce8
cmp byte [eax + 0x18], 0
je 0x46fe06
mov ebx, 0x200
lea eax, [ebp - 0x18]
push eax
or ebx, 0x20019
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.004088b0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x46feb5
cmp dword [ebp - 8], 0
jne 0x46fe37
xor ebx, ebx
jmp 0x46fe41
mov eax, dword [ebp - 8]
call fcn.004088b0
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x46feac
mov eax, dword [ebp - 0x20]
call fcn.004045e8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x46fea4
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x46fe9a
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x46feac
mov eax, dword [ebp - 0x1c]
call fcn.00404604
jmp 0x46feac
mov eax, dword [ebp - 0x1c]
call fcn.00404604
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fed7
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c90
ret

Function at 0x4701b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], ecx
mov ebp, edx
mov edi, eax
xor ebx, ebx
xor esi, esi
mov eax, dword [0x52cbdc]
cmp byte [eax], 0
je 0x4701f8
call fcn.0040bce8
cmp byte [eax + 0x19], 0
je 0x4701e5
mov esi, pe_nt_image_headers32
jmp 0x4701f8
call fcn.0040bce8
cmp byte [eax + 0x18], 0
je 0x4701f8
mov esi, 0x200
lea eax, [esp + 4]
push eax
or esi, 0x20019
push esi
push 0
mov eax, ebp
call fcn.004088b0
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x470243
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x10]
call fcn.004088b0
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47024c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [edi], eax
xor esi, esi
mov eax, dword [0x52cbdc]
cmp byte [eax], 0
je 0x47029b
call fcn.0040bce8
cmp byte [eax + 0x19], 0
je 0x470288
mov esi, pe_nt_image_headers32
jmp 0x47029b
call fcn.0040bce8
cmp byte [eax + 0x18], 0
je 0x47029b
mov esi, 0x200
lea eax, [ebp - 0x10]
push eax
or esi, 0x20019
push esi
push 0
mov eax, dword [ebp - 8]
call fcn.004088b0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x470313
cmp dword [ebp - 0xc], 0
jne 0x4702e0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
jmp 0x470301
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.004088b0
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
test bl, bl
je 0x47030a
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x470390
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov edi, edx
mov esi, eax
mov byte [esp], 0
xor ebx, ebx
mov eax, dword [0x52cbdc]
cmp byte [eax], 0
je 0x4703d5
call fcn.0040bce8
cmp byte [eax + 0x19], 0
je 0x4703c2
mov ebx, pe_nt_image_headers32
jmp 0x4703d5
call fcn.0040bce8
cmp byte [eax + 0x18], 0
je 0x4703d5
mov ebx, 0x200
lea eax, [esp + 4]
push eax
or ebx, 0x20006
push ebx
push 0
mov eax, edi
call fcn.004088b0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x47041f
mov eax, ebp
call fcn.004088b0
push eax
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete byte [esp]
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
movzx eax, byte [esp]
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret