joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800597d
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, ecx
cmp byte [ebx + 0x77], 0
je 0x18005a46
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x18005a3c
lea eax, [ebp - 4]
push eax
call fcn.180058d2
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x180059dd
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.1800eee2
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.180050f2
test al, al
jne 0x180059e7
mov ecx, edi
call fcn.1800512e
test eax, eax
jns 0x180059e7
lea ecx, [edi - 0x10]
call fcn.180046a5
lea ecx, [esi - 0x10]
call fcn.180046a5
jmp 0x18005a44
mov al, byte [ebx + 0x79]
push 0x20
mov byte [ebp - 8], al
call fcn.18145795
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.18006366
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x18005a22
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800b507
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.180046a5
lea ecx, [esi - 0x10]
call fcn.180046a5
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x18005a44
push eax
mov ecx, ebx
call fcn.18006206
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18005f85
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
test esi, esi
je 0x18006046
cmp dword [ebp + 8], 0
jne 0x18005faa
cmp dword [ebp + 0x10], 2
jg 0x18006046
call fcn.18004041
push eax
lea ecx, [ebp - 4]
call fcn.1800710c
call fcn.18004041
push eax
lea ecx, [ebp + 0x14]
call fcn.1800710c
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.1800ec96
test al, al
jne 0x18005fec
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x18005fcc
jmp 0x18006010
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
mov ecx, ebx
push esi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.18005eb1
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x18006030
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x181a77b8
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.180046a5
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.180046a5
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x18006366
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebx], fcn.18006514
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18004041
push eax
lea ecx, [ebx + 0xc]
call fcn.1800710c
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.18006dd4
mov dword [ebx + 0x18], edi
call fcn.18004041
push eax
lea ecx, [ebx + 0x1c]
call fcn.1800710c
movzx eax, byte [0x181d59e6]
neg eax
sbb eax, eax
and eax, 0x181d4bb0
mov dword [ebp + 8], eax
je 0x18006439
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.18006279
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x18006415
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0x989680
push str.MaxLogFileSize
push str.LoggingSettings
call edi
mov dword [ebx + 4], eax
xor eax, eax
push esi
inc eax
push eax
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
jmp 0x1800641f
xor eax, eax
mov dword [ebx + 4], 0x989680
inc eax
mov byte [ebx + 0xb], al
lea ecx, [ebx + 0x1c]
mov eax, dword [ebp + 8]
add eax, 0x54
push eax
call fcn.18006d7c
lea ecx, [esi - 0x10]
call fcn.180046a5
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x18006491
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x18006512
mov byte [esi + 8], 1
call fcn.18006540
cmp dword [esi + 0x10], 0
je 0x18006512
test al, al
je 0x180064b1
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.18006b50
test al, al
jne 0x180064d8
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b507
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.1800660a
cmp dword [esi + 0x18], 0
jne 0x180064ff
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800b507
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x18006512
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret
Function at 0x1800660a
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x181cd008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x8c], 0
lea edx, [ebp - 0x8c]
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x94], ebx
lea esi, [ebx + 0x14]
mov ecx, dword [esi]
mov dword [ebp - 0x98], esi
call fcn.1800b173
mov eax, dword [ebp - 0x8c]
cmp eax, dword [ebx + 4]
jbe 0x18006657
mov ecx, ebx
call fcn.18006827
xor eax, eax
cmp byte [ebx + 0xa], al
setne al
xor edi, edi
push edi
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x18], eax
cmp eax, 0xffffffff
jne 0x1800668e
mov dword [ebx + 0x18], edi
xor al, al
jmp 0x180066f4
mov edx, esi
lea ecx, [ebp - 0x8c]
call fcn.1800eee2
mov esi, dword [ebp - 0x8c]
lea edi, [ebp - 0x28]
push 9
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x18006703
call fcn.18013db1
push dword [ebx + 0x14]
push dword [ebx + 0x1c]
push str.LOG_SYSTEM:___s_:_ERROR___Log_path__s_has_a_reparse_point
call fcn.1800b507
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx + 0x18], edi
xor bl, bl
lea ecx, [esi - 0x10]
call fcn.180046a5
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181450cb
leave
ret
mov eax, dword [ebp - 0x28]
shr eax, 0xa
and al, 1
jne 0x180066c2
mov ecx, dword [ebx + 0x18]
call fcn.1800528d
test al, al
jne 0x180066c2
lea ecx, [ebp - 0xb8]
call fcn.18004b0a
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x88]
push 0x181a71f8
push eax
call fcn.18004751
add esp, 0x14
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0xb8]
push edi
push 0xc0010000
push eax
call fcn.18004b87
lea ecx, [ebp - 0x88]
mov bl, al
call fcn.1800483a
test bl, bl
je 0x18006784
push ecx
lea eax, [ebp - 0xb8]
xor edx, edx
push eax
mov eax, dword [ebp - 0x98]
inc edx
mov ecx, dword [eax]
call fcn.180050b6
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180067bb
mov eax, dword [ebp - 0x94]
cmp byte [eax + 0xb], 0
je 0x180067bb
push edi
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x94], edi
push ecx
push 2
push 0x18181da4
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xb8]
call fcn.18004b50
xor ebx, ebx
inc ebx
jmp 0x180066ea
Function at 0x180067ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
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 0x180067fe
xor al, al
jmp 0x18006822
cmp byte [esi + 0xb], bl
je 0x18006819
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x18181da4
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18006892
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x181cd008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180069ba
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x180069ba
cmp dword [ebp - 0x78], esi
jne 0x180069ba
push dword [ebp - 0x6c]
call fcn.181457c5
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.18147be0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push str.PendingFileRenameOperations
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x180069ab
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x180069ab
cmp word [esi + edi*2 - 4], bx
jne 0x180069ab
cmp word [esi + edi*2 - 2], bx
jne 0x180069ab
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, 0x181a7b64
push eax
call fcn.18006bf3
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x1800699a
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800699d
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x18006979
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.180046a5
test esi, esi
je 0x180069b6
push esi
call fcn.18145790
pop ecx
mov al, bl
jmp 0x180069bc
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181450cb
leave
ret
Function at 0x18006b50
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x18006b5d
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18006b96
cmp eax, 0x80
je 0x18006b96
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800b507
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18006b59
mov al, 1
pop esi
ret

Function at 0x180075f5
Capabilities:
Compare security identifiers

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

Function at 0x18008cce
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x181cd008]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [esp + 0x1c]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x20], edi
call fcn.18147be0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006dd4
push 0x181a7d90
lea ecx, [esp + 0x14]
call fcn.18009dcd
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008d40
call fcn.18013db1
mov edi, eax
jmp 0x18008dd6
push edi
lea ecx, [esp + 0x10]
call fcn.18006dd4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.18009dcd
lea eax, [esp + 0x44]
push 0x181a7d98
push eax
call fcn.18151f64
pop ecx
pop ecx
test eax, eax
je 0x18008d9c
lea eax, [esp + 0x44]
push 0x181a7d74
push eax
call fcn.18151f64
pop ecx
pop ecx
test eax, eax
je 0x18008d9c
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.1800917b
test eax, eax
jns 0x18008d93
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x18008da3
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.180046a5
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008d40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x18008dd4
test edi, edi
jle 0x18008dd6
movzx edi, di
or edi, 0x80070000
jmp 0x18008dd6
mov edi, ebx
cmp esi, 0xffffffff
je 0x18008de2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.180046a5
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181450cb
mov esp, ebp
pop ebp
ret
Function at 0x18008e05
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181cd008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
xor ebx, ebx
lea eax, [ebp - 0x258]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x264], edi
call fcn.18147be0
add esp, 0xc
lea ecx, [ebp - 0x25c]
push edi
call fcn.18006dd4
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.18006eb3
push 0x181a7da0
lea ecx, [ebp - 0x25c]
call fcn.18007239
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18008e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008f2d
call fcn.18013db1
mov ebx, eax
jmp 0x18008f2d
test byte [ebp - 0x258], 0x10
jne 0x18008f02
push edi
lea ecx, [ebp - 0x260]
call fcn.18006dd4
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.18006eb3
lea eax, [ebp - 0x22c]
push eax
call fcn.1814bb43
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.18006ee0
mov edi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18008ef4
mov ecx, edi
call fcn.1800ab72
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.180046a5
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18008e98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18008f26
call fcn.18013db1
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.180046a5
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181450cb
leave
ret
Function at 0x18008f4c
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x181cd008]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
test edi, edi
je 0x18008fce
movzx eax, word [edi]
test ax, ax
je 0x18008fce
push 0x3a
mov ecx, eax
xor dl, dl
pop eax
push 0x2e
mov esi, edi
pop ebx
cmp cx, 0x5c
je 0x18008f9f
cmp cx, 0x2f
je 0x18008f9f
cmp cx, ax
je 0x18008f9f
cmp cx, bx
je 0x18008fa4
mov dl, 1
cmp cx, bx
jne 0x18008fb2
cmp esi, edi
jbe 0x18008fb2
cmp word [esi - 2], bx
je 0x18009161
cmp cx, ax
push 0x3a
sete al
add esi, 2
dec al
and dl, al
movzx eax, word [esi]
mov ecx, eax
test ax, ax
pop eax
jne 0x18008f87
jmp 0x18008fd0
xor dl, dl
test dl, dl
je 0x18009161
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18009000
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18008ff6
xor eax, eax
jmp 0x18009166
call fcn.18013db1
jmp 0x18009166
and eax, 0x410
cmp eax, 0x10
jne 0x18009161
mov ecx, edi
call fcn.18008e05
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.18147be0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.18006dd4
mov esi, 0x181a7da4
push esi
call fcn.1814bb43
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.18006ee0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18009083
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18009151
call fcn.18013db1
test ebx, ebx
jns 0x1800914f
jmp 0x18009151
test byte [esp + 0x18], 0x10
je 0x1800911a
push 0
push 2
mov edx, 0x181a7d74
lea ecx, [esp + 0x4c]
call fcn.1800d11f
pop ecx
pop ecx
test eax, eax
je 0x1800911a
push 0
push 3
mov edx, 0x181a7d98
lea ecx, [esp + 0x4c]
call fcn.1800d11f
pop ecx
pop ecx
test eax, eax
je 0x1800911a
push edi
lea ecx, [esp + 0x10]
call fcn.18006dd4
mov edi, 0x181a7228
push edi
call fcn.1814bb43
pop ecx
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.18006ee0
lea eax, [esp + 0x44]
push eax
call fcn.1814bb43
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.18006ee0
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.18008f4c
test ebx, ebx
js 0x1800910e
test eax, eax
jns 0x1800910e
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.180046a5
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18009083
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18009151
mov ecx, edi
call fcn.1800ab72
test ebx, ebx
js 0x18009151
test eax, eax
jns 0x18009151
mov ebx, eax
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.180046a5
mov eax, ebx
jmp 0x18009166
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.181450cb
mov esp, ebp
pop ebp
ret
Function at 0x180096ed
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
call fcn.180082db
xor ebx, ebx
mov esi, ebx
cmp dword [edi + 8], ebx
jne 0x18009747
call fcn.180111ef
test al, al
je 0x18009747
call fcn.18008226
mov esi, eax
test esi, esi
je 0x180097b7
mov dword [edi + 8], esi
cmp dword [edi + 0xc], ebx
je 0x18009747
push str.runas
push dword [edi + 0xc]
call fcn.18151e63
pop ecx
pop ecx
test eax, eax
jne 0x18009747
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0xf]
test eax, eax
je 0x18009809
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x180097c6
call fcn.180100fb
movzx ecx, byte [0x181d59e6]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181d4bb0
je 0x180097ae
push 7
pop edx
xor eax, eax
mov dword [esp + 0x10], ecx
inc eax
mov dword [esp + 0x14], edx
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.18005de9
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push str._Started_process___u_
push eax
call fcn.180041e3
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x18009811
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18009827
movzx ecx, byte [0x181d59e6]
neg ecx
sbb ecx, ecx
and ecx, 0x181d4bb0
je 0x18009811
push 7
pop edx
xor eax, eax
mov dword [esp + 0x10], ecx
inc eax
mov dword [esp + 0x14], edx
push eax
push edx
mov dword [esp + 0x20], eax
call fcn.18005de9
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push str._Started_process__PID_unknown_
push eax
call fcn.180041e3
pop ecx
pop ecx
jmp 0x18009811
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x1800981c
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.18008335
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
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 0x180098e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18009928
test eax, eax
jle 0x18009916
movzx edi, ax
or edi, 0x80070000
jmp 0x18009928
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18009921
cmp eax, 0x80
je 0x18009921
cmp eax, 0x102
je 0x1800991a
cmp eax, 0xffffffff
je 0x18009911
mov edi, 0x80004005
jmp 0x18009928
call fcn.18013db1
mov edi, eax
jmp 0x18009928
mov edi, 0x800705b4
jmp 0x18009928
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x18009933
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x18009a93
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 0x18009ab9
push dword [ebp + 8]
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x18009b4d
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
lea eax, [ecx + 0x40]
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x18009ad9
push 0x40
pop edi
jmp 0x18009add
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 0x18009b4a
cmp ecx, 0xffffffff
je 0x18009b4a
cmp ecx, 0x80
jb 0x18009b14
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x18009b14
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x18009b2d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x18009b2d
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x18009aca
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x18009b4c
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1800a989
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 4]
call fcn.18006e06
mov bl, byte [ebp + 0xc]
push 0
push 0x10000000
movzx eax, bl
add eax, 3
push eax
xor eax, eax
test bl, bl
push 0
push dword [ebp + 0x14]
sete al
dec eax
and eax, 0x102
inc eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1800a9d7
call fcn.18013db1
jmp 0x1800a9f9
test bl, bl
je 0x1800a9ed
push 0x2000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1800a9d0
and dword [esi + 0xc], 0
xor bl, 1
mov byte [esi + 8], bl
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10