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

Disassembly:
push 0x258
mov eax, 0x100ee63d
call fcn.10082248
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.10001e10
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x1003d47d
push 0x100f55e0
mov ecx, edi
call fcn.10001e10
jmp 0x1003d555
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.10022050
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x230]
dec eax
push eax
call fcn.1003e4de
cmp word [eax], 0x5c
je 0x1003d4b8
push 0x100f58d0
lea ecx, [ebp - 0x230]
call fcn.1003768b
push esi
lea ecx, [ebp - 0x230]
call fcn.1003768b
xor eax, eax
mov dword [ebp - 0x250], ebx
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x238]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], 7
push eax
call fcn.100376ef
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.1003e4fe
lea ecx, [ebp - 0x260]
mov esi, eax
call fcn.10001ee0
test esi, esi
je 0x1003d547
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.10006070
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.10034371
lea ecx, [ebp - 0x248]
call fcn.10001ee0
lea ecx, [ebp - 0x230]
call fcn.10001ee0
mov eax, edi
call fcn.100821f2
ret 0x10
Function at 0x1003de8a
Capabilities:
Check if file exists

Disassembly:
push 0x2c
mov eax, 0x100ee71c
call fcn.10082248
mov dword [ebp - 0x38], ecx
mov ebx, dword [ebp + 8]
call fcn.10027b70
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003c679
xor edi, edi
mov dword [ebp - 4], edi
call fcn.10027b70
push eax
lea ecx, [ebp - 0x30]
call fcn.1003c679
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003ded4
mov esi, dword [ebp - 0x30]
jmp 0x1003dfda
push ebx
call fcn.1003c99a
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.1003e168
mov esi, dword [ebp - 0x2c]
push 0x5c
push esi
call fcn.100a50d6
pop ecx
or edi, 0xffffffff
pop ecx
test eax, eax
jne 0x1003defd
mov eax, edi
jmp 0x1003df01
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003dc70
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x30]
call fcn.1003c78c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1003e0f9
push 0x5c
push esi
call fcn.100a50d6
pop ecx
pop ecx
test eax, eax
je 0x1003df4a
mov edi, eax
sub edi, esi
sar edi, 1
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003db38
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.1003c78c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1003e0f9
call fcn.10053cf1
mov ecx, dword [ebp - 0x38]
cmp eax, 1
jg 0x1003dfc7
lea eax, [ebp - 0x28]
push eax
call fcn.1003d327
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push esi
mov byte [ebp - 4], 4
call fcn.1003768b
push str..lnk
lea ecx, [ebp - 0x28]
call fcn.1003768b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call fcn.1003cbdb
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.10001ee0
jmp 0x1003dfda
mov esi, dword [ebp - 0x30]
push 0x100f9e80
push esi
push dword [ebp - 0x2c]
call fcn.1003d5e0
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.1003e0f9
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.1003e0f9
mov eax, edi
call fcn.100821f2
ret 4
Function at 0x1003e319
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x28
mov eax, 0x100ee769
call fcn.10082248
mov ebx, ecx
mov esi, dword [ebp + 8]
call fcn.10027b70
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003c679
xor edi, edi
mov dword [ebp - 4], edi
call fcn.10027b70
push eax
lea ecx, [ebp - 0x30]
call fcn.1003c679
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003e362
mov esi, dword [ebp - 0x30]
jmp 0x1003e464
push esi
call fcn.1003c99a
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.1003e168
mov esi, dword [ebp - 0x2c]
push 0x5c
push esi
call fcn.100a50d6
pop ecx
or edi, 0xffffffff
pop ecx
test eax, eax
jne 0x1003e38b
mov eax, edi
jmp 0x1003e38f
sub eax, esi
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003dc70
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x30]
call fcn.1003c78c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1003e0f9
push 0x5c
push esi
call fcn.100a50d6
pop ecx
pop ecx
test eax, eax
je 0x1003e3d8
mov edi, eax
sub edi, esi
sar edi, 1
push edi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1003db38
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.1003c78c
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.1003e0f9
call fcn.10053cf1
mov ecx, ebx
cmp eax, 1
jg 0x1003e451
lea eax, [ebp - 0x28]
push eax
call fcn.1003d327
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push esi
mov byte [ebp - 4], 4
call fcn.1003768b
push str..lnk
lea ecx, [ebp - 0x28]
call fcn.1003768b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.10001ee0
jmp 0x1003e464
mov esi, dword [ebp - 0x30]
push 0x100f9e8c
push esi
push dword [ebp - 0x2c]
call fcn.1003d5e0
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.1003e0f9
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.1003e0f9
mov eax, edi
call fcn.100821f2
ret 4
Function at 0x1003e869
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x850
mov eax, 0x100ee799
call fcn.10082248
mov esi, ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x828]
mov edx, dword [ebp + 0x18]
test edx, edx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x858], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x854], edi
mov dword [ebp - 0x854], eax
mov eax, 0x100f55e0
cmovne eax, edx
push eax
call fcn.10001e10
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x844], edx
mov dword [ebp - 0x850], edx
mov dword [ebp - 0x84c], edx
mov dword [ebp - 0x848], edx
cmp dword [esi + 0x74], edx
ja 0x1003e8f6
lea eax, [ebp - 0x840]
push eax
call fcn.1005309a
pop ecx
lea ecx, [esi + 0x64]
push eax
call fcn.10001fe0
lea ecx, [ebp - 0x840]
call fcn.10001ee0
xor edx, edx
lea eax, [esi + 0x64]
cmp dword [eax + 0x14], 8
jb 0x1003e901
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x844]
push ecx
push 0x20119
push edx
push eax
push SysStringLen
call esi
test eax, eax
je 0x1003e933
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.10034371
jmp 0x1003ea5d
lea eax, [ebp - 0x850]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x844]
call esi
test eax, eax
je 0x1003e960
push dword [ebp - 0x844]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003e920
lea eax, [ebp - 0x84c]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x850]
call esi
test eax, eax
je 0x1003e993
push dword [ebp - 0x850]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x844]
call esi
jmp 0x1003e920
lea eax, [ebp - 0x848]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x858]
push dword [ebp - 0x84c]
call esi
test eax, eax
je 0x1003e9ca
push dword [ebp - 0x848]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x84c]
jmp 0x1003e987
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.100a25c0
add esp, 0xc
mov dword [ebp - 0x85c], 0x400
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x854]
push dword [ebp - 0x848]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x848]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x84c]
call esi
push dword [ebp - 0x850]
call esi
push dword [ebp - 0x844]
call esi
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1003ea3a
sub ecx, edx
sar ecx, 1
mov ecx, edi
je 0x1003e922
lea eax, [ebp - 0x810]
push eax
call fcn.10001e10
lea ecx, [ebp - 0x828]
call fcn.10001ee0
mov eax, edi
call fcn.100821f2
ret 0x14
Function at 0x1003ed01
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
cmp dword [esi + 0x74], edx
ja 0x1003ed58
lea eax, [ebp - 0x1c]
push eax
call fcn.1005309a
pop ecx
lea ecx, [esi + 0x64]
push eax
call fcn.10001fe0
lea ecx, [ebp - 0x1c]
call fcn.10001ee0
xor edx, edx
lea eax, [esi + 0x64]
cmp dword [eax + 0x14], 8
jb 0x1003ed63
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push edx
push eax
push SysStringLen
call esi
test eax, eax
jne 0x1003ee3c
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x1003edaa
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003ee3c
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
xor ecx, ecx
push ecx
push eax
push ecx
push 0xf013f
push ecx
push ecx
push ecx
push ebx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x1003edd2
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003ee32
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x1003edf6
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003ee2d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1003edfb
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret 0x10
Function at 0x10040653
Capabilities:
Create process on windows

Disassembly:
push 0x18
mov eax, 0x100eeb25
call fcn.10082214
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.10027b70
push eax
lea ecx, [ebp - 0x10]
call fcn.1003c679
mov byte [ebp - 4], 1
call fcn.10027b70
push eax
lea ecx, [ebp - 0x18]
call fcn.1003c679
push 0x20119
push str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.1003dcf8
mov edi, 0x1000
test eax, eax
jne 0x100406e9
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.1003dff7
lea ecx, [ebp - 0x14]
push ecx
push eax
push str.InstallLocation
lea ecx, [ebp - 0x24]
call fcn.1003e033
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.10040882
test esi, esi
jne 0x100406e9
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
jne 0x10040732
jmp 0x100406ec
mov esi, dword [ebp - 0x10]
push 0x20119
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.1003dcf8
test eax, eax
jne 0x10040732
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.1003dff7
lea ecx, [ebp - 0x14]
push ecx
push eax
push str.InstallLocation
lea ecx, [ebp - 0x24]
call fcn.1003e033
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.10040882
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x1004073e
mov edi, dword [ebp - 0x18]
jmp 0x1004079e
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.10040554
cmp ax, 0x5c
je 0x10040760
push 1
push 0x100f58d0
lea ecx, [ebp - 0x10]
call fcn.1003c82c
mov esi, dword [ebp - 0x10]
push 0x78
push 0x65
push 0x6d
push 0x6f
push 0x72
push 0x68
push 0x63
push esi
lea eax, [ebp - 0x18]
push str._s_c_c_c_c_c_c.e_ce
push eax
call fcn.100404b4
mov edi, dword [ebp - 0x18]
add esp, 0x28
push 5
push ebx
push dword [ebp + 8]
push edi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
lea ecx, [edi - 0x10]
call fcn.1003e0f9
lea ecx, [esi - 0x10]
call fcn.1003e0f9
lea ecx, [ebp - 0x24]
call fcn.1003ca4c
mov eax, ebx
call fcn.100821dd
ret
Function at 0x100407be
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x210
mov eax, 0x100eeb4b
call fcn.10082248
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
jle 0x100407fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x1004087a
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.10027b70
push eax
lea ecx, [ebp - 0x21c]
call fcn.1003c679
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21c]
push str.__sInternet_Exploreriexplore.exe_
push eax
call fcn.100404b4
add esp, 0xc
push 1
push ebx
push esi
mov esi, dword [ebp - 0x21c]
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esi - 0x10]
setg bl
call fcn.1003e0f9
mov eax, ebx
call fcn.100821f2
ret

Function at 0x100408ae
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
call fcn.100405a6
test eax, eax
je 0x100408d4
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x100408da
pop ebp
jmp fcn.100407be
pop ebp
ret

Function at 0x1004095b
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov esi, edi
push 2
pop ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, ebx
cmp ax, dx
jne 0x1004096e
sub esi, ecx
xor ecx, ecx
sar esi, 1
lea eax, [esi + 1]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10067cda
mov ebx, eax
sub eax, edi
pop ecx
movzx ecx, word [edi]
mov word [eax + edi], cx
lea edi, [edi + 2]
test cx, cx
jne 0x10040995
xor edi, edi
mov byte [ebp + 0xb], 1
test esi, esi
js 0x100409e6
push 0x5c
pop eax
cmp word [ebx + edi*2], ax
jne 0x100409db
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100409d4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100409e2
push 0x5c
pop eax
mov word [ebx + edi*2], ax
inc edi
cmp edi, esi
jle 0x100409b1
jmp 0x100409e6
mov byte [ebp + 0xb], 0
push ebx
call fcn.1008144f
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10040ac5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.100a25c0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x10040b25
push edi
jmp 0x10040b2c
lea eax, [ebp - 0x20c]
push eax
call fcn.10001e10
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10081454
leave
ret
Function at 0x100410b9
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push 0x104
push eax
call fcn.10041d6e
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100fa64c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10041245
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10041d04
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x45c], 0x10
je 0x10041202
mov ecx, 0x100fa654
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10041182
test dx, dx
je 0x1004117e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10041182
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004115c
xor eax, eax
jmp 0x10041187
sbb eax, eax
or eax, 1
test eax, eax
je 0x10041228
mov ecx, 0x100fa658
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100411c0
test dx, dx
je 0x100411bc
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100411c0
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004119a
xor eax, eax
jmp 0x100411c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10041228
cmp byte [ebp + 0xc], 0
je 0x100411e4
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.100410b9
add esp, 0xc
add esi, eax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1004121e
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x10041225
inc esi
jmp 0x10041228
mov byte [ebx], 1
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1004111c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret
Function at 0x10041807
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x100418b7
cmp dword [ebp + 0xc], 0
je 0x100418b7
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1004184c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100418ba
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x10041844
jb 0x10041868
push 8
pop eax
jmp 0x100418ba
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10041874
mov dword [eax], edi
inc esi
push esi
call fcn.10067cda
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.100a25c0
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x10041844
cmp dword [ebp + 8], edi
jne 0x100418b7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100418ba
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x100418be
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x1004196e
cmp dword [ebp + 0xc], 0
je 0x1004196e
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10041903
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10041971
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x100418fb
jb 0x1004191f
push 8
pop eax
jmp 0x10041971
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004192b
mov dword [eax], edi
inc esi
push esi
call fcn.10067cda
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.100a25c0
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x100418fb
cmp dword [ebp + 8], edi
jne 0x1004196e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10041971
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x10041975
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x1012931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x61c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x208
mov dword [ebp - 0x624], esi
push edi
push 0
push eax
mov dword [ebp - 0x620], ebx
call fcn.100a25c0
push edi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.100a25c0
push esi
mov edi, 0x104
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.100ad14d
push ebx
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.100ad14d
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.100b91d7
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.100b91d7
add esp, 0x40
lea ecx, [ebp - 0x414]
lea eax, [ebp - 0x61c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10041a30
test dx, dx
je 0x10041a2c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10041a30
add eax, 4
add ecx, 4
test dx, dx
jne 0x10041a0a
xor eax, eax
jmp 0x10041a35
sbb eax, eax
or eax, 1
test eax, eax
je 0x10041b0e
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x10041b0e
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor esi, esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.100a25c0
add esp, 0xc
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x10041a8c
push dword [ebp - 0x620]
push 0x100fa680
push eax
call fcn.10040d34
add esp, 0xc
jmp 0x10041aa1
push esi
push dword [ebp - 0x620]
push str._s.bak_d
push eax
call fcn.10040d34
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x10041abb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
call fcn.100c2149
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp - 0x620]
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
lea eax, [ebp - 0x20c]
push 0
push eax
jne 0x10041b0c
call edi
cmp esi, 0xa
jge 0x10041b0e
inc esi
jmp 0x10041a56
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10081454
leave
ret