joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800fe7a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.1800585a
lea ecx, [ebp - 8]
call fcn.180108c2
mov esi, dword [ebp - 8]
test eax, eax
je 0x1800ff99
and dword [ebp - 0x10], 0
or edx, 0xf003f
push 0
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181739c8
mov dword [ebp - 0xc], 0x200
call fcn.1800fc69
mov edi, eax
test edi, edi
jne 0x1800ff8a
mov eax, dword [ebp + 8]
sub eax, 1
je 0x1800ff6c
sub eax, 1
je 0x1800ff68
sub eax, 1
je 0x1800ff3c
sub eax, 1
je 0x1800ff2d
sub eax, 3
je 0x1800ff1a
sub eax, 4
je 0x1800ff08
mov edi, 0x8007065d
jmp 0x1800ff7c
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.180103e6
jmp 0x1800ff7a
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.1801044b
jmp 0x1800ff7a
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.180103bd
jmp 0x1800ff7a
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x1800ff7c
movzx edi, di
or edi, 0x80070000
jmp 0x1800ff7c
push 2
jmp 0x1800ff6e
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.1801040f
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.1800fc3d
test edi, edi
jne 0x1800ff8a
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181739c8
call fcn.1800fc3d
lea ecx, [esi - 0x10]
call fcn.18003435
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180101e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18010220
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18010282
mov eax, dword [ebp - 4]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1812139a
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x1801027d
cmp dword [ebp - 4], 0
je 0x18010276
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18010282
movzx esi, si
or esi, 0x80070000
jmp 0x18010282
xor eax, eax
mov word [ecx], ax
jmp 0x18010282
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x180107c5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x18195008]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0x181739c8
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
xor edi, edi
or eax, 0xf003f
mov dword [esp + 0x1c], ecx
push eax
push ecx
push dword [ebx + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x200
call fcn.1800fd7c
mov esi, eax
cmp esi, 0x80070002
je 0x18010829
cmp esi, 0x80070003
jne 0x1801082c
xor esi, esi
inc esi
test esi, esi
jne 0x18010898
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x18010870
lea eax, [esp + 0x28]
push eax
call fcn.180107c5
mov esi, eax
test esi, esi
jne 0x18010898
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x2c], 0x100
call edi
lea ecx, [esp + 0x10]
test eax, eax
je 0x1801084b
call fcn.1800fc3d
push dword [esp + 0x1c]
mov ecx, ebx
call fcn.1800fbdd
mov esi, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x181739c8
call fcn.1800fc3d
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18120ca0
mov esp, ebp
pop ebp
ret 4

Function at 0x18010dc7
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18010e2f
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.18120ca0
leave
ret
Function at 0x18010e3f
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov eax, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x30], eax
mov edi, ebx
mov dword [ebp - 4], edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaUserGetInfo]
test eax, eax
jne 0x18010fc3
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x18010fcd
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push eax
push 1
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x18010ea3
call fcn.18011439
mov ebx, eax
jmp 0x18010fb6
mov eax, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x18010fae
mov ecx, ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x28], ebx
push edx
push 7
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x18010eee
call fcn.18011439
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x18010f81
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp - 0xc]
push 5
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], edi
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x18010f28
call fcn.18011439
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x18010f81
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x18010f6d
cmp word [eax], bx
je 0x18010f6d
test edi, edi
je 0x18010f6d
cmp word [edi], bx
je 0x18010f6d
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.1812b867
pop ecx
pop ecx
test eax, eax
jne 0x18010f65
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.1812b867
pop ecx
pop ecx
test eax, eax
je 0x18010f9e
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18010f21
push edi
mov dword [ebp - 4], 0x80004005
call esi
push dword [ebp - 0x20]
call esi
mov edi, 0x80004005
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
inc eax
add ecx, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
cmp eax, dword [ebp - 0x1c]
jae 0x18010fae
mov eax, dword [ebp - 0xc]
jmp 0x18010ec1
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x18010fb0
mov ebx, edi
push dword [ebp - 0x34]
call esi
pop esi
push dword [ebp - 0x38]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, ebx
jmp 0x18010fcd
jle 0x18010fcd
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x1801120f
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18011275
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret

Function at 0x18011477
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180114e6
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x180114c2
push ebx
push edi
push eax
call fcn.18124020
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x180114dd
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x180114e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov eax, edx
mov dword [esp + 0x1c], eax
push esi
push edi
cmp eax, 0xffffffff
jne 0x1801150a
mov eax, 0x80070057
jmp 0x180116a6
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.18005c0f
add eax, 0x10
mov dword [esp + 0x38], 0x44
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.181237a0
and dword [esp + 0x2c], 0
lea edi, [esp + 0x34]
xor eax, eax
xor ebx, ebx
stosd dword es:[edi], eax
xor esi, esi
add esp, 0xc
mov dword [esp + 0x10], esi
inc ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [ebp + 0xc], esi
je 0x180115ac
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.1800f536
mov ebx, eax
test ebx, ebx
jns 0x1801157b
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x18011682
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [esp + 0x68], 0x100
call esi
mov edi, dword [esp + 0xc]
push 0xfffffffffffffff4
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
call esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], ebx
xor eax, eax
push eax
push dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x180115dc
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
jmp 0x180115e6
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, 0x104
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edx
or ebx, ecx
jge 0x1801160d
push edx
lea ecx, [esp + 0x1c]
call fcn.18005c68
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
xor ecx, ecx
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x34]
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.180058b5
test ebx, ebx
jne 0x1801164a
call fcn.18011439
mov ebx, eax
jmp 0x1801167a
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x18011665
push dword [esp + 0x28]
call ebx
jmp 0x1801166b
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x18011678
mov eax, esi
xor esi, esi
mov dword [ecx], eax
xor ebx, ebx
push 0
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x1801168d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18011698
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x18011f88
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x420], eax
mov ecx, eax
call fcn.18005904
mov ax, word [0x18158a9c]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.181237a0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x18011ff0
call fcn.18011439
jmp 0x1801209b
mov eax, dword [0x18174800]
mov dword [ebp - 0xc], eax
mov ax, word [0x18174804]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x18012094
movzx ecx, ax
mov ax, word [0x18158a9c]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.181237a0
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1801207d
lea eax, [ebp - 0x41c]
push eax
call fcn.1812b770
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1812d2ab
add esp, 0x10
test eax, eax
je 0x180120a8
push esi
call fcn.1812b770
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x18012019
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181747f4
push dword [ebp - 0x420]
call fcn.1800dbe3
add esp, 0x10
xor eax, eax
jmp 0x18012099
Function at 0x180129a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x18195008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x414], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x18012a12
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x18012a12
call fcn.18003422
mov esi, eax
jmp 0x18012aea
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18012a35
call fcn.18003422
jmp 0x18012add
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x18012a2b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x18012a5e
mov esi, 0x8007000e
jmp 0x18012adf
push 2
pop ecx
mul ecx
test edx, edx
ja 0x18012b16
jb 0x18012a76
cmp eax, 0xffffffff
ja 0x18012b16
cmp eax, 0x400
jbe 0x18012a8b
push eax
lea ecx, [ebp - 0x410]
call fcn.1801810b
jmp 0x18012a97
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x18012a54
push esi
push dword [ebp - 0x410]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x18012a2b
mov eax, dword [ebp - 0x410]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x420]
push dword [ebp - 0x410]
call fcn.18013512
mov esi, eax
test edi, edi
je 0x18012aea
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18012b03
lea ecx, [ebp - 0x410]
call fcn.18017791
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18120ca0
leave
ret 0x10
push 0x80070216
call fcn.1800329b
int3
Function at 0x180147c1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ecx + 0x94]
cmp dword [esi], 0
jne 0x18014821
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
inc edi
test eax, eax
je 0x1801481e
jmp 0x18014818
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
cmp edx, eax
jae 0x1801480f
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x1801481e
cmp dword [esi + 4], 0
jg 0x180147ee
xchg dword [esi], edi
pop edi
pop esi
leave
ret
Function at 0x18016030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.1809b5f0
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdate_
jne 0x18016053
mov eax, str.HKCUSoftwareGoogleUpdate_
push eax
lea ecx, [ebp - 0xc]
call fcn.1800585a
mov esi, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
and dword [ebp - 0x18], 0
push 0x20019
push esi
mov dword [ebp - 0x1c], 0x181739c8
mov dword [ebp - 0x14], 0x200
call fcn.1800fde1
mov ebx, eax
mov ecx, ebx
call fcn.18012148
test ebx, ebx
js 0x180161b8
lea ecx, [ebp - 0x1c]
call fcn.18010aa0
test eax, eax
je 0x180161b3
push str.Clients
lea ecx, [ebp - 0x1c]
call fcn.1800fe28
test al, al
je 0x180161b3
push str.ClientState
lea ecx, [ebp - 0x1c]
call fcn.1800fe28
test al, al
je 0x180161b3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
push eax
push eax
push eax
push eax
push str.version
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x180161b3
push eax
push eax
push eax
push eax
push str.path
push dword [ebp - 0x18]
call ebx
test eax, eax
jne 0x180161b3
call fcn.18002dd1
push eax
lea ecx, [ebp - 4]
call fcn.18005b92
lea eax, [ebp - 4]
push eax
push str.version
lea ecx, [ebp - 0x1c]
call fcn.1801028a
mov ebx, eax
mov ecx, ebx
call fcn.18012148
test ebx, ebx
js 0x180161a6
call fcn.1809b5f0
cmp byte [edi + 0x88], 0
mov eax, str.HKLMSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
jne 0x18016142
mov eax, str.HKCUSoftwareGoogleUpdateClients430FD4D0_B729_4F61_AA34_91526481799D
push eax
lea ecx, [ebp - 0x10]
call fcn.1800585a
call fcn.18002dd1
push eax
lea ecx, [ebp - 8]
call fcn.18005b92
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
mov edx, 0x18174b80
mov ecx, edi
call fcn.18011b97
pop ecx
mov ebx, eax
mov ecx, ebx
call fcn.18012148
mov esi, dword [ebp - 8]
test ebx, ebx
js 0x18016193
push esi
lea ecx, [ebp - 4]
call fcn.1800ade3
test eax, eax
je 0x18016191
mov ebx, 0xa043090b
jmp 0x18016193
xor ebx, ebx
lea ecx, [esi - 0x10]
call fcn.18003435
lea ecx, [edi - 0x10]
call fcn.18003435
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
jmp 0x180161b8
mov ebx, 0x80070003
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x181739c8
call fcn.1800fc3d
lea ecx, [esi - 0x10]
call fcn.18003435
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1801636a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push esi
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1801648e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x180163ad
test eax, eax
jle 0x180163a7
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x1801648e
lea edi, [ebx + 0x90]
mov ecx, dword [edi]
test ecx, ecx
je 0x180163c0
mov dword [edi], esi
call fcn.180176c9
lea ecx, [ebp - 0x18]
call fcn.1800dabf
call fcn.18002dd1
push eax
lea ecx, [ebp - 8]
call fcn.18005b92
push dword [ebx + 0xc]
lea eax, [ebp - 8]
push 0x18175524
push eax
call fcn.1800dbe3
add esp, 0xc
lea ecx, [ebp - 4]
push str.CommandLineMode
call fcn.1800585a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.18018eb6
mov esi, dword [ebp - 0xc]
cmp esi, dword [ebp - 0x18]
je 0x1801641e
push dword [esi + 0x10]
lea ecx, [ebp - 4]
call fcn.1800ade3
test eax, eax
jns 0x18016439
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ecx
push esi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.18018ef3
mov esi, dword [eax]
lea eax, [ebp - 8]
push eax
lea ecx, [esi + 0x14]
call fcn.18005802
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
mov cl, byte [ebx + 0x88]
lea edx, [ebp - 0x18]
push edi
call fcn.18098daa
pop ecx
mov ecx, dword [ebp - 8]
mov esi, eax
add ecx, 0xfffffff0
call fcn.18003435
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push dword [ecx + 4]
mov ecx, eax
push eax
call fcn.1800db38
push 0x18
push dword [ebp - 0x18]
call fcn.180090f0
pop ecx
pop ecx
mov eax, esi
jmp 0x18016491
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18017053
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.1800f9cd
test al, al
je 0x180170ea
call fcn.1801797d
test al, al
jne 0x180170ea
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x18017090
call fcn.18011439
mov ebx, eax
jmp 0x180170e6
lea ecx, [ebp - 4]
call fcn.18047db1
push 2
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x180170c2
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x180170c9
call fcn.18011439
mov ebx, eax
test esi, esi
je 0x180170d4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003435
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
jmp 0x180170ec
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret