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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov ebx, ecx
xor edx, edx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
push edi
mov edi, edx
test esi, esi
je 0x420433
cmp dword [ebp + 8], edx
je 0x420433
test ebx, ebx
jne 0x420322
mov eax, dword [0x4a74a4]
lea ecx, [ebp - 8]
push ecx
or eax, 0x2001b
push eax
push edx
push dword [0x4a74a0]
push dword [0x4a749c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x42031c
push esi
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041defb
pop ecx
pop ecx
jmp 0x420436
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x10]
jne 0x420328
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
xor ecx, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4203d4
cmp dword [ebp - 0xc], 7
jne 0x4203d4
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00461b84
mov edi, eax
pop ecx
test edi, edi
jne 0x42037a
push 8
jmp 0x420435
mov eax, dword [ebp - 4]
add eax, 4
push eax
xor eax, eax
push eax
push edi
call fcn.004557e0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x420436
mov eax, dword [ebp - 4]
test al, 1
je 0x4203b6
inc eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4203d9
xor ecx, ecx
cmp word [edi + eax], cx
jne 0x4203cb
dec eax
sub eax, 1
mov dword [ebp - 4], eax
jne 0x4203bc
test eax, eax
je 0x4203d9
add eax, 4
jmp 0x4203d6
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
add eax, ecx
push eax
push edi
call fcn.0046af2a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x420373
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov edi, esi
push dword [ebp + 8]
add eax, esi
push eax
call fcn.00455260
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [eax + esi], cx
mov eax, dword [ebp - 4]
add eax, 2
push eax
push esi
push 7
mov dword [ebp - 4], eax
xor eax, eax
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x420436
push 0x57
pop esi
cmp dword [ebp - 8], 0
je 0x420445
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x420450
push edi
call fcn.0045d3d7
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42053d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
push esi
mov esi, edx
mov dword [ebp - 8], eax
mov edx, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
mov ebx, eax
mov dword [ebp - 0xc], ebx
test edx, edx
jne 0x420565
push 0x57
pop esi
jmp 0x4206ab
push edi
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
test esi, esi
je 0x42059e
mov ecx, 0x20019
cmp dword [0x4a76e4], eax
je 0x42057f
or ecx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push ecx
xor eax, eax
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x420697
mov eax, dword [ebp - 8]
jmp 0x4205a3
mov eax, edx
mov dword [ebp - 8], eax
push edi
xor edx, edx
lea ecx, [ebp - 4]
push edx
push ecx
push edx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x420697
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [ecx]
test edx, edx
je 0x4205d8
cmp edx, eax
je 0x4205da
push 0x32
pop esi
jmp 0x420697
mov dword [ecx], eax
sub eax, 1
je 0x4205ee
sub eax, 1
je 0x4205ee
sub eax, 5
jne 0x4205f4
push 2
pop ebx
jmp 0x4205f1
xor ebx, ebx
inc ebx
mov dword [ebp - 0xc], ebx
mov eax, dword [edi]
mov esi, dword [ebp + 0x14]
lea eax, [eax + ebx*2]
add eax, 2
push eax
push dword [esi]
call fcn.0046af2a
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x420613
push 8
jmp 0x4205d2
mov dword [esi], ecx
mov eax, dword [edi]
lea eax, [eax + ebx*2]
add eax, 2
push eax
xor eax, eax
push eax
push ecx
call fcn.004557e0
add esp, 0xc
lea eax, [ebp - 4]
push edi
push dword [esi]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x420697
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x4205d0
test ebx, ebx
je 0x420697
mov edx, dword [edi]
mov ecx, edx
test dl, 1
je 0x420669
inc edx
mov dword [edi], edx
mov ecx, edx
cmp edx, 2
jbe 0x42068e
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, dword [esi]
cmp word [eax + edx - 2], bx
jne 0x420688
lea ecx, [edx - 2]
mov dword [edi], ecx
mov edx, ecx
cmp ecx, 2
ja 0x420673
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
test ecx, ecx
je 0x420697
lea eax, [ecx + ebx*2]
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop edi
test eax, eax
je 0x4206ab
cmp eax, dword [ebp - 0x14]
je 0x4206ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4211a1
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], edx
push ebx
mov ebx, edx
push esi
mov esi, edx
mov dword [ebp - 8], esi
push edi
test eax, eax
je 0x421331
cmp word [eax], dx
je 0x421331
mov eax, dword [0x4a74a4]
lea ecx, [ebp - 8]
push ecx
or eax, 0x2001b
push eax
push edx
push dword [0x4a74a0]
push dword [0x4a749c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x42132c
mov esi, dword [ebp - 8]
test esi, esi
je 0x421331
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 0xc]
push ecx
push eax
push ecx
push str.PendingFileDeleteOperations
push esi
call edi
test eax, eax
jne 0x42129c
cmp dword [ebp - 0xc], 7
jne 0x42129c
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00461b84
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x421247
mov esi, dword [ebp - 8]
push 8
jmp 0x421333
mov eax, dword [ebp - 4]
add eax, 4
push eax
xor eax, eax
push eax
push ebx
call fcn.004557e0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push str.PendingFileDeleteOperations
push esi
call edi
mov edi, eax
test edi, edi
jne 0x421325
mov eax, dword [ebp - 4]
test al, 1
je 0x421283
inc eax
mov dword [ebp - 4], eax
xor ecx, ecx
cmp word [ebx + eax], cx
jne 0x421297
sub eax, 2
mov dword [ebp - 4], eax
cmp word [eax + ebx], cx
je 0x42128b
lea edx, [eax + 4]
jmp 0x4212a0
xor eax, eax
mov edx, eax
mov esi, dword [ebp - 0x10]
mov ecx, esi
mov dword [ebp - 4], edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x14]
jne 0x4212ab
sub ecx, edi
add edx, 2
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x10], eax
add eax, edx
push eax
push ebx
call fcn.0046af2a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4212e2
push 8
pop edi
test ebx, ebx
je 0x42132c
jmp 0x421325
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ebx, edi
add eax, edi
push esi
push eax
call fcn.00455260
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [eax + edi], cx
mov eax, dword [ebp - 4]
add eax, 2
push eax
push edi
push 7
mov dword [ebp - 4], eax
xor eax, eax
push eax
push str.PendingFileDeleteOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
push ebx
call fcn.0045d3d7
pop ecx
mov esi, dword [ebp - 8]
jmp 0x421334
push 0x57
pop edi
test esi, esi
je 0x42133f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421631
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a74a4]
lea ecx, [ebp - 4]
push ebx
push esi
push edi
push ecx
xor edx, edx
or eax, 0x2001b
push eax
push edx
push dword [0x4a74a0]
mov esi, edx
mov dword [ebp - 4], edx
push dword [0x4a749c]
mov dword [ebp - 0xc], edx
mov ebx, edx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x421722
lea eax, [ebp - 0xc]
push eax
push 0x20006
push edi
push str.EmUpdateVolatile
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
je 0x421722
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 7
push eax
lea eax, [ebp - 0x10]
mov edx, str.PendingNotifications
push eax
call fcn.004206b1
mov esi, dword [ebp - 8]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x4216ca
xor edi, edi
jmp 0x421722
xor edi, edi
lea edx, [ebx + esi]
mov ecx, edx
mov dword [ebp - 8], edx
lea eax, [ecx + 2]
mov dword [ebp - 0x10], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4216da
sub ecx, dword [ebp - 0x10]
sar ecx, 1
lea ebx, [ebx + ecx*2]
lea ebx, [ebx + 2]
je 0x42170c
mov ecx, edx
call fcn.0041cfb3
push edi
push edi
push edi
push dword [ebp - 8]
xor edx, edx
mov ecx, eax
inc edx
call fcn.004350b0
add esp, 0x10
cmp ebx, dword [ebp - 0x14]
jb 0x4216cc
push str.PendingNotifications
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [ebp - 0x18]
cmp dword [ebp - 4], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x421733
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0xc], 0
je 0x42173e
push dword [ebp - 0xc]
call ebx
test esi, esi
je 0x421749
push esi
call fcn.0045d3d7
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421989
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x47dbd9
call fcn.004542d2
mov ebx, edx
mov dword [ebp - 0x18], ecx
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
xor esi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040aa2d
mov dword [ebp - 4], esi
lea eax, [ebp - 0x70]
push 0x44
push esi
push eax
mov edi, esi
mov dword [ebp - 0x14], esi
call fcn.004557e0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
je 0x421a01
push ecx
lea eax, [ebp - 0x10]
push str.dummy__s
push eax
call fcn.0040bd93
mov edi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x4219fe
push dword [edi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040a31a
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
push dword [ebx]
push str.Executing__s_with_args__s
call fcn.0041defb
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x421a32
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x421a71
push esi
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp dword [ebp - 0x14], 0
mov ecx, 0x408
push 8
pop eax
cmovne eax, ecx
mov dword [ebp - 0x68], str.WinSta0Default
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x18]
push esi
push dword [ebp - 0x14]
push eax
push esi
push esi
push esi
push edi
push dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x421a7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x421a8a
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040d63e
test esi, esi
je 0x421a9d
mov eax, dword [ebp + 8]
push esi
push dword [eax]
push dword [ebx]
push str.Unable_to_execute__s__s_gle_u
jmp 0x421ad4
cmp byte [ebp + 0xc], 0
jne 0x421adc
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1c]
test eax, eax
je 0x421ac7
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push ecx
push dword [eax]
push dword [ebx]
push str._s__s_exitcode_u
call fcn.0041defb
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x421aeb
push dword [ebp - 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x2c], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x421afc
push dword [ebp - 0x2c]
call edi
cmp dword [ebp - 0x28], 0
je 0x421b07
push dword [ebp - 0x28]
call edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, esi
call fcn.004542a0
ret
Function at 0x4220a5
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], ecx
xor ecx, ecx
push ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
push ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push 0x421bd7
push ecx
push ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0x15
call fcn.0046b091
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4220fc
mov esi, 0x235
jmp 0x422133
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x422129
cmp eax, 0x102
mov ecx, 0x22a
push 0xdeadbeef
mov esi, 0x5b4
push edi
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x42212c
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x4221d1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x14], edx
mov ebx, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
push edi
test ebx, ebx
je 0x4222a7
cmp word [ebx], si
je 0x4222a7
test edx, edx
je 0x4222a7
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x422222
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4222aa
push eax
call fcn.00461b84
mov edi, eax
pop ecx
test edi, edi
jne 0x422233
push 8
jmp 0x4222a9
push dword [ebp - 4]
push esi
push edi
call fcn.004557e0
add esp, 0xc
push edi
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x42225a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42229e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x491d74
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x422279
mov esi, 0x490
jmp 0x42229e
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov ax, word [ecx + 0xa]
mov word [edx], ax
mov ax, word [ecx + 8]
mov word [edx + 2], ax
mov ax, word [ecx + 0xe]
mov word [edx + 4], ax
mov ax, word [ecx + 0xc]
mov word [edx + 6], ax
push edi
call fcn.0045d3d7
pop ecx
jmp 0x4222aa
push 0x57
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4222b1
Capabilities:
Get geographical location

Disassembly:
push 0x120
mov eax, 0x47dd2a
call fcn.00454305
mov ebx, ecx
mov dword [ebp - 0x124], ebx
and dword [ebp - 4], 0
mov dword [ebp - 0x12c], ebx
and dword [ebp - 0x128], 0
push 0x491180
call fcn.0040948c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x128], 1
call fcn.0040aa2d
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x120]
push 0
mov ecx, 0x4000
push eax
mov dword [ebp - 0x120], ecx
push ecx
lea ecx, [ebp - 0x118]
call fcn.00416c39
push eax
push str.https:__ip_info.ff.avast.com_v2_info
push 6
mov edx, esi
pop ecx
call fcn.004350b0
add esp, 0x10
test eax, eax
je 0x42235a
mov eax, dword [ebp - 0x118]
xor ecx, ecx
cmp dword [eax - 8], ecx
jl 0x4224ef
mov dword [eax - 0xc], ecx
mov eax, dword [ebp - 0x118]
mov byte [eax], cl
jmp 0x4224d5
push dword [ebp - 0x120]
lea ecx, [ebp - 0x118]
call fcn.00416d06
call fcn.0040a916
mov ecx, eax
test ecx, ecx
jne 0x422380
push 0x80004005
jmp 0x4224f4
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x11c], esi
mov byte [ebp - 4], 2
mov eax, str.country_:_
test eax, 0xffff0000
jne 0x4223bb
movzx edi, ax
mov ecx, edi
call fcn.00409c4f
test eax, eax
je 0x4223cf
push edi
push eax
lea ecx, [ebp - 0x11c]
call fcn.00422f13
jmp 0x4223c9
push 0xa
push eax
lea ecx, [ebp - 0x11c]
call fcn.00422fcf
mov esi, dword [ebp - 0x11c]
mov byte [ebp - 4], 3
test esi, esi
je 0x4224c9
mov eax, dword [ebp - 0x118]
cmp dword [eax - 0xc], 0
jl 0x4224c9
push esi
push eax
call fcn.0046b928
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4224c9
mov eax, dword [ebp - 0x118]
sub edi, eax
cmp edi, 0xffffffff
je 0x4224c9
add edi, dword [esi - 0xc]
js 0x4224c7
cmp edi, dword [eax - 0xc]
jg 0x4224c7
add eax, edi
push 0x492870
push eax
call fcn.0046b928
pop ecx
pop ecx
test eax, eax
je 0x4224c7
sub eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x4224c7
sub eax, edi
lea ecx, [ebp - 0x118]
push eax
push edi
lea eax, [ebp - 0x124]
push eax
call fcn.00422d56
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x110]
mov eax, dword [eax]
push 3
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.00422e5a
mov byte [ebp - 4], 7
mov ecx, ebx
push dword [ebp - 0x114]
call fcn.0040a5c2
mov byte [ebp - 4], 6
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x4224ac
push dword [ebp - 0x114]
call fcn.0045d3d7
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x124]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov ecx, ebx
call fcn.0041af37
jmp 0x4224c9
jmp 0x4224c9
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.0040aa0b
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040aa0b
mov eax, ebx
call fcn.004542b4
ret
push 0x80070057
call fcn.0040a64c
int3
Function at 0x428a44
Capabilities:
Set registry value

Disassembly:
push 0x30
mov eax, 0x47ec35
call fcn.00454305
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
push str.UpdateLastAppliedPatch
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
call fcn.0041e3a4
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x30]
mov eax, dword [0x4a74a4]
push ecx
or eax, 0x2001b
mov dword [ebp - 0x30], esi
push eax
push esi
push dword [0x4a74a0]
push dword [0x4a749c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x428ad9
push eax
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041defb
push 0xa
push 0xc
lea eax, [ebp - 0x28]
push eax
push dword [0x4a7460]
call fcn.0046bbcb
add esp, 0x18
test eax, eax
jne 0x428afd
push dword [0x4a7414]
lea eax, [ebp - 0x28]
push eax
push str.LastAppliedPatchId
push str.Config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x2c], esi
jmp 0x428afd
push 4
push 0x4a7460
push 4
push esi
push str.LastAppliedPatchId
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041e418
mov eax, esi
call fcn.004542b4
ret
Function at 0x42aacc
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f202
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4a4100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xc
lea ecx, [esi + 0x70]
call fcn.0043310d
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x68]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.0041b945
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x60]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0xa
call fcn.0040c239
mov byte [ebp - 4], 9
lea ecx, [esi + 0x58]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 9
call fcn.0041b945
mov byte [ebp - 4], 8
lea ecx, [esi + 0x50]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 8
call fcn.0040c7e9
mov byte [ebp - 4], 7
lea ecx, [esi + 0x48]
call fcn.0043309e
mov byte [ebp - 4], 6
lea ecx, [esi + 0x40]
call fcn.00432fab
mov byte [ebp - 4], 5
lea ecx, [esi + 0x38]
call fcn.00432f3c
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
call fcn.00432cd6
mov byte [ebp - 4], 3
lea ecx, [esi + 0x28]
call fcn.00432e67
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
call fcn.00432d45
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
call fcn.00432cd6
mov byte [ebp - 4], 0
lea ecx, [esi + 8]
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0040aa0b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
mov dword [ebp - 0x28], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.0040aa0b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x430ec0
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x48029f
call fcn.004542d2
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push str.HandleVersions
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], edi
call fcn.0041e3a4
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
mov eax, dword [0x4a74a4]
push ecx
or eax, 0x2001b
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [0x4a74a0]
push dword [0x4a749c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x430f2d
push edi
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041defb
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
jmp 0x431002
mov eax, dword [ebx + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x431002
lea edi, [esi + 0xc]
mov byte [ebp - 0xd], 0
cmp dword [edi], 0
je 0x430f72
push 4
push edi
push 4
push 0
push dword [0x4a751c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x430fea
mov eax, dword [edi]
mov dword [0x4a7508], eax
mov byte [ebp - 0xd], 1
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x430fe7
cmp eax, dword [0x4a750c]
jbe 0x430fab
push 4
push ebx
push 4
push 0
push dword [0x4a7520]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x430fe7
mov eax, dword [ebx]
mov dword [0x4a750c], eax
mov byte [ebp - 0xd], 1
xor edi, edi
push edi
call fcn.0046a555
pop ecx
mov ebx, eax
mov ecx, 0x4a7550
lea eax, [esi + 0x10]
mov edi, edx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00423192
push edi
push ebx
mov edx, str.MicroUpdates
mov eax, dword [eax]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], edi
push dword [esi + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.00420457
add esp, 0xc
mov ebx, dword [ebp - 0x1c]
mov al, byte [ebp - 0xd]
mov byte [esi + 8], al
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x431002
mov esi, dword [esi]
cmp esi, dword [ebx + 0x20]
jne 0x430f3a
cmp dword [ebp - 0x18], 0
je 0x431014
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.0041e418
mov eax, edi
call fcn.004542a0
ret