joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467a40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b280
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x718924]
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 0x467a86
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00468a60
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00468e20
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 0x467b10
jg 0x467af5
mov edi, eax
jmp 0x467afe
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegCreateKeyExW:_0x_08x.
push str.kupdate::KRegistry::DeleteValue
push 0x131
jmp 0x467b53
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 0x467b62
jg 0x467b3a
mov edi, esi
jmp 0x467b43
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegDeleteValue:_0x_08x.
push str.kupdate::KRegistry::DeleteValue
push 0x138
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 0
call fcn.0048ffd0
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x467b98
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467b8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467bff
push edx
push ecx
call fcn.004cb4db
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 0x467be2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467bd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467bff
push edx
push ecx
call fcn.004cb4db
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x467d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x718924]
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 0x467de0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00468a60
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00468e20
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 0x467e6a
jg 0x467e4f
mov edi, eax
jmp 0x467e58
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegOpenKeyEx:_0x_08x.
push str.kupdate::KRegistry::QueryType
push 0xdf
jmp 0x467ebf
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 0x467ece
jg 0x467ea6
mov edi, esi
jmp 0x467eaf
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegQueryValueEx:_0x_08x.
push str.kupdate::KRegistry::QueryType
push 0xeb
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x467f04
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467efa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467f6c
push edx
push ecx
call fcn.004cb4db
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 0x467f4e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x467f44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x467f6c
push edx
push ecx
call fcn.004cb4db
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x467f80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x718924]
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 0x467fd0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00468a60
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00468e20
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 0x468055
jle 0x468049
movzx esi, si
or esi, 0x80070000
mov eax, 0x9f
mov ecx, str.Failed_RegOpenKeyExW:_0x_08x.
jmp 0x4680a7
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 0x4680c0
jle 0x46809d
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:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
jmp 0x4680c2
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4680f8
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4680ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46815f
push edx
push ecx
call fcn.004cb4db
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 0x468142
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468138
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46815f
push edx
push ecx
call fcn.004cb4db
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x468170
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x718924]
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 0x4681c0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00468a60
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00468e20
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 0x468245
jle 0x468239
movzx esi, si
or esi, 0x80070000
mov eax, 0x63
mov ecx, str.Failed_RegOpenKeyEx:_0x_08x.
jmp 0x468298
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 0x4682b1
jle 0x46828e
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:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
jmp 0x4682b3
xor esi, esi
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4682e9
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4682df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468350
push edx
push ecx
call fcn.004cb4db
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 0x468333
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468329
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468350
push edx
push ecx
call fcn.004cb4db
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x468680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b280
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x718924]
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 edi, edi
mov ecx, edx
mov dword [ebp - 0x18], edi
xor eax, eax
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 0x4686c4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00468a60
mov esi, eax
add esp, 4
test esi, esi
jne 0x468723
push 0x80070001
push str.Failed_RegCreateKeyEx:_0x_08x.
push str.kupdate::KRegistry::WriteDWord
push 0xba
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
mov esi, 0x80070001
jmp 0x468800
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00468e20
add esp, 8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x44]
push 0
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
or eax, 0x20006
push 0
push eax
push 0
push 0
push 0
push ecx
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x44], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x46879a
jle 0x468779
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_RegCreateKeyEx:_0x_08x.
push str.kupdate::KRegistry::WriteDWord
push 0xc4
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
jmp 0x4687f8
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 0x4687f6
jg 0x4687ce
mov edi, esi
jmp 0x4687d7
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegSetValueEx:_0x_08x.
push str.kupdate::KRegistry::WriteDWord
push 0xcd
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
mov esi, edi
lea ecx, [ebp - 0x40]
call fcn.00448fb0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x468836
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46882c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468853
push edx
push ecx
call fcn.004cb4db
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x468860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66b390
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x718924]
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 0x4688b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00468a60
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00468e20
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 0x468942
jg 0x468927
mov edi, eax
jmp 0x468930
movzx edi, ax
or edi, 0x80070000
push edi
push str.Failed_RegCreateKeyEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x83
jmp 0x4689a6
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x468947
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 0x4689b5
jg 0x46898d
mov edi, esi
jmp 0x468996
movzx edi, si
or edi, 0x80070000
push edi
push str.Failed_RegSetValueEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x8d
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4689eb
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4689e1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468a53
push edx
push ecx
call fcn.004cb4db
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 0x468a35
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x468a2b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x468a53
push edx
push ecx
call fcn.004cb4db
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x469160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4692e3
cmp word [edi], 0
je 0x4692e3
mov ebx, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x4692e3
mov ecx, edi
push esi
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469191
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov dword [ebp - 4], ecx
je 0x4692da
jmp 0x4691b0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4691e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x46921f
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x46926a
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x469246
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
add edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4691b0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x469234
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_WriteFile:_0x_08x.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x39
jmp 0x4692cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x46925b
movzx esi, si
or esi, 0x80070000
push esi
push str.Failed_GetOverlappedResult:_0x_08x.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x47
jmp 0x4692cb
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
test eax, eax
je 0x46928b
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x4692b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46929d
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CancelIo:_0x_08x.
push str.kupdate::CancelPendingIO
push 0x1f
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 9
call fcn.0048ffd0
add esp, 0x18
mov esi, 0x800705b4
push esi
push str.WaitForSingleObject_timeout.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x40
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 0
call fcn.0048ffd0
add esp, 0x18
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Invalid_Args.
push str.kupdate::KIPCMessage::SendIPCMessage
push 0x2a
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKIpcMessage.cpp
push 0
call fcn.0048ffd0
add esp, 0x14
mov eax, 0x80070057
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ae10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x718924]
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 0x46ae9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46ae70
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_allocate_sid:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x2ad
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.0048ffd0
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
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 0x46aeea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46aec4
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_check_token_group:_0x_08x.
push str.kupdate::KProcessUtils::IsUserInGroup
push 0x2b3
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 5
call fcn.0048ffd0
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.004cb998
mov esp, ebp
pop ebp
ret