joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408e8d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x408eb7
xor ecx, ecx
cmp cx, word [eax]
je 0x4090aa
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4090aa
xor ecx, ecx
cmp cx, word [eax]
je 0x4090aa
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x210], ebx
call fcn.0043d1d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4090aa
push str.McAfee_
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044a3cd
push str.MCLOGS
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044a3cd
push 0x48e794
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044a3cd
mov ecx, dword [esi + 8]
add esp, 0x24
mov edi, ebx
test ecx, ecx
je 0x408f63
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408f51
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 1]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408f6c
sub ecx, edx
mov edx, dword [esi + 0xc]
sar ecx, 1
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp - 0x210]
jne 0x408f81
sub edx, ebx
lea eax, [ecx + 1]
sar edx, 1
add eax, edx
add edi, eax
lea ebx, [edi + edi]
push ebx
call fcn.0044a832
mov dword [esi + 0x1c], eax
pop ecx
test eax, eax
jne 0x408fb3
push 0xe
jmp 0x4090ac
push ebx
xor ebx, ebx
push ebx
push eax
call fcn.0043d1d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push dword [esi + 0xc]
cmp dword [esi + 8], ebx
je 0x408fe5
push dword [esi + 8]
push eax
push 0x48f1e8
push edi
push dword [esi + 0x1c]
call fcn.004011aa
add esp, 0x18
jmp 0x408ff7
push eax
push 0x48f1d8
push edi
push dword [esi + 0x1c]
call fcn.004011aa
add esp, 0x14
mov ecx, dword [esi + 0x1c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408ffd
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 9]
lea ebx, [edi + edi]
push ebx
call fcn.0044a832
mov dword [esi + 0x450], eax
pop ecx
test eax, eax
je 0x408fac
push ebx
xor ebx, ebx
push ebx
push eax
call fcn.0043d1d0
push str.log.ini
push dword [esi + 0x1c]
push 0x48f1b8
push edi
push dword [esi + 0x450]
call fcn.004011aa
lea ecx, [ebp - 0x20c]
add esp, 0x20
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x409052
sub ecx, edx
sar ecx, 1
lea edi, [ecx + 8]
lea ebx, [edi + edi]
push ebx
call fcn.0044a832
mov dword [esi + 0x44c], eax
pop ecx
test eax, eax
je 0x408fac
push ebx
xor ecx, ecx
push ecx
push eax
call fcn.0043d1d0
push str.log.ini
lea eax, [ebp - 0x20c]
push eax
push 0x48f1d8
push edi
push dword [esi + 0x44c]
call fcn.004011aa
add esp, 0x20
xor eax, eax
jmp 0x4090ad
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437519
mov esp, ebp
pop ebp
ret
Function at 0x4090be
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi + 0x44c]
test eax, eax
je 0x4090e4
xor ecx, ecx
cmp cx, word [eax]
je 0x4090e4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40910d
mov eax, dword [esi + 0x450]
test eax, eax
je 0x4091b0
xor ecx, ecx
cmp cx, word [eax]
je 0x4091b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4091b0
lea eax, [ebp - 4]
push eax
push 1
push str.Enable
push ecx
mov ecx, esi
call fcn.004091b7
test eax, eax
jne 0x40912d
mov eax, dword [ebp - 4]
mov dword [esi + 0x454], eax
lea eax, [ebp - 8]
push eax
push 0x25800
push str.MaxSize
push ecx
mov ecx, esi
call fcn.004091b7
test eax, eax
jne 0x409150
mov eax, dword [ebp - 8]
mov dword [esi + 0x43c], eax
lea eax, [ebp - 0xc]
push eax
push 3
push str.MaxEntries
push ecx
mov ecx, esi
call fcn.004091b7
test eax, eax
jne 0x409170
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x440], eax
lea eax, [ebp - 0x10]
push eax
push 3
push str.Severity
push ecx
mov ecx, esi
call fcn.004091b7
test eax, eax
jne 0x409190
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x444], eax
lea eax, [ebp - 0x14]
push eax
push 0x10
push str.Options
push ecx
mov ecx, esi
call fcn.004091b7
test eax, eax
jne 0x4091b0
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x448], eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40962c
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 0x18], eax
mov esi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
mov eax, dword [edi + 0x438]
test eax, eax
je 0x409664
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x57
pop ebx
mov ecx, edi
call dword [edi + 0x458]
test al, al
je 0x409730
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x409730
xor ecx, ecx
cmp cx, word [eax]
je 0x409730
mov ecx, edi
call fcn.004084a7
mov ebx, eax
test ebx, ebx
je 0x4096a6
cmp ebx, 0xb7
jne 0x409730
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004087db
mov esi, dword [esp + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x409730
test esi, esi
jne 0x4096d9
push 0xe
pop ebx
jmp 0x409730
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x18]
jne 0x4096de
xor eax, eax
sub ecx, edx
push eax
sar ecx, 1
lea eax, [esp + 0x20]
push eax
lea eax, [ecx + ecx]
push eax
push esi
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [edi + 0x448], 1
mov dword [esp + 0x18], eax
je 0x409724
xor ecx, ecx
cmp cx, word [esi]
je 0x409724
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x409730
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [edi + 0x20], 0
je 0x409744
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x20], eax
test esi, esi
je 0x40974f
push esi
call fcn.00448c6c
pop ecx
mov eax, dword [edi + 0x438]
test eax, eax
je 0x409760
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x413b98
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0xc]
jae 0x413ba9
inc eax
mov dword [esi + 0x10], eax
pop esi
ret
cmp byte [esi + 0x1c], 0
jne 0x413be8
push dword [esi]
mov eax, dword [esi + 0x14]
push dword [esi + 8]
add dword [esi + 0x18], eax
push 1
push dword [esi + 4]
call fcn.0044b611
mov edx, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], edx
lea ecx, [edx - 1]
add ecx, eax
mov dword [esi + 0xc], ecx
cmp eax, dword [esi + 8]
jae 0x413be8
mov byte [edx + eax], 0
inc dword [esi + 0xc]
mov byte [esi + 0x1c], 1
pop esi
ret

Function at 0x413c0d
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
je 0x413c31
push dword [esi]
sub eax, dword [esi + 4]
push eax
push 1
push dword [esi + 4]
call fcn.0044b1c4
mov eax, dword [esi + 4]
add esp, 0x10
mov dword [esi + 0xc], eax
pop esi
ret
Function at 0x418a77
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x47b89a
call fcn.00437fb7
mov esi, dword [ebp + 8]
mov edi, str...includeMcRegistryOps.cpp
mov dword [ebp - 4], 2
push edi
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x41
push 3
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 3
mov edx, str.SetRegValue_HKML_DWORD___START
mov ecx, dword [eax]
call fcn.004112cc
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.0041180a
lea ecx, [ebp - 0x10]
call fcn.00409aa0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0x58]
mov byte [ebp - 4], 4
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
push esi
call fcn.004187aa
mov esi, eax
test esi, esi
jne 0x418b87
mov eax, dword [ebp + 0x54]
lea ecx, [ebp + 0x24]
cmp dword [ebp + 0x38], 8
mov edi, dword [ebp - 0x1c]
cmovae ecx, dword [ebp + 0x24]
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x418bd7
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x4c
push 4
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 5
mov edx, str.Failed_to_set_registry_value
mov ecx, dword [eax]
call fcn.004112cc
push esi
push ecx
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.0041180a
mov edx, str.._Error_:
mov ecx, eax
call fcn.004112cc
pop ecx
mov ecx, eax
call fcn.0040ef8c
lea ecx, [ebp - 0x10]
call fcn.00409aa0
test edi, edi
je 0x418b82
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
jmp 0x418c06
push edi
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x54
push 4
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 6
mov edx, str.Failed_to_open_registry_key
mov ecx, dword [eax]
call fcn.004112cc
push esi
push ecx
lea edx, [ebp + 0xc]
mov ecx, eax
call fcn.0041180a
mov edx, str.._Error_:
mov ecx, eax
call fcn.004112cc
pop ecx
mov ecx, eax
call fcn.0040ef8c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00409aa0
jmp 0x418bdc
mov edi, str...includeMcRegistryOps.cpp
push edi
push str.CMcRegistryOps::SetRegValue_HKML_DWORD
push 0x57
push 3
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 7
mov edx, str.SetRegValue_HKML_DWORD___END
mov ecx, dword [eax]
call fcn.004112cc
lea ecx, [ebp - 0x10]
call fcn.00409aa0
lea ecx, [ebp - 0x1c]
call fcn.00418726
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040626d
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040626d
push ebx
push 1
lea ecx, [ebp + 0x3c]
call fcn.0040626d
mov eax, esi
call fcn.00437f80
ret 0x54
Function at 0x418f07
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x47b980
call fcn.00437fb7
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x3c]
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetDWORDRegValue
push 0x7e
push 3
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 1
call fcn.00409a60
mov byte [ebp - 4], 2
mov edx, str.GetDWORDRegValue___START
mov ecx, dword [eax]
call fcn.004112cc
lea ecx, [ebp - 0x14]
call fcn.00409aa0
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x40]
mov byte [ebp - 4], 3
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x20]
cmovae eax, dword [ebp + 0xc]
push eax
push esi
call fcn.004187aa
mov esi, eax
test esi, esi
jne 0x418fea
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x14]
push ecx
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push ebx
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x418fbc
cmp dword [ebp - 0x10], 4
je 0x418fb2
push 0xd
pop esi
jmp 0x418fbc
mov esi, ebx
test esi, esi
je 0x41903f
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetDWORDRegValue
push 0x8a
push 4
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 4
mov edx, str.Failed_to_get_DWORD_from_registry_value_:
mov ecx, dword [eax]
call fcn.004112cc
lea edx, [ebp + 0x24]
jmp 0x419016
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetDWORDRegValue
push 0x8f
push 4
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 5
mov edx, str.Failed_to_open_registry_key_:
mov ecx, dword [eax]
call fcn.004112cc
lea edx, [ebp + 0xc]
push esi
push ecx
mov ecx, eax
call fcn.0041180a
mov edx, str.._Error:
mov ecx, eax
call fcn.004112cc
pop ecx
mov ecx, eax
call fcn.0040ef8c
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00409aa0
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetDWORDRegValue
push 0x92
push 3
lea ecx, [ebp - 0x10]
call fcn.00409a60
mov byte [ebp - 4], 6
mov edx, str.GetDWORDRegValue___END__exit_code_read_from_registry_is:
mov ecx, dword [eax]
call fcn.004112cc
push dword [edi]
mov ecx, eax
call fcn.0040eeaa
lea ecx, [ebp - 0x10]
call fcn.00409aa0
lea ecx, [ebp - 0x20]
call fcn.00418726
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040626d
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040626d
mov eax, esi
call fcn.00437f80
ret 0x3c
Function at 0x4190a1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x420
mov eax, 0x47b9d7
call fcn.00437feb
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x3c]
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetStringRegValue
push 0x98
push 3
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 1
call fcn.00409a60
mov byte [ebp - 4], 2
mov edx, str.GetStringRegValue___START
mov ecx, dword [eax]
call fcn.004112cc
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 1
call fcn.00409aa0
and dword [ebp - 0x428], 0
lea eax, [ebp - 0x420]
mov ebx, 0x410
push ebx
push 0
push eax
call fcn.0043d1d0
add esp, 0xc
mov dword [ebp - 0x42c], ebx
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x428]
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
xor ebx, ebx
push ecx
push dword [ebp + 0x40]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4191b7
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push ebx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push ebx
push eax
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x419186
lea eax, [ebp - 0x420]
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
call fcn.0040e491
jmp 0x419210
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetStringRegValue
push 0xa8
push 4
lea ecx, [ebp - 0x424]
call fcn.00409a60
mov byte [ebp - 4], 3
mov edx, str.Failed_to_get_registry_value_:
mov ecx, dword [eax]
call fcn.004112cc
lea edx, [ebp + 0x24]
jmp 0x4191e6
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetStringRegValue
push 0xad
push 4
lea ecx, [ebp - 0x424]
call fcn.00409a60
mov byte [ebp - 4], 4
mov edx, str.Failed_to_open_registry_key_:
mov ecx, dword [eax]
call fcn.004112cc
lea edx, [ebp + 0xc]
push esi
mov ecx, eax
call fcn.0041180a
mov edx, str.._Error:
mov ecx, eax
call fcn.004112cc
mov ecx, eax
call fcn.0040ef8c
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 1
call fcn.00409aa0
cmp dword [ebp - 0x428], 0
je 0x419225
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str...includeMcRegistryOps.cpp
push str.CMcRegistryOps::GetStringRegValue
push 0xb3
push 3
lea ecx, [ebp - 0x424]
call fcn.00409a60
mov byte [ebp - 4], 5
mov edx, str.GetStringRegValue___END
mov ecx, dword [eax]
call fcn.004112cc
lea ecx, [ebp - 0x424]
call fcn.00409aa0
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040626d
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040626d
mov eax, esi
call fcn.00437f95
ret 0x3c
Function at 0x41d4b5
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x47c2bd
call fcn.00437feb
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41d5bc
cmp byte [ebx + 0x3e], 0
je 0x41d5bc
mov eax, dword [ebx]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
sete al
test al, al
je 0x41d4f6
xor al, al
jmp 0x41d5be
xor eax, eax
mov dword [ebp - 0x18], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
call fcn.0041d3dc
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x30]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41d554
sub eax, 1
je 0x41d558
dec eax
sub eax, 1
je 0x41d5aa
xor bl, bl
jmp 0x41d5ac
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x41d590
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0044b1c4
add esp, 0x10
cmp esi, eax
jne 0x41d550
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [ebx + 0x3e], 0
je 0x41d5aa
test esi, esi
jne 0x41d51a
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00410ce2
jmp 0x41d514
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040fea8
mov al, bl
jmp 0x41d5be
mov al, 1
call fcn.00437f95
ret
Function at 0x41d7d8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4a9074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov dword [ebp - 0x1c], ecx
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ebx, edx
mov dword [ebp - 0x10], 6
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
push esi
mov esi, edx
push edi
test eax, eax
je 0x41d8bd
xor ecx, ecx
cmp cx, word [eax]
je 0x41d8bd
lea ecx, [ebp - 8]
push ecx
push edx
push eax
push 3
call fcn.00403cd7
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41d9b3
mov edi, dword [ebp - 8]
lea ecx, [edi + 8]
cmp edi, ecx
sbb eax, eax
test ecx, eax
je 0x41d888
cmp edi, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x41d86a
cmp edi, ecx
sbb eax, eax
and eax, ecx
call fcn.00438160
mov ebx, esp
test ebx, ebx
je 0x41d88e
mov dword [ebx], 0xcccc
jmp 0x41d883
cmp edi, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.0044a832
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41d88e
mov dword [ebx], 0xdddd
add ebx, 8
jmp 0x41d88a
xor ebx, ebx
test ebx, ebx
jne 0x41d896
push 0xe
pop edi
jmp 0x41d9b3
push edi
push 0
push ebx
call fcn.0043d1d0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x18]
push 3
call fcn.00403cd7
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x41d99d
xor edx, edx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d96b
xor ecx, ecx
cmp cx, word [eax]
je 0x41d96b
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push 3
call fcn.00403cd7
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41d99d
mov edi, dword [ebp - 0xc]
lea ecx, [edi + 8]
cmp edi, ecx
sbb eax, eax
test ecx, eax
je 0x41d93f
cmp edi, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x41d921
cmp edi, ecx
sbb eax, eax
and eax, ecx
call fcn.00438160
mov esi, esp
test esi, esi
je 0x41d945
mov dword [esi], 0xcccc
jmp 0x41d93a
cmp edi, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.0044a832
mov esi, eax
pop ecx
test esi, esi
je 0x41d945
mov dword [esi], 0xdddd
add esi, 8
jmp 0x41d941
xor esi, esi
test esi, esi
jne 0x41d94a
push 0xe
pop edi
jmp 0x41d99d
push edi
push 0
push esi
call fcn.0043d1d0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
push 3
call fcn.00403cd7
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x41d99d
lea ecx, [ebp - 0x14]
call fcn.004025d4
lea eax, [ebp - 0x14]
push eax
push 0x20006
push 0
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x41d99d
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
test ebx, ebx
je 0x41d9a8
push ebx
call fcn.00401321
pop ecx
test esi, esi
je 0x41d9b3
push esi
call fcn.00401321
pop ecx
lea ecx, [ebp - 0x14]
call fcn.004025d4
mov eax, edi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00437519
mov esp, ebp
pop ebp
ret
Function at 0x41dcba
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0041f0cf
cmp dword [esi + 4], ebx
jne 0x41dce9
mov eax, 0x3f2
jmp 0x41dde4
lea eax, [ebp - 4]
push eax
push 9
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41dde4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jne 0x41ddd3
cmp dword [ebp - 0xc], ebx
je 0x41ddd3
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
call fcn.0044a832
mov esi, eax
mov dword [ebp - 0x14], esi
pop ecx
test esi, esi
je 0x41ddd0
cmp dword [ebp - 0xc], ebx
jbe 0x41ddc5
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call fcn.0043d1d0
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41ddbf
push esi
call fcn.0044a361
mov edi, dword [edi]
pop ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [edi + 4]
push edi
call fcn.0041f25d
push ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.0041f14a
mov dword [edi + 4], esi
mov ecx, dword [esi + 4]
mov edi, dword [ebp + 0xc]
mov dword [ecx], esi
mov esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x41dd54
push esi
call fcn.00448c6c
pop ecx
xor esi, esi
jmp 0x41ddd3
push 0xe
pop esi
cmp dword [ebp - 4], 0
je 0x41dde2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41dded
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], ebx
mov ecx, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0041f0cf
cmp dword [esi + 4], ebx
jne 0x41de1c
mov eax, 0x3f2
jmp 0x41df10
lea eax, [ebp - 4]
push eax
push 1
push ebx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41df10
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jne 0x41deff
cmp dword [ebp - 0xc], ebx
je 0x41deff
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
call fcn.0044a832
mov esi, eax
mov dword [ebp - 0x14], esi
pop ecx
test esi, esi
je 0x41defc
cmp dword [ebp - 0xc], ebx
jbe 0x41def1
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
push 0
push esi
call fcn.0043d1d0
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x41deeb
push esi
call fcn.0044a361
mov edi, dword [edi]
pop ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [edi + 4]
push edi
call fcn.0041f25d
push ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.0041f14a
mov dword [edi + 4], esi
mov ecx, dword [esi + 4]
mov edi, dword [ebp + 0xc]
mov dword [ecx], esi
mov esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0xc]
jb 0x41de83
push esi
call fcn.00448c6c
pop ecx
xor esi, esi
jmp 0x41deff
push 0xe
pop esi
cmp dword [ebp - 4], 0
je 0x41df0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f7da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CreateThread]