joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4405a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x78]
push str.HDID
push eax
call fcn.0043fff0
add esp, 8
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x440646
push 0x50
push ecx
lea eax, [ebp - 0x60]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x60]
push 0x28
push eax
call fcn.004b80d0
test eax, eax
je 0x44062c
lea ecx, [ebp - 0x60]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440610
sub ecx, edx
lea eax, [ebp - 0x60]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x78]
call fcn.004033b0
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push eax
push str.HDID
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0x78]
cmp esi, eax
je 0x44065e
cmp dword [ebp - 0x64], 8
push ecx
cmovae eax, dword [ebp - 0x78]
mov ecx, esi
push eax
call fcn.004033b0
cmp dword [esi + 0x14], 8
jb 0x440666
mov esi, dword [esi]
push esi
push str.OK__Result_is:__s.
push str.kupdate::KClientInfoGetter::GetInfoKeyHDID
push 0x5d5
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
call fcn.00412750
mov edx, dword [ebp - 0x64]
add esp, 0x18
cmp edx, 8
jb 0x4406c1
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4406b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4406b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8
Function at 0x440ee0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f0
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x140], 0
jne 0x440f67
push 0x3e8
lea eax, [ebp - 0x3ec]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x3f0], 0x1f3
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x3ec]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x440f67
lea ecx, [ebp - 0x3ec]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x440f45
sub ecx, edx
lea eax, [ebp - 0x3ec]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x130]
call fcn.004033b0
lea eax, [edi + 0x130]
cmp esi, eax
je 0x440f86
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x440f7b
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.004033b0
cmp dword [esi + 0x14], 8
jb 0x440f8e
mov esi, dword [esi]
push esi
push str.UserName_is:__s.
push str.kupdate::KClientInfoGetter::GetInfoKeyUserName
push 0x6d7
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcmiscKClientInfoGetter.cpp
push 7
call fcn.00412750
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.004bee49
mov esp, ebp
pop ebp
ret 8
Function at 0x442dc0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0f02
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x442e85
lea eax, [ebp - 0x228]
push eax
push 4
lea eax, [ebp - 0x220]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x442e7e
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x220]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x442e90
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004033b0
mov eax, edi
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.004bee49
mov esp, ebp
pop ebp
ret

Function at 0x444040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x5421c0]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x210], esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x541a40]
cmp eax, dword [ecx + 4]
jg 0x4440fe
cmp dword [0x53d73c], 0
jne 0x4440df
push 3
push 0x4fe2fc
mov ecx, 0x53d72c
call fcn.004033b0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x4440df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4440df
push 3
push 0x4fe304
mov ecx, 0x53d72c
call fcn.004033b0
push 0x53d72c
mov ecx, esi
call fcn.00413820
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004bee49
mov esp, ebp
pop ebp
ret 4
push 0x541a40
call fcn.004bf206
add esp, 4
cmp dword [0x541a40], 0xffffffff
jne 0x44407d
push 0x4ec270
call fcn.004bf0be
push 0x541a40
call fcn.004bf1bc
add esp, 8
jmp 0x44407d
Function at 0x445f70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x9c]
push 0x19
push eax
call fcn.00416f00
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 8
cmovae eax, dword [ebp - 0x9c]
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4f1b98
push str.InstallPerUser
push 0x4f0f98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x4f1b88
lea eax, [ebp - 0x84]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44600b
test dx, dx
je 0x446007
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44600b
add eax, 4
add ecx, 4
test dx, dx
jne 0x445fe5
xor eax, eax
jmp 0x446010
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x88]
push ebx
xor ebx, ebx
test eax, eax
sete bl
cmp edx, 8
jb 0x44605a
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446050
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x446050
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret 4

Function at 0x446ae0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x9c]
push 0x19
push eax
call fcn.00416f00
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x14
lea eax, [ebp - 0x9c]
cmp dword [ebp - 0x88], 8
cmovae eax, dword [ebp - 0x9c]
push eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4f1b98
push str.Inactive
push 0x4f0f98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x4f1b98
lea eax, [ebp - 0x84]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x446b7b
test dx, dx
je 0x446b77
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x446b7b
add eax, 4
add ecx, 4
test dx, dx
jne 0x446b55
xor eax, eax
jmp 0x446b80
sbb eax, eax
or eax, 1
mov edx, dword [ebp - 0x88]
push ebx
xor ebx, ebx
test eax, eax
sete bl
cmp edx, 8
jb 0x446bca
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446bc0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x446bc0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret 4
Function at 0x446ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x446d11
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x446cdf
cmp eax, 2
jne 0x446cfb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x446d0b
test ecx, ecx
je 0x446d06
test cl, 1
jne 0x446cfb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x446d0b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x44b020
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1788
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b065
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004033b0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044c170
add esp, 4
mov edx, eax
cmp dword [ebp + 0xc], 0
je 0x44b0b0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push edx
call fcn.0044c7e0
add esp, 8
jmp 0x44b0c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
jle 0x44b0d4
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x44b0f5
push esi
push str.Failed_:_0x_08x.
push str.kupdate::KRegistry::DeleteKey
push 0x119
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 0
call fcn.00412750
add esp, 0x18
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44b131
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b127
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44b127
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x44b150
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e17c0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b196
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004033b0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044c170
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044c4e0
add esp, 0xc
xor edi, edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 0x20006
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44b220
jg 0x44b205
mov edi, eax
jmp 0x44b20e
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegCreateKeyExW:_0x_08x.
push str.kupdate::KRegistry::DeleteValue
push 0x12c
jmp 0x44b263
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44b272
jg 0x44b24a
mov edi, esi
jmp 0x44b253
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegDeleteValue:_0x_08x.
push str.kupdate::KRegistry::DeleteValue
push 0x133
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 0
call fcn.00412750
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44b2a8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b29e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b2e8
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x44b2f8
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b2ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44b2ee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, edi
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.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x44b320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0428
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b366
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004033b0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044c170
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044c4e0
add esp, 0xc
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x20019
push eax
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44b3d2
xor bl, bl
jmp 0x44b3f4
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 0
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete bl
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44b42a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b420
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b46a
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x44b47a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b470
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44b470
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x44b4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1800
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x53d9f8]
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 edx, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b4f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004033b0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044c170
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044c4e0
add esp, 0xc
xor edi, edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 0x20019
push eax
push edi
push ecx
push esi
mov dword [ebp - 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44b57a
jg 0x44b55f
mov edi, eax
jmp 0x44b568
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegOpenKeyEx:_0x_08x.
push str.kupdate::KRegistry::QueryType
push 0xda
jmp 0x44b5cf
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x48]
push 0
push 0
push ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], edi
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x48]
mov dword [ebx], ecx
test esi, esi
je 0x44b5de
jg 0x44b5b6
mov edi, esi
jmp 0x44b5bf
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegQueryValueEx:_0x_08x.
push str.kupdate::KRegistry::QueryType
push 0xe6
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.00412750
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44b614
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b60a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b654
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x44b664
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b65a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44b65a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x44b690
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1800
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
mov ecx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b6e0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004033b0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044c170
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044c4e0
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 0x20019
push eax
push 0
push ecx
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x44b765
jle 0x44b759
movzx esi, si
or esi, 0x80070000
mov eax, 0x9f
mov ecx, str.Failed_RegOpenKeyExW:_0x_08x.
jmp 0x44b7b7
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x48]
push ecx
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push ecx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 4
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44b7d0
jle 0x44b7ad
movzx esi, si
or esi, 0x80070000
mov eax, 0xaa
mov ecx, str.Failed_RegQueryValueEx:_0x_08x.
push esi
push ecx
push str.kupdate::KRegistry::ReadDWord
push eax
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.00412750
add esp, 0x18
jmp 0x44b7d2
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44b808
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b7fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44b848
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x44b858
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b84e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44b84e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov eax, esi
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.004bee49
mov esp, ebp
pop ebp
ret