joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1806eb54
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx ecx, byte [0x180fb8f9]
push ebx
push esi
push edi
neg ecx
sbb ecx, ecx
mov edi, 0x180fbba0
and ecx, edi
push 4
pop esi
je 0x1806ebb3
push esi
push esi
mov dword [ebp - 0x21c], ecx
call fcn.18001d8a
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x21c]
push str._ConfigManager::IsInternalUser_
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.18001000
pop ecx
pop ecx
xor eax, eax
push 0x1fe
mov word [ebp - 0x208], ax
xor ebx, ebx
lea eax, [ebp - 0x206]
push ebx
push eax
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x208]
push eax
push 3
mov dword [ebp - 0x220], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1806ec61
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, edi
je 0x1806ec40
push esi
push esi
mov dword [ebp - 0x21c], ecx
call fcn.18001d8a
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x21c]
push str._dns_name__s_
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.18001000
add esp, 0xc
push 1
lea eax, [ebp - 0x208]
push str..dropbox.com
push eax
call fcn.18009283
add esp, 0xc
test al, al
je 0x1806ec61
mov al, 1
jmp 0x1806ecfe
lea eax, [ebp - 0x20c]
push eax
push 0x64
push ebx
mov dword [ebp - 0x20c], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
mov edx, dword [ebp - 0x20c]
mov dword [ebp - 0x210], edx
cmp eax, ebx
jne 0x1806ecf1
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, edi
je 0x1806ecd7
push esi
push esi
mov dword [ebp - 0x230], ecx
call fcn.18001d8a
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x20c]
push dword [eax + 8]
lea eax, [ebp - 0x230]
push str._netbios_name__s_
push eax
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x224], esi
call fcn.18001000
mov edx, dword [ebp - 0x20c]
add esp, 0xc
cmp dword [edx + 8], ebx
je 0x1806ecf1
push str.dropbox
push dword [edx + 8]
call fcn.1809dd43
pop ecx
pop ecx
test eax, eax
jne 0x1806ecf1
mov bl, 1
push dword [ebp - 0x210]
call sub.NETAPI32.dll_NetApiBufferFree
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret

Function at 0x1806eea8
Capabilities:
Identify system language via api

Disassembly:
cmp byte [esp + 8], 0
push esi
je 0x1806eeb8
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x1806eebe
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
movzx esi, ax
xor edx, edx
mov eax, ecx
cmp si, ax
je 0x1806ef10
inc edx
mov eax, edx
imul eax, eax, 0x1a
movzx eax, word [eax + 0x180c0cb8]
test ax, ax
jne 0x1806eeca
mov edx, ecx
xor eax, eax
pop esi
cmp cx, dx
je 0x1806ef15
inc eax
mov ecx, eax
imul ecx, ecx, 0x1a
movzx ecx, word [ecx + 0x180c0cb8]
test cx, cx
jne 0x1806eee6
push 0x180e3e34
mov eax, dword [esp + 8]
call fcn.18003fba
mov eax, dword [esp + 4]
ret
movzx edx, si
jmp 0x1806eee3
imul eax, eax, 0x1a
add eax, 0x180c0cba
push eax
jmp 0x1806ef02
Function at 0x1807058d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x230], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov ebx, ecx
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x180705f7
call fcn.1800fc86
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1809ccb5
leave
ret
cmp eax, esi
jb 0x18070602
mov eax, 0x80004005
jmp 0x180705e8
mov esi, 0x180c006c
lea edi, [ebp - 0x224]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x224]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x180705e8
lea edi, [ebp - 0x224]
lea esi, [ebp - 0x22c]
call fcn.180055a7
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x228]
call fcn.18003fba
mov edi, dword [ebp - 0x22c]
push edi
lea eax, [ebp - 0x228]
call fcn.180065de
lea eax, [ebp - 0x228]
call fcn.18070905
mov esi, dword [ebp - 0x228]
push esi
call fcn.18004c24
pop ecx
mov dword [ebp - 0x234], eax
test eax, eax
jge 0x18070694
lea eax, [esi - 0x10]
call fcn.18004250
lea eax, [edi - 0x10]
call fcn.18004250
mov eax, dword [ebp - 0x234]
jmp 0x180705e8
mov eax, dword [ebx]
push 1
push esi
push eax
call fcn.1800c8b2
add esp, 0xc
test eax, eax
jge 0x180706bf
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18004250
lea eax, [edi - 0x10]
call fcn.18004250
mov eax, ebx
jmp 0x180705e8
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x1807070c
push 2
pop ebx
push ebx
push 4
pop edi
push edi
mov dword [ebp - 0x244], ecx
call fcn.18001d8a
push esi
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x244]
push str._CopyGoopdateToTempDir__temp_path___s_
push eax
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x238], edi
call fcn.18001000
add esp, 0xc
mov edi, dword [ebp - 0x230]
lea eax, [ebp - 0x228]
call fcn.18003d26
mov edi, dword [ebp - 0x22c]
xor ebx, ebx
jmp 0x180706a8
Function at 0x180710c5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.18008da2
mov eax, dword [0x180fa268]
pop ecx
pop ecx
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
call fcn.1800957b
pop ecx
push 0x1e
pop eax
lea edi, [ebp - 0x58]
call fcn.180726ad
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp + 0xc]
push ebx
push eax
call fcn.18008e47
add esp, 0xc
lea edi, [ebp - 0x2c]
call fcn.18003d26
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.18004250
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x58]
call fcn.180727ad
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push dword [ebp - 0xc]
xor esi, esi
push eax
mov dword [ebp + 0xc], esi
call fcn.1806a7b4
mov edi, eax
add esp, 0xc
cmp edi, esi
jge 0x180711d8
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x1807119a
push 0xfffffffffffffffe
pop ebx
push ebx
push 4
pop esi
push esi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._failed_to_start_ping_process__0x_08x_
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call fcn.18001000
mov ebx, dword [ebp - 8]
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x180711a9
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18004250
lea esi, [ebp - 0x58]
call fcn.1807273a
lea eax, [ebx - 0x10]
call fcn.18004250
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.18004250
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [ebp + 0x10], esi
je 0x1807127f
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp + 0x10], esi
cmp eax, esi
jne 0x18071216
lea eax, [ebp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1807126a
mov esi, dword [ebp + 0x10]
test edi, edi
je 0x18071212
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
jmp 0x180711a9
cmp eax, 0x102
jne 0x1807126a
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x18071261
push 0xffffffffffffffff
push 4
pop esi
push esi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
or dword [ebp - 0x18], 0xffffffff
push edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [ebp - 0x20]
push str._ping_process_did_not_finish_in_time__pid_u_
push eax
call fcn.18001000
add esp, 0xc
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test edi, edi
je 0x18071275
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x80004005
jmp 0x180711a9
cmp dword [ebp + 0xc], esi
je 0x1807128d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x180711a9
Function at 0x1807467f
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
jne 0x180746a0
call fcn.1800fc86
jmp 0x18074714
mov eax, dword [0x180fa268]
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.1800e0e2
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], edi
pop ecx
cmp dword [ebx - 0xc], edi
je 0x180746d2
lea eax, [ebp - 4]
push eax
push ebx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x180746fa
call fcn.1800fc86
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea eax, [ebx - 0x10]
call fcn.18004250
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1808541d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x18085432
mov eax, 0x80070057
jmp 0x180854a3
push edi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3c
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x80
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
jne 0x18085491
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x180854a3
and eax, 0xffff
or eax, 0x80070000
jmp 0x180854a3
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret

Function at 0x180854f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18085515
mov eax, 0x80070057
jmp 0x18085581
push edi
call fcn.18004003
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x18085566
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18085580
and eax, 0xffff
or eax, 0x80070000
jmp 0x18085580
cmp eax, edi
jb 0x18085571
mov eax, 0x80004005
jmp 0x18085580
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.1800422d
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1809ccb5
leave
ret

Function at 0x180855e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x180f51f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
cmp dword [esi - 0xc], 0
je 0x18085674
test edi, edi
je 0x18085674
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.1809d820
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x180e97ec
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x18085652
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18085679
and eax, 0xffff
or eax, 0x80070000
jmp 0x18085679
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1800422d
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x18085679
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1809ccb5
leave
ret
Function at 0x18085723
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
jne 0x1808573e
mov eax, 0x80070057
jmp 0x18085866
call fcn.18004003
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push ebx
push eax
xor eax, eax
cmp byte [ebp + 8], bl
mov dword [ebp - 4], ebx
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x18085783
jle 0x18085866
and eax, 0xffff
or eax, 0x80070000
jmp 0x18085866
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x180857cd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jle 0x18085863
and esi, 0xffff
or esi, 0x80070000
jmp 0x18085863
cmp dword [ebp - 0x10], 1
je 0x180857d9
cmp dword [ebp - 0x10], 2
jne 0x180857de
cmp dword [ebp - 8], ebx
jne 0x180857ee
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x8007000d
jmp 0x18085865
mov eax, dword [0x180fa268]
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
shr eax, 1
push eax
lea esi, [ebp - 0xc]
call fcn.18004129
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
lea edx, [ebp - 8]
push edx
push eax
push ebx
push ebx
push ecx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x1808584a
mov eax, dword [ebp - 8]
shr eax, 1
lea edx, [ebp - 0xc]
call fcn.1800418e
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
call fcn.18003d26
cmp esi, ebx
jle 0x18085858
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18004250
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1808586a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x18085882
mov eax, 0x80070057
jmp 0x1808590e
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x180858b2
jle 0x1808590e
and eax, 0xffff
or eax, 0x80070000
jmp 0x1808590e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x180858f9
jle 0x180858f5
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x1808590d
cmp dword [ebp - 8], 4
jne 0x18085908
cmp dword [ebp - 0xc], edi
je 0x18085908
xor eax, eax
jmp 0x1808590d
mov eax, 0x8007000d
pop esi
pop edi
leave
ret
Function at 0x18085d15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [eax]
push edi
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x18085d3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18085d3d
and eax, 0xffff
or eax, 0x80070000
pop edi
ret
push esi
push str.GOOGLEUPDATEREPAIR
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18085d76
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18085d68
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop edi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
je 0x18085d8a
mov esi, 0x8000ffff
jmp 0x18085d6a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18085d54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x18085da8
mov esi, 0x80070006
jmp 0x18085d6a
cmp dword [eax], 1
jne 0x18085d83
xor esi, esi
jmp 0x18085d6a
Function at 0x18085e0a
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x18085f9c
mov eax, fcn.1802d617
test eax, eax
je 0x18085f9c
or dword [ebp - 0xc], 0xffffffff
push str.AutoUpdateCheckPeriodMinutes
lea eax, [ebp - 4]
call fcn.18003fba
push str.SoftwarePoliciesDropboxUpdate_
lea eax, [ebp - 8]
call fcn.18003fba
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1808586a
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.18004250
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18004250
cmp esi, edi
jl 0x18085e88
cmp dword [ebp - 0xc], edi
jne 0x18085e88
mov eax, 0x800704ec
jmp 0x18085fa1
mov eax, dword [0x180fa268]
mov esi, 0x180fa268
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x180fa268]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea ebx, [ebp - 8]
call fcn.18085b1c
cmp eax, edi
mov ebx, dword [ebp - 4]
pop ecx
jge 0x18085edd
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18004250
lea eax, [ebx - 0x10]
call fcn.18004250
mov eax, edi
jmp 0x18085fa1
cmp dword [ebx - 0xc], edi
jne 0x18085ee9
mov edi, 0x80004005
jmp 0x18085ec3
push 0x180c29a4
lea eax, [ebp - 0x18]
call fcn.18003fba
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.18003fba
push str.D8968FF2_E0B1_4A13_A3E2_C9F2995F3BC6
lea eax, [ebp - 0x10]
call fcn.18003fba
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.18085be0
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.18004250
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.18004250
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.18004250
test edi, edi
jl 0x18085f5e
lea esi, [ebp - 4]
call fcn.18085db1
mov edi, eax
test edi, edi
jge 0x18085f71
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
push dword [ebp - 8]
call esi
jmp 0x18085ec3
push dword [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.18085cbc
pop ecx
push 4
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
jmp 0x18085ec9
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1808965f
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [0x180fb8f9]
sub esp, 0x3c
push ebx
push esi
neg ecx
push edi
sbb ecx, ecx
and ecx, 0x180fbba0
push 1
pop ebx
je 0x180896a4
push ebx
push 8
pop esi
push esi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._StartService_
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call fcn.18001000
pop ecx
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x180896c4
call fcn.1800fc86
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
call fcn.18055bd3
pop ecx
push 0x14
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x18089704
call fcn.1800fc86
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18004250
push dword [ebp - 0xc]
call esi
mov eax, edi
jmp 0x180896bf
push 6
mov dword [ebp - 0x3c], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 2
pop edi
test eax, eax
je 0x18089776
cmp dword [ebp - 0x38], 4
je 0x18089730
cmp dword [ebp - 0x38], edi
jne 0x18089776
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x1808976a
push ebx
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push dword [ebp - 0x38]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push str._QueryServiceStatus__Service_already_running___u_
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.18001000
add esp, 0xc
push dword [ebp - 4]
call esi
xor edi, edi
jmp 0x180896f0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x180897bf
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x1808976a
push ebx
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push str._StartService__started_
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
call fcn.18001000
pop ecx
pop ecx
jmp 0x1808976a
call fcn.1800fc86
mov dword [ebp - 0x10], eax
cmp eax, 0x80070420
jne 0x180897f2
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
je 0x1808976a
push ebx
push edi
mov dword [ebp - 0x20], ecx
call fcn.18001d8a
push str._StartService__ERROR_SERVICE_ALREADY_RUNNING_
jmp 0x180897a9
push dword [ebp - 4]
call esi
mov edi, dword [ebp - 0x10]
jmp 0x180896f0
Function at 0x1808a645
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x180fa268]
push ebx
push esi
push edi
mov ecx, 0x180fa268
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18004129
mov esi, eax
lea eax, [ebp - 8]
call fcn.18008a22
mov eax, dword [eax]
push esi
push 0
push 0x180ec338
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
mov eax, dword [ebp - 8]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.18004250
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003fe5
test bl, bl
mov ebx, dword [ebp - 4]
je 0x1808a714
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, byte [0x180fb8f9]
neg ecx
sbb ecx, ecx
and ecx, 0x180fbba0
mov esi, eax
je 0x1808a6f3
push 0xffffffffffffffff
push 2
pop edi
push edi
mov dword [ebp - 0x18], ecx
call fcn.18001d8a
or dword [ebp - 0x10], 0xffffffff
push esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push str._::GetTempFileName_failed___d_
push eax
mov dword [ebp - 0xc], edi
call fcn.18001000
add esp, 0xc
test esi, esi
jle 0x1808a703
and esi, 0xffff
or esi, 0x80070000
lea eax, [ebx - 0x10]
call fcn.18004250
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 1
push ebx
push eax
call fcn.1800cbab
add esp, 0xc
test eax, eax
jge 0x1808a72d
mov esi, eax
jmp 0x1808a703
mov edi, dword [ebp + 8]
add edi, 4
lea eax, [ebp - 4]
call fcn.18003d26
xor esi, esi
jmp 0x1808a703