joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1804506e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor edx, edx
push edi
xor edi, edi
push edi
mov eax, dword [ebx + 0x88]
push 0x80
cmp dword [eax + 0x30], edi
setne dl
lea edx, [edx*2 + 2]
push edx
push edi
push edi
push 0x40000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x18045126
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x18045136
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1804512f
cmp eax, 0x7fffffff
ja 0x1804512f
mov edx, dword [ebx + 0x88]
push edi
cmp eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ebp - 4], ecx
setg cl
cmp eax, dword [edx + 0x34]
setne al
or cl, al
je 0x18045116
push 0x80
push 2
push edi
push edi
push 0x40000000
mov dword [edx + 0x34], edi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, ebx
je 0x18045111
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x18045124
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18045139
call fcn.18012e6f
mov edi, eax
jmp 0x18045143
mov edi, 0x80004005
jmp 0x18045143
mov dword [eax + 0x34], edi
mov eax, dword [ebp + 8]
mov ecx, esi
or esi, 0xffffffff
mov dword [eax], ecx
cmp esi, 0xffffffff
je 0x1804514f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180478b4
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
mov edi, ecx
mov edx, dword [eax]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edx - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push str.gupdate
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x18047910
call fcn.18012e6f
jmp 0x18047934
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.18045c72
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov esi, dword [ebp - 0x24]
test eax, eax
js 0x180479d5
push ebx
push edi
lea ecx, [ebp - 0x18]
call fcn.1800ea8f
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18047e5e
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1804798f
push dword [ebp + 8]
lea ecx, [edi + 0x1c]
call fcn.18047e94
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
call fcn.18047e94
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x34]
call fcn.18047ddc
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [edi + 0x40]
call fcn.18047d35
jmp 0x180479cc
push dword [ebp + 0xc]
lea ecx, [edi + 0x28]
push ebx
call fcn.18047d10
mov ecx, eax
call fcn.18006a38
push ebx
lea ecx, [edi + 0x34]
call fcn.18047db7
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x180479bd
push dword [ebp - 0x20]
mov ecx, eax
push esi
call fcn.18047f21
push ebx
lea ecx, [edi + 0x40]
call fcn.18047d10
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
pop ebx
lea ecx, [ebp - 0x24]
call fcn.1800b37c
pop edi
pop esi
leave
ret 0xc
Function at 0x1809c612
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x1809c649
call fcn.18012e6f
mov ebx, eax
jmp 0x1809c721
push 0x24
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1809c708
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1809c6a8
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1809c70f
cmp eax, 3
je 0x1809c6ab
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.1813efc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1809c708
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1809c70f
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
je 0x1809c70f
call edi
sub eax, dword [ebp - 0x24]
cmp eax, 0x1f40
jae 0x1809c6f9
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.1813efc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x1809c6c1
jmp 0x1809c6fc
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x1809c70f
mov ebx, 0x800705b4
jmp 0x1809c70f
call fcn.18012e6f
mov ebx, eax
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x1809c71c
push esi
call edi
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret

Function at 0x1809c77d
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1809c7f2
push esi
push edi
push 4
push str.Schedule
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1809c7e0
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1809c7de
cmp dword [ebp - 0x1c], 4
je 0x1809c7dc
cmp dword [ebp - 0x1c], 2
jne 0x1809c7de
mov bl, 1
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x1809c7eb
push esi
call edi
push dword [ebp - 0x24]
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret
Function at 0x1809cbd3
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push esi
push 0x1809cb5e
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x1809cc6e
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp ecx, eax
je 0x1809cc6e
sub eax, ecx
mov byte [ebp - 1], 0
push ebx
push edi
sar eax, 2
xor edi, edi
test eax, eax
je 0x1809cc66
xor ebx, ebx
inc ebx
push 0
push 0xf060
push 0x112
push dword [ecx + edi*4]
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x1809cc41
cmp byte [esi + 0x30], 0
je 0x1809cc3a
mov eax, dword [esi + 0x20]
push ebx
push dword [eax + edi*4]
call dword [sym.imp.USER32.dll_FlashWindow]
mov dl, bl
mov byte [ebp - 1], dl
jmp 0x1809cc44
mov dl, byte [ebp - 1]
mov eax, dword [esi + 0x24]
inc edi
mov ecx, dword [esi + 0x20]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1809cc0e
test dl, dl
je 0x1809cc66
push dword [ebp + 8]
mov ecx, esi
call fcn.1809c8d2
test al, al
jne 0x1809cc68
xor bl, bl
pop edi
mov al, bl
pop ebx
jmp 0x1809cc70
xor al, al
pop esi
leave
ret 4

Function at 0x1809cd0d
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 4
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
jne 0x1809cd40
xor al, al
jmp 0x1809cdb9
xor eax, eax
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x1809cdad
mov eax, dword [ebp - 0x24]
mov esi, dword [esi + 0x10]
cmp esi, dword [eax + 0x14]
je 0x1809cd98
mov ebx, eax
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x1809cd8d
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.180103ab
add esi, 4
cmp esi, dword [ebx + 0x14]
jne 0x1809cd75
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x1809cd68
mov eax, dword [edi]
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret 4
Function at 0x1809cdca
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov edi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1809ce21
push ebx
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1809cdfe
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x1809ce01
mov dl, byte [ebp - 1]
mov eax, dword [esi + 8]
inc edi
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1809cde9
test dl, dl
je 0x1809ce21
push dword [ebp + 8]
mov ecx, esi
call fcn.1809c8d2
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x1809cf3d
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, esi
je 0x1809cf68
test eax, eax
je 0x1809cf63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, esi
test eax, eax
je 0x1809cf7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne bl
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x1809f75f
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 8], ecx
push eax
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x1809f7b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1809f7a9
call fcn.18012e6f
jmp 0x1809f7d6
mov eax, 0x8007000d
jmp 0x1809f7d6
push dword [ebp + 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
add edx, esi
push edx
push esi
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.18045c72
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
leave
ret

Function at 0x1809fb95
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x1809fbaa
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x1809fb50
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x1809fbd8
xor al, al
jmp 0x1809fbe9
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
pop esi
pop ebp
ret 4
Function at 0x180a05b6
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x94], edx
push edi
push eax
mov byte [ebp - 0x79], al
mov edi, eax
mov dword [ebp - 0x68], eax
mov esi, ecx
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x88], esi
push eax
push 5
push esi
mov dword [ebp - 0x8c], 0x40
mov dword [ebp - 0x64], 0xf
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor ebx, ebx
inc ebx
test eax, eax
je 0x180a0631
push 0xa
lea eax, [ebp - 0x48]
mov byte [ebp - 0x79], bl
push edi
push eax
call fcn.1814aaf8
add esp, 0xc
lea ecx, [ebp - 0x78]
mov edi, eax
push edi
call fcn.1804eba6
xor eax, eax
push eax
push eax
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x80]
push eax
push esi
jmp 0x180a06a9
cmp dword [ebp - 0x80], 0
jbe 0x180a06d8
push ecx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x54]
call fcn.1809e303
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x54]
push dword [ebp - 0x88]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0x180a06d0
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x180a06d0
add dword [ebp - 0x84], eax
lea ecx, [ebp - 0x78]
push eax
push dword [ebp - 0x54]
call fcn.1804ba3a
lea ecx, [ebp - 0x54]
call fcn.1800b37c
push 0
push 0
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov esi, eax
test esi, esi
jne 0x180a0642
xor bl, bl
lea ecx, [ebp - 0x78]
call fcn.1800e36d
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret
lea ecx, [ebp - 0x54]
call fcn.1800b37c
test esi, esi
je 0x180a06b5
cmp byte [ebp - 0x79], 0
je 0x180a06ea
cmp dword [ebp - 0x84], edi
jne 0x180a06b5
mov esi, dword [ebp - 0x94]
test esi, esi
je 0x180a06b7
lea edx, [ebp - 0x78]
lea ecx, [ebp - 0x60]
call fcn.180a0236
push eax
mov ecx, esi
call fcn.18032a03
lea ecx, [ebp - 0x60]
call fcn.180262d5
jmp 0x180a06b7
Function at 0x180a4111
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, edx
push esi
mov esi, ecx
mov dword [ebp - 0xc], ebx
push edi
mov edx, esi
mov byte [ebx], 0
lea ecx, [ebp - 8]
call fcn.180a425b
call fcn.18003f31
push eax
lea ecx, [ebp - 4]
call fcn.18006dc8
push dword [esi]
lea eax, [ebp - 4]
push 0xbf7
push eax
call fcn.1801a869
xor eax, eax
mov dword [ebp - 0x44], 0x1819eec4
add esp, 8
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x44]
push eax
call fcn.18123f82
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x148]
call fcn.18124091
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
test eax, eax
jns 0x180a41b4
push 4
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
sete cl
test eax, eax
mov byte [ebx], cl
setne bl
jmp 0x180a41e1
push 0
lea ecx, [ebp - 0x144]
call fcn.18007c52
xor ebx, ebx
inc ebx
push ebx
push dword [ebp - 0x144]
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x44]
call fcn.180a3d70
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x58]
mov byte [ecx], al
lea ecx, [ebp - 0x148]
call fcn.1812402c
lea ecx, [ebp - 0x44]
call fcn.1801cf2d
lea ecx, [edi - 0x10]
call fcn.18004595
lea ecx, [esi - 0x10]
call fcn.18004595
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x180a514b
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
call fcn.180ad5bd
mov edi, eax
call fcn.1800bd81
xor ebx, ebx
push ebx
push 0x989680
push edx
push eax
call fcn.181638a0
mov ecx, str.HKLMSoftwareGoogleUpdate_
lea esi, [eax + 0x49ef6f00]
cmp byte [ebp - 0xc], bl
jne 0x180a5187
mov ecx, str.HKCUSoftwareGoogleUpdate_
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 4
mov edx, str.RetryAfter
call fcn.180119de
mov ecx, dword [ebp - 8]
add esp, 0xc
test eax, eax
jns 0x180a51a7
mov ecx, ebx
cmp esi, ecx
jae 0x180a51b5
lea eax, [esi + 0x15180]
cmp ecx, eax
jbe 0x180a5204
push ebx
lea eax, [ebp - 2]
mov byte [ebp - 2], bl
push eax
mov ecx, edi
call fcn.180ae85e
mov esi, eax
test esi, esi
jne 0x180a520b
movzx ecx, byte [0x181c8652]
neg ecx
sbb ecx, ecx
and ecx, 0x181c7840
je 0x180a5204
push 7
pop edx
inc eax
mov dword [ebp - 0x1c], ecx
push eax
push edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call fcn.18005b0c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push str._ShouldCheckForUpdates_returned_0__checks_disabled_
push eax
call fcn.180040d3
pop ecx
pop ecx
xor al, al
jmp 0x180a52ac
push dword [ebp - 0xc]
call fcn.180aea59
mov edi, eax
call fcn.180ad5bd
push ebx
lea ecx, [ebp - 1]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
push ecx
mov ecx, eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], bl
call fcn.180af5ee
test eax, eax
js 0x180a523f
cmp byte [ebp - 1], bl
jne 0x180a52aa
cmp edi, esi
jl 0x180a52aa
lea eax, [esi + 0xe10]
cmp edi, eax
jge 0x180a52a8
cmp byte [ebp - 2], bl
jne 0x180a52a8
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 4
mov edx, str.DisableUpdateAppsHourlyJitter
mov ecx, str.HKLMSoftwareGoogleUpdateDev_
call fcn.180119de
add esp, 0xc
test eax, eax
js 0x180a527a
cmp dword [ebp - 0xc], ebx
setne al
jmp 0x180a527c
mov al, bl
test al, al
jne 0x180a52a8
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
neg eax
push 0x64
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 0xc]
pop ecx
div ecx
cmp edx, 0x5a
setb bl
jmp 0x180a52aa
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180a9a64
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x181c0008]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.1813efc0
add esp, 0xc
lea eax, [esp + 0x28]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x180a9acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180a9b1f
movzx eax, ax
or eax, 0x80070000
jmp 0x180a9b1f
lea ecx, [esp + 0x10]
call fcn.18007e84
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.180085a5
pop ecx
push dword [esp + 0x10]
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x180a9b14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x180a9b14
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.18007ead
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1813c4a8
mov esp, ebp
pop ebp
ret

Function at 0x180a9b64
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10814
call fcn.18163b00
mov eax, dword [0x181c0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x10814], esi
mov ecx, dword [edi]
call fcn.1800a901
test al, al
jne 0x180a9ba0
mov eax, 0x80070002
jmp 0x180a9c99
mov ecx, esi
call fcn.180136bb
push 0x10000
lea eax, [ebp - 0x10804]
push 0
push eax
call fcn.1813efc0
add esp, 0xc
lea eax, [ebp - 0x10804]
push dword [edi]
push 0x8000
push eax
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x1080c], 0
mov dword [ebp - 0x10810], eax
test eax, eax
je 0x180a9c97
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1813efc0
mov eax, dword [ebp - 0x1080c]
lea ecx, [ebp - 0x10804]
add esp, 0xc
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10808]
call fcn.18006a90
push dword [edi]
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push dword [ebp - 0x10808]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10808]
mov ecx, esi
push eax
call fcn.180aab71
mov esi, eax
lea eax, [ebp - 0x804]
push eax
call fcn.18142f23
pop ecx
push eax
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.18006d4b
mov eax, dword [ebp - 0x10808]
mov esi, dword [ebp - 0x1080c]
inc esi
add esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x1080c], esi
call fcn.18004595
cmp esi, dword [ebp - 0x10810]
mov esi, dword [ebp - 0x10814]
jb 0x180a9bec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1813c4a8
leave
ret
Function at 0x180a9ca8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0xc], ebx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x180a9db7
mov eax, dword [ebx]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
je 0x180a9db7
mov edx, dword [esi]
lea ecx, [ebp - 8]
push 0x181ac378
call fcn.180097db
mov esi, dword [ebp - 8]
pop ecx
cmp dword [esi - 0xc], ebx
jne 0x180a9cf8
call fcn.18012e6f
mov ebx, eax
jmp 0x180a9dab
push edi
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x180a9d23
call fcn.18012e6f
mov ebx, eax
jmp 0x180a9daa
call fcn.18003f31
push eax
lea ecx, [ebp - 4]
call fcn.18006dc8
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call fcn.1800c55e
push dword [eax]
lea eax, [ebp - 4]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.1800f1aa
mov ecx, dword [ebp - 0xc]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18004595
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov dword [ebp - 0x10], ebx
push dword [eax - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180a9d8c
call fcn.18012e6f
mov ebx, eax
jmp 0x180a9d98
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.18006a38
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18004595
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
lea ecx, [esi - 0x10]
call fcn.18004595
mov eax, ebx
jmp 0x180a9dba
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret