joyce8/EMBER2024-capa huggingface dataset:
Function at 0x675eaa
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push pe_nt_image_headers32
mov eax, 0x7aad47
call fcn.006fee7b
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x120]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push eax
push 1
push str.D:_A__GA___WD__A__GA___AN_S:_ML__NW___ME_
mov dword [ebp - 0x124], 0xc
mov dword [ebp - 0x11c], ebx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x67608a
lea eax, [ebp - 0x124]
mov byte [ebp - 0x128], 1
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x12c], eax
mov ecx, edi
mov dword [ebp - 4], ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x675f0e
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00700070
mov eax, esp
lea ecx, [ebp - 0x115]
push edi
push eax
call fcn.0062618a
mov edi, ebx
mov dword [ebp - 0x114], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
jne 0x675f8d
call ebx
cmp eax, 5
jne 0x67602e
push dword [ebp - 0x114]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
test eax, eax
jne 0x675f8d
call ebx
cmp eax, 2
jne 0x675fdc
mov eax, dword [ebp - 0x114]
inc edi
cmp edi, 5
jb 0x675f40
cmp dword [esi], 0
jne 0x676072
call ebx
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push str.Exhausted_retries_creating_global_mutex._LastError:
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.006718fc
lea eax, [ebp - 0x110]
push 0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push 0x7b6c78
push eax
call fcn.00672442
jmp 0x67601e
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push str.Failed_to_open_global_mutex._Error:
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.006718fc
lea eax, [ebp - 0x110]
push 0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push 0x7b6c78
push eax
call fcn.0067233c
add esp, 0x1c
test al, al
je 0x6760d9
jmp 0x6760d8
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push str.Failed_to_create_global_mutex._Error:
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.006718fc
lea eax, [ebp - 0x110]
push 0
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push 0x7b6c78
push eax
call fcn.006722b4
jmp 0x67601e
push dword [ebp - 0x120]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea esp, [ebp - 0x13c]
call fcn.006fee25
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push str.Failed_to_create_security_descriptor_from_string._Error:
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.006718fc
lea eax, [ebp - 0x110]
push ebx
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push 0x7b6c78
push eax
call fcn.0067222c
add esp, 0x1c
test al, al
je 0x6760d9
int3
call fcn.00694752
int3
Function at 0x6770e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3d6be971
push 0x16
push esi
call fcn.00682c0c
add esp, 0xc
xor ecx, ecx
push 4
pop edi
mov byte [esi + ecx + 0x16], al
shr eax, 8
inc ecx
cmp ecx, edi
jb 0x677100
mov ebx, dword [ebp + 0xc]
push 0x1a
lea ecx, [ebx + 0x1e]
mov eax, ecx
and eax, 0xf
mov edx, dword [eax*4 + 0x8490a8]
xor edx, ecx
mov eax, edx
mov byte [ebp - 4], dl
shr eax, 8
mov byte [ebp - 3], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ebp - 2], al
xor eax, eax
mov byte [ebp - 1], dl
sub ebx, esi
mov edx, esi
mov dword [ebp + 0x10], eax
pop esi
mov al, byte [edx]
lea ecx, [ebx + edx]
and ecx, 3
xor byte [ebp + ecx + 0x10], al
inc edx
sub esi, 1
jne 0x677145
mov edx, dword [ebp + 8]
add edx, 0x1a
lea ecx, [edx + ebx]
and ecx, 3
mov al, byte [ebp + ecx + 0x10]
xor al, byte [ebp + ecx - 4]
mov byte [edx], al
inc edx
sub edi, 1
jne 0x67715d
pop edi
pop esi
pop ebx
leave
ret

Function at 0x677178
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
push 0x1e
mov dword [ebp - 4], eax
sub esi, edx
pop ebx
mov al, byte [edx]
lea ecx, [esi + edx]
and ecx, 3
xor byte [ebp + ecx - 4], al
inc edx
sub ebx, 1
jne 0x677191
movzx ecx, byte [ebp - 1]
add edi, 0x1e
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 4]
shl ecx, 8
or ecx, eax
mov eax, edi
and eax, 0xf
mov eax, dword [eax*4 + 0x8490a8]
xor eax, edi
pop edi
cmp ecx, eax
pop esi
sete al
pop ebx
leave
ret
Function at 0x681be9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1350
call fcn.006ffc90
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x71c]
push 0x618
push 0
push eax
call fcn.00718210
add esp, 0xc
lea eax, [ebp - 0x71c]
mov esi, 0x30c
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x681d1c
push 0
lea eax, [ebp - 0xd34]
push eax
push esi
lea eax, [ebp - 0x71c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x681d00
cmp eax, esi
jae 0x681d00
push esi
lea eax, [ebp - 0x134c]
push eax
lea eax, [ebp - 0xd34]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x681cc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x1350]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x1350], esi
push eax
call fcn.00607ca7
lea eax, [ebp - 0x104]
push eax
push esi
push edi
push str.Failed_to_get_volume_name_for_path__s._Error___u_:__s
push 0x25
push str.d:package_cachecasc1.4.49_srcdynamicdrive_type.win32.cpp
push 4
push str.casc
call fcn.00785e68
add esp, 0x28
jmp 0x681d1c
lea eax, [ebp - 0x134c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
sub eax, 1
je 0x681cfc
sub eax, 1
je 0x681cf7
sub eax, 1
je 0x681cf2
sub eax, 1
je 0x681cfc
sub eax, 1
jne 0x681d1c
push 4
jmp 0x681cf9
xor eax, eax
inc eax
jmp 0x681d1e
push 2
pop eax
jmp 0x681d1e
push 3
jmp 0x681cf9
push edi
push str.Failed_to_get_full_path_name_for_path__s.
push 0x1a
push str.d:package_cachecasc1.4.49_srcdynamicdrive_type.win32.cpp
push 4
push str.casc
call fcn.00785e68
add esp, 0x18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.006fedff
leave
ret
Function at 0x689aa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x689ac0
sub esi, edx
lea eax, [ebp - 0x410]
push esi
push ecx
push eax
call fcn.00717660
add esp, 0xc
mov dword [ebp - 0xa30], 0x636f6c2e
mov eax, dword [ebp - 0xa30]
mov dword [ebp + esi - 0x410], eax
mov word [ebp - 0xa2c], 0x6b
mov ax, word [ebp - 0xa2c]
push 0x30c
mov word [ebp + esi - 0x40c], ax
lea eax, [ebp - 0xa28]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x410]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x689b82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xa30]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0xa30], esi
push eax
call fcn.00607ca7
lea eax, [ebp - 0x104]
push eax
push esi
lea eax, [ebp - 0x410]
push eax
push str.Failed_to_convert_path__s_to_wide_string._Error___u_:__s
push 0x52
push str.d:package_cachecasc1.4.49_srcdynamic_shmem_control.win32.cpp
push 4
push str.casc
call fcn.00785e68
xor eax, eax
add esp, 0x28
inc eax
jmp 0x689c99
and dword [ebp - 0xa40], 0
lea eax, [ebp - 0xa28]
push edi
xor edi, edi
mov dword [ebp - 0xa44], 0x5f5e100
mov esi, 0x2a05f200
inc edi
push eax
mov dword [ebp - 0xa3c], esi
mov dword [ebp - 0xa38], edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push 0x4000100
push edi
push eax
push eax
push closesocket
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x689c96
xor edx, edx
mov ecx, esi
inc edx
mov dword [ebp - 0xa34], ecx
mov dword [ebp - 0xa30], edx
mov eax, ecx
or eax, edx
je 0x689ca7
push 0
push 0x5f5e100
push edi
push esi
call fcn.00638f2a
mov esi, dword [ebp - 0xa34]
lea edx, [ebp - 0xa3c]
mov edi, dword [ebp - 0xa30]
lea ecx, [ebp - 0xa44]
add esp, 0x10
test al, al
cmove ecx, edx
push 0
push 0xf4240
mov edx, dword [ecx]
sub esi, edx
mov eax, dword [ecx + 4]
push eax
sbb edi, eax
mov dword [ebp - 0xa3c], esi
push edx
mov dword [ebp - 0xa38], edi
call fcn.006ff1a0
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push 0x4000100
push 1
push eax
push eax
push closesocket
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
mov ecx, esi
mov dword [ebp - 0xa34], ecx
mov edx, edi
mov dword [ebp - 0xa30], edi
cmp eax, 0xffffffff
je 0x689bee
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
push str.Failed_to_create_lock_file_due_to_timeout.
push 0x74
push str.d:package_cachecasc1.4.49_srcdynamic_shmem_control.win32.cpp
push 4
push str.casc
call fcn.00785e68
add esp, 0x14
push 0xb
pop eax
jmp 0x689c98
Function at 0x68acad
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [ebp + 0x14]
push ebx
push esi
push edi
sub eax, 0
je 0x68ad0e
sub eax, 1
je 0x68ad05
sub eax, 1
je 0x68acfe
sub eax, 1
je 0x68acf5
sub eax, 1
je 0x68acf1
sub eax, 1
je 0x68ace8
mov al, 1
jmp 0x68ada6
mov esi, 0xc0000000
push 2
jmp 0x68ad15
push 2
jmp 0x68ad10
mov esi, 0xc0000000
push 3
jmp 0x68ad15
mov esi, closesocket
jmp 0x68acfa
mov esi, 0xc0000000
push 4
jmp 0x68ad15
push 4
mov esi, 0x40000000
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
pop edi
mov al, byte [ebx + 4]
mov byte [ebp - 5], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x68ad25
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00700070
cmp byte [ebp - 5], 0
mov ecx, esp
push 0
mov edx, 0x40000080
mov eax, 0x60000080
cmovne eax, edx
push eax
push edi
push 0
push 7
push esi
push dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 5]
call fcn.0062618a
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x68ad96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x68ad8d
push str.Failed_to_open_file.
push esi
call fcn.0068b296
pop ecx
pop ecx
push esi
call fcn.0068aa1d
pop ecx
jmp 0x68ada6
push 0
push 1
push dword [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
xor al, al
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret
Function at 0x68b502
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push 0
push 4
push edi
push 0x68b4d9
push dword [ebp + 0x14]
push 0
call fcn.00735cc8
add esp, 0x18
test eax, eax
jne 0x68b52d
call fcn.00727de3
mov eax, dword [eax]
jmp 0x68b55c
push esi
push 5
lea esi, [edi + 4]
mov dword [edi], eax
push 0x68b3cb
push esi
call fcn.0068b351
add esp, 0xc
mov eax, dword [ebp + 0xc]
push dword [edi]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x84ba54]
pop esi
pop edi
pop ebp
ret

Function at 0x68b7e3
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + ecx*4]
neg ecx
je 0x68b820
push esi
mov esi, dword [ebp + 8]
mov edx, dword [esi]
imul eax, dword [edi + ecx*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
imul edx, eax, 5
sub edx, 0x19ab949c
mov dword [esi], edx
add ecx, 1
jne 0x68b7fa
pop esi
pop edi
pop ebp
ret

Function at 0x68b823
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
and eax, 3
sub eax, 1
je 0x68b850
sub eax, 1
je 0x68b847
sub eax, 1
jne 0x68b869
movzx ecx, byte [edx + 2]
shl ecx, 0x10
movzx eax, byte [edx + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [edx]
xor eax, ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul ecx, eax, 0x1b873593
mov eax, dword [ebp + 8]
xor dword [eax], ecx
pop ebp
ret
Function at 0x68ba8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 8]
lea edi, [ebp - 0x44]
push 0x10
pop ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0xc]
xor esi, esi
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x54], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
movzx ecx, byte [esi + 0x84b810]
mov edx, eax
xor edx, ebx
and edx, edi
xor edx, eax
movzx eax, byte [esi + 0x84b7d0]
add edx, dword [ebp + eax*4 - 0x44]
mov eax, ebx
add edx, dword [esi*4 + 0x84b850]
mov ebx, edi
add edx, dword [ebp - 0x50]
rol edx, cl
mov ecx, dword [ebp - 0x48]
add edx, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
mov edi, edx
cmp esi, 0x10
jb 0x68bac9
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
cmp esi, 0x20
jae 0x68bb57
mov ebx, dword [ebp - 0x4c]
movzx ecx, byte [esi + 0x84b810]
mov edx, ebx
xor edx, edi
and edx, eax
movzx eax, byte [esi + 0x84b7d0]
xor edx, ebx
add edx, dword [ebp + eax*4 - 0x44]
mov eax, ebx
add edx, dword [esi*4 + 0x84b850]
mov ebx, edi
add edx, dword [ebp - 0x50]
rol edx, cl
mov ecx, dword [ebp - 0x48]
add edx, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], eax
mov edi, edx
cmp esi, 0x20
jb 0x68bb14
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x48]
cmp esi, 0x30
jae 0x68bba3
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [esi + 0x84b7d0]
xor edx, ebx
movzx ecx, byte [esi + 0x84b810]
xor edx, edi
mov eax, dword [ebp + eax*4 - 0x44]
add eax, edx
mov edx, ebx
add eax, dword [esi*4 + 0x84b850]
mov ebx, edi
add eax, dword [ebp - 0x50]
rol eax, cl
mov ecx, dword [ebp - 0x48]
add eax, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
mov edi, eax
cmp esi, 0x30
jb 0x68bb62
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
cmp esi, 0x40
jae 0x68bbee
mov ebx, dword [ebp - 0x4c]
movzx eax, byte [esi + 0x84b7d0]
not edx
movzx ecx, byte [esi + 0x84b810]
or edx, edi
xor edx, ebx
mov eax, dword [ebp + eax*4 - 0x44]
add eax, edx
mov edx, ebx
add eax, dword [esi*4 + 0x84b850]
mov ebx, edi
add eax, dword [ebp - 0x50]
rol eax, cl
mov ecx, dword [ebp - 0x48]
add eax, edi
inc esi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x48], edx
mov edi, eax
cmp esi, 0x40
jb 0x68bbab
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x54]
add dword [ebx + 8], ecx
add dword [ebx + 0xc], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c]
xor ecx, ebp
add dword [ebx + 0x10], eax
add dword [ebx + 0x14], edx
pop edi
pop esi
pop ebx
call fcn.006fedff
leave
ret 4

Function at 0x68bd1c
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
ret
Function at 0x68bdc7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x68bde2
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00700070
mov eax, esp
lea ecx, [ebp - 5]
push edi
push eax
call fcn.0062618a
mov ebx, eax
mov esi, 0xb7
xor eax, eax
mov dword [ebp - 0xc], ebx
cmp byte [ebp + 0xc], al
je 0x68bed9
push edi
call fcn.00692ca6
push 2
test al, al
lea ecx, [ebx + 6]
push 0x7f8254
push edi
cmovne ebx, ecx
call fcn.004f5e49
xor edx, edx
add esp, 0x10
inc edx
test eax, eax
je 0x68be5c
push 2
push 0x7d27ac
push edi
call fcn.004f5e49
add esp, 0xc
xor edx, edx
test eax, eax
je 0x68be5b
xor eax, eax
inc edx
mov byte [ebp - 5], al
jmp 0x68be5f
inc edx
mov byte [ebp - 5], dl
movzx eax, word [ebx]
test ax, ax
je 0x68bed4
mov edi, dword [ebp - 0xc]
mov ecx, eax
push 0x2f
pop eax
cmp cx, ax
je 0x68be7c
push 0x5c
pop eax
cmp cx, ax
jne 0x68bec7
mov dword [ebp - 0x10], eax
xor eax, eax
cmp word [ebx + 2], ax
je 0x68bec7
test dl, dl
je 0x68be90
cmp byte [ebp - 5], al
jne 0x68bec5
xor eax, eax
push edi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x68bea5
test al, 0x10
jne 0x68bebd
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x68bebd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x68bf03
mov eax, dword [ebp - 0x10]
mov word [ebx], ax
xor eax, eax
mov dl, al
add ebx, 2
movzx eax, word [ebx]
mov ecx, eax
test ax, ax
jne 0x68be6c
mov ebx, dword [ebp - 0xc]
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x68bf0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x68bf10
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x68beff
test al, 0x10
jne 0x68bf0b
mov eax, esi
jmp 0x68bf10
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x68bf10
mov eax, dword [0x84ba54]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret

Function at 0x68bf22
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x68bf37
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00700070
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.0062618a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x68bf6e
test al, 0x10
je 0x68bf6e
mov al, 1
jmp 0x68bf70
xor al, al
lea esp, [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret
Function at 0x68bf7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [esi + esi]
call fcn.00700070
mov edi, esp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x68bfb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x68bff1
cmp eax, esi
ja 0x68bfe9
test esi, esi
je 0x68bfe9
xor eax, eax
push eax
push eax
push esi
push dword [ebp + 8]
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x68bfe9
push dword [ebp + 8]
push esi
push dword [ebp + 8]
call fcn.00692cd5
mov eax, dword [0x84ba54]
add esp, 0xc
jmp 0x68bff1
push 1
call fcn.00694ef8
pop ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret

Function at 0x68c08a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea edx, [ecx + 1]
or dword [esi + 0x250], 0xffffffff
mov byte [esi + 0x358], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x68c0b9
sub ecx, edx
lea eax, [ebp - 0x20c]
mov edi, 0x104
push edi
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x84b950
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00735d97
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x250], eax
mov byte [esi + 0x254], 0
cmp eax, 0xffffffff
jne 0x68c135
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
jne 0x68c149
push ebx
call fcn.0068bf22
pop ecx
test al, al
je 0x68c149
mov byte [esi + 0x358], 1
mov eax, dword [0x84ba54]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
mov eax, edi
jmp 0x68c13a

Function at 0x68c342
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x68c357
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00700070
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.0062618a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x68c38e
test al, 0x10
jne 0x68c38e
mov al, 1
jmp 0x68c390
xor al, al
lea esp, [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret
Function at 0x68c6f7
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x68c70d
sub ecx, edx
lea eax, [ecx*2 + 2]
call fcn.00700070
mov eax, esp
lea ecx, [ebp - 5]
push dword [ebp + 8]
push eax
call fcn.0062618a
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x68c767
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x68c75f
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x68c767
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x68c76c
mov eax, dword [0x84ba54]
lea esp, [ebp - 0xc]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006fedff
leave
ret

Function at 0x68c835
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.006ffc90
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x100c], esi
call fcn.0068c4a8
push esi
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], edx
call fcn.0068ac89
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, edx
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1008], ecx
cmp ebx, ecx
jb 0x68c954
ja 0x68c898
cmp edi, eax
jbe 0x68c954
push ecx
push eax
push esi
call fcn.0068c80b
add esp, 0xc
test eax, eax
jne 0x68c96f
sub edi, dword [ebp - 0x1010]
mov ecx, 0x1000
mov eax, ecx
sbb ebx, dword [ebp - 0x1008]
test ebx, ebx
ja 0x68c8ca
jb 0x68c8c8
cmp edi, ecx
jae 0x68c8ca
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.00718210
add esp, 0xc
jmp 0x68c91d
test ebx, ebx
jne 0x68c8ec
mov eax, edi
cmp edi, 0x1000
jb 0x68c8f1
mov eax, 0x1000
lea ecx, [ebp - 0x1008]
push ecx
push eax
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0068c979
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x68c929
sub edi, dword [ebp - 0x1008]
mov esi, dword [ebp - 0x100c]
sbb ebx, eax
mov eax, edi
or eax, ebx
jne 0x68c8de
mov esi, dword [0x84ba54]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
push dword [ebp - 0x100c]
call fcn.0068c80b
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006fedff
leave
ret
push ebx
push edi
push esi
call fcn.0068c80b
add esp, 0xc
test eax, eax
jne 0x68c96f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x68c923
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x68c929