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

Disassembly:
push esi
mov esi, eax
cmp byte [esi + 8], 0
jne 0x18002407
push esi
mov byte [esi + 8], 1
call fcn.18002433
cmp dword [esi + 0x10], 0
je 0x18002407
test al, al
je 0x180023a7
mov byte [esi + 0xa], 1
call fcn.1800297b
test al, al
jne 0x180023cc
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.180098e8
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
ret
call fcn.18002509
cmp dword [esi + 0x18], 0
jne 0x180023f5
push dword [esi + 0x14]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_create_logging_file__s_n
call fcn.180098e8
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 0x18002407
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x18002509
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.1800b7e3
mov eax, dword [ebp - 8]
pop ecx
pop ecx
cmp eax, dword [esi + 4]
jbe 0x18002536
mov eax, esi
call fcn.1800263a
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 0x1800256a
mov dword [esi + 0x18], ebx
xor al, al
jmp 0x180025e0
lea eax, [ebp - 0x28]
call fcn.180036ea
push ebx
push 0xc0010000
lea eax, [ebp - 0x88]
call fcn.18002ff6
lea edi, [ebp - 0x28]
call fcn.1800312c
lea ecx, [ebp - 0x88]
mov byte [ebp - 1], al
call fcn.1800364c
cmp byte [ebp - 1], bl
je 0x180025ac
push 1
push dword [esi + 0x14]
mov ecx, edi
call fcn.18002e7c
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x180025d6
cmp byte [esi + 0xb], bl
je 0x180025d6
push ebx
lea eax, [ebp - 8]
push eax
push 2
push 0x1809b794
push dword [esi + 0x18]
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x28]
call fcn.180031aa
mov al, 1
pop edi
pop ebx
leave
ret

Function at 0x180025e4
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 0x18002612
xor al, al
jmp 0x18002636
cmp byte [esi + 0xb], bl
je 0x1800262d
push ebx
lea eax, [ebp - 4]
push eax
push 2
push 0x1809b794
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 0x1800263a
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.18002a05
mov eax, dword [esi]
push dword [ebp - 4]
push eax
call fcn.1800b29c
add esp, 0xc
test eax, eax
jge 0x180026a5
push str.LOG_SYSTEM:_failed_to_move_log_file_to_backup_n
call edi
push ebx
call fcn.180026a9
test al, al
jne 0x18002691
push dword [ebp - 4]
push dword [esi]
call fcn.1800b3c1
pop ecx
pop ecx
xor bl, bl
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
mov bl, 1
jmp 0x18002693

Function at 0x180026a9
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 0x180026f9
xor al, al
jmp 0x180027db
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 0x180027d8
cmp dword [ebp - 0x78], edi
jne 0x180027d8
push dword [ebp - 0x6c]
call fcn.18077023
push dword [ebp - 0x6c]
mov edi, eax
push esi
push edi
call fcn.18076d30
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 0x180027d1
mov ebx, dword [ebp - 0x6c]
shr ebx, 1
lea eax, [ebx - 2]
cmp eax, 0xffffd
ja 0x180027d1
cmp word [edi + ebx*2 - 4], si
jne 0x180027d1
cmp word [edi + ebx*2 - 2], si
jne 0x180027d1
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
push str.___
add eax, 0x14
push ecx
call fcn.18002a45
pop ecx
pop ecx
cmp ebx, esi
jbe 0x180027b4
push dword [ebp - 0x70]
lea eax, [edi + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180027b7
lea eax, [edi + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax + 1]
cmp esi, ebx
jb 0x18002791
or esi, 0xffffffff
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.18003e1e
push edi
call fcn.180761d4
cmp esi, 0xffffffff
pop ecx
setne al
jmp 0x180027da
push edi
call fcn.180761d4
pop ecx
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret 4
Function at 0x1800297b
Capabilities:
Print debug messages

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

Function at 0x18003a16
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 0x18003a2d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x18003a62
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x18003a5e
cmp edi, eax
jae 0x18003a62
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x18003a50
cmp edi, eax
jb 0x18003a66
xor eax, eax
jmp 0x18003a6f
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x18004560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x180b41a8]
push ebx
push esi
push edi
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18003cf7
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.18003bbe
test bl, bl
je 0x180045bd
mov edi, dword [ebp - 4]
mov esi, 0x80004005
lea eax, [edi - 0x10]
call fcn.18003e1e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
call fcn.18005524
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
jg 0x180045d3
or ebx, 0xffffffff
jmp 0x180045e7
push 0x5c
pop edx
mov eax, edi
call fcn.1800676a
test eax, eax
je 0x180045ce
sub eax, edi
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x180045f1
mov ecx, dword [edi - 0xc]
jmp 0x180045f3
mov ecx, ebx
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.18005759
mov esi, dword [ebp - 8]
push esi
call fcn.1800acf4
pop ecx
test al, al
jne 0x1800462b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800462b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x1800462b
cmp eax, 0xb7
jne 0x1800464a
cmp ebx, 0xffffffff
je 0x18004669
push 0x5c
lea eax, [ebx + 1]
pop edx
lea ecx, [ebp - 4]
call fcn.18005690
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18003e1e
jmp 0x180045e7
test eax, eax
jle 0x18004658
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18003e1e
mov esi, ebx
jmp 0x180045ae
lea eax, [esi - 0x10]
call fcn.18003e1e
xor esi, esi
jmp 0x180045ae
Function at 0x18004678
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 0x18004696
mov eax, 0x80070057
jmp 0x180046dd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.18076d30
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 0x180046dd
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.18003dfb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.180761c5
leave
ret

Function at 0x180046e9
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.18076d30
add esp, 0xc
push esi
lea eax, [ebp - 0x25c]
call fcn.18003b93
push 0x5c
lea eax, [ebp - 0x25c]
call fcn.18002be8
push 0x1809c3dc
lea eax, [ebp - 0x25c]
push eax
call fcn.18002bc5
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x18004797
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1800478e
xor esi, esi
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.18003e1e
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
call fcn.1800d3ff
mov esi, eax
jmp 0x1800476f
test byte [ebp - 0x258], 0x10
jne 0x180047f2
push esi
lea eax, [ebp - 0x260]
call fcn.18003b93
push 0x5c
lea eax, [ebp - 0x260]
call fcn.18002be8
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.18002bc5
mov edi, dword [ebp - 0x260]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180047ea
mov eax, edi
call fcn.1800b2b8
mov dword [ebp - 0x264], eax
lea eax, [edi - 0x10]
call fcn.18003e1e
lea eax, [ebp - 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18004797
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800481a
call fcn.1800d3ff
mov dword [ebp - 0x264], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x264]
jmp 0x1800476f
Function at 0x1800482c
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.180049fd
test al, al
jne 0x18004860
mov eax, 0x80004005
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18004882
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800487b
xor eax, eax
jmp 0x18004852
call fcn.1800d3ff
jmp 0x18004852
test al, 0x10
je 0x1800484d
mov ecx, esi
call fcn.180046e9
and dword [ebp - 0x25c], 0
push 0x24c
mov edi, eax
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.18076d30
add esp, 0xc
push esi
lea eax, [ebp - 0x264]
call fcn.18003b93
push 0x1809c3e0
lea eax, [ebp - 0x264]
push eax
call fcn.18002bc5
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 0x18004914
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x18004907
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, edi
jmp 0x18004852
call fcn.1800d3ff
test edi, edi
jl 0x180048f2
mov edi, eax
jmp 0x180048f2
test byte [ebp - 0x25c], 0x10
je 0x180049ab
push 0
push 2
push 0x1809c3c0
lea eax, [ebp - 0x230]
call fcn.180082d8
add esp, 0xc
test eax, eax
je 0x180049ab
push 0
push 3
push 0x1809c3e8
lea eax, [ebp - 0x230]
call fcn.180082d8
add esp, 0xc
test eax, eax
je 0x180049ab
push esi
lea eax, [ebp - 0x260]
call fcn.18003b93
push 0x1809bfb0
lea eax, [ebp - 0x260]
push eax
call fcn.18002bc5
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.18002bc5
push dword [ebp - 0x260]
call fcn.1800482c
pop ecx
test edi, edi
jl 0x1800499d
test eax, eax
jge 0x1800499d
mov edi, eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18004914
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x180048f2
mov eax, esi
call fcn.1800b2b8
test edi, edi
jl 0x180048f2
test eax, eax
jge 0x180048f2
jmp 0x18004910
Function at 0x18004fdf
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 0x1800503a
call fcn.1800e269
test al, al
je 0x1800503a
call fcn.18003ef9
mov edi, eax
cmp edi, ebx
je 0x180050ab
mov eax, dword [esi + 0xc]
mov dword [esp + 0x14], edi
mov dword [esi + 8], edi
cmp eax, ebx
je 0x1800503a
push str.runas
push eax
call fcn.18077235
pop ecx
pop ecx
test eax, eax
jne 0x1800503a
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 0x1800510a
mov esi, dword [esi + 0x38]
cmp esi, ebx
je 0x180050ca
push esi
call fcn.1800f042
mov ebx, eax
movzx eax, byte [0x180b5839]
neg eax
sbb eax, eax
and eax, 0x180b5ae0
pop ecx
je 0x180050a2
xor edi, edi
inc edi
push edi
push 8
pop esi
push esi
mov dword [esp + 0x20], eax
call fcn.18001cc0
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 0x18005114
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 [0x180b5839]
neg eax
sbb eax, eax
and eax, 0x180b5ae0
je 0x18005114
xor edi, edi
inc edi
push edi
push 8
pop esi
push esi
mov dword [esp + 0x20], eax
call fcn.18001cc0
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 0x18005114
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x14], 0
je 0x18005125
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov bl, byte [esp + 0xf]
jmp 0x180050b7
Function at 0x1800512b
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push str.ADVAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
neg eax
sbb eax, eax
and eax, dword [fcn.18019f46]
xor ebx, ebx
cmp eax, ebx
je 0x18005182
push str.SystemFunction036
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1800516f
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
mov byte [ebp - 1], 1
test al, al
jne 0x18005172
mov byte [ebp - 1], bl
cmp esi, ebx
je 0x1800517d
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 1]
jmp 0x180051d5
push 0xf0000040
push 1
push ebx
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180051be
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x180051be
cmp esi, ebx
je 0x180051ba
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x180051d5
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, ebx
je 0x180051d3
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x180051d9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.18003b93
lea eax, [ebp - 4]
call fcn.180056b3
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x18005209
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, 0x80070057
leave
ret
and dword [ebp - 8], 0
push esi
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], 0
mov esi, eax
je 0x1800524d
test esi, esi
je 0x1800524d
push dword [esi]
push dword [ebp + 0xc]
call fcn.18003dfb
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 0xc]
call fcn.180056b3
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
xor eax, eax
jmp 0x18005261
call fcn.1800d3ff
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, esi
pop esi
leave
ret

Function at 0x18005264
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
cmp esi, edi
jne 0x1800529f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800528f
xor eax, eax
pop edi
pop esi
ret
cmp eax, edi
jle 0x1800528c
and eax, 0xffff
or eax, 0x80070000
jmp 0x1800528c
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x180052e2
cmp eax, 0x80
je 0x180052e2
cmp eax, 0x102
je 0x180052d2
cmp eax, 0xffffffff
je 0x180052c9
mov edi, 0x80004005
jmp 0x180052d7
call fcn.1800d3ff
mov edi, eax
jmp 0x180052d7
mov edi, 0x800705b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1800528c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x180052d7
Function at 0x18006a34
Capabilities:
Compare security identifiers

Disassembly:
push esi
lea esi, [eax + 4]
push edi
test esi, esi
je 0x18006a68
lea edi, [ebx + 4]
test edi, edi
je 0x18006a68
call fcn.18003013
test al, al
je 0x18006a68
mov eax, ebx
call fcn.18003013
test al, al
je 0x18006a68
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x18006a6a
xor al, al
pop edi
pop esi
ret

Function at 0x180099c7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x800
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.18076d30
mov esi, dword [0x180b5bc0]
push 0
lea eax, [ebp - 0x80c]
call fcn.18007599
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
mov esi, dword [ebp - 0x80c]
push esi
push dword [ebp + 8]
push str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
lea eax, [esi - 0x10]
call fcn.18003e1e
lea eax, [ebp - 0x808]
push eax
call fcn.1800fca8
mov dword [esp], 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
pop esi
je 0x18009a7b
dec eax
jne 0x18009a6c
int3
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.180761c5
leave
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1800a4d3
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, edi
mov esi, ecx
mov ebx, edx
call fcn.1805765b
push dword [esi]
call fcn.1800acf4
pop ecx
test al, al
jne 0x1800a512
mov eax, 0x80070003
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
push ebx
mov eax, esi
lea ebx, [ebp - 0x260]
call fcn.1800a5bc
and dword [ebp - 0x258], 0
mov dword [esp], 0x24c
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800a572
call fcn.1800d3ff
mov esi, eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, esi
jmp 0x1800a504
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x25c]
call fcn.18003b93
lea eax, [ebp - 0x25c]
push eax
push edi
call fcn.180058e7
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800a572
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
jmp 0x1800a560
Function at 0x1800ad59
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x26c], eax
call fcn.1805765b
push esi
lea edi, [ebp - 0x260]
call fcn.18007f0d
mov dword [esp], 0x250
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.18076d30
add esp, 0xc
push ebx
mov eax, edi
lea ecx, [ebp - 0x268]
call fcn.18002a05
mov eax, dword [eax]
pop ecx
lea ecx, [ebp - 0x25c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
call fcn.18003e1e
cmp esi, 0xffffffff
jne 0x1800adfb
call fcn.1800d3ff
mov esi, eax
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
call fcn.18003e1e
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret
cmp dword [ebp - 0x25c], 0x80
je 0x1800ae10
test byte [ebp - 0x25c], 0x10
jne 0x1800ae49
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
lea ecx, [ebp - 0x264]
call fcn.18002a05
pop ecx
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
call fcn.180058e7
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800adfb
call fcn.1800d3ff
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0x80070012
je 0x1800ae78
mov esi, edi
jmp 0x1800addd
xor esi, esi
jmp 0x1800addd