joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422e90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x441f9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x214], 0
push ecx
mov dword [ebp - 0x210], 0
mov edi, dword [ebx + 4]
or edi, 0x2001f
mov dword [ebp - 0x20c], 0
push edi
push 0
push eax
push dword [ebx]
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x422fdf
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x422f12
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], edi
test esi, esi
jne 0x422fdf
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x208], 0x100
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x208]
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x422fab
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00422e90
mov esi, eax
test esi, esi
jne 0x422fdf
lea eax, [ebp - 0x224]
mov dword [ebp - 0x208], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x422f60
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x422fc6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x214], 0
push dword [ebp - 0x21c]
mov ecx, ebx
mov dword [ebp - 0x210], 0
call fcn.00421eb0
mov esi, eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x422ff0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004345b0
mov esp, ebp
pop ebp
ret 4
Function at 0x4231b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435f66
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x441f9c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call fcn.00424b00
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x423256
push 2
push eax
push edi
call fcn.00424b00
mov esi, eax
mov dword [ebp - 0x420], eax
test esi, esi
jne 0x423256
call fcn.00421ba0
mov edi, eax
jmp 0x423370
push dword [ebp - 0x41c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x423274
call fcn.00421ba0
jmp 0x423363
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x423292
call fcn.00421ba0
jmp 0x423363
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x424], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4232b3
mov edi, 0x8007000e
jmp 0x423365
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4233a9
jb 0x4232d1
cmp eax, 0xffffffff
ja 0x4233a9
cmp eax, 0x400
jbe 0x4232e6
push eax
lea ecx, [ebp - 0x418]
call fcn.00421a20
jmp 0x42330c
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x42330c
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x423323
mov edi, 0x8007000e
jmp 0x423365
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x423343
call fcn.00421ba0
jmp 0x423363
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00423010
mov edi, eax
test esi, esi
je 0x423370
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x423389
lea ecx, [ebp - 0x418]
call fcn.00421fa0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004345b0
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00421ce0
int3
Function at 0x423eb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
je 0x423f26
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push 0x4382ec
push reloc.OLEAUT32.dll_SysReAllocString
lea esi, [ebx + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423f26
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push ebx
push 0x438318
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x423f15
cmp dword [ebp - 4], eax
cmove esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x423fe6
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwarePoliciesAdobeAdobe_AcrobatDCFeatureLockDown
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x423f8f
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push str.bEnableATL7Compat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x423f86
cmp dword [ebp - 8], 4
jne 0x423f86
mov eax, 1
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x423fd7
push str.SetProcessDEPPolicy
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x423fd7
test edi, edi
je 0x423fc5
mov eax, esi
xor eax, 1
lea eax, [eax*2 + 1]
jmp 0x423fc7
xor eax, eax
push eax
call dword [0x437430]
call dword [ebp - 0x10]
mov ebx, eax
test ebx, ebx
jne 0x424038
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x423fef
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.NtSetInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x424038
lea esi, [esi*4 + 9]
test edi, edi
jne 0x424012
mov esi, 2
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x22
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [ebp - 0xc]
mov ecx, esi
push eax
call dword [0x437430]
call esi
xor ebx, ebx
test eax, eax
setns bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436048
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x441f9c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x200
call fcn.004345f3
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push str.SoftwareAdobeAdobe_AcrobatDCLanguageNext
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4247cc
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAdobe_AcrobatDCLanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4247cc
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_ReaderDCLanguageNext
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4247cc
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_ReaderDCLanguageNext
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x4247cc
lea eax, [ebp - 0x10]
push eax
push str.SoftwareAdobeAcrobat_ReaderDCLanguageCurrent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4248da
push 0x200
push 0
push esi
mov dword [ebp - 0x14], 0x200
call sub.VCRUNTIME140.dll_memset
sub dword [ebp - 0x14], 2
lea eax, [ebp - 0x14]
add esp, 0xc
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
shr eax, 1
test edi, edi
jne 0x4248da
cmp dword [ebp - 0x18], 1
jne 0x4248da
cmp eax, 4
jb 0x4248da
add eax, 0xfffffffc
push 0x438594
lea edi, [esi + eax*2]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4248d6
push 0x43859c
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4248d6
movzx eax, word [edi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
add esp, 4
test eax, eax
je 0x4248da
movzx eax, word [edi + 2]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
add esp, 4
test eax, eax
je 0x4248da
movzx eax, word [edi + 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
add esp, 4
test eax, eax
je 0x4248da
cmp word [edi + 6], 0
jne 0x4248da
mov ecx, dword [ebp + 8]
mov edx, 4
sub edi, ecx
lea eax, [edx + 0x7ffffffa]
test eax, eax
je 0x4248c0
movzx eax, word [edi + ecx]
test ax, ax
je 0x4248c0
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4248a2
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x4248da
lea edi, [ecx + 1]
jmp 0x4248dd
xor edi, edi
jmp 0x4248dd
or edi, 0xffffffff
push 2
push esi
call fcn.00434596
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424b00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43ad60
push 0x434ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x441f9c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
cmp dword [0x4425b4], 0
jne 0x424bdb
mov eax, dword [0x4425b0]
test eax, eax
jne 0x424bdb
mov ecx, dword [0x4425bc]
test ecx, ecx
je 0x424b78
push str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4425b0]
mov ecx, dword [0x4425bc]
test eax, eax
jne 0x424bdb
test ecx, ecx
jne 0x424b89
call fcn.00424ca0
test eax, eax
je 0x424b9c
lea eax, [ebp - 0x20]
push eax
push dword [section..data]
call fcn.004249d0
test eax, eax
jne 0x424bdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7f
je 0x424bd1
cmp eax, 0x7e
je 0x424bd1
cmp eax, 0x78
je 0x424bd1
cmp eax, 1
je 0x424bd1
cmp eax, 0x32
je 0x424bd1
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [0x4425b0], 1
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.00424c1b
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x425320
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d730
add esp, 8
test eax, eax
jne 0x425343
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x18
push esi
push dword [ebp + 0x14]
call fcn.00429a50
add esp, 4
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0042db50
push dword [ebp + 0x18]
lea ecx, [ebp - 0x14]
push esi
call fcn.0042e6f0
test al, al
jne 0x42537f
lea ecx, [ebp - 0x14]
mov esi, 1
call fcn.0042dd70
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0x18]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4253ad
push dword [ebp + 0x1c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0042dd70
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4253c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x441f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d730
add esp, 8
test eax, eax
jne 0x4253ef
mov eax, 0x80004005
jmp 0x425522
push dword [ebp + 0x14]
call fcn.00429a50
add esp, 4
lea ecx, [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 8], edi
call fcn.0042db50
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push esi
push edi
call fcn.0042e6f0
test al, al
jne 0x425422
mov esi, 1
jmp 0x425518
test esi, esi
je 0x42547d
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425430
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x42547d
add ebx, ebx
mov eax, ebx
call fcn.00434b20
mov edi, esp
test edi, edi
je 0x42547a
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 8]
jmp 0x42547f
mov edi, dword [ebp - 8]
xor eax, eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x425516
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x4254f7
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4254b0
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4254f7
add ebx, ebx
mov eax, ebx
call fcn.00434b20
mov edi, esp
test edi, edi
je 0x4254f7
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4254f9
xor eax, eax
push 4
lea ecx, [ebp + 0x20]
push ecx
push 4
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.0042dd70
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004345b0
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x425540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x441f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d730
add esp, 8
test eax, eax
jne 0x42556f
mov eax, 0x80004005
jmp 0x425663
push dword [ebp + 0x14]
call fcn.00429a50
add esp, 4
lea ecx, [ebp - 0x1c]
mov edi, eax
mov dword [ebp - 8], edi
call fcn.0042db50
mov esi, dword [ebp + 0x18]
lea ecx, [ebp - 0x1c]
push esi
push edi
call fcn.0042e6f0
test al, al
jne 0x4255a2
mov esi, 1
jmp 0x425659
test esi, esi
je 0x4255fd
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4255b0
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4255fd
add ebx, ebx
mov eax, ebx
call fcn.00434b20
mov edi, esp
test edi, edi
je 0x4255fa
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 8]
jmp 0x4255ff
mov edi, dword [ebp - 8]
xor eax, eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x425657
mov edx, dword [ebp + 0x20]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425626
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.0042dd70
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004345b0
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x425680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d730
add esp, 8
test eax, eax
jne 0x4256af
mov eax, 0x80004005
jmp 0x425836
push dword [ebp + 0x14]
call fcn.00429a50
add esp, 4
lea ecx, [ebp - 0x24]
mov esi, eax
mov dword [ebp - 8], esi
call fcn.0042db50
mov ebx, dword [ebp + 0x18]
lea ecx, [ebp - 0x24]
push ebx
push esi
call fcn.0042e6f0
test al, al
jne 0x4256e2
mov esi, 1
jmp 0x42582c
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x4256f1
lea esi, [edi + 0x57]
jmp 0x42582c
cmp word [edi], 1
jne 0x425827
cmp dword [edi + 4], 1
jne 0x425827
cmp dword [edi + 0x14], 0
jne 0x425827
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jne 0x42582c
test ebx, ebx
je 0x42577d
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425730
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
cmp eax, 0x3fffffff
jg 0x42577d
add eax, eax
call fcn.00434b20
mov esi, esp
test esi, esi
je 0x42577d
mov ecx, dword [ebp - 0x10]
push 0
push 0
mov byte [esi], 0
lea eax, [ecx + ecx]
push eax
push esi
push 0xffffffffffffffff
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42577f
xor eax, eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x42581c
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x4257fd
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4257b0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x4257fd
add eax, eax
call fcn.00434b20
mov ebx, esp
test ebx, ebx
je 0x4257fd
mov ecx, dword [ebp - 8]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x4257ff
xor eax, eax
push dword [edi + 0x10]
push dword [ebp - 0x14]
push 3
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
xor esi, esi
jmp 0x42582c
mov esi, 0x80004005
lea ecx, [ebp - 0x24]
call fcn.0042dd70
mov eax, esi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004345b0
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x425850
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x441f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042d730
add esp, 8
test eax, eax
jne 0x42587f
mov eax, 0x80004005
jmp 0x425a35
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x4258d9
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425890
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4258d9
add ebx, ebx
mov eax, ebx
call fcn.00434b20
mov edi, esp
test edi, edi
je 0x4258d9
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x4258db
xor esi, esi
push dword [ebp + 0x14]
call fcn.00429a50
add esp, 4
lea ecx, [ebp - 0x20]
mov ebx, eax
mov dword [ebp - 0xc], ebx
call fcn.0042db50
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 0x20]
push edi
push ebx
call fcn.0042e6f0
test al, al
jne 0x42590e
mov esi, 1
jmp 0x425a2b
test edi, edi
je 0x42596a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425917
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x42596a
add eax, eax
call fcn.00434b20
mov ebx, esp
test ebx, ebx
je 0x425967
mov ecx, dword [ebp - 8]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
mov ebx, dword [ebp - 0xc]
jmp 0x42596c
mov ebx, dword [ebp - 0xc]
xor eax, eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x425a29
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x4259ef
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4259a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x4259ef
add eax, eax
call fcn.00434b20
mov ebx, esp
test ebx, ebx
je 0x4259ef
mov ecx, dword [ebp - 8]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, ebx
jmp 0x4259f1
xor ecx, ecx
xor eax, eax
test esi, esi
je 0x425a0f
cmp byte [eax + esi], 0
je 0x425a05
inc eax
cmp eax, 0x7fffffff
jb 0x4259f7
mov edx, SysReAllocString
cmp eax, edx
cmove eax, edx
inc eax
push eax
push esi
push 3
push 0
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x20]
call fcn.0042dd70
mov eax, esi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004345b0
mov esp, ebp
pop ebp
ret 0x1c