joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b880
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 0x44b8d0
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 + 0x14]
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 0x44b955
jle 0x44b949
movzx esi, si
or esi, 0x80070000
mov eax, 0x63
mov ecx, str.Failed_RegOpenKeyEx:_0x_08x.
jmp 0x44b9a8
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x48]
push ecx
add eax, eax
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x4c]
push edi
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
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 0x44b9c1
jle 0x44b99e
movzx esi, si
or esi, 0x80070000
mov eax, 0x6e
mov ecx, str.Failed_RegQueryValueEx:_0x_08x.
push esi
push ecx
push str.kupdate::KRegistry::ReadStr
push eax
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.00412750
add esp, 0x18
jmp 0x44b9c3
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44b9f9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44b9ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44ba39
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 0x44ba49
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44ba3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44ba3f
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
Function at 0x44ba70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1838
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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 + 0x10]
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 0x44bac0
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
lea ecx, [ebp - 0x28]
mov edx, eax
xor esi, esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], esi
cmovae ecx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp + 0x18]
or eax, 0x20019
push eax
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x44bb2f
jg 0x44bb21
mov esi, eax
jmp 0x44bbb8
movzx esi, ax
or esi, 0x80070000
jmp 0x44bbb8
lea eax, [ebp - 0x54]
mov dword [ebp - 0x34], 0x104
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x44bb8c
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jg 0x44bb81
mov esi, edi
jmp 0x44bbb8
movzx esi, di
or esi, 0x80070000
jmp 0x44bbb8
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x44bbaf
jg 0x44bba6
mov esi, eax
jmp 0x44bbaf
movzx esi, ax
or esi, 0x80070000
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x44bbf4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44bbea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44bbea
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x44bd90
Capabilities:
Set 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 0x44bdd6
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 edi
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 0x20006
push edi
push eax
push edi
push edi
push edi
push ecx
push esi
mov dword [ebp - 0x44], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x44be64
jg 0x44be49
mov edi, eax
jmp 0x44be52
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegCreateKeyEx:_0x_08x.
push str.kupdate::KRegistry::WriteDWord
push 0xbf
jmp 0x44beb1
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp + 0xc]
push 4
push ecx
push 4
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44bec0
jg 0x44be98
mov edi, esi
jmp 0x44bea1
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegSetValueEx:_0x_08x.
push str.kupdate::KRegistry::WriteDWord
push 0xc8
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 0x44bef6
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44beec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44bf36
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 0x44bf46
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44bf3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44bf3c
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 0x44bf70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e18a0
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 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 0x44bfc0
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 edi
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 0x20006
push edi
push eax
push edi
push edi
push edi
push ecx
push esi
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x44c052
jg 0x44c037
mov edi, eax
jmp 0x44c040
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegCreateKeyEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x83
jmp 0x44c0b6
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44c057
sub edx, ecx
lea ecx, [ebp - 0x40]
sar edx, 1
cmp dword [ebp - 0x2c], 8
cmovae ecx, dword [ebp - 0x40]
lea eax, [edx*2 + 2]
push eax
push ebx
push 1
push 0
push ecx
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x44]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x44c0c5
jg 0x44c09d
mov edi, esi
jmp 0x44c0a6
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegSetValueEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x8d
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 0x44c0fb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c0f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44c13b
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 0x44c14b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44c141
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44c141
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 0x44c7e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x204]
push esi
mov esi, dword [ebp + 0xc]
push 0x200
push 0
push eax
mov dword [ebp - 0x210], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x10008
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x44c844
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x44c8c3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x20c], 0x100
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x208]
call edi
mov esi, eax
cmp esi, 0x103
je 0x44c8a5
test esi, esi
jne 0x44c8b4
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call fcn.0044c7e0
mov esi, eax
add esp, 8
test esi, esi
je 0x44c850
jmp 0x44c8b4
push dword [ebp - 0x210]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x44ec80
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1d26
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x53d9f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
push str.kernel32.dll
mov byte [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [ebp + 8]
mov dword [edi + 0x10], eax
test eax, eax
je 0x44ed98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetDllDirectoryW
push eax
call esi
push str.GetDllDirectoryW
push dword [edi + 0x10]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
test eax, eax
je 0x44ed82
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
call eax
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004bee3b
mov ecx, eax
add esp, 4
mov eax, dword [edi + 8]
mov dword [edi + 8], ecx
test eax, eax
je 0x44ed66
push eax
call fcn.004bee44
mov ecx, dword [edi + 8]
add esp, 4
lea eax, [esi*2 + 2]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x18]
add esp, 0xc
push dword [edi + 8]
push esi
call eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x44ed98
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x44ed93
mov eax, dword [ebx]
push eax
call ecx
mov dword [edi], eax
push 0x208
call fcn.004bee3b
mov ecx, dword [edi + 0xc]
add esp, 4
mov dword [edi + 0xc], eax
test ecx, ecx
je 0x44edbb
push ecx
call fcn.004bee44
mov eax, dword [edi + 0xc]
add esp, 4
push 0x208
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [edi + 0xc]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x44edf6
cmp eax, 0x200
jae 0x44edf6
cmp dword [ebx + 0x14], 8
jb 0x44edec
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [edi + 4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x451a10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x53d9f8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x451a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x451a70
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_allocate_sid:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x209
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.00412750
add esp, 0x18
jmp 0x451aeb
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x451adc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x451ab6
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_check_token_group:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x20f
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.00412750
add esp, 0x18
mov dword [ebp - 0x14], 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], 0
jne 0x451b0b
call fcn.00453290
test al, al
jne 0x451b0b
call fcn.00453480
test al, al
jne 0x451b0b
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x451b20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e1fe9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
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 esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 0
push 0x20
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004bedfd
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi], eax
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x2c], 0
jb 0x451b9d
mov edi, dword [edi]
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebx, ebx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], ebx
jle 0x451c75
mov edx, dword [eax + ebx*4]
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x451bd2
sub eax, edi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.004033b0
cmp dword [esi + 4], 0x7ffffff
mov edi, dword [esi]
mov dword [ebp - 4], 1
je 0x451c9a
mov dword [ebp - 0x3c], esi
push 0x20
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], 0
call fcn.004bedfd
mov ecx, eax
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
inc ebx
add esp, 4
mov byte [ebp - 4], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x1c], eax
inc dword [esi + 4]
mov eax, dword [edi + 4]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov dword [edi + 4], ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0x30]
cmp ebx, dword [ebp - 0x2c]
jl 0x451bb6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
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
push str.list_too_long
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__
int3
Function at 0x4523d0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e209b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x452482
cmp esi, 0xffffffff
je 0x452482
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x452482
lea edx, [ebp - 0x21c]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x452460
sub edx, ecx
lea eax, [ebp - 0x21c]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004033b0
mov bl, 1
jmp 0x452484
xor bl, bl
test esi, esi
je 0x452494
cmp esi, 0xffffffff
je 0x452494
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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.004bee49
mov esp, ebp
pop ebp
ret
Function at 0x4525c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
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]
test edi, edi
je 0x45273c
cmp word [edi], 0
je 0x45273c
test esi, esi
je 0x45273c
push ebx
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0x22c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45266a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x452638
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CreateToolhelp32Snapshot:_0x_08x.
push str.kupdate::KProcessUtils::GetProcessPid
push 0x92
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412750
add esp, 0x18
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4526eb
jmp 0x452680
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4526ba
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4526ab
mov eax, dword [ebp - 0x228]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x4526ba
lea eax, [ebp - 0x228]
push eax
push ecx
mov ecx, esi
call fcn.00451630
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x452680
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4526fd
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_Process32First:_0x_08x.
push str.kupdate::KProcessUtils::GetProcessPid
push 0x9f
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412750
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bee49
mov esp, ebp
pop ebp
ret
push str.Invalid_Args.
push str.kupdate::KProcessUtils::GetProcessPid
push 0x89
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412750
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
xor al, al
pop edi
pop esi
call fcn.004bee49
mov esp, ebp
pop ebp
ret