joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10062142
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x210
mov eax, 0x10262c70
call fcn.10054407
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 0x10062182
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x100621fe
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100cd120
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.10006250
push eax
lea ecx, [ebp - 0x21c]
call fcn.10005db0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21c]
push str.__sInternet_Exploreriexplore.exe_
push eax
call fcn.1002de30
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.10006320
mov eax, ebx
call fcn.100543b1
ret

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

Disassembly:
push ebp
mov ebp, esp
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 0x10062255
pop ebp
jmp fcn.10062142
pop ebp
ret
Function at 0x10063e1c
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x102630c9
call fcn.10054407
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.100638db
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10063e4e
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x1026e58c
call fcn.10007ee0
push 0x1026e590
mov ecx, esi
call fcn.10007ee0
push 0x102ddc5c
mov ecx, esi
call fcn.10007ee0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.100088e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10063ea3
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10063f3b
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100cd120
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100637af
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10063efa
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.10007ee0
push 0x102ddc5c
mov ecx, esi
call fcn.10007ee0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.100088e0
cmp dword [esi + 0x14], 8
jb 0x10063f43
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10063f5b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x1026e58c
call fcn.10007ee0
push 0x1026e590
mov ecx, esi
call fcn.10007ee0
push 0x102ddc5c
mov ecx, esi
call fcn.10007ee0
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.1006393a
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10007f10
lea ecx, [ebp - 0x248]
call fcn.100042b0
lea ecx, [ebp - 0x230]
call fcn.100042b0
call fcn.100543b1
ret
Function at 0x10065204
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x1026328c
call fcn.10054407
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x10065225
push dword [esi + 0x1c]
call fcn.100fa0eb
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10064637
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100f0a0d
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x100652a9
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10064637
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10064637
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.100042b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.100042b0
sub edi, 1
jns 0x10065253
mov ecx, esi
call fcn.100650e3
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.100042b0
call fcn.100543b1
ret

Function at 0x100652c2
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x1026328c
call fcn.10054407
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x100652e3
push dword [esi + 0x1c]
call fcn.100fa0eb
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10064637
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.100f0a0d
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x10065367
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.10064637
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10064637
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.100042b0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.100042b0
sub edi, 1
jns 0x10065311
mov ecx, esi
call fcn.1006517a
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.100042b0
call fcn.100543b1
ret
Function at 0x10068729
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x1006873b
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x10068780
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x100687f4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x100687fd
pop esi
ret

Function at 0x10068835
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x1006884c
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x10068d9e
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x10263311
call fcn.100543d3
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.1007640b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10076420
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.10024400
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.1007641b
call fcn.1005439c
ret 4
Function at 0x10068e0a
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x10263311
call fcn.100543d3
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.1007640b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10076420
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.10024400
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.1007641b
call fcn.1005439c
ret 4

Function at 0x100694e6
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10069515
push 2
pop eax
jmp 0x1006959d
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10069125
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.100cd120
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, str.runas
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x10069593
cmp dword [ebp + 0x10], 0
je 0x10069593
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.100042b0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret
Function at 0x1006a4a9
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x1006a4be
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1006a4e0
mov al, 1
jmp 0x1006a571
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10006a30
push esi
mov ebx, eax
push 0
push ebx
call fcn.10020e40
push dword [ebp + 8]
push esi
push ebx
call fcn.100ee8e7
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x1006a51f
cmp eax, 0x2f
jne 0x1006a55b
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006a554
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1006a562
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x1006a554
push ebx
mov ecx, eax
call fcn.1006a463
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x1006a511
jmp 0x1006a566
mov byte [ebp - 1], 0
push ebx
call fcn.1005402b
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x1006b7c9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102fb070]
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.100cd120
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x1006b834
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x1006b842
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.100067f0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10053a94
leave
ret
Function at 0x1006bd92
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 [0x102fb070]
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.1006d231
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x1026ec20
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 0x1006bf1e
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006ba42
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 0x1006bedb
mov ecx, 0x102df248
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006be5b
test dx, dx
je 0x1006be57
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006be5b
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006be35
xor eax, eax
jmp 0x1006be60
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006bf01
mov ecx, 0x102df0d8
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006be99
test dx, dx
je 0x1006be95
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006be99
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006be73
xor eax, eax
jmp 0x1006be9e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006bf01
cmp byte [ebp + 0xc], 0
je 0x1006bebd
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.1006bd92
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 0x1006bef7
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 0x1006befe
inc esi
jmp 0x1006bf01
mov byte [ebx], 1
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006bdf5
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.10053a94
leave
ret
Function at 0x1006cb06
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 0x1006cbb6
cmp dword [ebp + 0xc], 0
je 0x1006cbb6
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1006cb4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1006cbb9
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 0x1006cb43
jb 0x1006cb67
push 8
pop eax
jmp 0x1006cbb9
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1006cb73
mov dword [eax], edi
inc esi
push esi
call fcn.10006a30
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.100cd120
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 0x1006cb43
cmp dword [ebp + 8], edi
jne 0x1006cbb6
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1006cbb9
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x1006cd65
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x1006ce76
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x1006ce75
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x1006cd94
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x1006ce75
push 0x103093cc
push eax
call fcn.1015e707
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x1006ce75
cmp dword [esi + 0x14], 0x10
jb 0x1006cdc9
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x1006ce63
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1006ce63
mov eax, dword [ebp - 0x10]
push 0x103093cc
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.1015e707
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006ce63
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x1006ce2c
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.1001de70
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1006ce61
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.100053c0
mov bl, 1
push esi
call fcn.1005402b
pop ecx
test edi, edi
je 0x1006ce75
push edi
call fcn.1005402b
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x1006ce94
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x102fb070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x664]
push esi
push 0x250
push 0
push eax
call fcn.100cd120
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.1006ba42
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1006d019
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1006ba42
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x664], 0x10
je 0x1006cfdd
mov ecx, 0x102df248
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006cf69
test dx, dx
je 0x1006cf65
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006cf69
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006cf43
xor eax, eax
jmp 0x1006cf6e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006cffc
mov ecx, 0x102df0d8
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1006cfa7
test dx, dx
je 0x1006cfa3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1006cfa7
add eax, 4
add ecx, 4
test dx, dx
jne 0x1006cf81
xor eax, eax
jmp 0x1006cfac
sbb eax, eax
or eax, 1
test eax, eax
je 0x1006cffc
cmp byte [ebp + 0x10], 0
je 0x1006cffc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006cffc
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.1006ce94
add esp, 0xc
jmp 0x1006cffc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1006cffc
lea eax, [ebp - 0x20c]
push eax
call fcn.1006ce7c
pop ecx
lea eax, [ebp - 0x664]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006cf03
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.10053a94
leave
ret
Function at 0x1006d029
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2b4
mov eax, 0x10263e0a
call fcn.10054407
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push esi
call fcn.100067f0
mov ecx, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1006d1b9
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1006d087
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x1006d087
push 0x102ddc5c
lea ecx, [ebp - 0x40]
call fcn.10007ee0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x60], ebx
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], ebx
call fcn.10022040
push 0x1026ec20
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.10007ee0
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1006d1b1
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x14], 7
push eax
call fcn.100034a0
push 0x102df248
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1005ce81
test al, al
jne 0x1006d173
push 0x102df0d8
lea ecx, [ebp - 0x28]
call fcn.1005ce81
test al, al
jne 0x1006d173
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.10022040
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.100088e0
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x58]
je 0x1006d15c
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.1006d029
jmp 0x1006d16a
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.1006ce7c
pop ecx
lea ecx, [ebp - 0x58]
call fcn.100042b0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100042b0
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1006d0ce
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1006d1b1
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x70]
call fcn.100042b0
lea ecx, [ebp - 0x40]
call fcn.100042b0
call fcn.100543b1
ret