joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18016c97
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x18016ccf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x18016cca
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.18040339
pop ecx
lea eax, [ebp - 0xc]
call fcn.18017460
mov ebx, dword [ebp - 0xc]
push esi
push esi
push str.RPCSS
push esi
push esi
push dword [ebp + 8]
push 1
push 3
push 0x10
push 0xf01ff
push ebx
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, esi
jne 0x18016d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x18016d26
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.18003e1e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call edi
mov eax, esi
jmp 0x18016cca
push eax
call edi
jmp 0x18016d28

Function at 0x18016d49
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.18017315
test al, al
je 0x18016d64
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
call fcn.180161c6
mov esi, eax
push esi
call fcn.18011ff7
pop ecx
test al, al
je 0x18016d7a
mov eax, esi
jmp 0x18016d5f
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x18016da6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x18016d5f
and eax, 0xffff
or eax, 0x80070000
jmp 0x18016d5f
lea eax, [ebp - 4]
push eax
call fcn.18040339
pop ecx
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x18016df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x18016dde
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x18016d5f
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push 1
push 3
push 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x18016e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x18016e25
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push ebx
call esi
jmp 0x18016de0
Function at 0x180177aa
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
mov esi, ecx
call fcn.18076d05
xor eax, eax
mov word [ebp - 6], ax
xor edi, edi
add esp, 0x14
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
cmp dword [esi + 0x260], edi
jne 0x18017804
push eax
call fcn.18079ee8
pop ecx
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x18017833
push edi
lea eax, [ebp - 0x208]
push eax
push edi
push 1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret

Function at 0x18017bc1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x18017bdd
xor eax, eax
jmp 0x18017c06
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x18017c09
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x18017c03
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
leave
ret

Function at 0x180183a4
Capabilities:
Delete registry key

Disassembly:
cmp byte [0x180b60b4], 0
jne 0x180183d4
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x180183cd
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x180b60b8], eax
mov byte [0x180b60b4], 1
mov eax, dword [0x180b60b8]
test eax, eax
je 0x180183ec
push 0
push dword [esi + 4]
push dword [esp + 0xc]
push dword [esi]
call eax
jmp 0x180183f8
push dword [esp + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
ret 4
Function at 0x180183fb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 4]
push ecx
push dword [edi]
mov dword [ebp - 0x21c], ecx
xor esi, esi
or eax, 0x2001f
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.18018366
mov ebx, eax
cmp ebx, esi
je 0x18018464
lea esi, [ebp - 0x214]
call fcn.180184dd
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x18018482
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.180183fb
cmp eax, esi
jne 0x180184c9
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x1801846c
lea esi, [ebp - 0x214]
call fcn.180184dd
push dword [ebp - 0x21c]
mov esi, edi
call fcn.180183a4
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.180184dd
mov eax, edi
jmp 0x18018453

Function at 0x1801850c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x1801851a
push 0xd
pop eax
jmp 0x1801854d
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x18018521
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1801a09b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.1801a024
cmp eax, ebx
jl 0x1801a176
push ebx
push ebx
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1801a174
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x1801a0ee
cmp eax, ebx
jle 0x1801a0e8
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
jl 0x1801a174
mov eax, dword [0x180b5878]
cmp eax, ebx
je 0x1801a106
push eax
mov esi, eax
call fcn.18044dae
push esi
call fcn.180761ba
pop ecx
call fcn.18052c3a
call fcn.180534c0
movzx esi, al
neg esi
sbb esi, esi
push 0xcc
and esi, 2
call fcn.18076e14
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1801a153
push dword [0x180b5be8]
lea eax, [ebp - 0x20]
call fcn.1801ba4a
push esi
lea eax, [ebp - 0x20]
push eax
mov eax, edi
mov dword [ebp - 4], 1
call fcn.18044b60
mov dword [0x180b5878], eax
jmp 0x1801a159
mov dword [0x180b5878], ebx
test byte [ebp - 4], 1
je 0x1801a16a
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.1801bda8
mov dword [0x180b586c], 0x1801b158
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1801a49c
Capabilities:
Create process on windows
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
push 8
pop eax
lea edi, [ebp - 0x4c]
call fcn.18055bba
mov al, byte [ebp + 8]
mov byte [ebp - 0x48], al
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x34]
call fcn.180038ff
mov al, byte [0x180b583b]
mov byte [ebp - 0x47], al
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x180b5be4
call fcn.18055f6f
push 0x1809e4fc
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x1801a550
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x94]
push ebx
push eax
mov dword [ebp - 0x98], 0x44
call fcn.18076d30
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x98]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea esi, [ebp - 4]
call fcn.1800947c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1801a550
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
lea esi, [ebp - 0x4c]
call fcn.18055c4e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1801a568
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x10], esi
cmp esi, ebx
jne 0x1801a58c
call fcn.1800d3ff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
push str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea eax, [ebp - 8]
push eax
call fcn.18002bc5
push 0x1809f070
lea eax, [ebp - 8]
push eax
call fcn.18002bc5
xor edi, edi
jmp 0x1801a5cc
push esi
call fcn.18076825
inc eax
pop ecx
add edi, eax
lea esi, [esi + eax*2]
cmp word [esi], bx
jne 0x1801a5bf
mov eax, dword [ebp - 8]
mov esi, dword [eax - 0xc]
inc edi
inc esi
xor ecx, ecx
push 2
pop edx
lea eax, [esi + edi]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.18077023
add esi, esi
push esi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push eax
call fcn.180764c0
lea eax, [edi + edi]
push eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
add esi, eax
push esi
call fcn.180764c0
add esp, 0x1c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0x40
lea eax, [ebp - 0x68]
push ebx
push eax
mov dword [ebp - 0x6c], 0x44
call fcn.18076d30
xor eax, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push dword [ebp - 0xc]
push 0x400
push ebx
push ebx
push ebx
call fcn.1800947c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1801a688
call fcn.1800d3ff
mov ebx, eax
push dword [ebp - 0xc]
call fcn.180761d4
mov eax, dword [ebp - 8]
pop ecx
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, ebx
jmp 0x1801a587
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
jmp 0x1801a66d

Function at 0x1801ab40
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x1801ab58
mov eax, 0x80070057
pop esi
leave
ret
mov eax, dword [0x180b41a8]
push ebx
mov ecx, 0x180b41a8
call dword [eax + 0xc]
push dword [esi]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str._s_last.dmp
push eax
call fcn.1800db34
lea eax, [ebp - 4]
push eax
mov eax, 0x180b5be8
lea ebx, [ebp - 8]
call fcn.1800a5bc
mov eax, dword [ebp - 8]
add esp, 0x10
cmp dword [eax - 0xc], 0
pop ebx
jne 0x1801abb6
mov esi, 0x80040709
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, esi
jmp 0x1801ab55
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1801abcd
xor eax, eax
jmp 0x1801abd2
call fcn.1800d3ff
mov esi, eax
mov eax, dword [ebp - 8]
jmp 0x1801ab9f
Function at 0x1801abd9
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x14
pop ecx
mov esi, str.____________________________________.dmp
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [ebp - 0x98]
call fcn.18023d02
mov ecx, dword [0x180b5be8]
mov eax, esi
push eax
lea ebx, [ebp - 0x60]
call fcn.1800ad59
xor ebx, ebx
cmp eax, ebx
pop ecx
jge 0x1801ac4b
mov ebx, eax
lea esi, [ebp - 0x98]
call fcn.180576ed
push dword [ebp - 0x98]
call fcn.180761ba
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
call fcn.18009b20
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x64], ebx
test eax, 0xfffffffc
je 0x1801ac23
xor eax, eax
mov dword [ebp - 0x6c], ebx
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x64]
lea esi, [ebp - 0x98]
call fcn.1800f41a
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.1800b67f
add esp, 0xc
test eax, eax
jl 0x1801ad06
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
xor eax, eax
or eax, edx
mov edx, dword [ebp - 0x80]
xor esi, esi
or ecx, esi
sub edx, eax
mov eax, dword [ebp - 0x7c]
sbb eax, ecx
mov dword [ebp - 0x74], eax
and dword [ebp - 0x74], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
fild qword [ebp - 0xa0]
mov dword [ebp - 0x78], ebx
fild qword [ebp - 0x78]
push ecx
push ecx
fchs
faddp st(1)
fstp qword [esp]
call fcn.18079fd1
fcomp qword [0x180aa260]
pop ecx
pop ecx
fnstsw ax
test ah, 1
jne 0x1801ad06
lea esi, [ebp - 0x98]
call fcn.1800f41a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x88]
sub eax, dword [ebp - 0x8c]
inc dword [ebp - 0x64]
sar eax, 2
cmp dword [ebp - 0x64], eax
jne 0x1801ac6c
jmp 0x1801ac23
Function at 0x1801b1ab
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x180b5be8
mov dword [ebp - 0xc], edi
call fcn.18003bdc
call fcn.18052c3a
cmp byte [0x180b583b], 0
je 0x1801b1de
xor ebx, ebx
lea eax, [ebp - 0xc]
inc ebx
call fcn.18052ed9
jmp 0x1801b1e9
push 2
pop ebx
lea eax, [ebp - 8]
call fcn.18052e9c
mov eax, dword [eax]
sub eax, 0x10
call fcn.18003940
mov esi, eax
add esi, 0x10
mov dword [ebp - 4], esi
test bl, 2
je 0x1801b20e
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
and ebx, 0xfffffffd
call fcn.18003e1e
test bl, 1
je 0x1801b21e
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
cmp byte [0x180b583b], 0
je 0x1801b244
cmp dword [esi - 0xc], edi
je 0x1801b249
lea eax, [ebp - 4]
push eax
call fcn.1801b292
mov esi, dword [ebp - 4]
pop ecx
test eax, eax
jge 0x1801b244
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [esi - 0xc], edi
jne 0x1801b267
lea eax, [ebp - 0xc]
call fcn.180075fe
lea edi, [ebp - 4]
call fcn.180038ff
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov esi, dword [ebp - 4]
cmp dword [esi - 0xc], 0
jne 0x1801b281
mov edi, 0x8004fffc
lea eax, [esi - 0x10]
call fcn.18003e1e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
mov edi, 0x180b5be8
call fcn.180038ff
xor edi, edi
jmp 0x1801b272

Function at 0x1801eb8a
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
cmp eax, esi
jne 0x1801eba3
xor eax, eax
jmp 0x1801ebca
push ebx
lea eax, [esp + 8]
push eax
push esi
push edi
push 0x1802014f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, esi
jne 0x1801ebc7
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
pop ecx
ret

Function at 0x1802172d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x21c], eax
xor ebx, ebx
xor eax, eax
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push ebx
mov edi, 0x1809c790
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
call fcn.18076d30
add esp, 0xc
push 0x20008
lea esi, [ebp - 0x22c]
call fcn.180078ca
lea eax, [ebp - 0x214]
push eax
push ebx
push dword [ebp - 0x228]
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x180217d8
mov esi, eax
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x22c], edi
call fcn.180069a7
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
call fcn.18003b93
push dword [ebp - 0x21c]
lea ebx, [ebp - 0x218]
call fcn.1800404b
mov esi, eax
mov eax, dword [ebp - 0x218]
pop ecx
add eax, 0xfffffff0
call fcn.18003e1e
jmp 0x180217b6
Function at 0x1802180e
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
and dword [eax], 0
push ebx
push esi
push edi
push 1
call fcn.1805146b
mov esi, eax
neg eax
sbb eax, eax
and eax, dword [fcn.18019f46]
pop ecx
mov dword [ebp - 4], esi
jne 0x1802184b
test esi, esi
je 0x18021841
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x18021969
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
mov edi, eax
push esi
add edi, 0x10
lea esi, [ebp - 0xc]
mov dword [ebp - 8], edi
call fcn.180188da
mov ebx, dword [ebp - 0xc]
mov esi, ebx
test ebx, ebx
jle 0x1802187e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x180218af
cmp ebx, 0x80004005
je 0x18021891
push ebx
call fcn.180188bc
pop ecx
lea eax, [edi - 0x10]
call fcn.18003e1e
cmp dword [ebp - 4], 0
je 0x180218a8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x18021969
lea eax, [ebp - 8]
push eax
call fcn.1802172d
mov esi, eax
pop ecx
test esi, esi
jge 0x180218d6
cmp ebx, 0x80004005
je 0x180218ce
push ebx
call fcn.180188bc
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
jmp 0x18021894
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x180218f1
mov edi, 0x80004005
cmp ebx, edi
je 0x18021950
push ebx
call fcn.180188bc
pop ecx
jmp 0x18021950
mov edi, dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.180215f3
mov edi, eax
pop ecx
pop ecx
test edi, edi
jge 0x18021914
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, 0x80004005
jmp 0x180218e6
cmp ebx, 0x80004005
je 0x18021923
push ebx
call fcn.180188bc
pop ecx
push 0xb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x18021949
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18021947
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
call fcn.18003e1e
cmp dword [ebp - 4], 0
je 0x18021967
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1803075e
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x180af1d0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x24c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.18076d30
add esp, 0xc
push 0x1809c3e0
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.18002a05
mov eax, dword [eax]
pop ecx
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.18003e1e
cmp dword [esp + 0x10], 0xffffffff
jne 0x180307ea
call fcn.1800d3ff
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180761c5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x18030883
dec eax
je 0x18030829
dec eax
jne 0x180308de
cmp dword [esp + 0x28], 0x80
je 0x18030815
test byte [esp + 0x28], 0x10
jne 0x180308de
push edi
push esi
lea eax, [esp + 0x30]
call fcn.18030660
pop ecx
pop ecx
mov ebx, eax
jmp 0x180308de
test byte [esp + 0x28], 0x10
je 0x180308de
lea eax, [esp + 0x28]
call fcn.18030620
test al, al
jne 0x180308de
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x24]
call fcn.18003b93
lea eax, [esp + 0x20]
push eax
mov eax, esi
lea ebx, [esp + 0x20]
call fcn.1800a5bc
mov eax, dword [esp + 0x24]
pop ecx
add eax, 0xfffffff0
call fcn.18003e1e
push edi
mov eax, ebx
push 2
push eax
call fcn.1803075e
mov ebx, eax
mov eax, dword [esp + 0x28]
jmp 0x180308d3
test byte [esp + 0x28], 0x10
je 0x180308de
lea eax, [esp + 0x28]
call fcn.18030620
test al, al
jne 0x180308de
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x18]
call fcn.18003b93
lea eax, [esp + 0x14]
push eax
mov eax, esi
lea ebx, [esp + 0x1c]
call fcn.1800a5bc
mov eax, dword [esp + 0x18]
pop ecx
add eax, 0xfffffff0
call fcn.18003e1e
push edi
mov eax, ebx
push 1
push eax
call fcn.1803075e
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
call fcn.18003e1e
test ebx, ebx
jl 0x180308fd
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180307ea
xor esi, esi
jmp 0x180308ff
mov esi, ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x180307d5
Function at 0x18030b1a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov esi, 0x180b10e0
mov edi, eax
call fcn.18041000
mov ecx, dword [ebp + 8]
add ecx, 0x14
mov eax, dword [ecx]
mov dword [ebp - 0xc], ecx
call dword [eax + 4]
mov eax, dword [edi]
sub eax, 0x10
mov dword [ebp - 8], 1
call fcn.18003940
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
je 0x18030b9b
mov eax, dword [edi + 4]
sub eax, 0x10
mov dword [ebp - 8], 3
call fcn.18003940
mov ebx, eax
add ebx, 0x10
cmp dword [ebx - 0xc], 0
je 0x18030b9e
mov eax, dword [edi + 8]
sub eax, 0x10
mov dword [ebp - 8], 7
call fcn.18003940
add eax, 0x10
cmp dword [eax - 0xc], 0
je 0x18030ba1
mov byte [ebp - 1], 0
jmp 0x18030ba5
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 1], 1
test byte [ebp - 8], 4
je 0x18030bb7
and dword [ebp - 8], 0xfffffffb
add eax, 0xfffffff0
call fcn.18003e1e
test byte [ebp - 8], 2
je 0x18030bc9
and dword [ebp - 8], 0xfffffffd
lea eax, [ebx - 0x10]
call fcn.18003e1e
test byte [ebp - 8], 1
je 0x18030bd7
lea eax, [esi - 0x10]
call fcn.18003e1e
cmp byte [ebp - 1], 0
je 0x18030bf3
mov esi, 0x80070057
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.180311f6
mov esi, eax
test esi, esi
jge 0x18030c27
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
jmp 0x18030be2
lea eax, [ebp - 8]
lea edi, [ebp + 8]
call fcn.1800a64d
push dword [eax]
call fcn.18004560
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
add eax, 0xfffffff0
call fcn.18003e1e
test esi, esi
jl 0x18030c1a
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
mov eax, dword [eax]
push 1
push edi
push eax
call fcn.1800b263
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x18030c6a
lea eax, [edi - 0x10]
jmp 0x18030c20
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.18031328
mov esi, eax
pop ecx
pop ecx
test esi, esi
jge 0x18030c87
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18030c65
mov esi, 0x180b1100
call fcn.18041000
lea eax, [edi - 0x10]
call fcn.18003e1e
xor esi, esi
jmp 0x18030be2