joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420199
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 0x4201c1
push 0x57
pop esi
jmp 0x420306
push edi
mov edi, dword [ebp + 0x18]
mov dword [edi], eax
test esi, esi
je 0x4201fa
mov ecx, 0x20019
cmp dword [0x4a0604], eax
je 0x4201db
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 0x4202f2
mov eax, dword [ebp - 8]
jmp 0x4201ff
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 0x4202f2
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [ecx]
test edx, edx
je 0x420234
cmp edx, eax
je 0x420236
push 0x32
pop esi
jmp 0x4202f2
mov dword [ecx], eax
test eax, eax
je 0x42024f
cmp eax, 2
jbe 0x420249
cmp eax, 7
jne 0x42024f
push 2
pop ebx
jmp 0x42024c
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.00465a3a
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x42026e
push 8
jmp 0x42022e
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.00451b90
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 0x4202f2
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, dword [ebp - 4]
jne 0x42022c
test ebx, ebx
je 0x4202f2
mov edx, dword [edi]
mov ecx, edx
test dl, 1
je 0x4202c4
inc edx
mov dword [edi], edx
mov ecx, edx
cmp edx, 2
jbe 0x4202e9
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, dword [esi]
cmp word [eax + edx - 2], bx
jne 0x4202e3
lea ecx, [edx - 2]
mov dword [edi], ecx
mov edx, ecx
cmp ecx, 2
ja 0x4202ce
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
test ecx, ecx
je 0x4202f2
lea eax, [ecx + ebx*2]
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop edi
test eax, eax
je 0x420306
cmp eax, dword [ebp - 0x14]
je 0x420306
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420c6d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
jne 0x420c89
push 0x57
pop eax
jmp 0x420d1b
push edi
push esi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
push str.PendingFileDeleteOperations
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420d16
cmp dword [ebp - 4], 7
jne 0x420d16
mov eax, dword [esi]
add eax, 4
push eax
call fcn.00454c58
pop ecx
mov ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [eax], ecx
test ecx, ecx
jne 0x420cc8
push 8
pop eax
jmp 0x420d1a
mov eax, dword [esi]
add eax, 4
push eax
push edi
push ecx
call fcn.00451b90
add esp, 0xc
lea eax, [ebp - 4]
push esi
push dword [ebp - 0xc]
push eax
push edi
push str.PendingFileDeleteOperations
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x420d1a
mov ecx, dword [esi]
test cl, 1
je 0x420cfb
inc ecx
mov dword [esi], ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp word [edx + ecx], di
jne 0x420d11
add dword [esi], 0xfffffffe
mov ecx, dword [esi]
cmp word [ecx + edx], di
je 0x420d06
lea edi, [ecx + 4]
jmp 0x420d18
mov eax, edi
mov dword [esi], edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x420d1f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor edx, edx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], edi
test ebx, ebx
je 0x420e14
cmp word [ebx], dx
je 0x420e14
mov eax, dword [0x4a03e0]
lea ecx, [ebp - 8]
push ecx
or eax, 0x2001b
push eax
push edx
push dword [0x4a03dc]
push dword [0x4a03d8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x420e22
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00420c6d
mov esi, eax
pop ecx
test esi, esi
jne 0x420e0f
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x420d93
mov eax, dword [ebp - 4]
sub ecx, edx
mov edi, dword [ebp - 0xc]
add eax, 2
sar ecx, 1
lea ecx, [ecx*2 + 2]
add eax, ecx
mov dword [ebp - 0x10], ecx
push eax
push edi
call fcn.00465a3a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x420dca
push 8
jmp 0x420e16
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov edi, esi
add eax, esi
push ebx
push eax
call fcn.00451610
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax], 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 str.PendingFileDeleteOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x420e17
mov edi, dword [ebp - 0xc]
jmp 0x420e17
push 0x57
pop esi
test edi, edi
je 0x420e22
push edi
call fcn.00454c63
pop ecx
cmp dword [ebp - 8], 0
je 0x420e31
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420e38
Capabilities:
Check if file exists
Delete file
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4a03e0]
lea ecx, [ebp - 0xc]
push edi
xor edx, edx
or eax, 0x2001b
push ecx
push eax
push edx
push dword [0x4a03dc]
mov dword [ebp - 0x1c], edx
push dword [0x4a03d8]
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], edx
mov byte [ebp - 1], dl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x420fc7
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push ebx
push eax
lea edx, [ebp - 0x14]
call fcn.00420c6d
mov ebx, dword [ebp - 0x14]
mov edi, eax
pop ecx
test edi, edi
jne 0x420fbb
mov eax, dword [ebp - 8]
test eax, eax
je 0x420fbb
xor ecx, ecx
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x420fbb
push esi
lea esi, [ecx + ebx]
mov ecx, esi
mov dword [ebp - 0x20], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x1c]
jne 0x420ebe
sub ecx, edx
mov dword [ebp - 0x18], 9
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [ebp - 0x14], eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x420f42
cmp eax, 0x20
je 0x420efc
cmp eax, 5
jne 0x420f10
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub dword [ebp - 0x18], 1
mov esi, dword [ebp - 0x20]
jns 0x420edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x420f37
cmp eax, 3
je 0x420f37
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
lea edx, [esi + ecx]
test eax, eax
je 0x420f4b
mov eax, dword [ebp - 8]
mov ecx, edx
mov dword [ebp - 0x10], ecx
jmp 0x420f72
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
lea edx, [ecx + esi]
jmp 0x420f4b
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
lea edx, [esi + ecx]
mov eax, dword [ebp - 8]
sub eax, esi
mov byte [ebp - 1], 1
sub eax, ecx
push eax
lea eax, [edx + ebx]
push eax
lea eax, [ecx + ebx]
push eax
call fcn.00451cf0
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
sub eax, esi
mov dword [ebp - 8], eax
cmp ecx, eax
jb 0x420eb3
cmp byte [ebp - 1], 0
pop esi
je 0x420fbb
test eax, eax
jne 0x420f95
push str.PendingFileDeleteOperations
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x420fb9
xor ecx, ecx
mov word [ebx + eax], cx
mov eax, dword [ebp - 8]
add eax, 2
push eax
push ebx
push 7
mov dword [ebp - 8], eax
xor eax, eax
push eax
push str.PendingFileDeleteOperations
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test ebx, ebx
je 0x420fc6
push ebx
call fcn.00454c63
pop ecx
pop ebx
cmp dword [ebp - 0xc], 0
je 0x420fd6
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret
Function at 0x4210aa
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4a03e0]
lea ecx, [ebp - 4]
push ebx
push esi
push edi
push ecx
xor edx, edx
or eax, 0x2001b
push eax
push edx
push dword [0x4a03dc]
mov esi, edx
mov dword [ebp - 4], edx
push dword [0x4a03d8]
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 0x42119b
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 0x42119b
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.0042030c
mov esi, dword [ebp - 8]
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x18], edi
test edi, edi
je 0x421143
xor edi, edi
jmp 0x42119b
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 0x421153
sub ecx, dword [ebp - 0x10]
sar ecx, 1
lea ebx, [ebx + ecx*2]
lea ebx, [ebx + 2]
je 0x421185
mov ecx, edx
call fcn.0041cb77
push edi
push edi
push edi
push dword [ebp - 8]
xor edx, edx
mov ecx, eax
inc edx
call fcn.004343f7
add esp, 0x10
cmp ebx, dword [ebp - 0x14]
jb 0x421145
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 0x4211ac
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0xc], 0
je 0x4211b7
push dword [ebp - 0xc]
call ebx
test esi, esi
je 0x4211c2
push esi
call fcn.00454c63
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421415
Capabilities:
Create process on windows

Disassembly:
push 0x6c
mov eax, 0x47816c
call fcn.00450508
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00409480
push eax
lea ecx, [ebp - 0x10]
call fcn.00408c39
mov dword [ebp - 4], 1
lea eax, [ebp - 0x78]
push 0x44
pop esi
push esi
push ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00451b90
mov edi, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x78], esi
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x42149b
push eax
lea eax, [ebp - 0x10]
push str.dummy__s
push eax
call fcn.00408e2a
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x421494
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040907c
mov esi, dword [ebp - 0x10]
mov eax, dword [edi]
mov dword [ebp - 0x18], esi
jmp 0x42149e
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x20]
push eax
push dword [edi]
push str.Executing__s_with_args__s
call fcn.0041dafb
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
jne 0x4214d3
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x421514
push ebx
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 - 0x70], str.WinSta0Default
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp - 0x1c]
push ebx
push dword [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push dword [edi]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x421520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp dword [ebp - 0x18], 0
je 0x42152f
push ecx
lea ecx, [ebp - 0x10]
call fcn.004089f1
test ebx, ebx
je 0x421542
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
push dword [edi]
push str.Unable_to_execute__s__s_gle_u
jmp 0x421579
cmp byte [ebp + 0xc], 0
jne 0x421581
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x24]
test eax, eax
je 0x42156c
mov dword [eax], ecx
mov eax, dword [ebp + 8]
push ecx
push dword [eax]
push dword [edi]
push str._s__s_exitcode_u
call fcn.0041dafb
add esp, 0x10
cmp dword [ebp - 0x14], 0
je 0x421590
push dword [ebp - 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp - 0x34], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4215a1
push dword [ebp - 0x34]
call edi
cmp dword [ebp - 0x30], 0
je 0x4215ac
push dword [ebp - 0x30]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00409575
mov eax, ebx
call fcn.004504d1
ret
Function at 0x421b59
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 0x421679
push ecx
push ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0x15
call fcn.00465ba1
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x421bb0
mov esi, 0x235
jmp 0x421be7
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x421bdd
cmp eax, 0x102
mov ecx, 0x22a
push 0xdeadbeef
mov esi, 0x5b4
push edi
cmovne esi, ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x421be0
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 0x421c85
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 0x421d5b
cmp word [ebx], si
je 0x421d5b
test edx, edx
je 0x421d5b
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
jne 0x421cd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x421d5e
push eax
call fcn.00454c58
mov edi, eax
pop ecx
test edi, edi
jne 0x421ce7
push 8
jmp 0x421d5d
push dword [ebp - 4]
push esi
push edi
call fcn.00451b90
add esp, 0xc
push edi
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x421d0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x421d52
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x48cb28
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x421d2d
mov esi, 0x490
jmp 0x421d52
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.00454c63
pop ecx
jmp 0x421d5e
push 0x57
pop esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421d65
Capabilities:
Get geographical location

Disassembly:
push 0x124
mov eax, 0x4782e0
call fcn.0045053c
mov eax, ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x128], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x130], eax
push 0x48c1b4
mov dword [ebp - 0x12c], ebx
call fcn.0040a211
mov dword [ebp - 4], ebx
xor esi, esi
inc esi
mov dword [ebp - 0x12c], esi
call fcn.00409480
push eax
lea ecx, [ebp - 0x118]
call fcn.00408c39
mov dword [ebp - 4], 2
lea eax, [ebp - 0x124]
push ebx
mov ecx, 0x4000
push eax
mov dword [ebp - 0x124], ecx
push ecx
lea ecx, [ebp - 0x118]
call fcn.00408b62
push eax
push str.https:__ip_info.ff.avast.com_v2_info
push 6
mov edx, esi
pop ecx
call fcn.004343f7
mov edi, dword [ebp - 0x118]
lea ecx, [ebp - 0x118]
add esp, 0x10
test eax, eax
je 0x421e0e
push ebx
call fcn.00408b9e
jmp 0x421f72
push dword [ebp - 0x124]
call fcn.00408b9e
call fcn.00409480
push eax
lea ecx, [ebp - 0x120]
call fcn.00408c39
mov byte [ebp - 4], 3
mov eax, str.country_:_
test eax, 0xffff0000
jne 0x421e57
movzx esi, ax
mov ecx, esi
call fcn.0040a96d
test eax, eax
je 0x421e63
push esi
push eax
lea ecx, [ebp - 0x120]
call fcn.004228f9
jmp 0x421e63
push eax
lea ecx, [ebp - 0x120]
call fcn.00408ac4
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x120]
test esi, esi
je 0x421f66
cmp dword [edi - 0xc], 0
jl 0x421f66
push esi
push edi
call fcn.00466448
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x421f66
sub ebx, edi
cmp ebx, 0xffffffff
je 0x421f66
add ebx, dword [esi - 0xc]
js 0x421f64
cmp ebx, dword [edi - 0xc]
jg 0x421f64
lea eax, [ebx + edi]
push 0x48d620
push eax
call fcn.00466448
pop ecx
pop ecx
test eax, eax
je 0x421f64
sub eax, edi
cmp eax, 0xffffffff
je 0x421f64
sub eax, ebx
lea ecx, [ebp - 0x118]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
call fcn.00422708
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x110]
mov eax, dword [eax]
push 3
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.004227cd
mov byte [ebp - 4], 8
push dword [ebp - 0x114]
mov ebx, dword [ebp - 0x11c]
mov ecx, ebx
call fcn.0040b072
mov byte [ebp - 4], 7
lea eax, [ebp - 0x110]
cmp dword [ebp - 0x114], eax
je 0x421f3d
push dword [ebp - 0x114]
call fcn.00454c63
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x128]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov ecx, ebx
call fcn.0041aba3
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
call fcn.00409575
jmp 0x421f78
jmp 0x421f66
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
call fcn.00409575
mov ebx, dword [ebp - 0x11c]
and dword [ebp - 4], 0
lea ecx, [edi - 0x10]
call fcn.00409575
mov eax, ebx
call fcn.004504e6
ret
Function at 0x4280b6
Capabilities:
Set registry value

Disassembly:
push 0x30
mov eax, 0x4791d3
call fcn.0045053c
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
push str.UpdateLastAppliedPatch
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x2c], esi
call fcn.0041dfa0
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x30]
mov eax, dword [0x4a03e0]
push ecx
or eax, 0x2001b
mov dword [ebp - 0x30], esi
push eax
push esi
push dword [0x4a03dc]
push dword [0x4a03d8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x42814b
push eax
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041dafb
push 0xa
push 0xc
lea eax, [ebp - 0x28]
push eax
push dword [0x4a039c]
call fcn.004666eb
add esp, 0x18
test eax, eax
jne 0x42816f
push dword [0x4a0350]
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 0x42816f
push 4
push 0x4a039c
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.0041e015
mov eax, esi
call fcn.004504e6
ret
Function at 0x42a016
Capabilities:
Check for peb ntglobalflag flag
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4797ed
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push esi
mov eax, dword [0x49d034]
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.004323fe
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x68]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.0041b5db
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x60]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
call fcn.0040c74b
mov byte [ebp - 4], 9
lea ecx, [esi + 0x58]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
call fcn.0041b5db
mov byte [ebp - 4], 8
lea ecx, [esi + 0x50]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
call fcn.0040cb4f
mov byte [ebp - 4], 7
lea ecx, [esi + 0x48]
call fcn.004323c2
mov byte [ebp - 4], 6
lea ecx, [esi + 0x40]
call fcn.00432303
mov byte [ebp - 4], 5
lea ecx, [esi + 0x38]
call fcn.004322c7
mov byte [ebp - 4], 4
lea ecx, [esi + 0x30]
call fcn.004320fc
mov byte [ebp - 4], 3
lea ecx, [esi + 0x28]
call fcn.00432226
mov byte [ebp - 4], 2
lea ecx, [esi + 0x20]
call fcn.00432138
mov byte [ebp - 4], 1
lea ecx, [esi + 0x18]
call fcn.004320fc
mov byte [ebp - 4], 0
lea ecx, [esi + 8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00409575
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 4]
mov dword [ebp - 0x14], ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00409575
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x4304f5
Capabilities:
Set registry value

Disassembly:
push 0x24
mov eax, 0x47aa67
call fcn.00450508
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.0041dfa0
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x18]
mov eax, dword [0x4a03e0]
push ecx
or eax, 0x2001b
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [0x4a03dc]
push dword [0x4a03d8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x430562
push edi
push str.Unable_to_open_product_registry_key_gle_u
call fcn.0041dafb
mov edi, dword [ebp - 0x14]
pop ecx
pop ecx
jmp 0x430637
mov eax, dword [ebx + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x430637
lea edi, [esi + 0xc]
mov byte [ebp - 0xd], 0
cmp dword [edi], 0
je 0x4305a7
push 4
push edi
push 4
push 0
push dword [0x4a0444]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x43061f
mov eax, dword [edi]
mov dword [0x4a043c], eax
mov byte [ebp - 0xd], 1
lea ebx, [esi + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x43061c
cmp eax, dword [0x4a0440]
jbe 0x4305e0
push 4
push ebx
push 4
push 0
push dword [0x4a0448]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x43061c
mov eax, dword [ebx]
mov dword [0x4a0440], eax
mov byte [ebp - 0xd], 1
xor edi, edi
push edi
call fcn.0046508b
pop ecx
mov ebx, eax
mov ecx, 0x4a0474
lea eax, [esi + 0x10]
mov edi, edx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00422a26
push edi
push ebx
mov edx, str.MicroUpdates
mov ecx, dword [eax]
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x1c], edi
push dword [esi + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.004200ac
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 0x430637
mov esi, dword [esi]
cmp esi, dword [ebx + 0x20]
jne 0x43056f
cmp dword [ebp - 0x18], 0
je 0x430649
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.0041e015
mov eax, edi
call fcn.004504d1
ret