joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18016260
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.18013e2d
test al, al
je 0x1801636e
push esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
mov esi, eax
test esi, esi
js 0x1801636e
push str.._
lea ecx, [ebp - 0x2c]
call fcn.18006e68
lea eax, [esi + 0x41]
push eax
lea ecx, [ebp - 0x2c]
call fcn.18009e05
push 0x3a
lea ecx, [ebp - 0x2c]
call fcn.18009e05
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 7
pop edi
push edi
push 0x80
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1801635f
mov dword [ebp - 0x10], edi
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [ebp - 8], ebx
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18016314
cmp byte [ebp - 0x14], bl
sete bl
jmp 0x18016352
xor eax, eax
mov dword [ebp - 0xc], ebx
lea edi, [ebp - 0x28]
mov dword [ebp - 0x10], 8
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x30], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18016358
xor ebx, ebx
cmp byte [ebp - 0x20], bl
setne bl
inc ebx
cmp esi, 0xffffffff
je 0x1801635f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, ebx
jmp 0x18016370
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret

Function at 0x180163be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0x14]
push eax
cmp dword [ebp + 8], eax
jne 0x180163d8
push eax
push eax
jmp 0x180163e0
push dword [ebp + 8]
push 0x400
push eax
push eax
push eax
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x180163f6
call fcn.18018dce
jmp 0x18016438
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x18016436
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x10], ecx
inc eax
mov dword [ebp - 0xc], edx
push eax
push edx
mov dword [ebp - 8], eax
call fcn.18008a16
push dword [esi + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push str._Started_process___u_
push eax
call fcn.18006b74
add esp, 0xc
xor eax, eax
pop esi
leave
ret
Function at 0x18016552
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
mov ecx, dword [edx]
push edi
sub ecx, 0x10
call fcn.18009f92
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18014635
push 0x20
lea ecx, [ebp - 4]
call fcn.18009e05
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.18009e32
push 0x40
xor edi, edi
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.181757a0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x40], str.WinSta0Default
inc edx
mov ebx, 0x104
add esp, 0xc
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, ebx
or edx, ecx
jge 0x180165d2
push ebx
lea ecx, [ebp - 4]
call fcn.1800706e
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x48]
push ecx
push edi
push dword [ebp + 0x10]
push 0x400
push edi
push edi
push edi
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18009db6
test esi, esi
jne 0x18016605
call fcn.18018dce
mov edi, eax
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.1800694d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180167a1
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18016817
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x18016817
mov eax, dword [ebp - 0x20]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1801681e
call fcn.18018dce
mov esi, eax
cmp dword [ebp - 0x18], 0
je 0x1801682d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.181605f4
leave
ret
Function at 0x180168b4
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.1801683c
mov ebx, eax
or edi, 0xffffffff
xor esi, esi
cmp ebx, edi
je 0x180168ff
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
push 8
push ebx
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x180168ff
mov eax, dword [ebp - 8]
push eax
mov esi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
jne 0x180168fd
mov eax, ebx
jmp 0x18016947
xor esi, esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
push 1
push esi
push esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x18016945
cmp dword [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
jbe 0x1801693e
lea edx, [ecx + 8]
cmp dword [edx], esi
je 0x18016938
inc eax
add edx, 0xc
cmp eax, dword [ebp - 4]
jb 0x18016929
jmp 0x1801693e
imul eax, eax, 0xc
mov edi, dword [eax + ecx]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1801694c
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x18235128]
sub esp, 0x18
mov eax, dword [0x18235124]
push esi
push edi
test edx, edx
jne 0x180169f8
test eax, eax
jne 0x180169f8
xor esi, esi
cmp ecx, 0xffffffff
je 0x180169f4
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push 0x18
push ecx
push esi
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x180169b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x180169b0
mov edi, dword [eax + 0xc8]
mov esi, dword [eax + 0xcc]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
jmp 0x180169f6
movzx ecx, byte [0x182340f3]
neg ecx
sbb ecx, ecx
and ecx, 0x18233ff0
je 0x180169f4
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008a16
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str._GetLogonTime_WTSQuerySessionInformation_failed__0x_x_
push eax
call fcn.18006b74
add esp, 0xc
mov eax, esi
mov edx, esi
pop edi
pop esi
leave
ret
Function at 0x18017a42
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.18006e68
lea ecx, [ebp - 8]
call fcn.18018553
mov esi, dword [ebp - 8]
test eax, eax
je 0x18017b8c
xor ecx, ecx
mov dword [ebp - 0x14], 0x181f4a50
push ecx
push ecx
or edx, 0xf003f
mov dword [ebp - 0x10], ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0xc], 0x200
call fcn.18017810
mov edi, eax
test edi, edi
jne 0x18017b77
mov eax, dword [ebp + 8]
sub eax, 1
je 0x18017b34
sub eax, 1
je 0x18017b30
sub eax, 1
je 0x18017b04
sub eax, 1
je 0x18017af5
sub eax, 3
je 0x18017ae2
sub eax, 4
je 0x18017ad0
mov edi, 0x8007065d
jmp 0x18017b44
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.18017feb
jmp 0x18017b42
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.18018050
jmp 0x18017b42
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18017fc2
jmp 0x18017b42
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 0x18017b44
movzx edi, di
or edi, 0x80070000
jmp 0x18017b44
push 2
jmp 0x18017b36
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18018014
mov edi, eax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
test eax, eax
je 0x18017b6f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
test ecx, ecx
jle 0x18017b63
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
mov dword [ebp - 0xc], 0x200
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x18017b7a
mov edi, ecx
jmp 0x18017b7a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x181f4a50
test eax, eax
je 0x18017b8c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.1800694d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18017e06
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 0x18017e3e
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18017e95
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.18160eb8
cmp dword [ebp - 4], 0
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
je 0x18017e90
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 0x18017e95
movzx esi, si
or esi, 0x80070000
jmp 0x18017e95
xor eax, eax
mov word [ecx], ax
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x18017e9d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, 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 [ebx + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18017ed5
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18017f49
mov edx, dword [ebp - 4]
test edx, edx
je 0x18017f41
shr edx, 1
add edx, 1
js 0x18017f51
push edi
mov edi, dword [ebp + 0xc]
xor ecx, ecx
inc ecx
mov esi, dword [edi]
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x18017f04
push edx
mov ecx, edi
call fcn.1800706e
mov esi, dword [edi]
test esi, esi
jne 0x18017f0f
mov esi, 0x8007000e
jmp 0x18017f35
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18017f35
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.18009db6
pop edi
jmp 0x18017f49
mov ecx, dword [ebp + 0xc]
call fcn.18006ec7
mov eax, esi
pop esi
pop ebx
leave
ret 8
push 0x80070057
call fcn.18006655
int3

Function at 0x18018450
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x1822b00c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 8]
or eax, 0xf003f
and dword [esp + 8], 0
push esi
push eax
push edx
push dword [ecx + 4]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0x181f4a50
mov dword [esp + 0x1c], 0x200
call fcn.1801792d
mov esi, eax
cmp esi, 0x80070002
je 0x180184b3
cmp esi, 0x80070003
jne 0x180184f6
xor esi, esi
inc esi
cmp dword [esp + 0xc], 0
mov dword [esp + 8], 0x181f4a50
je 0x180184cf
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.181605f4
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
call fcn.18018450
mov esi, eax
test esi, esi
jne 0x180184b6
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180184e6
cmp dword [esp + 0xc], esi
je 0x1801853f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x200
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
call fcn.18017784
mov esi, eax
jmp 0x180184b6
Function at 0x18018b27
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1822b00c]
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 0x18018b8f
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.181605f4
leave
ret
Function at 0x18018b9f
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 0x18018d23
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x18018d2d
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 0x18018c03
call fcn.18018dce
mov ebx, eax
jmp 0x18018d16
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 0x18018d0e
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 0x18018c4e
call fcn.18018dce
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x18018ce1
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 0x18018c88
call fcn.18018dce
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x18018ce1
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x18018ccd
cmp word [eax], bx
je 0x18018ccd
test edi, edi
je 0x18018ccd
cmp word [edi], bx
je 0x18018ccd
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.1817cb3d
pop ecx
pop ecx
test eax, eax
jne 0x18018cc5
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.1817cb3d
pop ecx
pop ecx
test eax, eax
je 0x18018cfe
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18018c81
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 0x18018d0e
mov eax, dword [ebp - 0xc]
jmp 0x18018c21
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x18018d10
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 0x18018d2d
jle 0x18018d2d
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x18018e0e
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 0x18018e7d
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 0x18018e59
push ebx
push edi
push eax
call fcn.18175220
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 0x18018e74
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 0x18019dd2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1822b00c]
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.18006ec7
mov ax, word [0x181ca2ec]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.181757a0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x18019e3a
call fcn.18018dce
jmp 0x18019ee5
mov eax, dword [0x181f5c70]
mov dword [ebp - 0xc], eax
mov ax, word [0x181f5c74]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x18019ede
movzx ecx, ax
mov ax, word [0x181ca2ec]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.181757a0
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 0x18019ec7
lea eax, [ebp - 0x41c]
push eax
call fcn.18179019
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1817e4da
add esp, 0x10
test eax, eax
je 0x18019ef2
push esi
call fcn.18179019
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x18019e63
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181f5c64
push dword [ebp - 0x420]
call fcn.1801487e
add esp, 0x10
xor eax, eax
jmp 0x18019ee3
Function at 0x1801b7cf
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
lea ecx, [ebp - 4]
call fcn.18009d8f
mov dword [ebp - 8], edi
mov ecx, 0x811c9dc5
xor esi, esi
movzx eax, byte [ebp + esi - 8]
xor eax, ecx
imul ecx, eax, 0x1000193
inc esi
cmp esi, 4
jb 0x1801b7ee
push ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.18020407
mov ecx, dword [0x18235130]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1801b81e
mov eax, ecx
cmp eax, ecx
je 0x1801b830
add eax, 0xc
lea ecx, [ebp - 4]
push eax
call fcn.18009d41
jmp 0x1801b846
or edi, 0x4000
lea edx, [ebp - 4]
mov ecx, edi
call fcn.1800bdad
mov esi, eax
test esi, esi
js 0x1801b8b6
mov eax, dword [ebp - 4]
xor edx, edx
mov esi, dword [ebx]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1801b86b
push edi
lea ecx, [ebp - 4]
call fcn.1800706e
mov eax, dword [ebp - 4]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.18009db6
test esi, esi
jne 0x1801b88a
mov esi, 0x80040709
jmp 0x1801b8b6
mov esi, dword [ebp - 4]
test esi, esi
jne 0x1801b895
xor eax, eax
jmp 0x1801b89c
push esi
call fcn.18179019
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.18006f63
cmp byte [ebp + 8], 0
je 0x1801b8b4
mov ecx, dword [ebp - 4]
call fcn.1800bca2
xor esi, esi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.1800694d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1801df32
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push 4
mov edx, str.AutoUpdateJitterMs
mov ecx, str.HKLMSoftwareMicrosoftEdgeUpdateDev_
call fcn.18017b9b
add esp, 0xc
test eax, eax
js 0x1801df6a
mov eax, dword [ebp - 4]
cmp eax, 0xea60
jb 0x1801df8f
mov eax, 0xea5f
leave
ret
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
movzx eax, al
mov ecx, 0xea60
neg eax
sbb eax, eax
xor edx, edx
and eax, dword [ebp - 8]
div ecx
mov eax, edx
leave
ret