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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
lea edi, [esp + 0x30]
mov eax, ebp
call fcn.180021a3
mov edi, dword [esp + 0x30]
cmp dword [edi - 0xc], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
je 0x180015e1
push edi
push 1
push str.EnableLogging
mov esi, str.LoggingSettings
push esi
call ebx
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push esi
mov byte [ebp + 0x7c], al
call ebx
push edi
push 1
test eax, eax
push str.LogToFile
setne al
push esi
mov byte [ebp + 0x7e], al
call ebx
push edi
push 1
test eax, eax
push str.LogToOutputDebug
setne al
push esi
mov byte [ebp + 0x7f], al
call ebx
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push esi
mov byte [ebp + 0x84], al
call ebx
test eax, eax
setne al
mov byte [ebp + 0x85], al
push 0x104
lea eax, [ebp + 0x80]
lea edi, [esp + 0x24]
call fcn.18002b2f
push dword [esp + 0x30]
push 0x104
push dword [eax + 4]
push str.DealPlyLive.log
push str.LogFilePath
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
call fcn.18003baa
mov edi, dword [esp + 0x30]
jmp 0x1800160c
push str.DealPlyLive.log
lea eax, [ebp + 0x80]
push eax
mov byte [ebp + 0x7c], 1
mov byte [ebp + 0x7e], 1
mov byte [ebp + 0x7f], 1
mov byte [ebp + 0x84], 1
mov byte [ebp + 0x85], 1
call fcn.18003de7
cmp byte [ebp + 0x7d], 0
je 0x18001616
mov byte [ebp + 0x7e], 1
xor eax, eax
mov byte [ebp], 1
mov dword [ebp + 4], 7
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0x180b0b50]
mov edx, dword [eax + 0x180b0b54]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x1800168d
cmp edx, 0xb
jge 0x1800168d
push 3
pop esi
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.180021a3
mov edi, dword [esp + 0x14]
cmp dword [edi - 0xc], 0
je 0x1800166b
push edi
push esi
push dword [esp + 0x20]
push str.LoggingLevel
call ebx
mov esi, eax
mov eax, dword [esp + 0x1c]
lea eax, [ebp + eax*8]
test esi, esi
setne cl
mov byte [eax], cl
mov dword [eax + 4], esi
lea eax, [edi - 0x10]
call fcn.18003e0a
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add eax, 8
mov dword [esp + 0x10], eax
cmp eax, 0x50
jb 0x18001627
call fcn.18009ae8
mov dword [ebp + 0x88], eax
lea eax, [edi - 0x10]
mov dword [ebp + 0x8c], edx
call fcn.18003e0a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x180016bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x180b4188]
push esi
mov ecx, 0x180b4188
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18003ce3
mov esi, eax
push esi
xor eax, eax
push eax
push eax
push 0x23
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x18001719
push 0x1809c2bc
mov eax, edi
call fcn.18003b7f
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003baa
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
jmp 0x1800174f
push str.DealPlyLiveUpdateLog
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x180016f5
push ebx
mov ebx, dword [ebp - 4]
add ebx, 0xfffffff0
mov eax, ebx
call fcn.1800392c
add eax, 0x10
mov dword [edi], eax
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003baa
mov eax, ebx
call fcn.18003e0a
pop ebx
mov eax, edi
pop esi
leave
ret

Function at 0x18001838
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x7f], 0
je 0x18001913
cmp dword [ebx + 0xd4], 0
push esi
push edi
jne 0x18001900
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.18001754
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x1800189b
lea eax, [ebp - 8]
lea edi, [ebp - 0xc]
call fcn.1800a616
mov edi, dword [ebp - 0xc]
push edi
call fcn.1800ad60
pop ecx
test al, al
jne 0x180018a5
push edi
call fcn.1800454c
pop ecx
test eax, eax
jge 0x180018a5
lea eax, [edi - 0x10]
call fcn.18003e0a
lea eax, [esi - 0x10]
call fcn.18003e0a
jmp 0x18001911
mov al, byte [ebx + 0x85]
push 0x20
mov byte [ebp - 4], al
call fcn.18076ac4
pop ecx
mov ecx, eax
test ecx, ecx
je 0x180018cc
mov al, byte [ebp - 4]
push esi
mov ebx, ecx
call fcn.18002279
mov ebx, dword [ebp + 8]
jmp 0x180018ce
xor eax, eax
mov dword [ebx + 0xd4], eax
test eax, eax
jne 0x180018f0
push esi
push dword [ebx + 0x5c]
push str.LOG_SYSTEM:___s_:_ERROR___Cannot_create_log_writer_to__s
call fcn.180098b0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi - 0x10]
call fcn.18003e0a
lea eax, [esi - 0x10]
call fcn.18003e0a
mov esi, dword [ebx + 0xd4]
test esi, esi
je 0x18001911
mov edx, ebx
call fcn.1800213f
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x18001ad5
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, 1
push esi
cmp byte [edi + 0x86], al
jne 0x18001b10
lea esi, [ebp - 4]
call fcn.1800124a
push dword [eax]
push str.LOG_SYSTEM:___s_:_ERROR___Calling_the_logging_system_after_it_has_been_shut_down__n
call fcn.180098b0
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
xor al, al
jmp 0x18001b33
cmp byte [edi + 0x58], al
je 0x18001b33
lea esi, [edi + 0x60]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
mov ecx, edi
call fcn.180019dd
mov bl, al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov al, bl
pop ebx
pop esi
leave
ret
Function at 0x18001e51
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x18], 0
push ebx
push esi
push edi
je 0x18001f27
cmp dword [ebp + 0xc], 0
jne 0x18001e74
cmp dword [ebp + 0x14], 2
jg 0x18001f27
mov eax, dword [0x180b4188]
mov esi, 0x180b4188
mov ecx, esi
call dword [eax + 0xc]
mov edi, eax
mov eax, dword [0x180b4188]
add edi, 0x10
mov ecx, esi
mov dword [ebp - 8], edi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
mov ebx, eax
add ebx, 0x10
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], 1
add esi, 0x60
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xc]
test al, al
jne 0x18001eca
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jle 0x18001eaa
jmp 0x18001ef4
push dword [ebp + 0x1c]
lea ecx, [ebp - 0xc]
push dword [ebp + 0x18]
lea edx, [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.18001d83
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 4], 0x14
jle 0x18001f17
push str.LOG_SYSTEM:_Couldnt_acquire_lock__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
push 0x1809bf28
call esi
lea eax, [ebx - 0x10]
call fcn.18003e0a
lea eax, [edi - 0x10]
call fcn.18003e0a
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x18002279
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
or dword [ebx + 4], 0xffffffff
push esi
push edi
mov edi, 0x180b4188
lea esi, [ebx + 0xc]
mov ecx, edi
mov dword [ebx], fcn.1800240e
mov byte [ebx + 8], 0
mov byte [ebx + 9], 0
mov byte [ebx + 0xa], al
mov byte [ebx + 0xb], 1
call fcn.18003984
push dword [ebp + 8]
and dword [ebx + 0x10], 0
lea eax, [ebx + 0x14]
call fcn.18003b7f
and dword [ebx + 0x18], 0
lea esi, [ebx + 0x1c]
mov ecx, edi
call fcn.18003984
movzx esi, byte [0x180b5819]
neg esi
sbb esi, esi
and esi, 0x180b5ac0
je 0x1800233a
lea edi, [ebp + 8]
mov eax, esi
call fcn.180021a3
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x1800231c
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push 0xffffffffffffffff
push str.MaxLogFileSize
push str.LoggingSettings
call edi
push dword [ebp + 8]
mov dword [ebx + 4], eax
push 1
push str.LogFileWide
push str.LoggingSettings
call edi
test eax, eax
setne al
mov byte [ebx + 0xb], al
jmp 0x18002324
or dword [ebx + 4], 0xffffffff
mov byte [ebx + 0xb], 1
lea eax, [esi + 0x5c]
lea edi, [ebx + 0x1c]
call fcn.180038eb
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.18003e0a
pop edi
mov eax, ebx
pop esi
pop ebp
ret 4
Function at 0x1800238b
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 8], 0
jne 0x1800240c
push esi
mov byte [esi + 8], 1
call fcn.18002438
cmp dword [esi + 0x10], 0
je 0x1800240c
test al, al
je 0x180023ac
mov byte [esi + 0xa], 1
call fcn.18002980
test al, al
jne 0x180023d1
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180098b0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
call fcn.1800250e
cmp dword [esi + 0x18], 0
jne 0x180023fa
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.180098b0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
mov byte [esi + 9], 1
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1800240c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x1800250e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [esi + 0x14]
xor ebx, ebx
mov dword [ebp - 8], ebx
call fcn.1800b84f
mov eax, dword [ebp - 8]
pop ecx
pop ecx
cmp eax, dword [esi + 4]
jbe 0x1800253b
mov eax, esi
call fcn.1800263f
mov eax, dword [esi + 0x14]
xor ecx, ecx
cmp byte [esi + 0xa], bl
push ebx
setne cl
push 0x80
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
jne 0x1800256f
mov dword [esi + 0x18], ebx
xor al, al
jmp 0x180025e5
lea eax, [ebp - 0x28]
call fcn.180036d6
push ebx
push 0xc0010000
lea eax, [ebp - 0x88]
call fcn.18002fe5
lea edi, [ebp - 0x28]
call fcn.1800311b
lea ecx, [ebp - 0x88]
mov byte [ebp - 1], al
call fcn.18003638
cmp byte [ebp - 1], bl
je 0x180025b1
push 1
push dword [esi + 0x14]
mov ecx, edi
call fcn.18002e6b
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180025db
cmp byte [esi + 0xb], bl
je 0x180025db
push ebx
lea eax, [ebp - 8]
push eax
push 2
push 0x1809b76c
push dword [esi + 0x18]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x28]
call fcn.18003199
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x180025e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x14]
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x18002617
xor al, al
jmp 0x1800263b
cmp byte [esi + 0xb], bl
je 0x18002632
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0x1809b76c
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x1800263f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.LOG_SYSTEM:_trying_to_move_log_file_to_backup_n
mov ebx, eax
call edi
lea esi, [ebx + 0x14]
push str..bak
mov eax, esi
lea ecx, [ebp - 4]
call fcn.18002a0a
mov eax, dword [esi]
push dword [ebp - 4]
push eax
call fcn.1800b308
add esp, 0xc
test eax, eax
jge 0x180026aa
push str.LOG_SYSTEM:_failed_to_move_log_file_to_backup_n
call edi
push ebx
call fcn.180026ae
test al, al
jne 0x18002696
push dword [ebp - 4]
push dword [esi]
call fcn.1800b42d
pop ecx
pop ecx
xor bl, bl
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e0a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
mov bl, 1
jmp 0x18002698

Function at 0x180026ae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x18
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
movsw word es:[edi], word [esi]
xor esi, esi
push esi
lea eax, [ebp - 0x68]
push eax
push 0x80000002
mov dword [ebp - 0x74], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x180026fe
xor al, al
jmp 0x180027e0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 7
pop edi
lea eax, [ebp - 0x6c]
push eax
push esi
lea eax, [ebp - 0x78]
push eax
push esi
push str.PendingFileRenameOperations
push dword [ebp - 0x74]
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x78], edi
call ebx
test eax, eax
jne 0x180027dd
cmp dword [ebp - 0x78], edi
jne 0x180027dd
push dword [ebp - 0x6c]
call fcn.18076cd3
push dword [ebp - 0x6c]
mov edi, eax
push esi
push edi
call fcn.180769e0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push edi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 0x74]
call ebx
test eax, eax
jne 0x180027d6
mov ebx, dword [ebp - 0x6c]
shr ebx, 1
lea eax, [ebx - 2]
cmp eax, 0xffffd
ja 0x180027d6
cmp word [edi + ebx*2 - 4], si
jne 0x180027d6
cmp word [edi + ebx*2 - 2], si
jne 0x180027d6
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
push str.___
add eax, 0x14
push ecx
call fcn.18002a4a
pop ecx
pop ecx
cmp ebx, esi
jbe 0x180027b9
push dword [ebp - 0x70]
lea eax, [edi + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180027bc
lea eax, [edi + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax + 1]
cmp esi, ebx
jb 0x18002796
or esi, 0xffffffff
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.18003e0a
push edi
call fcn.18075e84
cmp esi, 0xffffffff
pop ecx
setne al
jmp 0x180027df
push edi
call fcn.18075e84
pop ecx
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.18075e75
leave
ret 4
Function at 0x18002980
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x1800298a
xor al, al
ret
push 0x1f4
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180029c1
cmp eax, 0x80
je 0x180029c1
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180098b0
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x18002987
mov al, 1
ret

Function at 0x18003a02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x18003a19
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x18003a4e
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x18003a4a
cmp edi, eax
jae 0x18003a4e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x18003a3c
cmp edi, eax
jb 0x18003a52
xor eax, eax
jmp 0x18003a5b
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x1800454c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x180b4188]
push ebx
push esi
push edi
mov ecx, 0x180b4188
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18003ce3
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
mov ebx, eax
neg ebx
sbb bl, bl
or eax, 0xffffffff
inc bl
call fcn.18003baa
test bl, bl
je 0x180045a9
mov edi, dword [ebp - 4]
mov esi, 0x80004005
lea eax, [edi - 0x10]
call fcn.18003e0a
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
call fcn.18005510
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
jg 0x180045bf
or ebx, 0xffffffff
jmp 0x180045d3
push 0x5c
pop edx
mov eax, edi
call fcn.18006703
test eax, eax
je 0x180045ba
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x180045dd
mov ecx, dword [edi - 0xc]
jmp 0x180045df
mov ecx, ebx
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.18005745
mov esi, dword [ebp - 8]
push esi
call fcn.1800ad60
pop ecx
test al, al
jne 0x18004617
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18004617
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x18004617
cmp eax, 0xb7
jne 0x18004636
cmp ebx, 0xffffffff
je 0x18004655
push 0x5c
lea eax, [ebx + 1]
pop edx
lea ecx, [ebp - 4]
call fcn.1800567c
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18003e0a
jmp 0x180045d3
test eax, eax
jle 0x18004644
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18003e0a
mov esi, ebx
jmp 0x1800459a
lea eax, [esi - 0x10]
call fcn.18003e0a
xor esi, esi
jmp 0x1800459a
Function at 0x18004664
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x18004682
mov eax, 0x80070057
jmp 0x180046c9
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.180769e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x180046c9
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.18003de7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.18075e75
leave
ret

Function at 0x180046d5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x264], 0
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x258]
push 0
push eax
mov esi, ecx
call fcn.180769e0
add esp, 0xc
push esi
lea eax, [ebp - 0x25c]
call fcn.18003b7f
push 0x5c
lea eax, [ebp - 0x25c]
call fcn.18002bd7
push 0x1809c3b4
lea eax, [ebp - 0x25c]
push eax
call fcn.18002bb4
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18004783
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1800477a
xor esi, esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.18003e0a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.18075e75
leave
ret
call fcn.1800d4b3
mov esi, eax
jmp 0x1800475b
test byte [ebp - 0x258], 0x10
jne 0x180047de
push esi
lea eax, [ebp - 0x260]
call fcn.18003b7f
push 0x5c
lea eax, [ebp - 0x260]
call fcn.18002bd7
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.18002bb4
mov edi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180047d6
mov eax, edi
call fcn.1800b324
mov dword [ebp - 0x264], eax
lea eax, [edi - 0x10]
call fcn.18003e0a
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18004783
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18004806
call fcn.1800d4b3
mov dword [ebp - 0x264], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x264]
jmp 0x1800475b
Function at 0x18004818
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, 0x26c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.180049e9
test al, al
jne 0x1800484c
mov eax, 0x80004005
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.18075e75
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800486e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18004867
xor eax, eax
jmp 0x1800483e
call fcn.1800d4b3
jmp 0x1800483e
test al, 0x10
je 0x18004839
mov ecx, esi
call fcn.180046d5
and dword [ebp - 0x25c], 0
push 0x24c
mov edi, eax
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.180769e0
add esp, 0xc
push esi
lea eax, [ebp - 0x264]
call fcn.18003b7f
push 0x1809c3b8
lea eax, [ebp - 0x264]
push eax
call fcn.18002bb4
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x18004900
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x180048f3
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e0a
mov eax, edi
jmp 0x1800483e
call fcn.1800d4b3
test edi, edi
jl 0x180048de
mov edi, eax
jmp 0x180048de
test byte [ebp - 0x25c], 0x10
je 0x18004997
push 0
push 2
push 0x1809c398
lea eax, [ebp - 0x230]
call fcn.18008271
add esp, 0xc
test eax, eax
je 0x18004997
push 0
push 3
push 0x1809c3c0
lea eax, [ebp - 0x230]
call fcn.18008271
add esp, 0xc
test eax, eax
je 0x18004997
push esi
lea eax, [ebp - 0x260]
call fcn.18003b7f
push 0x1809bf78
lea eax, [ebp - 0x260]
push eax
call fcn.18002bb4
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.18002bb4
push dword [ebp - 0x260]
call fcn.18004818
pop ecx
test edi, edi
jl 0x18004989
test eax, eax
jge 0x18004989
mov edi, eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e0a
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18004900
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180048de
mov eax, esi
call fcn.1800b324
test edi, edi
jl 0x180048de
test eax, eax
jge 0x180048de
jmp 0x180048fc
Function at 0x18004fcb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
mov esi, eax
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 8], ebx
jne 0x18005026
call fcn.1800e31d
test al, al
je 0x18005026
call fcn.18003ee5
mov edi, eax
cmp edi, ebx
je 0x18005097
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], edi
mov dword [esi + 8], edi
cmp eax, ebx
je 0x18005026
push str.runas
push eax
call fcn.18076ee5
pop ecx
pop ecx
test eax, eax
jne 0x18005026
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne byte [esp + 0xf]
cmp byte [esp + 0xf], bl
je 0x180050f6
mov esi, dword [esi + 0x38]
cmp esi, ebx
je 0x180050b6
push esi
call fcn.1800f0fa
mov ebx, eax
movzx eax, byte [0x180b5819]
neg eax
sbb eax, eax
and eax, 0x180b5ac0
pop ecx
je 0x1800508e
xor edi, edi
inc edi
push edi
push 8
pop esi
push esi
mov dword [esp + 0x20], eax
call fcn.18001ccc
mov dword [esp + 0x1c], eax
push ebx
push str._Started_process___u_
lea eax, [esp + 0x20]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
call fcn.18001000
pop ecx
pop ecx
push ebx
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x18005100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
xor bl, bl
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [0x180b5819]
neg eax
sbb eax, eax
and eax, 0x180b5ac0
je 0x18005100
xor edi, edi
inc edi
push edi
push 8
pop esi
push esi
mov dword [esp + 0x20], eax
call fcn.18001ccc
mov dword [esp + 0x1c], eax
push str._Started_process__PID_unknown_
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
call fcn.18001000
pop ecx
jmp 0x18005100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], 0
je 0x18005111
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov bl, byte [esp + 0xf]
jmp 0x180050a3