joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5da8f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x80e030]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5da937
cmp byte [ebx], 0xa
jne 0x5da937
or byte [edi + eax + 0x28], 4
jmp 0x5da93c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x5daa3b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x5daa1e
inc eax
cmp dl, 0xd
je 0x5da968
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x5da98e
cmp eax, ecx
jae 0x5da99c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x5da950
jmp 0x5daa3b
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5daa19
cmp dword [ebp - 0x10], 0
je 0x5daa19
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x80e030]
test byte [eax + edi + 0x28], 0x48
je 0x5da9f3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5da9de
mov byte [esi], dl
jmp 0x5da9ef
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x80e030]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5daa3b
cmp byte [ebp - 1], 0xa
jne 0x5daa02
cmp esi, ebx
jne 0x5daa02
mov byte [esi], 0xa
jmp 0x5daa3a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005ee29d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5daa3b
mov byte [esi], 0xd
jmp 0x5daa3a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x80e030]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5daa38
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5daa3b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5daa44
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x80e030]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5daa8a
cmp word [ebx], dx
jne 0x5daa8a
or byte [eax + edi + 0x28], 4
jmp 0x5daa8f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5dabf2
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5dabd2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5daad0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5dab06
cmp eax, edx
jae 0x5dab14
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x5daaab
jmp 0x5dabf2
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5dabcd
cmp dword [ebp - 0x18], 0
je 0x5dabcd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x80e030]
test byte [eax + edi + 0x28], 0x48
je 0x5daba3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x5dab67
mov word [esi], cx
jmp 0x5dab9e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x80e030]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x80e030]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x80e030]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5dabf2
pop eax
cmp word [ebp - 4], ax
jne 0x5dabb3
cmp esi, ebx
jne 0x5dabb3
mov word [esi], ax
jmp 0x5dabef
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005ee29d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5dabf2
push 0xd
pop eax
jmp 0x5dabae
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x80e030]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5dabec
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5dabf2
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5eacc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5eaced
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5eaced
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5ebd76
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x76ad3c
push str.FlsAlloc
push 0x1f
call fcn.005ec264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5ebdaa
push dword [ebp + 8]
mov ecx, esi
call dword [0x8010bc]
call esi
jmp 0x5ebdb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5ebdf4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x76ad60
push str.FlsGetValue
push 0x21
call fcn.005ec264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5ebe2b
push dword [ebp + 8]
mov ecx, esi
call dword [0x8010bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5ebe33
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x76ad74
push str.FlsSetValue
push 0x22
call fcn.005ec264
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5ebe6d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x8010bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5efed7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005eb5aa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005eb5aa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5eff4e
cmp word [ecx], dx
je 0x5eff4e
mov eax, dword [0x76b734]
push edi
dec eax
push eax
push 0x76b620
call fcn.005f00c7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5effc1
cmp word [eax], dx
je 0x5effc1
mov eax, dword [edi]
test eax, eax
je 0x5eff72
cmp word [eax], dx
je 0x5eff72
lea eax, [ebp - 0x10]
push eax
call fcn.005f0128
jmp 0x5eff7b
lea eax, [ebp - 0x10]
push eax
call fcn.005f0423
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5effeb
mov eax, dword [0x76b61c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x76b310
call fcn.005f00c7
add esp, 0xc
test al, al
je 0x5effeb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5effb6
cmp word [eax], di
je 0x5effb6
lea eax, [ebp - 0x10]
push eax
call fcn.005f0128
pop ecx
jmp 0x5effed
lea eax, [ebp - 0x10]
push eax
call fcn.005f0423
jmp 0x5effb3
mov eax, dword [edi]
test eax, eax
je 0x5effd8
cmp word [eax], dx
je 0x5effd8
lea eax, [ebp - 0x10]
push eax
call fcn.005f0565
pop ecx
jmp 0x5effeb
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5f00b6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005f0657
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5f00b6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5f00b6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5f00b6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5f0043
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005ec06c
test ebx, ebx
je 0x5f00b1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005ec06c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5f00b6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5f00b6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005d9e31
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5f00b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c6b46
leave
ret
Function at 0x5f075d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005eb5aa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5f07cc
cmp esi, dword [ebp - 4]
je 0x5f07c7
cmp dword [ebp + 0xc], 0
je 0x5f07c7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5f07a4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005f0826
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5f07ce
xor eax, eax
inc eax
jmp 0x5f07ce
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x5f0b75
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5f0bc0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005f0ceb
test al, al
jne 0x5f0bba
sub edx, 2
cmp edx, edi
jne 0x5f0ba0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5f0be2
lea eax, [edi + 2]
cmp edx, eax
je 0x5f0be2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005f0ac1
add esp, 0x10
jmp 0x5f0cdc
push esi
lea ecx, [ebp - 0x255]
call fcn.005f0ceb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5f0c25
push dword [ebp - 0x25c]
jmp 0x5f0bd2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5f0c62
cmp word [ebp - 0x226], 0
je 0x5f0c83
cmp word [ebp - 0x226], ax
jne 0x5f0c62
cmp word [ebp - 0x224], 0
je 0x5f0c83
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005f0ac1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5f0ccf
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5f0c3c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5f0cb7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5f0cdc
push 0x5f0d10
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005e0c60
add esp, 0x10
jmp 0x5f0cac
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005c6b46
leave
ret
Function at 0x5f2206
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5f22a3
push ebx
push esi
call fcn.005f22f4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005f210a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5f2250
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f22a2
push edi
push eax
call fcn.004bfc20
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5f2270
call fcn.004bfb50
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5f22a1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005f210a
add esp, 0x20
test eax, eax
jne 0x5f228f
push edi
call fcn.004bfb50
jmp 0x5f2297
push ebx
call fcn.004bfb50
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5f22a6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5f22b7
pop esi
ret
push ebx
push edi
push esi
call fcn.005f22f4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004bfc20
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5f22df
push ebx
push esi
push edi
call fcn.005c9580
add esp, 0xc
push 0
call fcn.004bfb50
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5f2336
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f25a1

Function at 0x5f4321
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5f4364
call fcn.005d77f7
mov dword [eax], 0xf
call fcn.005d77e4
mov dword [eax], 0xd
call fcn.005d9aba
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6b46
leave
ret
test eax, eax
jne 0x5f436b
inc eax
jmp 0x5f4358
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5f4356
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5f4358
Function at 0x6075a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, dword [ebp + 8]
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, edi
push eax
call fcn.00535d80
pcmpeqd xmm0, xmm0
lea ebx, [ebp - 0x48]
movdqu xmmword [ebx + 0x1c], xmm0
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
push edi
push ebx
call fcn.006118a0
add esp, 8
cmp byte [ebx + 0x28], 1
je 0x607622
movsx eax, byte [ebp - 0x11]
test eax, eax
cmovs eax, dword [ebp - 0x18]
cmovs edi, dword [ebp - 0x1c]
test eax, eax
js 0x60765d
sete cl
test edi, edi
setne dl
or dl, cl
je 0x60765d
push eax
push edi
push esi
call fcn.00644ca0
add esp, 0xc
jmp 0x60762a
mov ecx, esi
push ebx
call fcn.004bd040
cmp byte [ebp - 0x20], 1
jne 0x607638
lea ecx, [ebp - 0x48]
call fcn.004bd230
cmp byte [ebp - 0x11], 0
jns 0x607649
push dword [ebp - 0x1c]
call fcn.005c57c0
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2

Function at 0x60f690
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 8], eax
xor ecx, ecx
lea eax, [ebp - 0x10]
mov dword [eax], ecx
mov word [eax + 4], 0x500
lea edx, [ebp - 0x14]
mov dword [edx], ecx
sub esp, 0x2c
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], ecx
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
movaps xmm0, xmmword [0x780990]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x60f725
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ecx], 0
push ecx
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x60f74c
cmp dword [ebp - 0x18], 0
setne byte [esi]
xor eax, eax
inc eax
mov dword [esi + 4], eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 0x14
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
cmovne eax, ecx
mov dword [esi], eax
mov dword [esi + 4], 2
jmp 0x60f713
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
cmovne eax, ecx
mov dword [esi], eax
mov eax, 2
jmp 0x60f707
Function at 0x60f780
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x14]
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x60f827
mov eax, dword [ebp - 0x14]
xor ebx, ebx
lea edi, [ebp - 0x18]
mov dword [edi], ebx
mov ecx, edi
push eax
call fcn.00536090
xor eax, eax
inc eax
lea esi, [ebp - 0x1c]
mov dword [esi], eax
lea eax, [ebp - 0x20]
mov dword [eax], ebx
mov ebx, dword [ebp + 8]
push eax
push 4
push esi
push 0x12
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
cmp dword [esi], 3
sete cl
and cl, al
mov byte [ebx], cl
xor eax, eax
inc eax
mov dword [ebx + 4], eax
mov eax, dword [edi]
inc eax
cmp eax, 2
jb 0x60f813
call fcn.0055fb70
push dword [ebp - 0x18]
call fcn.0054ae70
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
cmovne eax, ecx
mov dword [ebx], eax
mov dword [ebx + 4], 2
jmp 0x60f813
Function at 0x611ee0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea edi, [ebp - 0x3c]
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov ecx, edi
push 0x200
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call fcn.0063b1c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
jmp 0x611f5c
lea ecx, [ebp - 0x3c]
call fcn.0054afb0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebp - 0x48]
call fcn.005c57c0
add esp, 4
mov ecx, edi
call fcn.004a7750
mov ecx, edi
call fcn.004a7730
test al, al
je 0x611f30
xor eax, eax
dec eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
cmp byte [ebp - 0x29], 0
lea eax, [ebp - 0x34]
jns 0x611f7f
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x48]
push eax
call fcn.00535d80
mov esi, dword [ebp + 8]
movsx eax, byte [esi + 0xb]
test eax, eax
jns 0x611f9b
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
test eax, eax
js 0x61200b
sete dl
test esi, esi
setne dh
or dh, dl
je 0x61200b
movsx edx, byte [ebp - 0x3d]
test edx, edx
cmovs edx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x48]
lea ecx, [ebp - 0x48]
cmovns ebx, ecx
test edx, edx
js 0x61200b
sete cl
test ebx, ebx
setne ch
or ch, cl
je 0x61200b
push 0
push eax
push esi
push edx
push ebx
call fcn.0054c970
add esp, 0x14
test al, al
je 0x611ffc
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x4c]
call dword [0x8010bc]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x48]
push edx
push eax
call ecx
add esp, 8
cmp byte [ebp - 0x3d], 0
jns 0x611f55
jmp 0x611f4a
ud2
Function at 0x612440
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb0
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
push 3
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea esi, [ebp - 0x14]
mov dword [esi], ebx
mov ecx, esi
push eax
call fcn.00614cd0
mov eax, dword [esi]
test eax, eax
jne 0x61248c
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, ebx
add esp, 0xb0
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x612499
mov ecx, dword [edi]
push 0x10000
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
lea esi, [ebp - 0x18]
mov dword [esi], 0
mov ecx, esi
push eax
call fcn.00614cd0
mov eax, dword [esi]
mov bl, 1
test eax, eax
je 0x6124d8
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x6124d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
sete bl
lea esi, [ebp - 0xb8]
mov ecx, esi
push str.SoftwareGoogleUpdate_
call fcn.00535d80
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0060f5f0
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x612519
push dword [ebp - 0xb8]
mov byte [ebp - 0xb9], al
call fcn.005c57c0
mov al, byte [ebp - 0xb9]
add esp, 4
test al, al
jne 0x612550
xor ebx, ebx
cmp dword [ebp - 0x18], 0
je 0x612533
call fcn.0055fb70
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x14], 0
je 0x612475
call fcn.0055fb70
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x612475
push 0x26
push str.....chromeupdaterutilwin_util.cc
call fcn.0055f480
add esp, 8
test eax, eax
jle 0x61251f
lea ecx, [ebp - 0xb8]
push 0xffffffffffffffff
push 0x4a1
push str.....chromeupdaterutilwin_util.cc
call fcn.004ba430
lea eax, [ebp - 0xb0]
push 0xd
push 0x780d8e
push eax
call fcn.00533f70
add esp, 0xc
mov esi, 2
mov ecx, 0x7770ce
push esi
push ecx
push eax
call fcn.00533f70
add esp, 0xc
push edi
push eax
call fcn.004b5750
add esp, 8
push esi
mov ecx, 0x7770ce
push ecx
push eax
call fcn.00533f70
add esp, 0xc
movzx edx, bl
mov ecx, eax
push edx
call fcn.00410b80
lea ecx, [ebp - 0xb8]
call fcn.004ba910
jmp 0x61251f