joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5074e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x54c154]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx], vtable.bdHtmlEventHandler.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
push 0xc
lfence
call fcn.004a4626
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 4], eax
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
push 0xc
lfence
call fcn.004a4626
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], 1
lea eax, [ebx + 0x254]
mov dword [ebx + 0x14], vtable.IPluginDlg.0
push str.bdHtmlDlg_sc
push 0x100
push eax
mov dword [ebx], vtable.bdHtmlDlg.1.0
mov dword [ebx + 0x14], vtable.bdHtmlDlg.0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0x400b
mov dword [ebx + 0x24], 0x96ce0000
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x24c], 0
mov dword [ebx + 0x250], 0
mov byte [ebx + 0x454], 0
mov word [ebx + 0x45c], 1
call fcn.004dab23
add esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea esi, [ebx + 0x34]
mov dword [ebx + 0x23c], eax
test esi, esi
je 0x4769ad
mov ecx, 0x5577f8
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476980
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x4769ad
push 0x5577f8
push 0x104
push esi
lfence
call fcn.004dab23
add esp, 0xc
mov eax, dword [0x557a28]
mov esi, dword [0x54dd30]
mov dword [ebx + 0x240], eax
mov eax, dword [0x557a18]
mov dword [ebx + 0x248], eax
mov eax, dword [0x557a20]
mov dword [ebx + 0x244], eax
call fcn.004164c0
push esi
push 9
push 0
mov edi, dword [eax + 0x54]
mov ecx, edi
call dword [0x510530]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476a60
Capabilities:
Extract resource via kernel32 functions
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc], 4
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
mov dword [esi + 0x444], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.debug
push str.SoftwareBitdefender_bdhtml
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 1
jne 0x476ab6
mov byte [esi + 0x449], 1
movzx eax, word [esi + 0x444]
push 0x17
push eax
push dword [esi + 0x22c]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x476ae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x238], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push edi
push dword [esi + 0x22c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x476ad2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x476b1a
push edi
push dword [esi + 0x22c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x476b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov dword [esi + 0x238], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
lea eax, [edi + 2]
push eax
mov dword [esi + 0x1c], eax
call fcn.004da5fd
push dword [esi + 0x1c]
mov dword [esi + 0x18], eax
push 0
push eax
call fcn.004d78d0
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
push edi
push ebx
call fcn.00435ab0
add dword [esi + 0x1c], 0xfffffffe
add esp, 0x18
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x476b78
push eax
push 0x104
lea eax, [esi + 0x20]
push eax
jmp 0x476bbb
cmp word [0x5577f8], 0
jne 0x476b87
call fcn.00477d20
lea edx, [esi + 0x20]
test edx, edx
je 0x476bc3
mov ecx, 0x5577f8
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x476b96
sub ecx, edi
sar ecx, 1
cmp ecx, 0x104
jge 0x476bc3
push 0x5577f8
push 0x104
lfence
push edx
call fcn.004dab23
add esp, 0xc
lea ecx, [esi - 0x14]
call fcn.00476be0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4771f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x214], eax
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x477371
cmp word [ebx], 0
je 0x477371
push str.sciter:
push ebx
call fcn.004d7442
add esp, 8
cmp eax, ebx
je 0x47735c
push 0x2f
push ebx
call fcn.004d739e
mov edi, eax
add esp, 8
test edi, edi
je 0x477371
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d78d0
push 0xffffffffffffffff
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004dac52
lea eax, [ebp - 0x20c]
push 0x2e
push eax
call fcn.004d739e
mov edi, eax
add esp, 0x24
test edi, edi
je 0x4772f0
xor eax, eax
mov word [edi], ax
add edi, 2
je 0x4772f0
push 0x52cdbc
push edi
call fcn.004e5de2
add esp, 8
test eax, eax
je 0x4772f0
push 0x52cec4
push edi
call fcn.004e5de2
add esp, 8
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x4772ed
push 0x52cec4
push eax
push dword [esi + 0x244]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4772e6
mov esi, dword [esi + 0x244]
jmp 0x477311
push 0x52cec4
jmp 0x4772f2
push edi
jmp 0x4772f8
push 0x17
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x240]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x47735c
mov esi, dword [esi + 0x240]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x477371
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x477371
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x477371
call fcn.004164c0
push edi
push dword [ebp - 0x210]
mov esi, dword [eax + 0xc]
mov ecx, esi
push ebx
push dword [ebp - 0x214]
call dword [0x510530]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 8
Function at 0x4780a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507625
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], eax
mov esi, SysReAllocString
call fcn.00476640
mov byte [ebp - 4], 1
mov al, byte [ebp - 0x38]
test al, al
je 0x47813c
cmp dword [ebp - 0x3c], 8
lea edx, [ebp - 0x50]
mov esi, SysStringLen
cmovae edx, dword [ebp - 0x50]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x478116
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00415d70
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.0040ee10
mov al, byte [ebp - 0x38]
mov byte [ebp - 4], 0
test al, al
je 0x47814c
lea ecx, [ebp - 0x50]
call fcn.004161c0
push 0x1b
push str.SoftwareBitdefender_bdhtml
lea ecx, [ebp - 0x28]
call fcn.0040eff0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x20019
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push esi
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4781c5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push str.dark
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x2c]
test eax, eax
push dword [ebp - 0x30]
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], 1
lea ecx, [ebp - 0x28]
sete bl
call fcn.004161c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x478220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
push 0x20019
push 0
xorps xmm0, xmm0
mov esi, ecx
push str..DEFAULTSoftwareSetId
push SysStringLen
xor bl, bl
movq qword [ebp - 0xc], xmm0
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x47829a
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], 1
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], 0x26
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push str.wslibsite_lang
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4782a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x47831c
cmp dword [esi + 0x14], 8
jb 0x4782b4
mov esi, dword [esi]
lea eax, [ebp - 0x2c]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x4782f9
test cx, cx
je 0x4782d9
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x4782f9
add esi, 4
add eax, 4
test cx, cx
jne 0x4782b7
xor ecx, ecx
movzx eax, bl
pop edi
test ecx, ecx
mov edx, 1
pop esi
cmove eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
sbb ecx, ecx
movzx eax, bl
or ecx, 1
mov edx, 1
pop edi
test ecx, ecx
pop esi
cmove eax, edx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x47c220
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507c2e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xbc
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x34], 0x557f68
mov dword [0x557f68], 0
mov dword [0x557f78], 0
mov dword [0x557f7c], 7
mov dword [0x557f80], 0
mov dword [0x557f90], 0
mov dword [0x557f94], 7
mov dword [0x557f98], 0
mov dword [0x557fa8], 0
mov dword [0x557fac], 7
mov dword [0x557fb0], 0
mov dword [0x557fc0], 0
mov dword [0x557fc4], 7
mov dword [ebp - 4], 0
mov dword [0x557fc8], 0
mov dword [0x557fcc], 0
push 0x2c
lfence
call fcn.004a4626
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x557fc8], eax
mov byte [ebp - 4], 1
mov dword [0x557fd0], 0
mov dword [0x557fd4], 0
push 0x2c
lfence
call fcn.004a4626
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [0x557fd0], eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 2
call fcn.0047bac0
mov ecx, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp byte [ecx + 0x30], 0
lea eax, [ebp - 0x64]
cmove eax, ecx
lea ecx, [ebp - 0x94]
push eax
call fcn.0047edf0
cmp dword [ebp - 0x68], 0x10
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x7c]
call fcn.0047a710
lea ecx, [ebp - 0x94]
call fcn.0047b7d0
lea ecx, [ebp - 0x64]
call fcn.0047b7d0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 7
call fcn.0047ea50
sub esp, 0x60
mov esi, esp
sub esp, 0x18
mov ecx, esp
push 0x557a5c
mov dword [ebp - 0x30], ecx
call fcn.0040f220
movups xmm0, xmmword [ebp - 0x2c]
sub esp, 0x18
mov ecx, esi
mov eax, esp
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.0047bce0
call fcn.0047c4c0
lea ecx, [ebp - 0x2c]
call fcn.004161c0
mov eax, 0x557f68
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x484200
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x54c154]
xor eax, esp
mov dword [esp + 0x44], eax
lea eax, [esp]
mov dword [esp], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 8]
xor ecx, esp
mov edx, dword [esp + 0xc]
call fcn.004a44cd
mov esp, ebp
pop ebp
ret

Function at 0x4843d0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5083c8
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.00484240
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ecx
cmovae eax, dword [ebp - 0x30]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x484483
push str.system_info::get_ospartion_available_size
lea edx, [eax + 4]
lea ecx, [ebp - 0xd8]
call fcn.0040a850
add esp, 4
mov esi, eax
mov byte [ebp - 4], 1
cmp byte [esi + 0x48], 0
je 0x484460
push str.GetDiskFreeSpaceEx_err
push esi
call fcn.004110a0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x48], 0
je 0x484474
push eax
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0xd8]
call fcn.0040a6f0
xor esi, esi
jmp 0x48448d
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
shrd esi, eax, 0x14
lea ecx, [ebp - 0x30]
call fcn.004161c0
mov dword [edi], esi
mov eax, edi
mov ecx, dword [ebx]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 4]
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret 4
Function at 0x4844d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508423
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 0x201
push 0
push ebx
push ecx
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x4845a5
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xd8]
call fcn.0040a850
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x484593
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484593
push ebx
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x484593
mov edx, str._failed
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484593
push edi
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0xd8]
call fcn.0040a6f0
xor al, al
jmp 0x4846cf
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x1c]
push 0x7fff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00415d00
push 0xfffe
push 0
push eax
lea esi, [eax + 0xfffe]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
call fcn.004d78d0
add esp, 0xc
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
sub esi, ecx
sar esi, 1
lea eax, [esi + esi]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ecx
push 0
push 0
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x48464b
mov esi, dword [ebp - 0x1c]
mov edx, esi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x484630
sub edx, ecx
mov ecx, dword [ebp - 0x2c]
sar edx, 1
push edx
push esi
call fcn.00415d70
jmp 0x4846b9
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x180]
call fcn.0040a850
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x4846ae
mov edx, str.RegQueryValueEx
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x4846ae
push ebx
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x4846ae
mov edx, str._failed
mov ecx, esi
call fcn.00411300
cmp byte [esi + 0x48], 0
je 0x4846ae
push edi
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0x180]
call fcn.0040a6f0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.00433390
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x4846f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508476
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 0x202
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
je 0x48486d
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.0040a850
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x4847ba
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x4847ba
push edi
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x4847ba
mov edx, str._failed
mov ecx, esi
call fcn.00411300
cmp byte [esi + 0x48], 0
je 0x4847ba
push ebx
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.0040a6f0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf023f
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test ebx, ebx
je 0x48486a
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.0040a850
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
mov al, byte [esi + 0x48]
test al, al
je 0x484858
mov edx, str.RegCreateKeyEx
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484858
push edi
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x484858
mov edx, str._failed
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484858
push ebx
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0xc8]
call fcn.0040a6f0
xor al, al
jmp 0x484920
mov esi, dword [ebp - 0x18]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x484872
mov ebx, dword [ebp - 0x1c]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x484912
push str.SetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.0040a850
add esp, 4
mov esi, eax
mov dword [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x484907
mov edx, str.RegSetValueEx
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484907
push ebx
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x484907
mov edx, str._failed
mov ecx, esi
call fcn.00411300
cmp byte [esi + 0x48], 0
je 0x484907
push edi
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0x170]
call fcn.0040a6f0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret
Function at 0x484b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50850b
mov eax, dword fs:[0]
push eax
sub esp, 0x168
mov eax, dword [0x54c154]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push 0x201
push 0
push str..DEFAULTSoftwareSetID
push SysStringLen
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x484c65
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0xc8]
call fcn.0040a850
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0
mov al, byte [esi + 0x48]
test al, al
je 0x484c53
mov edx, str.RegOpenKeyEx
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484c53
push str..DEFAULTSoftwareSetID
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x484c53
mov edx, str._failed
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484c53
push edi
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0xc8]
call fcn.0040a6f0
xor al, al
jmp 0x484d1b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push 0x522510
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x484c98
cmp dword [ebp - 0x18], 4
je 0x484d0d
xor al, al
jmp 0x484d1b
push str.GetRegKeyValue
mov edx, 4
lea ecx, [ebp - 0x170]
call fcn.0040a850
add esp, 4
mov esi, eax
mov dword [ebp - 4], 1
mov al, byte [esi + 0x48]
test al, al
je 0x484d02
mov edx, str.RegQueryValueEx
mov ecx, esi
call fcn.00411300
mov al, byte [esi + 0x48]
test al, al
je 0x484d02
push 0x522510
push esi
call fcn.004110a0
mov al, byte [esi + 0x48]
add esp, 8
test al, al
je 0x484d02
mov edx, str._failed
mov ecx, esi
call fcn.00411300
cmp byte [esi + 0x48], 0
je 0x484d02
push edi
mov ecx, esi
call fcn.00412fb0
lea ecx, [ebp - 0x170]
call fcn.0040a6f0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a44cd
mov esp, ebp
pop ebp
ret