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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47cc5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00475330
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x552630], eax
mov eax, dword [ebp - 0xc]
mov dword [0x552634], eax
mov eax, dword [ebp - 0x24]
mov dword [0x552638], eax
mov eax, dword [0x556ea8]
cmp dword [eax], 2
sete byte [0x551dd5]
push 0x47cc68
call sub.kernel32.dll_GetModuleHandleW_1
lea edx, [ebp - 4]
call fcn.00472954
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x551dd5], 0
jne 0x47caeb
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0047300c
test al, al
je 0x47caeb
mov eax, dword [ebp - 0x4c]
mov dword [0x5df8ac], eax
jmp 0x47caf2
xor eax, eax
mov dword [0x5df8ac], eax
call fcn.004793a0
and eax, 0x7f
cmp eax, 0x14
ja case.0x47cb03.0
jmp dword [eax*4 + 0x47cb0a]
mov byte [0x551dd0], 1
jmp case.0x47cb03.0
mov byte [0x551dd1], 1
jmp case.0x47cb03.0
mov byte [0x551dd2], 1
jmp case.0x47cb03.0
mov byte [0x551dd3], 1
jmp case.0x47cb03.0
mov byte [0x551dd4], 1
jmp case.0x47cb03.0
mov byte [0x551dd6], 1
mov byte [0x551dd7], 1
jmp case.0x47cb03.0
mov byte [0x551dd6], 1
mov byte [0x551dd8], 1
jmp case.0x47cb03.0
mov byte [0x551dd6], 1
mov byte [0x551dd8], 1
mov byte [0x551dd9], 1
jmp case.0x47cb03.0
mov byte [0x551dda], 1
jmp case.0x47cb03.0
mov byte [0x551ddb], 1
jmp case.0x47cb03.0
mov byte [0x551ddc], 1
jmp case.0x47cb03.0
mov byte [0x551ddd], 1
jmp case.0x47cb03.0
mov byte [0x551dde], 1
jmp case.0x47cb03.0
mov byte [0x551ddf], 1
jmp case.0x47cb03.0
mov byte [0x551de0], 1
jmp case.0x47cb03.0
mov byte [0x551de1], 1
jmp case.0x47cb03.0
mov byte [0x551de2], 1
jmp case.0x47cb03.0
mov byte [0x551de3], 1
jmp case.0x47cb03.0
mov byte [0x551de4], 1
jmp case.0x47cb03.0
mov byte [0x551de5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cc63
lea eax, [ebp - 4]
call fcn.00406ffc
ret
Function at 0x48b674
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48b79f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x48b7ac
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x48b727
push 0x48b618
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00425324
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x48b702
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00472954
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00472850
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, 0x48b7d0
call fcn.00407db0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je 0x48b727
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0xa0]
push 0xa
push 0x48b7dc
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48b784
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48b784
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LockResource
mov edx, dword [ebp - 4]
lea ecx, [edx + 0x18]
pop edx
call fcn.004087a4
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.0046dc94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b7a6
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040705c
ret

Function at 0x48c424
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x48c482
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x48c482
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x48c482
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x48c47d
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x48c482
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x48c48c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x48c4ea
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x48c4ea
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x48c4ea
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x108
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x48c4e5
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x48c4ea
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4997d8
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
sub dword [ebp - 8], 6
mov byte [ebp - 0xd], 0
jmp 0x499912
push 6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc2
jne 0x49984d
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x49982e
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
jne 0x49982e
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
je 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x49984d
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
jne 0x49984d
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
je 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc3
jne 0x499893
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x90
jne 0x499874
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x499874
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
je 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0xcc
jne 0x499893
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x499893
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
je 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax], 0xe9
jne 0x4998d1
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
jne 0x4998b6
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0x90
jne 0x4998b6
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0x90
je 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
jne 0x4998d1
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0xcc
jne 0x4998d1
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0xcc
je 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax], 0xeb
jne 0x49990f
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x4998f4
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x4998f4
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
je 0x499922
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x49990f
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x49990f
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
je 0x499922
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x4997f4
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x49e5f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x10
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407cd8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x49e630
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407cd8
jmp 0x49e638
mov eax, dword [ebp - 4]
call fcn.00406ffc
pop ecx
pop ecx
pop ebp
ret
Function at 0x49e63c
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
xor ebx, ebx
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49e853
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00406ffc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x49e870
call fcn.00407ee8
je 0x49e828
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x49e828
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0xf8]
xor ecx, ecx
mov edx, 0xc8
call fcn.00404e20
mov dword [ebp - 0x18], 0xc8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LookupAccountNameW
mov eax, dword [ebp - 0x14]
call fcn.00404838
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LookupAccountNameW
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x49e752
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, dword [ebp + 8]
call fcn.00407cd8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00407b54
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0044bba8
mov eax, dword [ebp - 0x10]
call fcn.00404888
cmp byte [ebp - 5], 0
je 0x49e7c6
lea eax, [ebp - 0x24]
call fcn.0049e5f0
lea eax, [ebp - 0xfc]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.00407c00
cmp dword [ebp - 0xfc], 0
setne al
test al, al
je 0x49e7a1
lea eax, [ebp - 0x28]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.00407c00
jmp 0x49e7ac
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00407404
push dword [ebp - 0x28]
push 0x49e870
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00407e38
mov eax, dword [ebp + 8]
cmp dword [eax], 0
sete al
and al, byte [ebp + 0xc]
je 0x49e828
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
call sub.kernel32.dll_lstrlenW_1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, dword [ebp + 8]
call fcn.00407cd8
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0041c374
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00407b54
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0044bba8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e85a
lea eax, [ebp - 0x100]
mov edx, 2
call fcn.0040705c
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0040705c
ret
Function at 0x49eea0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_GetVersionExW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp dword [ebp - 0x108], 2
sete byte [0x5df8ed]
cmp dword [ebp - 0x114], 6
setae byte [0x5df8ec]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4a1168
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070e0
xor eax, eax
push ebp
push 0x4a11f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
cmp byte [ebp - 9], 0
je 0x4a11b4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
jmp 0x4a11da
cmp dword [ebp - 8], 0
je 0x4a11da
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 4
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.advapi32.dll_SetFileSecurityW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a11f7
lea eax, [ebp - 4]
call fcn.00406ffc
ret
Function at 0x4a1200
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004070e0
xor eax, eax
push ebp
push 0x4a1355
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 7], 0
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x556080]
cmp byte [eax], 0
je 0x4a12fa
push 1
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4a0748]
call fcn.00408d8c
add esp, 4
mov eax, dword [ebp - 0x10]
call fcn.00406ffc
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0x1fffff
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x10], 1
lea eax, [ebp - 0x10]
call fcn.004a0788
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a12c5
push 0x14
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov dword [ebp - 0xc], eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 7], al
cmp dword [ebp - 0xc], 0
jne 0x4a12d1
cmp byte [ebp - 7], 0
je 0x4a130c
mov dword [ebp - 0x1c], 0xc
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffff
push ebp
lea edx, [ebp - 0x1c]
mov cl, byte [ebp - 6]
mov eax, dword [ebp - 4]
call fcn.004a1168
pop ecx
mov byte [ebp - 7], al
jmp 0x4a130c
push ebp
mov cl, byte [ebp - 6]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a1168
pop ecx
mov byte [ebp - 7], al
cmp byte [ebp - 5], 0
je 0x4a1322
push 6
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.kernel32.dll_SetFileAttributesW
cmp dword [ebp - 0xc], 0
je 0x4a1331
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a135c
lea eax, [ebp - 0x10]
mov edx, dword [0x4a0748]
call fcn.00408d98
lea eax, [ebp - 4]
call fcn.00406ffc
ret
Function at 0x4cfb48
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 0x4cfd03
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407404
mov eax, dword [ebp - 4]
call fcn.004cf498
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4cfb9a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407f68
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.004d0784
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4cfc79
xor eax, eax
push ebp
push 0x4cfc72
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004cf738
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004cfd38
test al, al
je 0x4cfc50
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407164
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4cfc50
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.00407b54
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.004cf698
test al, al
je 0x4cfc4a
mov eax, dword [ebp - 8]
call fcn.00407b54
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00407bac
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004cfb48
dec ebx
cmp ebx, 0xffffffff
jne 0x4cfbf9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfc79
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004cf738
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5df9f0], 0
je 0x4cfcb9
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004cf724
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004cf698
mov ebx, eax
jmp 0x4cfce0
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004cf724
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004cf698
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfd0a
lea eax, [ebp - 0x3c]
call fcn.00406ffc
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040705c
ret
Function at 0x4cfda4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4cfe5c
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.004cfd38
test al, al
je 0x4cfe3e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407164
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4cfe3e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
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.00407b54
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00407b54
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407bac
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4cfdf7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfe63
lea eax, [ebp - 0x2c]
call fcn.00406ffc
lea eax, [ebp - 4]
call fcn.00406ffc
ret

Function at 0x4d0660
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.004cf4b0
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.00407b54
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004cf698
test al, al
jne 0x4d06c8
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x556758]
mov dl, 1
mov eax, dword [0x4ce284]
call fcn.00423760
call fcn.00406658
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d06d4
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.00407b54
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004cf698
test al, al
jne 0x4d0735
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x556edc]
mov dl, 1
mov eax, dword [0x4ce284]
call fcn.00423760
call fcn.00406658
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004cf4e0
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 0x4d0d34
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 0x4d0e5c
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.004cf738
xor eax, eax
push ebp
push 0x4d0e37
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.004cfd38
test al, al
je 0x4d0e1b
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d0c14
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407164
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4d0e1b
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.00407b54
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.004cf698
test al, al
je 0x4d0e17
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00407bac
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d0c14
pop ecx
inc edi
dec ebx
jne 0x4d0dbf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0e3e
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004cf738
ret