joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18009703
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0x14]
mov ecx, dword [ebx]
call fcn.18010d62
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jbe 0x18009738
mov ecx, edi
call fcn.18009883
xor eax, eax
cmp byte [edi + 0xa], al
setne al
xor esi, esi
push esi
push 0x80
lea eax, [eax*2 + 2]
push eax
push esi
push 3
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
jne 0x18009772
mov dword [edi + 0x18], esi
xor al, al
jmp 0x18009806
mov edx, ebx
mov dword [ebp - 8], esi
lea ecx, [ebp - 8]
call fcn.18016246
mov esi, dword [ebp - 8]
lea edx, [ebp - 9]
xor ebx, ebx
mov ecx, esi
inc ebx
mov byte [ebp - 9], bl
call fcn.180105a6
cmp byte [ebp - 9], 0
jne 0x180097d3
mov ecx, dword [edi + 0x18]
call fcn.18007e58
test al, al
jne 0x180097d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180097fc
cmp byte [edi + 0xb], 0
je 0x180097fc
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
push 2
push 0x1816cff8
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x180097fc
push dword [edi + 0x14]
push dword [edi + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.1801126d
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi + 0x18], 0
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.18007012
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x18009815
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x18009850
xor al, al
jmp 0x18009874
cmp byte [esi + 0xb], bl
je 0x1800986b
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push 2
push 0x1816cff8
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x1800990b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x7c], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18009a3b
push 7
pop esi
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
push eax
push ebx
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
push eax
push ebx
mov edi, str.PendingFileRenameOperations
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18009a3b
cmp dword [ebp - 0x6c], esi
jne 0x18009a3b
push dword [ebp - 0x74]
call fcn.18118338
push dword [ebp - 0x74]
mov esi, eax
push ebx
push esi
mov dword [ebp - 0x80], esi
call fcn.1812c700
add esp, 0x10
lea eax, [ebp - 0x74]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18009a30
mov edi, dword [ebp - 0x74]
shr edi, 1
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18009a30
cmp word [esi + edi*2 - 4], bx
jne 0x18009a30
cmp word [esi + edi*2 - 2], bx
jne 0x18009a30
mov eax, dword [ebp - 0x7c]
lea ecx, [ebp - 0x70]
add eax, 0x14
mov dword [ebp - 0x70], ebx
push eax
mov edx, 0x18197e2c
call fcn.18009ced
mov esi, dword [ebp - 0x70]
pop ecx
test edi, edi
je 0x18009a1c
mov eax, dword [ebp - 0x80]
push esi
lea eax, [eax + ebx*2]
push eax
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x18009a1f
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc ebx
add ebx, eax
cmp ebx, edi
jb 0x180099f7
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [esi - 0x10]
setne bl
call fcn.18007012
mov esi, dword [ebp - 0x80]
push esi
call fcn.18118303
pop ecx
mov al, bl
jmp 0x18009a3d
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x18009bfe
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18009c0b
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18009c44
cmp eax, 0x80
je 0x18009c44
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1801126d
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18009c07
mov al, 1
pop esi
ret
Function at 0x1800a928
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
lea ebx, [ecx + 4]
push edi
mov edi, edx
test ebx, ebx
je 0x1800a95e
lea esi, [edi + 4]
test esi, esi
je 0x1800a95e
call fcn.1800a888
test al, al
je 0x1800a95e
mov ecx, edi
call fcn.1800a888
test al, al
je 0x1800a95e
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x1800a960
xor al, al
pop edi
pop esi
pop ebx
ret

Function at 0x1800c996
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push esi
push edi
mov esi, ecx
call fcn.1800703b
push eax
lea ecx, [ebp - 8]
call fcn.1800774f
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1800c9df
push edi
lea ecx, [ebp - 8]
call fcn.180077dc
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009f73
test esi, esi
jne 0x1800ca01
mov edi, 0x80004005
jmp 0x1800caa9
push ebx
push ecx
push ecx
lea ecx, [ebp - 8]
call fcn.1800f8a9
push 0
push 0x5c
lea ecx, [ebp - 8]
call fcn.1800f746
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1800ca27
mov ecx, dword [ebp - 8]
mov eax, dword [ecx - 0xc]
jmp 0x1800ca29
mov eax, ebx
and dword [ebp - 0xc], 0
lea ecx, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1800f643
mov esi, dword [ebp - 0xc]
mov ecx, esi
call fcn.18010559
test al, al
jne 0x1800ca68
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800ca68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
mov edi, eax
call fcn.18010559
test al, al
je 0x1800ca87
cmp ebx, 0xffffffff
je 0x1800ca9e
lea eax, [ebx + 1]
push eax
push 0x5c
lea ecx, [ebp - 8]
call fcn.1800f746
lea ecx, [esi - 0x10]
mov ebx, eax
call fcn.18007012
jmp 0x1800ca1a
test edi, edi
jle 0x1800ca94
movzx edi, di
or edi, 0x80070000
lea ecx, [esi - 0x10]
call fcn.18007012
jmp 0x1800caa8
lea ecx, [esi - 0x10]
call fcn.18007012
xor edi, edi
pop ebx
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.18117a58
leave
ret
Function at 0x1800cac4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1800caeb
mov eax, 0x80070057
jmp 0x1800cb8e
push edi
mov ecx, esi
call fcn.180075e6
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1812c700
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x1800cb6f
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800cb30
mov edx, str.ProgramFiles
jmp 0x1800cb3a
cmp ecx, 0x1c
jne 0x1800cb5b
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.1800da61
push eax
mov ecx, esi
call fcn.18009f25
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800cb68
xor eax, eax
inc eax
jmp 0x1800cb8d
lfence
mov eax, edi
jmp 0x1800cb8d
lea eax, [ebp - 0x20c]
push eax
call fcn.18130750
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.1800768d
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret

Function at 0x1800cb9c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x260]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x264], edi
call fcn.1812c700
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
add esp, 0xc
push edi
call fcn.1800759a
push 0x1819806c
lea ecx, [ebp - 0xc]
call fcn.1800f521
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cc0d
call fcn.1801b6cc
mov edi, eax
jmp 0x1800ccaf
xor ebx, ebx
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
push edi
call fcn.1800759a
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 8]
call fcn.1800f521
lea eax, [ebp - 0x234]
push 0x18198074
push eax
call fcn.181340d2
pop ecx
pop ecx
test eax, eax
je 0x1800cc74
lea eax, [ebp - 0x234]
push 0x18198018
push eax
call fcn.181340d2
pop ecx
pop ecx
test eax, eax
je 0x1800cc74
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800d069
test eax, eax
jns 0x1800cc69
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [ebp - 0x264]
jmp 0x1800cc7a
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18007012
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cc0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800ccb6
test edi, edi
jle 0x1800ccaf
movzx edi, di
or edi, 0x80070000
cmp esi, 0xffffffff
je 0x1800ccbf
jmp 0x1800ccb8
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x1800ccdb
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push 0x250
mov edi, ecx
mov dword [ebp - 0x264], ebx
push ebx
push eax
mov dword [ebp - 0x268], edi
call fcn.1812c700
add esp, 0xc
mov dword [ebp - 8], ebx
lea ecx, [ebp - 8]
push edi
call fcn.1800759a
push 0x5c
lea ecx, [ebp - 8]
call fcn.18009fc2
mov esi, 0x1819807c
push esi
call fcn.18130750
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009fef
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1800cd74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ce0d
call fcn.1801b6cc
mov ebx, eax
jmp 0x1800ce0d
test byte [ebp - 0x260], 0x10
jne 0x1800cdd8
push dword [ebp - 0x268]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.1800759a
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.18009fc2
lea eax, [ebp - 0x234]
push eax
call fcn.18130750
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009fef
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800cdd0
mov ecx, esi
call fcn.18010779
mov dword [ebp - 0x264], eax
lea ecx, [esi - 0x10]
call fcn.18007012
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cd74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800cdfe
call fcn.1801b6cc
mov esi, eax
jmp 0x1800ce04
mov esi, dword [ebp - 0x264]
push edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x1800ce29
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x264], edi
test edi, edi
je 0x1800d055
movzx eax, word [edi]
test ax, ax
je 0x1800d055
push 0x2e
xor cl, cl
mov dword [ebp - 8], 0x3a
mov esi, edi
mov edx, eax
pop ebx
mov al, cl
cmp dx, 0x5c
je 0x1800ce98
cmp dx, 0x2f
je 0x1800ce98
cmp dx, word [ebp - 8]
je 0x1800ce98
cmp dx, bx
je 0x1800ce88
mov cl, 1
jmp 0x1800ce98
mov cl, al
cmp esi, edi
jbe 0x1800ce98
cmp word [esi - 2], bx
je 0x1800d055
push 0x3a
pop eax
cmp dx, ax
sete al
add esi, 2
dec al
and cl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1800ce6b
test cl, cl
je 0x1800d055
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800cee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800ced8
xor eax, eax
jmp 0x1800d05a
call fcn.1801b6cc
jmp 0x1800d05a
and eax, 0x410
cmp eax, 0x10
jne 0x1800d055
mov ecx, edi
call fcn.1800ccdb
push 0x250
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.1812c700
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
add esp, 0xc
push edi
call fcn.1800759a
mov esi, 0x18198080
push esi
call fcn.18130750
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009fef
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cf6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800d046
call fcn.1801b6cc
test ebx, ebx
jns 0x1800d044
jmp 0x1800d046
test byte [ebp - 0x260], 0x10
je 0x1800d00d
push 0
push 2
mov edx, 0x18198018
lea ecx, [ebp - 0x234]
call fcn.18012fda
pop ecx
pop ecx
test eax, eax
je 0x1800d00d
push 0
push 3
mov edx, 0x18198074
lea ecx, [ebp - 0x234]
call fcn.18012fda
pop ecx
pop ecx
test eax, eax
je 0x1800d00d
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push edi
call fcn.1800759a
mov edi, 0x18197384
push edi
call fcn.18130750
pop ecx
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.18009fef
lea eax, [ebp - 0x234]
push eax
call fcn.18130750
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009fef
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.1800ce29
test ebx, ebx
js 0x1800cfff
test eax, eax
jns 0x1800cfff
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18007012
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cf6a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800d046
mov ecx, edi
call fcn.18010779
test ebx, ebx
js 0x1800d046
test eax, eax
jns 0x1800d046
mov ebx, eax
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov eax, ebx
jmp 0x1800d05a
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x1800d53b
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov esi, ebx
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1812c700
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x1800d6e4
cmp eax, 0xea
je 0x1800d6da
test eax, eax
jne 0x1800d6e4
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x1800d6c6
mov eax, 0x104
mov dword [ebp - 0x628], 9
push 0x208
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.1812c700
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.1812c700
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x620]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x1800d644
call fcn.1801b6cc
jmp 0x1800d6c6
cmp dword [ebp - 0x628], 1
jne 0x1800d6c6
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x624], ebx
push eax
lea ecx, [ebp - 0x638]
call fcn.1800759a
push str.HKU_
lea ecx, [ebp - 0x634]
call fcn.1800759a
lea eax, [ebp - 0x638]
push eax
lea edx, [ebp - 0x634]
lea ecx, [ebp - 0x624]
call fcn.1800d3f6
pop ecx
mov ecx, dword [ebp - 0x634]
lea ecx, [ecx - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 0x638]
lea ecx, [ecx - 0x10]
call fcn.18007012
lea eax, [ebp - 0x624]
mov ecx, edi
push eax
call fcn.18009c74
mov ecx, dword [ebp - 0x624]
lea ecx, [ecx - 0x10]
call fcn.18007012
cmp dword [ebp - 0x620], ebx
je 0x1800d6da
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, 0xa
jl 0x1800d557
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18117a58
leave
ret
Function at 0x1800d7ea
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov ebx, eax
cmp dword [esi + 8], eax
jne 0x1800d843
call fcn.180159b1
test al, al
je 0x1800d843
call fcn.1800be7a
mov edi, eax
test edi, edi
je 0x1800d8b3
mov dword [esp + 0x14], eax
mov dword [esi + 8], edi
cmp dword [esi + 0xc], ebx
je 0x1800d843
push str.runas
push dword [esi + 0xc]
call fcn.18134278
pop ecx
pop ecx
test eax, eax
jne 0x1800d843
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0x13]
test eax, eax
je 0x1800d900
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1800d8bd
call fcn.1801813e
movzx ecx, byte [0x181cc106]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181cc000
je 0x1800d8aa
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.18008bfd
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push str._Started_process___u_
push eax
call fcn.180072d0
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x1800d908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800d91f
movzx ecx, byte [0x181cc106]
neg ecx
sbb ecx, ecx
and ecx, 0x181cc000
je 0x1800d908
push 7
pop edx
xor eax, eax
mov dword [esp + 0x18], ecx
inc eax
mov dword [esp + 0x1c], edx
push eax
push edx
mov dword [esp + 0x28], eax
call fcn.18008bfd
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push str._Started_process__PID_unknown_
push eax
call fcn.180072d0
pop ecx
pop ecx
jmp 0x1800d908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1800d917
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov al, byte [esp + 0x13]
mov byte [esp + 0x14], al
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1800d931
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181c600c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
xor esi, esi
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.1800759a
push ecx
lea ecx, [ebp - 8]
call fcn.1800f6dd
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], esi
jne 0x1800d96b
mov esi, 0x80070057
jmp 0x1800d9bf
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 0xc], esi
je 0x1800d9b4
test edi, edi
je 0x1800d9b4
push ebx
mov ebx, dword [edi]
test ebx, ebx
jne 0x1800d990
mov eax, esi
jmp 0x1800d997
push ebx
call fcn.18130750
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.1800768d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1800f6dd
pop ebx
jmp 0x1800d9bb
call fcn.1801b6cc
mov esi, eax
mov eax, dword [ebp - 8]
pop edi
lea ecx, [eax - 0x10]
call fcn.18007012
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.18117a58
leave
ret

Function at 0x1800d9d6
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.Global_MSIExecute
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x1800da0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800da50
test eax, eax
jle 0x1800da3e
movzx edi, ax
or edi, 0x80070000
jmp 0x1800da50
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800da49
cmp eax, 0x80
je 0x1800da49
cmp eax, 0x102
je 0x1800da42
cmp eax, 0xffffffff
je 0x1800da39
mov edi, 0x80004005
jmp 0x1800da54
call fcn.1801b6cc
mov edi, eax
jmp 0x1800da50
mov edi, 0x800705b4
jmp 0x1800da50
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1800da5b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1800ebc7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 8], edi
cmp esi, 0x40
ja 0x1800ebf0
push dword [ebp + 8]
lfence
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1800ec8a
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], bl
mov ecx, ebx
lfence
lea eax, [ecx + 0x40]
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x1800ec13
push 0x40
pop edi
jmp 0x1800ec17
mov edi, esi
sub edi, ecx
mov eax, dword [ebp + 8]
sub eax, ebx
push eax
push 1
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, eax
cmp ecx, 0x102
je 0x1800ec84
cmp ecx, 0xffffffff
je 0x1800ec84
cmp ecx, 0x80
jb 0x1800ec4e
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x1800ec4e
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x1800ec67
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x1800ec67
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x1800ec04
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x1800ec89
lfence
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret