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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504715
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x567e00]
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 - 0x28], 0
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 0x44cdc0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403a70
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044d8a0
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044dc40
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 0x44ce45
jle 0x44ce39
movzx esi, si
or esi, 0x80070000
mov eax, 0xa0
mov ecx, str.Failed_RegOpenKeyExW:_0x_08x.
jmp 0x44ce97
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 0x44ceb0
jle 0x44ce8d
movzx esi, si
or esi, 0x80070000
mov eax, 0xab
mov ecx, str.Failed_RegQueryValueEx:_0x_08x.
push esi
push ecx
push str.kupdate::KRegistry::ReadDWord
push eax
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.00412230
add esp, 0x18
jmp 0x44ceb2
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44cee8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44cede
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44cf28
push edx
push ecx
call fcn.004c6f6f
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 0x44cf38
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44cf2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44cf2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x44cf60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504715
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x567e00]
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 - 0x28], 0
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 0x44cfb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403a70
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044d8a0
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044dc40
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 0x44d035
jle 0x44d029
movzx esi, si
or esi, 0x80070000
mov eax, 0x64
mov ecx, str.Failed_RegOpenKeyEx:_0x_08x.
jmp 0x44d088
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 0x44d0a1
jle 0x44d07e
movzx esi, si
or esi, 0x80070000
mov eax, 0x6f
mov ecx, str.Failed_RegQueryValueEx:_0x_08x.
push esi
push ecx
push str.kupdate::KRegistry::ReadStr
push eax
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.00412230
add esp, 0x18
jmp 0x44d0a3
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44d0d9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d0cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d119
push edx
push ecx
call fcn.004c6f6f
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 0x44d129
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d11f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44d11f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x44d150
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50474d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x567e00]
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 - 0x28], 0
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 0x44d1a1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403a70
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044d8a0
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 0x44d210
jg 0x44d202
mov esi, eax
jmp 0x44d299
movzx esi, ax
or esi, 0x80070000
jmp 0x44d299
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 0x44d26d
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jg 0x44d262
mov esi, edi
jmp 0x44d299
movzx esi, di
or esi, 0x80070000
jmp 0x44d299
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 0x44d290
jg 0x44d287
mov esi, eax
jmp 0x44d290
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 0x44d2d5
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d2cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44d2cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x44d690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504795
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x567e00]
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 - 0x28], 0
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 0x44d6e1
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403a70
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0044d8a0
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0044dc40
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 0x44d773
jg 0x44d758
mov edi, eax
jmp 0x44d761
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegCreateKeyEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x84
jmp 0x44d7df
mov edx, ebx
lea ecx, [edx + 2]
jmp 0x44d780
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x44d780
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 0x44d7ee
jg 0x44d7c6
mov edi, esi
jmp 0x44d7cf
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegSetValueEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x8e
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.00412230
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x44d824
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d81a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d864
push edx
push ecx
call fcn.004c6f6f
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 0x44d874
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44d86a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x44d86a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x44df50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x567e00]
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 0x44dfb4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x44e033
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 0x44e015
test esi, esi
jne 0x44e024
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call fcn.0044df50
mov esi, eax
add esp, 8
test esi, esi
je 0x44dfc0
jmp 0x44e024
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.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x453400
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x567e00]
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 0x453481
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x453460
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_allocate_sid:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x2af
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.00412230
add esp, 0x18
jmp 0x4534db
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x4534cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4534a6
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_check_token_group:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x2b5
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.00412230
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 0x4534fb
call fcn.00454f40
test al, al
jne 0x4534fb
call fcn.00455130
test al, al
jne 0x4534fb
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x453510
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504f1e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x567e00]
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.004c6f3f
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 0x45358d
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 0x453676
jmp 0x4535b0
mov edx, dword [eax + ebx*4]
xor eax, eax
mov dword [ebp - 0x28], 0
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 0x4535d3
sub eax, edi
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.00403a70
cmp dword [esi + 4], 0x7ffffff
mov edi, dword [esi]
mov dword [ebp - 4], 1
je 0x45369b
mov dword [ebp - 0x3c], esi
push 0x20
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], 0
call fcn.004c6f3f
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 0x4535b0
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.004c6f8b
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 0x453ce0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505020
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x567e00]
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 0x453d96
cmp esi, 0xffffffff
je 0x453d96
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 0x453d92
lea edx, [ebp - 0x21c]
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x453d70
sub edx, ecx
lea eax, [ebp - 0x21c]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00403a70
mov bl, 1
jmp 0x453d98
xor bl, bl
jmp 0x453da1
xor bl, bl
test esi, esi
je 0x453da8
cmp esi, 0xffffffff
je 0x453da8
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.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x454960
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x567e00]
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 0x4549ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4549c0
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_allocate_sid:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x2af
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.00412230
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x454a3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x454a14
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_check_token_group:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x2b5
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.00412230
add esp, 0x18
mov dword [ebp - 0x14], 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x14], 0
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
Function at 0x454d50
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5051cd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x567e00]
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]
test eax, eax
jne 0x454d88
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x454dcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x454dbc
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x2c5
mov edx, str.Failed_open_process_token:_0x08x.
jmp 0x454ef1
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
call esi
push dword [ebp - 0x1c]
call fcn.004c6f7d
add esp, 4
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push edi
push 1
push dword [ebp - 0x20]
call esi
test eax, eax
jne 0x454e31
push edi
call fcn.004c6f86
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x454e22
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x2cf
mov edx, str.failed_get_token_infomation:
jmp 0x454ef1
mov esi, dword [edi]
test esi, esi
je 0x454ecc
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x454ecc
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x454ea9
push edi
call fcn.004c6f86
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x454e9d
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x2e1
mov edx, str.Failed_allocate_sid:_0x08x.
jmp 0x454ef1
push dword [ebp - 0x24]
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x24]
test eax, eax
setne bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push edi
call fcn.004c6f86
add esp, 4
jmp 0x454f0a
push edi
call fcn.004c6f86
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x454ee7
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x2d6
mov edx, str.Failed_get_sid:_0x08x.
push eax
push edx
push str.kupdate::KProcessUtils::IsSystemProcess
push ecx
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412230
add esp, 0x18
xor bl, bl
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x454f1d
cmp ecx, 0xffffffff
je 0x454f1d
push ecx
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.004c6f8b
mov esp, ebp
pop ebp
ret