joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800cb1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
test esi, esi
jne 0x1800cb45
mov eax, 0x80070057
jmp 0x1800cbf4
push edi
mov ecx, esi
call fcn.18007546
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.18137120
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 0x1800cbd5
movzx ecx, bl
cmp ecx, 0x26
jne 0x1800cb8a
mov edx, str.ProgramFiles
jmp 0x1800cba0
cmp ecx, 0x1c
jne 0x1800cb96
mov edx, str.LocalAppData
jmp 0x1800cba0
cmp ecx, 0x23
jne 0x1800cbc1
mov edx, str.ProgramData
lea ecx, [ebp - 0x210]
call fcn.1800daf2
push eax
mov ecx, esi
call fcn.18009e8a
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x1800cbce
xor eax, eax
inc eax
jmp 0x1800cbf3
lfence
mov eax, edi
jmp 0x1800cbf3
lea eax, [ebp - 0x20c]
push eax
call fcn.1813b170
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.180075ed
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.18122478
leave
ret

Function at 0x1800cc02
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0x260]
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x264], edi
call fcn.18137120
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
add esp, 0xc
push edi
call fcn.180074fa
push 0x181a55f4
lea ecx, [ebp - 0xc]
call fcn.1800f7f4
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cc73
call fcn.1801bab5
mov edi, eax
jmp 0x1800cd15
xor ebx, ebx
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
push edi
call fcn.180074fa
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 8]
call fcn.1800f7f4
lea eax, [ebp - 0x234]
push 0x181a55fc
push eax
call fcn.1813eaf2
pop ecx
pop ecx
test eax, eax
je 0x1800ccda
lea eax, [ebp - 0x234]
push 0x181a5588
push eax
call fcn.1813eaf2
pop ecx
pop ecx
test eax, eax
je 0x1800ccda
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.1800d0cf
test eax, eax
jns 0x1800cccf
mov ebx, eax
lea ecx, [edi - 0x10]
mov edi, dword [ebp - 0x264]
jmp 0x1800cce0
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f72
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cc75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x1800cd1c
test edi, edi
jle 0x1800cd15
movzx edi, di
or edi, 0x80070000
cmp esi, 0xffffffff
je 0x1800cd25
jmp 0x1800cd1e
mov edi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122478
leave
ret
Function at 0x1800cd41
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x260]
push 0x250
mov edi, ecx
mov dword [ebp - 0x264], ebx
push ebx
push eax
mov dword [ebp - 0x268], edi
call fcn.18137120
add esp, 0xc
mov dword [ebp - 8], ebx
lea ecx, [ebp - 8]
push edi
call fcn.180074fa
push 0x5c
lea ecx, [ebp - 8]
call fcn.18009f27
mov esi, 0x181a5604
push esi
call fcn.1813b170
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009f54
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1800cdda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ce73
call fcn.1801bab5
mov ebx, eax
jmp 0x1800ce73
test byte [ebp - 0x260], 0x10
jne 0x1800ce3e
push dword [ebp - 0x268]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.180074fa
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.18009f27
lea eax, [ebp - 0x234]
push eax
call fcn.1813b170
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009f54
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800ce36
mov ecx, esi
call fcn.18010a82
mov dword [ebp - 0x264], eax
lea ecx, [esi - 0x10]
call fcn.18006f72
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cdda
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800ce64
call fcn.1801bab5
mov esi, eax
jmp 0x1800ce6a
mov esi, dword [ebp - 0x264]
push edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122478
leave
ret
Function at 0x1800ce8f
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x264], edi
test edi, edi
je 0x1800d0bb
movzx eax, word [edi]
test ax, ax
je 0x1800d0bb
push 0x2e
xor cl, cl
mov dword [ebp - 8], 0x3a
mov esi, edi
mov edx, eax
pop ebx
mov al, cl
cmp dx, 0x5c
je 0x1800cefe
cmp dx, 0x2f
je 0x1800cefe
cmp dx, word [ebp - 8]
je 0x1800cefe
cmp dx, bx
je 0x1800ceee
mov cl, 1
jmp 0x1800cefe
mov cl, al
cmp esi, edi
jbe 0x1800cefe
cmp word [esi - 2], bx
je 0x1800d0bb
push 0x3a
pop eax
cmp dx, ax
sete al
add esi, 2
dec al
and cl, al
movzx eax, word [esi]
mov edx, eax
test ax, ax
jne 0x1800ced1
test cl, cl
je 0x1800d0bb
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1800cf48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1800cf3e
xor eax, eax
jmp 0x1800d0c0
call fcn.1801bab5
jmp 0x1800d0c0
and eax, 0x410
cmp eax, 0x10
jne 0x1800d0bb
mov ecx, edi
call fcn.1800cd41
push 0x250
mov ebx, eax
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.18137120
and dword [ebp - 8], 0
lea ecx, [ebp - 8]
add esp, 0xc
push edi
call fcn.180074fa
mov esi, 0x181a5608
push esi
call fcn.1813b170
pop ecx
push eax
push esi
lea ecx, [ebp - 8]
call fcn.18009f54
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1800cfd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800d0ac
call fcn.1801bab5
test ebx, ebx
jns 0x1800d0aa
jmp 0x1800d0ac
test byte [ebp - 0x260], 0x10
je 0x1800d073
push 0
push 2
mov edx, 0x181a5588
lea ecx, [ebp - 0x234]
call fcn.1801333a
pop ecx
pop ecx
test eax, eax
je 0x1800d073
push 0
push 3
mov edx, 0x181a55fc
lea ecx, [ebp - 0x234]
call fcn.1801333a
pop ecx
pop ecx
test eax, eax
je 0x1800d073
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push edi
call fcn.180074fa
mov edi, 0x181a48f0
push edi
call fcn.1813b170
pop ecx
push eax
push edi
lea ecx, [ebp - 0xc]
call fcn.18009f54
lea eax, [ebp - 0x234]
push eax
call fcn.1813b170
pop ecx
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.18009f54
mov edi, dword [ebp - 0xc]
mov ecx, edi
call fcn.1800ce8f
test ebx, ebx
js 0x1800d065
test eax, eax
jns 0x1800d065
mov ebx, eax
lea ecx, [edi - 0x10]
call fcn.18006f72
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800cfd0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800d0ac
mov ecx, edi
call fcn.18010a82
test ebx, ebx
js 0x1800d0ac
test eax, eax
jns 0x1800d0ac
mov ebx, eax
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, ebx
jmp 0x1800d0c0
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122478
leave
ret
Function at 0x1800d5a1
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov esi, ebx
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.18137120
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x1800d74a
cmp eax, 0xea
je 0x1800d740
test eax, eax
jne 0x1800d74a
lea eax, [ebp - 0x620]
mov dword [ebp - 0x620], ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x1800d72c
mov eax, 0x104
mov dword [ebp - 0x628], 9
push 0x208
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.18137120
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.18137120
add esp, 0x18
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x61c]
push eax
push dword [ebp - 0x620]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x1800d6aa
call fcn.1801bab5
jmp 0x1800d72c
cmp dword [ebp - 0x628], 1
jne 0x1800d72c
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x624], ebx
push eax
lea ecx, [ebp - 0x638]
call fcn.180074fa
push str.HKU_
lea ecx, [ebp - 0x634]
call fcn.180074fa
lea eax, [ebp - 0x638]
push eax
lea edx, [ebp - 0x634]
lea ecx, [ebp - 0x624]
call fcn.1800d45c
pop ecx
mov ecx, dword [ebp - 0x634]
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 0x638]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea eax, [ebp - 0x624]
mov ecx, edi
push eax
call fcn.18009bd4
mov ecx, dword [ebp - 0x624]
lea ecx, [ecx - 0x10]
call fcn.18006f72
cmp dword [ebp - 0x620], ebx
je 0x1800d740
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_LocalFree]
inc esi
cmp esi, 0xa
jl 0x1800d5bd
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122478
leave
ret
Function at 0x1800d850
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x181d700c]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1800bf65
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov esi, ebx
cmp dword [edi + 8], ebx
jne 0x1800d8c5
call fcn.18015cbc
test al, al
je 0x1800d8c5
call fcn.1800be4a
mov esi, eax
test esi, esi
je 0x1800d935
mov dword [edi + 8], esi
cmp dword [edi + 0xc], ebx
je 0x1800d8c5
push str.runas
push dword [edi + 0xc]
call fcn.1813ec98
pop ecx
pop ecx
test eax, eax
jne 0x1800d8c5
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 0x1800d987
mov ecx, dword [edi + 0x38]
test ecx, ecx
je 0x1800d944
call fcn.1801843e
movzx ecx, byte [0x181dd05a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181dcf50
je 0x1800d92c
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.18008b5d
push edi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push str._Started_process___u_
push eax
call fcn.18007230
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x1800d98f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1800d9a5
movzx ecx, byte [0x181dd05a]
neg ecx
sbb ecx, ecx
and ecx, 0x181dcf50
je 0x1800d98f
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.18008b5d
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push str._Started_process__PID_unknown_
push eax
call fcn.18007230
pop ecx
pop ecx
jmp 0x1800d98f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x1800d99a
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 + 0x24]
call fcn.1800bfbf
mov ecx, dword [esp + 0x34]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18122478
mov esp, ebp
pop ebp
ret
Function at 0x1800d9c2
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
xor esi, esi
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.180074fa
push ecx
lea ecx, [ebp - 8]
call fcn.1800f9e6
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], esi
jne 0x1800d9fc
mov esi, 0x80070057
jmp 0x1800da50
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
cmp dword [ebp - 0xc], esi
je 0x1800da45
test edi, edi
je 0x1800da45
push ebx
mov ebx, dword [edi]
test ebx, ebx
jne 0x1800da21
mov eax, esi
jmp 0x1800da28
push ebx
call fcn.1813b170
pop ecx
mov ecx, dword [ebp - 0x10]
push eax
push ebx
call fcn.180075ed
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.1800f9e6
pop ebx
jmp 0x1800da4c
call fcn.1801bab5
mov esi, eax
mov eax, dword [ebp - 8]
pop edi
lea ecx, [eax - 0x10]
call fcn.18006f72
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.18122478
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.Global_MSIExecute
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov esi, eax
test esi, esi
jne 0x1800daa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1800dae1
test eax, eax
jle 0x1800dacf
movzx edi, ax
or edi, 0x80070000
jmp 0x1800dae1
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1800dada
cmp eax, 0x80
je 0x1800dada
cmp eax, 0x102
je 0x1800dad3
cmp eax, 0xffffffff
je 0x1800daca
mov edi, 0x80004005
jmp 0x1800dae5
call fcn.1801bab5
mov edi, eax
jmp 0x1800dae1
mov edi, 0x800705b4
jmp 0x1800dae1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
je 0x1800daec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1800ee9a
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 0x1800eec3
push dword [ebp + 8]
lfence
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x1800ef5d
push ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], bl
mov ecx, ebx
lfence
lea eax, [ecx + 0x40]
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x1800eee6
push 0x40
pop edi
jmp 0x1800eeea
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 0x1800ef57
cmp ecx, 0xffffffff
je 0x1800ef57
cmp ecx, 0x80
jb 0x1800ef21
lea eax, [edi + 0x80]
cmp ecx, eax
jae 0x1800ef21
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0xffffffff
je 0x1800ef3a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp ebx, dword [ebp + 8]
jbe 0x1800ef3a
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 8], 0x100
cmp ecx, esi
jb 0x1800eed7
movzx eax, byte [ebp - 1]
neg eax
sbb eax, eax
and eax, 0x80
jmp 0x1800ef5c
lfence
mov eax, ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x180106f4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x1801070a
xor eax, eax
jmp 0x18010711
push esi
call fcn.1813b170
pop ecx
push eax
push esi
lea ecx, [edi + 4]
call fcn.180075ed
mov bl, byte [ebp + 0xc]
push 0
push 0x10000000
movzx eax, bl
mov dword [ebp - 4], eax
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 esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x180107b6
call fcn.1801bab5
movzx ecx, byte [0x181dd05a]
mov edi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181dcf50
je 0x180107b2
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008b5d
mov edx, esi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
call fcn.1800724f
push edi
push 0
push dword [ebp - 4]
push dword [eax]
lea eax, [ebp - 0x18]
push str._File::OpenShareMode___CreateFile_failed___s___d___d__0x_x_
push eax
call fcn.18007230
mov ecx, dword [ebp - 8]
add esp, 0x18
lea ecx, [ecx - 0x10]
call fcn.18006f72
mov eax, edi
jmp 0x1801081f
test bl, bl
je 0x18010813
push 0x2000
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x18010813
call fcn.1801bab5
movzx ecx, byte [0x181dd05a]
mov esi, eax
neg ecx
sbb ecx, ecx
and ecx, 0x181dcf50
je 0x1801080f
push 7
pop edx
push 0xfffffffffffffffe
pop eax
push eax
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
call fcn.18008b5d
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push str._File::OpenShareMode___SetFileAttributes_failed__0x_x_
push eax
call fcn.18007230
add esp, 0xc
mov eax, esi
jmp 0x1801081f
and dword [edi + 0xc], 0
xor bl, 1
mov byte [edi + 8], bl
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x18010903
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, ebx
push edi
mov edi, edx
call fcn.1800f85c
and dword [ebp - 0xc], 0
mov edx, esi
push ecx
push ecx
lea ecx, [ebp - 0xc]
call fcn.18012d4c
push 0x250
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.18137120
push edi
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x268]
call fcn.18009ca1
add esp, 0x18
lea ecx, [ebp - 0x264]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x268]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18006f72
cmp esi, 0xffffffff
jne 0x18010989
call fcn.1801bab5
mov edi, eax
jmp 0x180109ec
cmp dword [ebp - 0x264], 0x80
je 0x1801099e
test byte [ebp - 0x264], 0x10
jne 0x180109cb
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.18009ca1
pop ecx
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.18009bd4
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18010989
call fcn.1801bab5
mov edi, eax
cmp edi, 0x80070012
je 0x180109f3
cmp esi, 0xffffffff
je 0x180109fc
jmp 0x180109f5
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18006f72
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18122478
leave
ret

Function at 0x18010a18
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
call fcn.18010826
test al, al
je 0x18010a54
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18010a49
test al, 1
je 0x18010a49
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x18010a49
pop esi
jmp fcn.1801bab5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x18010a43
xor eax, eax
pop esi
ret

Function at 0x1801101b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0
mov edi, ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18011055
call fcn.1801bab5
jmp 0x1801106d
mov eax, dword [ebp - 8]
test esi, esi
je 0x1801105e
mov dword [esi], eax
add dword [edi + 0xc], eax
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.18122478
leave
ret 0xc
Function at 0x18011703
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x181d700c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x80000003
jne 0x18011730
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.18122478
leave
ret
push esi
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.18137120
mov esi, dword [0x181dd054]
lea ecx, [ebp - 0x80c]
xor edx, edx
call fcn.18014e3f
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push str.baselogging.cc
push 0
push esi
push dword [ebp - 0x80c]
push edi
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]
mov ecx, dword [ebp - 0x80c]
add esp, 0x2c
lea ecx, [ecx - 0x10]
call fcn.18006f72
lea ecx, [ebp - 0x808]
call fcn.1801baf5
push 0x250012
push str.Exception
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
sub eax, 3
je 0x180117c4
sub eax, 1
jne 0x180117bc
int3
xor eax, eax
inc eax
jmp 0x18011723
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x18012eeb
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x18013007
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
cmp edi, 2
jle 0x18012f6a
sub edx, 4
js 0x18013007
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, dword [ebp + 0x10]
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx + 1]
shr eax, 6
and ecx, 0xf
add eax, dword [ebp + 0x10]
mov al, byte [eax + ecx*4]
mov ecx, dword [ebp + 0x10]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + ecx]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x18012f06
sub edi, 1
je 0x18012fca
sub edi, 1
jne 0x18013000
sub edx, 3
js 0x18013007
movzx eax, byte [ebx]
mov edi, dword [ebp + 0x10]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, edi
mov al, byte [eax + ecx]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [edi + eax*4]
mov byte [esi + 2], al
add esi, 3
cmp byte [ebp + 0x14], 0
je 0x18013000
lea eax, [edx - 1]
test eax, eax
js 0x18013007
mov byte [esi], 0x3d
inc esi
jmp 0x18013000
sub edx, 2
js 0x18013007
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + ecx]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
add eax, eax
mov al, byte [ecx + eax*8]
mov byte [esi + 1], al
add esi, 2
cmp byte [ebp + 0x14], 0
je 0x18013000
lea eax, [edx - 2]
test eax, eax
js 0x18013007
mov word [esi], 0x3d3d
add esi, 2
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x18013009
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret