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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00495b20
add esp, 0xc
push 0
push 0x25
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x44f046
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret
lea eax, [ebp - 0x20c]
push str._ntdll.dll
push eax
call fcn.0049752b
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x218], eax
test eax, eax
je 0x44f035
push eax
call fcn.004938c3
pop ecx
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x210], eax
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x44f0a5
push dword [ebp - 0x210]
call fcn.00495548
pop ecx
jmp 0x44f035
and dword [ebp - 0x220], 0
and dword [ebp - 0x214], 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x4c1660
push dword [ebp - 0x210]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x44f0ea
xor esi, esi
push dword [ebp - 0x210]
call fcn.00495548
pop ecx
mov eax, esi
jmp 0x44f037
mov eax, dword [ebp - 0x214]
movzx ecx, word [eax + 0x12]
mov dword [esi], ecx
movzx ecx, word [eax + 0x10]
mov dword [edi], ecx
movzx ecx, word [eax + 0x16]
mov dword [ebx], ecx
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0x21c]
xor esi, esi
mov dword [ecx], eax
inc esi
jmp 0x44f0d7

Function at 0x44f113
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
mov dword [ebp - 0x120], 0x11c
call fcn.00495b20
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
movzx eax, byte [ebp - 6]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push str.major:__d__minor:__d__type:__d
push str.kupdate::KProcessUtils::IsWin7OrLater
push 0x3b3
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 4
call fcn.004030c6
add esp, 0x20
cmp dword [ebp - 0x11c], 6
jne 0x44f1b2
xor eax, eax
inc eax
cmp byte [ebp - 6], al
jne 0x44f19b
cmp dword [ebp - 0x118], eax
je 0x44f1a6
cmp dword [ebp - 0x118], 2
jae 0x44f1a6
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004959f8
leave
ret
jbe 0x44f1a4
mov al, 1
jmp 0x44f1a6
Function at 0x44f82d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
cmp esi, ebx
je 0x44f95b
cmp word [esi], bx
je 0x44f95b
cmp edi, ebx
je 0x44f95b
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00495b20
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp eax, 0xffffffff
jne 0x44f8ca
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x44f8aa
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateToolhelp32Snapshot:_0x_08x.
push str.kupdate::KProcessUtils::GetProcessPid
push 0x72
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push ebx
call fcn.004030c6
add esp, 0x18
jmp 0x44f975
lea ecx, [ebp - 0x230]
push ecx
push eax
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x44f914
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00499b67
pop ecx
pop ecx
test eax, eax
jne 0x44f8fc
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.0044f7c7
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x234]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x44f8db
jmp 0x44f943
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x44f928
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_Process32First:_0x_08x.
push str.kupdate::KProcessUtils::GetProcessPid
push 0x7f
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push ebx
call fcn.004030c6
add esp, 0x18
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [edi]
xor ecx, ecx
cmp eax, dword [edi + 4]
setne al
jmp 0x44f977
push 0x4d5944
push str.kupdate::KProcessUtils::GetProcessPid
push 0x69
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push ebx
call fcn.004030c6
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret
Function at 0x44fbab
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor esi, esi
cmp eax, dword [edi + 4]
je 0x44fcfb
cmp ebx, esi
je 0x44fcfb
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00495b20
add esp, 0xc
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
jne 0x44fc45
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jle 0x44fc22
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateToolhelp32Snapshot:_0x_08x.
push str.kupdate::KProcessUtils::IsProcessExists
push 0x95
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push esi
call fcn.004030c6
add esp, 0x18
jmp 0x44fd18
lea ecx, [ebp - 0x230]
push ecx
push eax
mov byte [ebp - 0x231], 0
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x44fcb5
mov esi, dword [edi]
jmp 0x44fc83
cmp dword [esi + 0x14], 8
jb 0x44fc6b
mov eax, dword [esi]
jmp 0x44fc6d
mov eax, esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00499b67
pop ecx
pop ecx
test eax, eax
je 0x44fc8a
add esi, 0x1c
cmp esi, dword [edi + 4]
jne 0x44fc61
jmp 0x44fc9d
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
mov byte [ebp - 0x231], 1
call fcn.004024d5
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x44fc5d
jmp 0x44fce7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, esi
jle 0x44fcc9
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_Process32First:_0x_08x.
push str.kupdate::KProcessUtils::IsProcessExists
push 0xad
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push esi
call fcn.004030c6
add esp, 0x18
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 0x231]
jmp 0x44fd1a
push 0x4d5944
push str.kupdate::KProcessUtils::IsProcessExists
push 0x8c
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push esi
call fcn.004030c6
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret
Function at 0x44fd29
Capabilities:
Get process image filename

Disassembly:
push 0x214
mov eax, 0x4bd05e
call fcn.00495a70
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
and dword [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.0044d402
test al, al
jne 0x44fdcb
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00495b20
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x44fdcb
lea eax, [ebp - 0x21c]
push eax
call fcn.00495461
pop ecx
push eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.00402570
test esi, esi
je 0x44fdc7
cmp esi, 0xffffffff
je 0x44fdc7
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
jmp 0x44fddd
test esi, esi
je 0x44fddb
cmp esi, 0xffffffff
je 0x44fddb
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
call fcn.00495af3
ret

Function at 0x450701
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x20c], eax
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
xor esi, esi
lea eax, [ebp - 0x202]
push esi
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], 0x100
call fcn.00495b20
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x10008
push esi
push dword [ebp - 0x20c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x450775
xor eax, eax
jmp 0x4507ee
cmp eax, esi
jne 0x4507ee
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp ebx, 0x103
je 0x4507cc
cmp ebx, esi
jne 0x4507e0
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x208]
call fcn.00450701
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
je 0x450779
jmp 0x4507e0
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004959f8
leave
ret
Function at 0x450a65
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x4bd14c
call fcn.00495a70
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004507fc
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004509a8
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], edi
jae 0x450ab3
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0x14]
or ecx, 0x20019
push ecx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x450b16
jle 0x450ada
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_RegOpenKeyEx:_0x_08x.
push str.kupdate::KRegistry::ReadStr
push 0x62
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.004030c6
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, esi
call fcn.00495af3
ret
mov eax, dword [ebp + 0x10]
add eax, eax
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], edi
jae 0x450b2d
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x54]
push ecx
push esi
lea ecx, [ebp - 0x50]
push ecx
push edi
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x450b70
jle 0x450b5e
and esi, 0xffff
or esi, 0x80070000
push esi
push str.Failed_RegQueryValueEx:_0x_08x.
push str.kupdate::KRegistry::ReadStr
push 0x6d
jmp 0x450ae9
xor esi, esi
jmp 0x450af8
Function at 0x450b74
Capabilities:
Set registry value

Disassembly:
push 0x44
mov eax, 0x4bd117
call fcn.00495a70
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004507fc
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004509a8
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
jae 0x450bc5
lea eax, [ebp - 0x2c]
push esi
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 0x10]
push esi
or ecx, 0x20006
push ecx
push esi
push esi
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x450c2b
jle 0x450bf0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push str.Failed_RegCreateKeyEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x82
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.004030c6
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, edi
jmp 0x450ca9
cmp dword [ebp - 0x34], 8
mov ebx, dword [ebp - 0x48]
jae 0x450c37
lea ebx, [ebp - 0x48]
push edi
call fcn.00495461
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x50]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
je 0x450c90
jle 0x450c6e
and edi, 0xffff
or edi, 0x80070000
push edi
push str.Failed_RegSetValueEx:_0x_08x.
push str.kupdate::KRegistry::WriteStr
push 0x8c
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
mov dword [ebp - 0x4c], edi
call fcn.004030c6
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, dword [ebp - 0x4c]
call fcn.00495af3
ret
Function at 0x450caf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x4bd14c
call fcn.00495a70
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004507fc
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004509a8
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], edi
jae 0x450cfd
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0x10]
or ecx, 0x20019
push ecx
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x450d63
jle 0x450d24
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_RegOpenKeyExW:_0x_08x.
push str.kupdate::KRegistry::ReadDWord
push 0x9e
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.004030c6
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, esi
call fcn.00495af3
ret
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 4
jae 0x450d79
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x54]
push ecx
push esi
lea ecx, [ebp - 0x50]
push ecx
push edi
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x4c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x450dbf
jle 0x450daa
and esi, 0xffff
or esi, 0x80070000
push esi
push str.Failed_RegQueryValueEx:_0x_08x.
push str.kupdate::KRegistry::ReadDWord
push 0xa9
jmp 0x450d36
xor esi, esi
jmp 0x450d45
Function at 0x450ef1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x48
mov eax, 0x4bd14c
call fcn.00495a70
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004507fc
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004509a8
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
jae 0x450f42
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 0x10]
or ecx, 0x20019
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x450fa4
jle 0x450f69
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push str.Failed_RegOpenKeyEx:_0x_08x.
push str.kupdate::KRegistry::QueryType
push 0xd9
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
call fcn.004030c6
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, edi
jmp 0x451021
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], esi
jae 0x450fb3
lea eax, [ebp - 0x48]
push esi
push esi
lea ecx, [ebp - 0x54]
push ecx
push esi
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x50]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x54]
mov dword [ebx], eax
cmp edi, esi
je 0x451008
jle 0x450fe6
and edi, 0xffff
or edi, 0x80070000
push edi
push str.Failed_RegQueryValueEx:_0x_08x.
push str.kupdate::KRegistry::QueryType
push 0xe5
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push 5
mov dword [ebp - 0x4c], edi
call fcn.004030c6
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, dword [ebp - 0x4c]
call fcn.00495af3
ret
Function at 0x4510c2
Capabilities:
Delete registry value

Disassembly:
push 0x40
mov eax, 0x4b98bd
call fcn.00495a70
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004507fc
mov esi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004509a8
add esp, 0xc
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
cmp dword [ebp - 0x18], 8
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], edi
jae 0x45110f
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x20006
push ecx
push edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x451170
jle 0x451136
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push esi
push str.Failed_RegCreateKeyExW:_0x_08x.
push str.kupdate::KRegistry::DeleteValue
push 0x12b
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push edi
call fcn.004030c6
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, esi
jmp 0x4511db
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x45117c
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x4c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x4511c3
jle 0x4511a3
and esi, 0xffff
or esi, 0x80070000
mov ebx, esi
push ebx
push str.Failed_RegDeleteValue:_0x_08x.
push str.kupdate::KRegistry::DeleteValue
push 0x132
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcutilKRegistry.cpp
push edi
call fcn.004030c6
add esp, 0x18
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, ebx
call fcn.00495af3
ret

Function at 0x45124b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x40
mov eax, 0x4bd1a6
call fcn.00495a70
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004507fc
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004509a8
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x4c], esi
jae 0x451292
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp + 0xc]
or ecx, 0x20019
push ecx
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4512cd
xor bl, bl
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov al, bl
call fcn.00495af3
ret
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4512d9
lea eax, [ebp - 0x48]
push esi
push esi
push esi
push esi
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x4512af
Function at 0x4513c8
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x50
mov eax, 0x4bd200
call fcn.00495a70
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004025ee
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.004507fc
cmp dword [ebp - 0x18], 8
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jae 0x451404
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp + 0x18]
or edx, 0x20019
push edx
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x45143f
jle 0x45142b
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, esi
jmp 0x4514d3
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
push edi
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], 0x104
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, edi
je 0x451499
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x45142d
and esi, 0xffff
or esi, 0x80070000
jmp 0x45142d
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
je 0x4514bc
jle 0x4514b9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x34], eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401129
mov eax, dword [ebp - 0x34]
call fcn.00495af3
ret

Function at 0x4523b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or eax, 0xffffffff
cmp dword [ebp + 8], eax
je 0x452436
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4523d2
xor eax, eax
jmp 0x452435
push ebx
mov ebx, 0x80000
push edi
cmp esi, ebx
jbe 0x4523df
mov esi, ebx
push esi
call fcn.004938c3
push esi
xor esi, esi
mov edi, eax
push esi
push edi
call fcn.00495b20
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x452403
mov eax, ebx
push esi
lea ecx, [ebp - 8]
push ecx
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp - 8]
cmp eax, esi
jbe 0x452422
sub dword [ebp - 4], eax
jne 0x4523fa
cmp edi, esi
je 0x45242d
push edi
call fcn.00495548
pop ecx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x452438
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5002b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0x20000005
push eax
mov dword [ebp - 0x88], 0x80
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x84]
xor ecx, ebp
call fcn.004959f8
leave
ret 4

Function at 0x452539
Capabilities:
Resume thread

Disassembly:
push dword [ecx + 0x680]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
ret

Function at 0x452546
Capabilities:
Resume thread

Disassembly:
push esi
lea esi, [ecx + 0x6a0]
cmp dword [esi], 0
je 0x452561
push dword [ecx + 0x67c]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
and dword [esi], 0
pop esi
ret