joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004222
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.18004ec7
mov esi, dword [ebp - 4]
lea edi, [ebx + 0x78]
xor eax, eax
cmp dword [esi - 0xc], eax
je 0x18004317
push esi
push 1
push str.EnableLogging
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x77], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x7c], al
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
xor ecx, ecx
mov byte [ebx + 0x7d], al
inc ecx
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or ecx, eax
jge 0x180042f0
push 0x104
mov ecx, edi
call fcn.18005ca9
mov edx, dword [edi]
push esi
push 0x104
push edx
push str.GoogleUpdate.log
push str.LogFilePath
push str.LoggingSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.180058f6
jmp 0x1800433f
push str.GoogleUpdate.log
mov byte [ebx + 0x74], 1
mov word [ebx + 0x76], 1
mov word [ebx + 0x7c], 0x100
call fcn.1813397d
pop ecx
push eax
push str.GoogleUpdate.log
mov ecx, edi
call fcn.18005b56
cmp byte [ebx + 0x75], 0
je 0x18004349
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x181a1020]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x180043b7
mov ecx, dword [eax + 0x181a1024]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x180043b7
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.18004ec7
mov edi, dword [ebp - 8]
cmp dword [edi - 0xc], 0
je 0x1800439a
push edi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1800439d
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [edi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.18003476
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x18004358
call fcn.1800a8fe
lea ecx, [esi - 0x10]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
call fcn.18003476
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180043e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.18002e11
push eax
lea ecx, [ebp - 4]
call fcn.18005bd3
mov esi, dword [ebp - 4]
xor ecx, ecx
inc ecx
mov edx, 0x104
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x18004416
push edx
lea ecx, [ebp - 4]
call fcn.18005ca9
mov esi, dword [ebp - 4]
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1800444c
mov ecx, dword [ebp + 8]
push 0x18160a9c
call fcn.1800589b
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.180058f6
lea ecx, [esi - 0x10]
call fcn.18003476
mov eax, dword [ebp + 8]
jmp 0x18004483
push str.GoogleUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x18004428
push edi
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.18005c50
mov esi, dword [ebp + 8]
lea ecx, [ebp - 4]
add eax, 0x10
push 0xffffffffffffffff
mov dword [esi], eax
call fcn.180058f6
mov ecx, edi
call fcn.18003476
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x1800455b
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 0x18004624
mov eax, dword [ebx + 0xcc]
push esi
push edi
test eax, eax
jne 0x1800461a
lea eax, [ebp - 4]
push eax
call fcn.18004488
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
je 0x180045bb
lea edx, [ebp - 4]
lea ecx, [ebp - 8]
call fcn.1800d879
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800947e
test al, al
jne 0x180045c5
mov ecx, edi
call fcn.180075a8
test eax, eax
jns 0x180045c5
lea ecx, [edi - 0x10]
call fcn.18003476
lea ecx, [esi - 0x10]
call fcn.18003476
jmp 0x18004622
mov al, byte [ebx + 0x7d]
push 0x20
mov byte [ebp - 8], al
call fcn.18129579
pop ecx
push dword [ebp - 8]
mov ecx, eax
push esi
call fcn.18004fb4
mov dword [ebx + 0xcc], eax
test eax, eax
jne 0x18004600
push esi
push dword [ebx + 0x54]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.1800a053
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [edi - 0x10]
call fcn.18003476
lea ecx, [esi - 0x10]
call fcn.18003476
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x18004622
push eax
mov ecx, ebx
call fcn.18004e54
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18004b63
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 0x18004c24
cmp dword [ebp + 8], 0
jne 0x18004b88
cmp dword [ebp + 0x10], 2
jg 0x18004c24
call fcn.18002e11
push eax
lea ecx, [ebp - 4]
call fcn.18005bd3
call fcn.18002e11
push eax
lea ecx, [ebp + 0x14]
call fcn.18005bd3
xor edi, edi
lea eax, [ebx + 0x58]
inc edi
push 0
mov ecx, eax
call fcn.1800d642
test al, al
jne 0x18004bca
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea eax, [ebx + 0x58]
cmp edi, 0x14
jle 0x18004baa
jmp 0x18004bee
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.18004a8f
lea ecx, [ebx + 0x58]
mov eax, dword [ecx]
call dword [eax + 8]
cmp edi, 0x14
jle 0x18004c0e
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 0x1817c240
call esi
mov ecx, dword [ebp + 0x14]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.18003476
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x18004fb4
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.18005162
mov dword [ebx + 4], 0x989680
mov word [ebx + 8], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18002e11
push eax
lea ecx, [ebx + 0xc]
call fcn.18005bd3
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x10], edi
call fcn.1800589b
mov dword [ebx + 0x18], edi
call fcn.18002e11
push eax
lea ecx, [ebx + 0x1c]
call fcn.18005bd3
movzx eax, byte [0x181a7c1c]
neg eax
sbb eax, eax
and eax, 0x181a75e0
mov dword [ebp + 8], eax
je 0x18005087
lea ecx, [ebp + 0xc]
push ecx
mov ecx, eax
call fcn.18004ec7
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], edi
je 0x18005063
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 0x1800506d
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.18005843
lea ecx, [esi - 0x10]
call fcn.18003476
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8
Function at 0x180050df
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 8], 0
jne 0x18005160
mov byte [esi + 8], 1
call fcn.1800518e
cmp dword [esi + 0x10], 0
je 0x18005160
test al, al
je 0x180050ff
mov byte [esi + 0xa], 1
mov ecx, esi
call fcn.180056ee
test al, al
jne 0x18005126
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.1800a053
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
mov ecx, esi
call fcn.18005258
cmp dword [esi + 0x18], 0
jne 0x1800514d
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.1800a053
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [esi + 0x10], 0
mov byte [esi + 9], 1
je 0x18005160
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x18005258
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea edx, [ebp - 0x6c]
push edi
xor edi, edi
mov dword [ebp - 0x6c], edi
mov ecx, dword [esi + 0x14]
call fcn.18009c70
mov eax, dword [ebp - 0x6c]
cmp eax, dword [esi + 4]
jbe 0x1800528f
mov ecx, esi
call fcn.180053c5
xor eax, eax
cmp byte [esi + 0xa], al
push edi
setne al
push 0x80
lea eax, [eax*2 + 2]
push eax
push edi
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x180052c8
mov dword [esi + 0x18], edi
xor al, al
jmp 0x1800535d
lea ecx, [ebp - 0x8c]
call fcn.180038a6
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x1817bd14
push eax
call fcn.180034ed
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x8c]
push edi
push 0xc0010000
push eax
call fcn.18003923
lea ecx, [ebp - 0x68]
mov bl, al
call fcn.180035d6
test bl, bl
je 0x18005325
push ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebp - 0x8c]
xor edx, edx
push eax
inc edx
call fcn.18003e52
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x18005350
cmp byte [esi + 0xb], 0
je 0x18005350
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
push ecx
push 2
push 0x18161c04
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x8c]
call fcn.180038ec
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret

Function at 0x1800536c
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 0x1800539c
xor al, al
jmp 0x180053c0
cmp byte [esi + 0xb], bl
je 0x180053b7
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x18161c04
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 0x18005430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1819f008]
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 0x18005558
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 0x18005558
cmp dword [ebp - 0x78], esi
jne 0x18005558
push dword [ebp - 0x6c]
call fcn.181295a9
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.1812b9b0
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 0x18005549
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x18005549
cmp word [esi + edi*2 - 4], bx
jne 0x18005549
cmp word [esi + edi*2 - 2], bx
jne 0x18005549
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, 0x1817c574
push eax
call fcn.18005791
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x18005538
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1800553b
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 0x18005517
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.18003476
test esi, esi
je 0x18005554
push esi
call fcn.18129574
pop ecx
mov al, bl
jmp 0x1800555a
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret

Function at 0x180056ee
Capabilities:
Print debug messages

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

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

Function at 0x180076c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1819f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.18005945
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.1812b9b0
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 0x1800775c
movzx ecx, bl
cmp ecx, 0x26
jne 0x18007720
mov edx, str.ProgramFiles
jmp 0x1800772a
cmp ecx, 0x1c
jne 0x1800774b
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.1800837f
push eax
mov ecx, esi
call fcn.18005843
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x18007758
xor eax, eax
inc eax
jmp 0x1800777a
mov eax, edi
jmp 0x1800777a
lea eax, [ebp - 0x20c]
push eax
call fcn.1813397d
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.18005b56
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret
Function at 0x18007789
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1819f008]
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.1812b9b0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.1800589b
push 0x1817c728
lea ecx, [esp + 0x14]
call fcn.180086f7
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x180077fb
call fcn.18011478
mov edi, eax
jmp 0x18007891
push edi
lea ecx, [esp + 0x10]
call fcn.1800589b
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x10]
call fcn.180086f7
lea eax, [esp + 0x44]
push 0x1817c730
push eax
call fcn.18133be9
pop ecx
pop ecx
test eax, eax
je 0x18007857
lea eax, [esp + 0x44]
push 0x1817c6d4
push eax
call fcn.18133be9
pop ecx
pop ecx
test eax, eax
je 0x18007857
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.18007c30
test eax, eax
jns 0x1800784e
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [esp + 0x14]
jmp 0x1800785e
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.18003476
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180077fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800788f
test edi, edi
jle 0x18007891
movzx edi, di
or edi, 0x80070000
jmp 0x18007891
mov edi, ebx
cmp esi, 0xffffffff
je 0x1800789d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov ecx, dword [esp + 0x26c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18128eaf
mov esp, ebp
pop ebp
ret
Function at 0x180078c0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1819f008]
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.1812b9b0
add esp, 0xc
lea ecx, [ebp - 0x25c]
push edi
call fcn.1800589b
push 0x5c
lea ecx, [ebp - 0x25c]
call fcn.1800597a
push 0x1817c738
lea ecx, [ebp - 0x25c]
call fcn.18005d00
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18007953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180079e8
call fcn.18011478
mov ebx, eax
jmp 0x180079e8
test byte [ebp - 0x258], 0x10
jne 0x180079bd
push edi
lea ecx, [ebp - 0x260]
call fcn.1800589b
push 0x5c
lea ecx, [ebp - 0x260]
call fcn.1800597a
lea eax, [ebp - 0x22c]
push eax
call fcn.1813397d
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x260]
call fcn.180059a7
mov edi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180079af
mov ecx, edi
call fcn.18009672
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18003476
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18007953
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180079e1
call fcn.18011478
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18128eaf
leave
ret
Function at 0x18007a07
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x1819f008]
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 0x18007a89
movzx eax, word [edi]
test ax, ax
je 0x18007a89
push 0x3a
mov ecx, eax
xor dl, dl
pop eax
push 0x2e
mov esi, edi
pop ebx
cmp cx, 0x5c
je 0x18007a5a
cmp cx, 0x2f
je 0x18007a5a
cmp cx, ax
je 0x18007a5a
cmp cx, bx
je 0x18007a5f
mov dl, 1
cmp cx, bx
jne 0x18007a6d
cmp esi, edi
jbe 0x18007a6d
cmp word [esi - 2], bx
je 0x18007c16
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 0x18007a42
jmp 0x18007a8b
xor dl, dl
test dl, dl
je 0x18007c16
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18007abb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18007ab1
xor eax, eax
jmp 0x18007c1b
call fcn.18011478
jmp 0x18007c1b
test al, 0x10
je 0x18007c16
mov ecx, edi
call fcn.180078c0
push 0x250
mov ebx, eax
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1812b9b0
add esp, 0xc
lea ecx, [esp + 0x10]
push edi
call fcn.1800589b
mov esi, 0x1817c73c
push esi
call fcn.1813397d
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.180059a7
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x18007b38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18007c06
call fcn.18011478
test ebx, ebx
jns 0x18007c04
jmp 0x18007c06
test byte [esp + 0x18], 0x10
je 0x18007bcf
push 0
push 2
mov edx, 0x1817c6d4
lea ecx, [esp + 0x4c]
call fcn.1800bc17
pop ecx
pop ecx
test eax, eax
je 0x18007bcf
push 0
push 3
mov edx, 0x1817c730
lea ecx, [esp + 0x4c]
call fcn.1800bc17
pop ecx
pop ecx
test eax, eax
je 0x18007bcf
push edi
lea ecx, [esp + 0x10]
call fcn.1800589b
mov edi, 0x1817bd3c
push edi
call fcn.1813397d
pop ecx
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.180059a7
lea eax, [esp + 0x44]
push eax
call fcn.1813397d
pop ecx
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.180059a7
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.18007a07
test ebx, ebx
js 0x18007bc3
test eax, eax
jns 0x18007bc3
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18003476
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18007b38
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x18007c06
mov ecx, edi
call fcn.18009672
test ebx, ebx
js 0x18007c06
test eax, eax
jns 0x18007c06
mov ebx, eax
mov ecx, dword [esp + 0x10]
lea ecx, [ecx - 0x10]
call fcn.18003476
mov eax, ebx
jmp 0x18007c1b
mov eax, 0x80004005
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18128eaf
mov esp, ebp
pop ebp
ret
Function at 0x18007c30
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Get file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.1800947e
test al, al
jne 0x18007c43
mov eax, 0x80070002
pop esi
ret
mov ecx, esi
call fcn.180094ba
mov ecx, esi
test al, al
je 0x18007c56
pop esi
jmp fcn.18007a07
call fcn.18009627
test eax, eax
jns 0x18007c41
mov ecx, esi
pop esi
jmp fcn.18009672

Function at 0x18008139
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 0x18008192
call fcn.1800fa0c
test al, al
je 0x18008192
call fcn.18006c40
mov edi, eax
test edi, edi
je 0x18008202
mov dword [esp + 0x14], eax
mov dword [esi + 8], edi
cmp dword [esi + 0xc], ebx
je 0x18008192
push str.runas
push dword [esi + 0xc]
call fcn.18133a74
pop ecx
pop ecx
test eax, eax
jne 0x18008192
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 0x1800824f
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x1800820c
call fcn.1800eaa6
movzx ecx, byte [0x181a7c1c]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x180081f9
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.180049c7
push esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push str._Started_process___u_
push eax
call fcn.18002fb3
add esp, 0xc
push esi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x18008257
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1800826e
movzx ecx, byte [0x181a7c1c]
neg ecx
sbb ecx, ecx
and ecx, 0x181a75e0
je 0x18008257
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.180049c7
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push str._Started_process__PID_unknown_
push eax
call fcn.18002fb3
pop ecx
pop ecx
jmp 0x18008257
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x18008266
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