joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ebbc
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 0x47edbc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.00477490
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x5b6630], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5b6634], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5b6638], eax
mov eax, dword [0x5c1e34]
cmp dword [eax], 2
sete byte [0x5b5dd5]
push 0x47edc8
call sub.kernel32.dll_GetModuleHandleW_1
lea edx, [ebp - 4]
call fcn.00474ab4
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x5b5dd5], 0
jne 0x47ec4b
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0047516c
test al, al
je 0x47ec4b
mov eax, dword [ebp - 0x4c]
mov dword [0x64a8ac], eax
jmp 0x47ec52
xor eax, eax
mov dword [0x64a8ac], eax
call fcn.0047b500
and eax, 0x7f
cmp eax, 0x14
ja case.0x47ec63.0
jmp dword [eax*4 + 0x47ec6a]
mov byte [0x5b5dd0], 1
jmp case.0x47ec63.0
mov byte [0x5b5dd1], 1
jmp case.0x47ec63.0
mov byte [0x5b5dd2], 1
jmp case.0x47ec63.0
mov byte [0x5b5dd3], 1
jmp case.0x47ec63.0
mov byte [0x5b5dd4], 1
jmp case.0x47ec63.0
mov byte [0x5b5dd6], 1
mov byte [0x5b5dd7], 1
jmp case.0x47ec63.0
mov byte [0x5b5dd6], 1
mov byte [0x5b5dd8], 1
jmp case.0x47ec63.0
mov byte [0x5b5dd6], 1
mov byte [0x5b5dd8], 1
mov byte [0x5b5dd9], 1
jmp case.0x47ec63.0
mov byte [0x5b5dda], 1
jmp case.0x47ec63.0
mov byte [0x5b5ddb], 1
jmp case.0x47ec63.0
mov byte [0x5b5ddc], 1
jmp case.0x47ec63.0
mov byte [0x5b5ddd], 1
jmp case.0x47ec63.0
mov byte [0x5b5dde], 1
jmp case.0x47ec63.0
mov byte [0x5b5ddf], 1
jmp case.0x47ec63.0
mov byte [0x5b5de0], 1
jmp case.0x47ec63.0
mov byte [0x5b5de1], 1
jmp case.0x47ec63.0
mov byte [0x5b5de2], 1
jmp case.0x47ec63.0
mov byte [0x5b5de3], 1
jmp case.0x47ec63.0
mov byte [0x5b5de4], 1
jmp case.0x47ec63.0
mov byte [0x5b5de5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47edc3
lea eax, [ebp - 4]
call fcn.0040716c
ret
Function at 0x48d7d4
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 0x48d8ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x48d90c
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 0x48d887
push 0x48d778
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0042696c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x48d862
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00474ab4
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004749b0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, 0x48d930
call fcn.004080a8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je 0x48d887
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 0x48d93c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x48d8e4
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 0x48d8e4
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.00408acc
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.0046fdf4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d906
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004071cc
ret

Function at 0x48e584
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 0x48e5e2
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x48e5e2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x48e5e2
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 0x48e5dd
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x48e5e2
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x48e5ec
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 0x48e64a
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x48e64a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x48e64a
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 0x48e645
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x48e64a
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x49b938
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 0x49ba72
push 6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc2
jne 0x49b9ad
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x49b98e
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
jne 0x49b98e
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
je 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x49b9ad
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
jne 0x49b9ad
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
je 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc3
jne 0x49b9f3
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x90
jne 0x49b9d4
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x49b9d4
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
je 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0xcc
jne 0x49b9f3
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x49b9f3
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
je 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax], 0xe9
jne 0x49ba31
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
jne 0x49ba16
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0x90
jne 0x49ba16
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0x90
je 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
jne 0x49ba31
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0xcc
jne 0x49ba31
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0xcc
je 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax], 0xeb
jne 0x49ba6f
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x49ba54
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x49ba54
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
je 0x49ba82
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x49ba6f
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x49ba6f
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
je 0x49ba82
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x49b954
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4a0750
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.00407fd0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407e4c
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4a0790
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407fd0
jmp 0x4a0798
mov eax, dword [ebp - 4]
call fcn.0040716c
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a079c
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 0x4a09b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.0040716c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x4a09d0
call fcn.004081e0
je 0x4a0988
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x4a0988
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.00404f60
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.00407e4c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_LookupAccountNameW
mov eax, dword [ebp - 0x14]
call fcn.00404858
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.00407e4c
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 0x4a08b2
mov edx, dword [ebp - 0x14]
add edx, edx
mov eax, dword [ebp + 8]
call fcn.00407fd0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00407e4c
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.0044d1e0
mov eax, dword [ebp - 0x10]
call fcn.004048a8
cmp byte [ebp - 5], 0
je 0x4a0926
lea eax, [ebp - 0x24]
call fcn.004a0750
lea eax, [ebp - 0xfc]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.00407ef8
cmp dword [ebp - 0xfc], 0
setne al
test al, al
je 0x4a0901
lea eax, [ebp - 0x28]
lea edx, [ebp - 0xf8]
mov ecx, 0x64
call fcn.00407ef8
jmp 0x4a090c
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00407594
push dword [ebp - 0x28]
push 0x4a09d0
mov eax, dword [ebp - 4]
push dword [eax]
mov eax, dword [ebp - 4]
mov edx, 3
call fcn.00408130
mov eax, dword [ebp + 8]
cmp dword [eax], 0
sete al
and al, byte [ebp + 0xc]
je 0x4a0988
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407e4c
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.00407fd0
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0041d1f8
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00407e4c
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
call fcn.0044d1e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a09ba
lea eax, [ebp - 0x100]
mov edx, 2
call fcn.004071cc
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004071cc
ret
Function at 0x4a1000
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 [0x64a8ed]
cmp dword [ebp - 0x114], 6
setae byte [0x64a8ec]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x4a32a0
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.00407250
xor eax, eax
push ebp
push 0x4a3328
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
cmp byte [ebp - 9], 0
je 0x4a32ec
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407e4c
push eax
call sub.kernel32.dll_CreateDirectoryW_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
jmp 0x4a3312
cmp dword [ebp - 8], 0
je 0x4a3312
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push eax
push 4
mov eax, dword [ebp - 4]
call fcn.00407e4c
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 0x4a332f
lea eax, [ebp - 4]
call fcn.0040716c
ret
Function at 0x4a3338
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.00407250
xor eax, eax
push ebp
push 0x4a348d
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 [0x5c0ef0]
cmp byte [eax], 0
je 0x4a3432
push 1
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x4a2880]
call fcn.004090b4
add esp, 4
mov eax, dword [ebp - 0x10]
call fcn.0040716c
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.004a28c0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4a33fd
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 0x4a3409
cmp byte [ebp - 7], 0
je 0x4a3444
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.004a32a0
pop ecx
mov byte [ebp - 7], al
jmp 0x4a3444
push ebp
mov cl, byte [ebp - 6]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004a32a0
pop ecx
mov byte [ebp - 7], al
cmp byte [ebp - 5], 0
je 0x4a345a
push 6
mov eax, dword [ebp - 4]
call fcn.00407e4c
push eax
call sub.kernel32.dll_SetFileAttributesW
cmp dword [ebp - 0xc], 0
je 0x4a3469
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 0x4a3494
lea eax, [ebp - 0x10]
mov edx, dword [0x4a2880]
call fcn.004090c0
lea eax, [ebp - 4]
call fcn.0040716c
ret
Function at 0x4a6f94
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 0x4a714f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00407594
mov eax, dword [ebp - 4]
call fcn.004a68e4
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4a6fe6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408260
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.004a7bd0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4a70c5
xor eax, eax
push ebp
push 0x4a70be
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004a6b84
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004a7184
test al, al
je 0x4a709c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.004072f4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4a709c
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.00407e4c
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.004a6ae4
test al, al
je 0x4a7096
mov eax, dword [ebp - 8]
call fcn.00407e4c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00407ea4
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004a6f94
dec ebx
cmp ebx, 0xffffffff
jne 0x4a7045
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a70c5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004a6b84
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x64a918], 0
je 0x4a7105
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00407e4c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004a6b70
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004a6ae4
mov ebx, eax
jmp 0x4a712c
mov eax, dword [ebp - 4]
call fcn.00407e4c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004a6b70
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004a6ae4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7156
lea eax, [ebp - 0x3c]
call fcn.0040716c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004071cc
ret
Function at 0x4a71f0
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 0x4a72a8
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.004a7184
test al, al
je 0x4a728a
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004072f4
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4a728a
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.00407e4c
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00407e4c
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407ea4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4a7243
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a72af
lea eax, [ebp - 0x2c]
call fcn.0040716c
lea eax, [ebp - 4]
call fcn.0040716c
ret

Function at 0x4a7aac
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.004a68fc
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.00407e4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004a6ae4
test al, al
jne 0x4a7b14
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5c1660]
mov dl, 1
mov eax, dword [0x4a56d0]
call fcn.00424d58
call fcn.004067c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a7b20
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.00407e4c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004a6ae4
test al, al
jne 0x4a7b81
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5c1e74]
mov dl, 1
mov eax, dword [0x4a56d0]
call fcn.00424d58
call fcn.004067c8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a692c
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 0x4a8180
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 0x4a82a8
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.004a6b84
xor eax, eax
push ebp
push 0x4a8283
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.004a7184
test al, al
je 0x4a8267
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004a8060
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.004072f4
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4a8267
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.00407e4c
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.004a6ae4
test al, al
je 0x4a8263
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407e4c
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00407ea4
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004a8060
pop ecx
inc edi
dec ebx
jne 0x4a820b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a828a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004a6b84
ret