joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41feac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x47f19c
call fcn.00456992
mov esi, ecx
push ecx
lea ecx, [ebp - 0x30]
call fcn.004362ad
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004362cf
mov al, bl
call fcn.00456960
ret

Function at 0x41ffc9
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
mov dword [ebp - 0x14], ebx
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42001e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x420038
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x420014
cmp dword [ebp - 0x14], ebx
setne al
mov byte [esi], al
cmp dword [ebp - 0x10], 0
je 0x420047
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00455c9e
leave
ret

Function at 0x420058
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4bf100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
push 8
mov edi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4200fe
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
inc esi
lea eax, [ebp - 0xc]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4200fd
push 0x4c
pop eax
push esi
push eax
mov dword [ebp - 0x18], eax
call fcn.0046cd7a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4200fd
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4200f6
push dword [ebp - 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
push 1
pop eax
cmovne edi, eax
push esi
call fcn.0045f917
pop ecx
pop esi
cmp dword [ebp - 0x10], ebx
je 0x42010f
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x42011d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00455c9e
leave
ret
Function at 0x42068a
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 0x420810
cmp dword [ebp + 8], edx
je 0x420810
test ebx, ebx
jne 0x4206ff
mov eax, dword [0x4c257c]
lea ecx, [ebp - 8]
push ecx
or eax, 0x2001b
push eax
push edx
push dword [0x4c2578]
push dword [0x4c2574]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4206f9
push esi
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041e1d8
pop ecx
pop ecx
jmp 0x420813
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 0x420705
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 0x4207b1
cmp dword [ebp - 0xc], 7
jne 0x4207b1
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.004640c6
mov edi, eax
pop ecx
test edi, edi
jne 0x420757
push 8
jmp 0x420812
mov eax, dword [ebp - 4]
add eax, 4
push eax
xor eax, eax
push eax
push edi
call fcn.00457e10
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 0x420813
mov eax, dword [ebp - 4]
test al, 1
je 0x420793
inc eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4207b6
xor ecx, ecx
cmp word [edi + eax], cx
jne 0x4207a8
dec eax
sub eax, 1
mov dword [ebp - 4], eax
jne 0x420799
test eax, eax
je 0x4207b6
add eax, 4
jmp 0x4207b3
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.0046d46a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x420750
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov edi, esi
push dword [ebp + 8]
add eax, esi
push eax
call fcn.00457890
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 0x420813
push 0x57
pop esi
cmp dword [ebp - 8], 0
je 0x420822
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x42082d
push edi
call fcn.0045f917
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42091a
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 0x420942
push 0x57
pop esi
jmp 0x420a88
push edi
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
test esi, esi
je 0x42097b
mov ecx, 0x20019
cmp dword [0x4c27bc], eax
je 0x42095c
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 0x420a74
mov eax, dword [ebp - 8]
jmp 0x420980
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 0x420a74
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [ecx]
test edx, edx
je 0x4209b5
cmp edx, eax
je 0x4209b7
push 0x32
pop esi
jmp 0x420a74
mov dword [ecx], eax
sub eax, 1
je 0x4209cb
sub eax, 1
je 0x4209cb
sub eax, 5
jne 0x4209d1
push 2
pop ebx
jmp 0x4209ce
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.0046d46a
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4209f0
push 8
jmp 0x4209af
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.00457e10
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 0x420a74
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x4209ad
test ebx, ebx
je 0x420a74
mov edx, dword [edi]
mov ecx, edx
test dl, 1
je 0x420a46
inc edx
mov dword [edi], edx
mov ecx, edx
cmp edx, 2
jbe 0x420a6b
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, dword [esi]
cmp word [eax + edx - 2], bx
jne 0x420a65
lea ecx, [edx - 2]
mov dword [edi], ecx
mov edx, ecx
cmp ecx, 2
ja 0x420a50
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
test ecx, ecx
je 0x420a74
lea eax, [ecx + ebx*2]
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop edi
test eax, eax
je 0x420a88
cmp eax, dword [ebp - 0x14]
je 0x420a88
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421603
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 0x421793
cmp word [eax], dx
je 0x421793
mov eax, dword [0x4c257c]
lea ecx, [ebp - 8]
push ecx
or eax, 0x2001b
push eax
push edx
push dword [0x4c2578]
push dword [0x4c2574]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x42178e
mov esi, dword [ebp - 8]
test esi, esi
je 0x421793
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 0x4216fe
cmp dword [ebp - 0xc], 7
jne 0x4216fe
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.004640c6
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4216a9
mov esi, dword [ebp - 8]
push 8
jmp 0x421795
mov eax, dword [ebp - 4]
add eax, 4
push eax
xor eax, eax
push eax
push ebx
call fcn.00457e10
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 0x421787
mov eax, dword [ebp - 4]
test al, 1
je 0x4216e5
inc eax
mov dword [ebp - 4], eax
xor ecx, ecx
cmp word [ebx + eax], cx
jne 0x4216f9
sub eax, 2
mov dword [ebp - 4], eax
cmp word [eax + ebx], cx
je 0x4216ed
lea edx, [eax + 4]
jmp 0x421702
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 0x42170d
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.0046d46a
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x421744
push 8
pop edi
test ebx, ebx
je 0x42178e
jmp 0x421787
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ebx, edi
add eax, edi
push esi
push eax
call fcn.00457890
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.0045f917
pop ecx
mov esi, dword [ebp - 8]
jmp 0x421796
push 0x57
pop edi
test esi, esi
je 0x4217a1
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421a92
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c257c]
lea ecx, [ebp - 4]
push ebx
push esi
push edi
push ecx
xor edx, edx
or eax, 0x2001b
push eax
push edx
push dword [0x4c2578]
mov esi, edx
mov dword [ebp - 4], edx
push dword [0x4c2574]
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 0x421b83
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 0x421b83
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.00420a8e
mov esi, dword [ebp - 8]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x421b2b
xor edi, edi
jmp 0x421b83
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 0x421b3b
sub ecx, dword [ebp - 0x10]
sar ecx, 1
lea ebx, [ebx + ecx*2]
lea ebx, [ebx + 2]
je 0x421b6d
mov ecx, edx
call fcn.0041d290
push edi
push edi
push edi
push dword [ebp - 8]
xor edx, edx
mov ecx, eax
inc edx
call fcn.00435a0c
add esp, 0x10
cmp ebx, dword [ebp - 0x14]
jb 0x421b2d
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 0x421b94
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0xc], 0
je 0x421b9f
push dword [ebp - 0xc]
call ebx
test esi, esi
je 0x421baa
push esi
call fcn.0045f917
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421dea
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x47f53f
call fcn.00456992
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.0040aaed
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.00457e10
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x70], 0x44
mov ecx, dword [eax]
cmp dword [ecx - 0xc], edi
je 0x421e62
push ecx
lea eax, [ebp - 0x10]
push str.dummy__s
push eax
call fcn.0040bead
mov edi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [edi - 4], 1
jle 0x421e5f
push dword [edi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040a3ce
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.0041e1d8
mov eax, dword [ebp - 0x18]
add esp, 0xc
test eax, eax
jne 0x421e93
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 0x421ed2
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 0x421ede
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x421eeb
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040d778
test esi, esi
je 0x421efe
mov eax, dword [ebp + 8]
push esi
push dword [eax]
push dword [ebx]
push str.Unable_to_execute__s__s_gle_u
jmp 0x421f35
cmp byte [ebp + 0xc], 0
jne 0x421f3d
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 0x421f28
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.0041e1d8
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x421f4c
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 0x421f5d
push dword [ebp - 0x2c]
call edi
cmp dword [ebp - 0x28], 0
je 0x421f68
push dword [ebp - 0x28]
call edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov eax, esi
call fcn.00456960
ret
Function at 0x422506
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 0x422038
push ecx
push ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0x15
call fcn.0046d5d1
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x42255d
mov esi, 0x235
jmp 0x422594
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42258a
cmp eax, 0x102
mov ecx, 0x22a
push 0xdeadbeef
mov esi, 0x5b4
push edi
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x42258d
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 0x422632
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 0x422708
cmp word [ebx], si
je 0x422708
test edx, edx
je 0x422708
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x422683
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42270b
push eax
call fcn.004640c6
mov edi, eax
pop ecx
test edi, edi
jne 0x422694
push 8
jmp 0x42270a
push dword [ebp - 4]
push esi
push edi
call fcn.00457e10
add esp, 0xc
push edi
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4226bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4226ff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4ac674
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4226da
mov esi, 0x490
jmp 0x4226ff
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.0045f917
pop ecx
jmp 0x42270b
push 0x57
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422712
Capabilities:
Get geographical location

Disassembly:
push 0x120
mov eax, 0x47f690
call fcn.004569c5
mov ebx, ecx
mov dword [ebp - 0x124], ebx
and dword [ebp - 4], 0
mov dword [ebp - 0x12c], ebx
and dword [ebp - 0x128], 0
push 0x4ab960
call fcn.0040956c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x128], 1
call fcn.0040aaed
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.00416c4a
push eax
push str.https:__ip_info.ff.avast.com_v2_info
push 6
mov edx, esi
pop ecx
call fcn.00435a0c
add esp, 0x10
test eax, eax
je 0x4227bb
mov eax, dword [ebp - 0x118]
xor ecx, ecx
cmp dword [eax - 8], ecx
jl 0x422950
mov dword [eax - 0xc], ecx
mov eax, dword [ebp - 0x118]
mov byte [eax], cl
jmp 0x422936
push dword [ebp - 0x120]
lea ecx, [ebp - 0x118]
call fcn.00416d17
call fcn.0040a9d6
mov ecx, eax
test ecx, ecx
jne 0x4227e1
push 0x80004005
jmp 0x422955
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 0x42281c
movzx edi, ax
mov ecx, edi
call fcn.00409d28
test eax, eax
je 0x422830
push edi
push eax
lea ecx, [ebp - 0x11c]
call fcn.00423374
jmp 0x42282a
push 0xa
push eax
lea ecx, [ebp - 0x11c]
call fcn.00423430
mov esi, dword [ebp - 0x11c]
mov byte [ebp - 4], 3
test esi, esi
je 0x42292a
mov eax, dword [ebp - 0x118]
cmp dword [eax - 0xc], 0
jl 0x42292a
push esi
push eax
call fcn.0046de68
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x42292a
mov eax, dword [ebp - 0x118]
sub edi, eax
cmp edi, 0xffffffff
je 0x42292a
add edi, dword [esi - 0xc]
js 0x422928
cmp edi, dword [eax - 0xc]
jg 0x422928
add eax, edi
push 0x4ad1d0
push eax
call fcn.0046de68
pop ecx
pop ecx
test eax, eax
je 0x422928
sub eax, dword [ebp - 0x118]
cmp eax, 0xffffffff
je 0x422928
sub eax, edi
lea ecx, [ebp - 0x118]
push eax
push edi
lea eax, [ebp - 0x124]
push eax
call fcn.004231b7
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.004232bb
mov byte [ebp - 4], 7
mov ecx, ebx
push dword [ebp - 0x114]
call fcn.0040a676
mov byte [ebp - 4], 6
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x42290d
push dword [ebp - 0x114]
call fcn.0045f917
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x124]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov ecx, ebx
call fcn.0041b14f
jmp 0x42292a
jmp 0x42292a
mov byte [ebp - 4], 1
lea ecx, [esi - 0x10]
call fcn.0040aacb
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.0040aacb
mov eax, ebx
call fcn.00456974
ret
push 0x80070057
call fcn.0040a70e
int3
Function at 0x42908c
Capabilities:
Set registry value

Disassembly:
push 0x30
mov eax, 0x4805dd
call fcn.004569c5
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
push str.UpdateLastAppliedPatch
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
call fcn.0041e6cc
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x30]
mov eax, dword [0x4c257c]
push ecx
or eax, 0x2001b
mov dword [ebp - 0x30], esi
push eax
push esi
push dword [0x4c2578]
push dword [0x4c2574]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x429121
push eax
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041e1d8
push 0xa
push 0xc
lea eax, [ebp - 0x28]
push eax
push dword [0x4c2538]
call fcn.0046e10b
add esp, 0x18
test eax, eax
jne 0x429145
push dword [0x4c24ec]
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 0x429145
push 4
push 0x4c2538
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.0041e740
mov eax, esi
call fcn.00456974
ret
Function at 0x42b106
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480baa
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x4bf100]
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.00433a87
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x68]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.0041bb5d
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x60]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0xa
call fcn.0040c353
mov byte [ebp - 4], 9
lea ecx, [esi + 0x58]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 9
call fcn.0041bb5d
mov byte [ebp - 4], 8
lea ecx, [esi + 0x50]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 8
call fcn.0040c8d9
mov byte [ebp - 4], 7
lea ecx, [esi + 0x48]
call fcn.00433a18
mov byte [ebp - 4], 6
lea ecx, [esi + 0x40]
call fcn.00433925
mov byte [ebp - 4], 5
lea ecx, [esi + 0x38]
call fcn.004338b6
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
call fcn.00433650
mov byte [ebp - 4], 3
lea ecx, [esi + 0x28]
call fcn.004337e1
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
call fcn.004336bf
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
call fcn.00433650
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.0040aacb
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.0040aacb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret