joyce8/EMBER2024-capa huggingface dataset:
Function at 0x603d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d7b69
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov ecx, edi
push 0x1e
mov dword [ebp - 0x10], 1
call fcn.004585b0
xor esi, esi
nop dword [eax]
mov eax, 0xf2b9d649
mov ecx, esi
mul esi
shr edx, 8
imul eax, edx, 0x10e
sub ecx, eax
mov al, byte [ecx + 0x75e818]
xor al, byte [esi + ebx]
movzx ecx, al
push ecx
push 1
mov ecx, edi
call fcn.00445910
inc esi
cmp esi, 0x1e
jb 0x603d80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x604120
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7046de
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x82f084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
lea eax, [ebp + 8]
mov dword [ebp - 4], 3
push eax
call fcn.00440f20
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x18]
call fcn.00440f20
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x30]
call fcn.00440f20
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x48]
call fcn.00440f20
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x6041c2
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6041b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6042a0
push edx
push ecx
call fcn.0067d913
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x604208
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x6041fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6042a0
push edx
push ecx
call fcn.0067d913
add esp, 8
mov edx, dword [ebp + 0x4c]
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0xf
mov byte [ebp + 0x20], 0
cmp edx, 0x10
jb 0x60424a
mov ecx, dword [ebp + 0x38]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x604240
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6042a0
push edx
push ecx
call fcn.0067d913
add esp, 8
mov edx, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0xf
mov byte [ebp + 0x38], 0
cmp edx, 0x10
jb 0x60428c
mov ecx, dword [ebp + 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x604282
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x6042a0
push edx
push ecx
call fcn.0067d913
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x60
call fcn.00692c95
int3
Function at 0x60a8c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ecde8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0051e590
test eax, eax
jne 0x60aa1d
push 1
push 0x7625f8
lea ecx, [ebp - 0x28]
call fcn.0042ff20
cmp dword [0x84ba24], 8
mov ecx, 0x84ba10
push dword [0x84ba20]
cmovae ecx, dword [0x84ba10]
push ecx
mov ecx, eax
call fcn.0042ff20
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x60a982
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x60a982
cmp eax, 0xb7
je 0x60a982
cmp eax, 0x50
jne 0x60aa1d
push 1
push 0x7625f8
lea ecx, [ebp - 0x28]
call fcn.0042ff20
cmp dword [0x84b8a4], 8
mov ecx, 0x84b890
push dword [0x84b8a0]
cmovae ecx, dword [0x84b890]
push ecx
mov ecx, eax
call fcn.0042ff20
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [esi + 8]
je 0x60a9cb
mov ecx, eax
call fcn.0042fc50
add dword [esi + 4], 0x18
jmp 0x60a9d3
push eax
mov ecx, esi
call fcn.00449db0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x28]
call fcn.00522740
test eax, eax
jne 0x60aa19
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [esi + 8]
je 0x60aa11
mov ecx, eax
call fcn.0042fc50
add dword [esi + 4], 0x18
xor esi, esi
jmp 0x60aa22
push eax
mov ecx, esi
call fcn.00449db0
xor esi, esi
jmp 0x60aa22
mov esi, 1
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x60d8f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x82f084]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0xc], ebx
mov esi, 4
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
nop dword [eax]
push 0x110
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x11c
push 0
push eax
call fcn.00690480
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
movzx ecx, si
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
push 0x23
push eax
mov dword [esp + 0x28], 0
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x60d9b9
inc esi
cmp esi, 0xf
jl 0x60d930
jmp 0x60d9be
lea eax, [esi - 1]
mov dword [ebx], eax
mov edi, 1
movzx esi, word [ebx]
lea eax, [esp + 0x14]
push 0x110
push 0
push eax
mov dword [esp + 0x1c], 0x11c
call fcn.00690480
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
mov ecx, esi
mov dword [esp + 0x18], ecx
push eax
movzx ecx, di
lea eax, [esp + 0x18]
mov dword [esp + 0x20], ecx
xor ecx, ecx
push 0x23
push eax
mov word [esp + 0x134], cx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x60da4d
inc edi
cmp edi, 0xa
jl 0x60d9c3
jmp 0x60da53
lea eax, [edi - 1]
mov dword [ebx + 4], eax
mov ebx, 1
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
push 0x110
push 0
mov dword [esp + 0x18], 0x11c
movzx edi, word [eax + 4]
movzx esi, word [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.00690480
add esp, 0xc
xor eax, eax
mov word [esp + 0x126], ax
mov dword [esp + 0x128], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_VerSetConditionMask]
push edx
push eax
mov ecx, esi
mov word [esp + 0x12c], bx
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x18]
push 0x23
mov ecx, edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.DLL_VerifyVersionInfoW]
test eax, eax
je 0x60db04
inc ebx
cmp ebx, 0xa
jl 0x60da60
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xc]
lea eax, [ebx - 1]
pop edi
pop esi
pop ebx
mov dword [ecx + 8], eax
mov al, 1
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x60eb30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
mov edi, ecx
mov esi, edx
push edi
push 0
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
js 0x60ebbe
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x60ebb0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x60eb90
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042fe00
mov bl, 1
push dword [ebp - 0x210]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x60ec00
push 1
push 0
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x60ec00
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x60ebe0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042fe00
mov bl, 1
mov eax, dword [esi + 0x10]
test eax, eax
je 0x60ec50
mov edx, dword [esi + 0x14]
mov ecx, esi
cmp edx, 8
jb 0x60ec13
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x60ec50
lea ecx, [eax - 1]
cmp ecx, eax
ja 0x60ec45
mov dword [esi + 0x10], ecx
cmp edx, 8
jb 0x60ec2c
mov esi, dword [esi]
xor eax, eax
pop edi
mov word [esi + ecx*2], ax
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.0050e820
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0067d681
mov esp, ebp
pop ebp
ret

Function at 0x60ec70
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov edi, eax
test edi, edi
je 0x60ecbc
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00696d08
mov esi, eax
add esp, 4
test esi, esi
je 0x60ecbc
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x60ecc2
push esi
call fcn.00692abe
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x60ecc7
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, ebx
call fcn.0042fe00
push esi
call fcn.00692abe
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x60eec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea edx, [ebp - 0x214]
lea ecx, [ebp - 0x218]
call fcn.0060d700
cmp dword [ebp - 0x214], 2
jne 0x60ef06
mov ecx, esi
call fcn.0060ecf0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
push 0
push 0x2c
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x60ef2e
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.006a7c18
lea ecx, [ebp - 0x210]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x60ef50
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0042fe00
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret

Function at 0x60ef80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1c
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x60efbe
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
push str.Adobe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.006a7c18
lea edx, [ebp - 0x20c]
add esp, 0xc
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x60efe0
sub edx, ecx
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.0042fe00
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x60ff00
Capabilities:
Check if file exists
Create directory

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x60ff0d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esi + 0x14]
test eax, eax
je 0x60ff30
cmp ecx, 8
jb 0x60ff22
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
pop esi
setne al
ret
cmp ecx, 8
jb 0x60ff37
mov esi, dword [esi]
push edi
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov edi, eax
test edi, edi
je 0x60ffb4
mov esi, dword [0x855a98]
test esi, esi
je 0x60ff84
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x1c
test edi, edi
sete al
pop edi
pop esi
ret
mov eax, dword [0x855a9c]
test eax, eax
je 0x60ffb2
mov esi, dword [eax]
push edi
push str.SHCreateDirectoryEx_failed._Error:__d
push str.FileUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x75c10c
push 0x32
push eax
call dword [0x74835c]
call esi
add esp, 0x18
test edi, edi
pop edi
sete al
pop esi
ret
Function at 0x6108e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x705900
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x291], 1
call fcn.0042fc50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 1
xor eax, eax
mov dword [ebp - 0x18], 0
push 0x76944c
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0042fe00
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0060f9d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042fd70
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x610aed
nop
push str..__
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x610ad0
push 0x7d2800
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
je 0x610ad0
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x6109e1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x6109d5
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.0042fe00
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x610a00
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042fe00
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0060f9d0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042fd70
test byte [ebp - 0x290], 0x10
je 0x610a60
push 0
push 1
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.006108e0
add esp, 8
mov byte [ebp - 0x291], al
jmp 0x610ad0
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x264]
mov dword [ebp - 0x14], 7
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x610a80
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0042fe00
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov eax, dword [edi + 4]
push ecx
cmp eax, dword [edi + 8]
je 0x610abc
mov ecx, eax
call fcn.0042fc50
add dword [edi + 4], 0x18
jmp 0x610ac4
push eax
mov ecx, edi
call fcn.00449db0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.0042fd70
lea eax, [ebp - 0x290]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x610990
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x40]
call fcn.0042fd70
mov al, byte [ebp - 0x291]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret
Function at 0x611290
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push edi
mov edi, ecx
mov bh, dl
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x6112a0
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x611455
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6112b9
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6112ca
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
je 0x6113b7
test bh, bh
je 0x6113b7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x6113b7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6112ff
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, eax
test dl, 1
je 0x6113b7
mov esi, dword [0x855a98]
test esi, esi
je 0x611351
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x611325
mov ecx, dword [edi]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x20
jmp 0x61138a
mov eax, dword [0x855a9c]
test eax, eax
je 0x61138a
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x611364
mov ecx, dword [edi]
mov esi, dword [eax]
push edx
push ecx
push str.File__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov esi, dword [esi + 0x34]
mov ecx, esi
push str.FileUtils
push 0x75c10c
push 0x14
push eax
call dword [0x74835c]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x611394
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x6113aa
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x61144f
cmp dword [0x855a98], 0
je 0x61140c
cmp dword [edi + 0x14], 8
jb 0x6113d0
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x855a98]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x74835c]
call esi
add esp, 0x20
mov al, bl
pop esi
pop edi
pop ebx
ret
mov esi, dword [0x855a9c]
test esi, esi
je 0x61144f
cmp dword [edi + 0x14], 8
jb 0x61141e
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_delete_file:__s_LastError:_d
push str.FileUtils
push 0x75c10c
push 0x32
push dword [0x855a9c]
call dword [0x74835c]
call esi
add esp, 0x1c
pop esi
pop edi
mov al, bl
pop ebx
ret
pop edi
mov al, 1
pop ebx
ret
Function at 0x611460
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d4638
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x82f084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x611499
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x611511
mov esi, dword [0x855a98]
test esi, esi
je 0x6114dd
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x32
mov ecx, esi
call dword [0x74835c]
call esi
add esp, 0x18
xor al, al
jmp 0x61160a
mov eax, dword [0x855a9c]
test eax, eax
je 0x61150a
mov esi, dword [eax]
push str.Source_file_does_not_exist_in_CopyFileFromSourceToDestination
push str.FileUtils
push 0x75c10c
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x32
push eax
call dword [0x74835c]
call esi
add esp, 0x14
xor al, al
jmp 0x61160a
push edi
lea ecx, [ebp - 0x28]
call fcn.0042fc50
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0060f900
push ecx
lea ecx, [ebp - 0x28]
call fcn.0060ff00
add esp, 4
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x61153f
mov eax, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x611547
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x6115ea
cmp dword [0x855a98], eax
je 0x6115a3
cmp dword [edi + 0x14], 8
jb 0x611569
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [0x855a98]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push 0x75c10c
push 0x75c10c
push str.FileUtils
push str.OOBEUtils
push 0x32
call dword [0x74835c]
call esi
add esp, 0x20
xor bl, bl
jmp 0x611600
mov esi, dword [0x855a9c]
test esi, esi
je 0x6115e6
cmp dword [edi + 0x14], 8
jb 0x6115b5
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_copy_file_at_the_destination:_s._LastError:__d
push str.FileUtils
push 0x75c10c
push 0x32
push dword [0x855a9c]
call dword [0x74835c]
call esi
add esp, 0x1c
xor bl, bl
jmp 0x611600
cmp dword [edi + 0x14], 8
jb 0x6115f2
mov edi, dword [edi]
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0042fd70
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0067d681
mov esp, ebp
pop ebp
ret