joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ab73e
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], ebx
je 0x6ab85d
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x6ab85d
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x6ab790
call fcn.006ab2f2
mov eax, 0x80004005
jmp 0x6ab862
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push esi
call dword [eax + 0x18]
mov dword [ebp - 8], eax
push edi
and dword [ebp + 0xc], 0
push 0x18
pop edi
sub edi, ebx
mov eax, 0x400000
cmp edi, eax
jbe 0x6ab7db
mov edi, eax
push 0
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp + ebx - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x6ab851
cmp dword [ebp + 0xc], edi
jne 0x6ab856
add ebx, edi
cmp ebx, 0x18
jne 0x6ab7c7
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x1c]
push 0
push esi
call dword [eax + 0x28]
mov edi, eax
test edi, edi
jl 0x6ab837
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.006ab32d
mov edi, eax
test edi, edi
jl 0x6ab837
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x6ab84c
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov eax, edi
pop edi
jmp 0x6ab862
call fcn.006ab2f2
mov edi, 0x80004005
jmp 0x6ab837
mov eax, 0x8876086c
pop esi
pop ebx
leave
ret 8
Function at 0x6ac2a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x6ac431
cmp dword [ebp + 0xc], edi
je 0x6ac431
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x6ac2f7
call fcn.006ab2f2
mov eax, 0x80004005
jmp 0x6ac436
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x6ac30d
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6ac381
cmp dword [ebp + 8], 0
je 0x6ac386
cmp dword [ebp + 8], esi
jne 0x6ac386
add edi, esi
cmp edi, 0x18
jne 0x6ac2fe
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x6ac40e
cmp dword [ebp - 0x20], ebx
je 0x6ac40e
cmp dword [ebp - 0x1c], ebx
je 0x6ac40e
cmp dword [ebp - 0x10], ebx
je 0x6ac36a
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x6ac40e
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x6ac390
mov ecx, eax
call fcn.006ac195
mov esi, eax
jmp 0x6ac392
call fcn.006ab2f2
mov edi, 0x80004005
jmp 0x6ac413
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x6ac3a0
mov edi, 0x8007000e
jmp 0x6ac413
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x6ac3c9
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.006ac024
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x6ac3d3
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x6ac413
push dword [ebp - 0x24]
call fcn.006abef1
jmp 0x6ac3b8
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x6ac413
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.006ab391
mov edi, eax
test edi, edi
jl 0x6ac413
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x6ac413
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x6ac424
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x6ac436
mov eax, 0x8876086c
pop edi
leave
ret 8
Function at 0x6ac440
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
je 0x6ac5cc
cmp dword [ebp + 0xc], edi
je 0x6ac5cc
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x6ac492
call fcn.006ab2f2
mov eax, 0x80004005
jmp 0x6ac5d1
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x6ac4a8
mov esi, ebx
push 0
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp + edi - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6ac51c
cmp dword [ebp + 8], 0
je 0x6ac521
cmp dword [ebp + 8], esi
jne 0x6ac521
add edi, esi
cmp edi, 0x18
jne 0x6ac499
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x6ac5a9
cmp dword [ebp - 0x20], ebx
je 0x6ac5a9
cmp dword [ebp - 0x1c], ebx
je 0x6ac5a9
cmp dword [ebp - 0x10], ebx
je 0x6ac505
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x6ac5a9
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x6ac52b
mov ecx, eax
call fcn.006ac195
mov esi, eax
jmp 0x6ac52d
call fcn.006ab2f2
mov edi, 0x80004005
jmp 0x6ac5ae
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x6ac53b
mov edi, 0x8007000e
jmp 0x6ac5ae
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x6ac564
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.006ac024
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x6ac56e
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x6ac5ae
push dword [ebp - 0x24]
call fcn.006abef1
jmp 0x6ac553
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 0x24]
push ebx
push esi
call dword [eax + 0x28]
mov edi, eax
cmp edi, ebx
jl 0x6ac5ae
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x24]
shl eax, 2
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.006ab391
mov edi, eax
test edi, edi
jl 0x6ac5ae
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x6ac5ae
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x6ac5bf
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x6ac5d1
mov eax, 0x8876086c
pop edi
leave
ret 8

Function at 0x6d84ac
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push dword [ecx + 0x30]
mov dword [ebp - 0x24], 0x20666f78
mov dword [ebp - 0x20], 0x34303330
mov dword [ebp - 0x1c], 0x206e6962
mov dword [ebp - 0x18], 0x32333030
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
leave
ret
Function at 0x6d8ae2
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x6d8b13
mov eax, 0x88760389
jmp 0x6d8bf2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x6d8b34
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x6d8bf2
push ebx
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x6d8b5d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x6d8bf1
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x6d8b87
mov ebx, 0x8876038f
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
jmp 0x6d8bf1
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x6d8ba6
push dword [ebp - 8]
mov ecx, eax
push dword [ebp + 8]
push ebx
push edi
call fcn.006dd8e9
mov ebx, eax
jmp 0x6d8ba8
xor ebx, ebx
cmp ebx, esi
jne 0x6d8bbc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x8007000e
jmp 0x6d8b75
push 0x30
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x6d8bd5
push ebx
push dword [ebp + 0xc]
mov ecx, eax
call fcn.006d8815
jmp 0x6d8bd7
xor eax, eax
cmp eax, esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x6d8bef
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, 0x8007000e
jmp 0x6d8bf1
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x6d8bfd
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], ebx
call fcn.0054c7a0
test eax, eax
jne 0x6d8c5f
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call sub.msvcrt.dll_wcstombs
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 5], 0
call fcn.006d8ae2
jmp 0x6d8d6c
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x6d8c85
mov eax, 0x88760389
jmp 0x6d8d6c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x110], eax
jne 0x6d8ca9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x6d8d6c
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x11c], ebx
je 0x6d8c98
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x10c], eax
jne 0x6d8cf3
mov ebx, 0x8876038f
push dword [ebp - 0x11c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov eax, ebx
jmp 0x6d8d6c
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x6d8d18
push dword [ebp - 0x110]
mov ecx, eax
push dword [ebp - 0x10c]
push ebx
push edi
call fcn.006dd8e9
mov ebx, eax
jmp 0x6d8d1a
xor ebx, ebx
cmp ebx, esi
jne 0x6d8d31
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x8007000e
jmp 0x6d8cde
push 0x30
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x6d8d4d
push ebx
push dword [ebp - 0x118]
mov ecx, eax
call fcn.006d8815
jmp 0x6d8d4f
xor eax, eax
cmp eax, esi
mov ecx, dword [ebp - 0x114]
mov dword [ecx], eax
jne 0x6d8d6a
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, 0x8007000e
jmp 0x6d8d6c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0074f205
leave
ret 0xc
Function at 0x6d9a65
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
push edi
xor edi, edi
cmp eax, edi
je 0x6d9c05
cmp dword [eax], edi
je 0x6d9c05
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x6d9c05
cmp dword [eax], edi
je 0x6d9c05
mov eax, dword [esi + 0x40]
sub eax, edi
je 0x6d9ac7
dec eax
jne 0x6d9ace
push dword [esi + 0x58]
call fcn.006d96a1
push 0x420d14
mov ecx, esi
call fcn.006d840f
jmp 0x6d9ace
push 0x37
call fcn.006d8488
push 1
push edi
push edi
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebp - 0x8c], eax
jne 0x6d9af0
mov eax, 0x8876038f
jmp 0x6d9c07
mov eax, dword [esi + 0x50]
cmp dword [eax], edi
mov dword [ebp - 0x88], edi
jbe 0x6d9c05
mov eax, dword [esi + 0x54]
mov ebx, dword [ebp - 0x88]
mov eax, dword [eax + 0xc]
push edi
shl ebx, 2
push edi
add eax, ebx
push dword [eax]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d9ae6
push dword [ebp - 0x8c]
mov ecx, esi
call fcn.006dc2b9
push edi
mov ecx, esi
call fcn.006dc2b9
push edi
push edi
push dword [ebp - 0x8c]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x6d9ae6
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push edi
push 0x8000080
push 3
push edi
push edi
add eax, ebx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x94], eax
je 0x6d9ae6
push edi
lea ecx, [ebp - 0x90]
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
xor ebx, ebx
push eax
jmp 0x6d9bd2
cmp dword [ebp - 0x90], edi
je 0x6d9bdc
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
mov ecx, esi
call fcn.006d8465
add ebx, dword [ebp - 0x90]
push edi
lea eax, [ebp - 0x90]
push eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6d9b96
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [ebp - 0x8c], ebx
inc dword [ebp - 0x88]
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp - 0x88]
cmp ecx, dword [eax]
jb 0x6d9b01
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0074f205
leave
ret
Function at 0x6da0b3
Capabilities:
Delete file

Disassembly:
mov edi, edi
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ecx
push dword [esi + 0x30]
mov dword [esi], 0x420d3c
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x6da0da
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x6da0f0
test al, al
js 0x6da0fd
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x6da0fd
test al, al
js 0x6da0fd
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0xc]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x20]
call fcn.006d91d7
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.006d87e3
Function at 0x6dade3
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x420c8c
call fcn.006d9a65
lea ecx, [esi + 0x30]
call fcn.006dbed4
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x48]
xor ebx, ebx
inc ebx
test ecx, ecx
je 0x6dae15
push ebx
call fcn.006d95de
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x6dae22
push ebx
call fcn.006d95de
mov eax, dword [esi + 0x50]
test eax, eax
je 0x6dae64
push edi
xor edi, edi
cmp dword [eax], edi
jbe 0x6dae56
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call sub.msvcrt.dll_free
mov eax, dword [esi + 0x50]
inc edi
cmp edi, dword [eax]
pop ecx
jb 0x6dae30
mov ecx, dword [esi + 0x50]
test ecx, ecx
pop edi
je 0x6dae64
push ebx
call fcn.006d95de
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x6dae71
push ebx
call fcn.006d95de
cmp byte [esi + 0x5c], 0
je 0x6dae86
cmp dword [esi + 0x44], ebx
jne 0x6dae93
push dword [esi + 0x2c]
call fcn.006dd386
jmp 0x6dae93
cmp dword [esi + 0x44], ebx
jne 0x6dae93
push dword [esi + 0x2c]
call fcn.006dd22e
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
call fcn.006dbfa7
lea ecx, [esi + 0x1c]
call fcn.006de71c
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.006d87e3

Function at 0x6dade6
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x420c8c
call fcn.006d9a65
lea ecx, [esi + 0x30]
call fcn.006dbed4
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 0x48]
xor ebx, ebx
inc ebx
test ecx, ecx
je 0x6dae15
push ebx
call fcn.006d95de
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x6dae22
push ebx
call fcn.006d95de
mov eax, dword [esi + 0x50]
test eax, eax
je 0x6dae64
push edi
xor edi, edi
cmp dword [eax], edi
jbe 0x6dae56
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push dword [eax + edi*4]
call sub.msvcrt.dll_free
mov eax, dword [esi + 0x50]
inc edi
cmp edi, dword [eax]
pop ecx
jb 0x6dae30
mov ecx, dword [esi + 0x50]
test ecx, ecx
pop edi
je 0x6dae64
push ebx
call fcn.006d95de
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x6dae71
push ebx
call fcn.006d95de
cmp byte [esi + 0x5c], 0
je 0x6dae86
cmp dword [esi + 0x44], ebx
jne 0x6dae93
push dword [esi + 0x2c]
call fcn.006dd386
jmp 0x6dae93
cmp dword [esi + 0x44], ebx
jne 0x6dae93
push dword [esi + 0x2c]
call fcn.006dd22e
push dword [esi + 0x2c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [esi + 8]
pop ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esi + 0x30]
call fcn.006dbfa7
lea ecx, [esi + 0x1c]
call fcn.006de71c
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.006d87e3
Function at 0x6daec4
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x6daecf
push ebx
push esi
sub eax, edx
lea esi, [eax + 1]
push edi
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
jne 0x6daef7
mov eax, 0x8007000e
jmp 0x6dafa6
push esi
push dword [ebp + 0xc]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6daf33
mov esi, 0x8876038f
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x6dafa6
push 0x60
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x6daf5e
mov edx, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 1
and ecx, 1
push ecx
and edx, 1
push edx
push ebx
push edi
push dword [ebp + 8]
mov ecx, eax
call fcn.006d9546
mov esi, eax
jmp 0x6daf60
xor esi, esi
test esi, esi
jne 0x6daf7b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x8007000e
jmp 0x6daf28
mov ecx, esi
call fcn.006d9753
test eax, eax
je 0x6daf9f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x8876038f
jmp 0x6dafa6
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x6dafb2
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x773b90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x114], ebx
call fcn.0054c7a0
test eax, eax
jne 0x6db01d
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll_wcstombs
add esp, 0xc
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push edi
mov byte [ebp - 5], 0
call fcn.006daec4
jmp 0x6db120
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x6db022
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor ebx, ebx
cmp edi, ebx
pop ecx
jne 0x6db05c
mov eax, 0x8007000e
jmp 0x6db120
lea eax, [esi + esi]
push eax
push dword [ebp - 0x10c]
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6db0a1
mov esi, 0x8876038f
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x6db120
push 0x60
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x6db0cf
mov edx, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 1
and ecx, 1
push ecx
and edx, 1
push edx
push ebx
push edi
push dword [ebp - 0x110]
mov ecx, eax
call fcn.006d9608
mov esi, eax
jmp 0x6db0d1
xor esi, esi
test esi, esi
jne 0x6db0ef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x8007000e
jmp 0x6db096
mov ecx, esi
call fcn.006d9753
test eax, eax
je 0x6db116
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0x8876038f
jmp 0x6db120
mov eax, dword [ebp - 0x114]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0074f205
leave
ret 0x10
Function at 0x6dba73
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x6dbaa8
mov eax, 0x88760389
jmp 0x6dbb99
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x6dbacc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x6dbb99
cmp dword [ebp - 8], edi
jg 0x6dbad8
jl 0x6dbabb
cmp eax, 0x20
jb 0x6dbabb
push ebx
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6dbafe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x6dbb98
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x6dbb28
mov edi, 0x8876038f
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x6dbb98
push 0x54
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x6dbb4a
push dword [ebp - 0xc]
mov ecx, eax
push dword [ebp + 8]
push ebx
push esi
push dword [ebp + 0xc]
call fcn.006da736
mov esi, eax
jmp 0x6dbb4c
xor esi, esi
cmp esi, edi
jne 0x6dbb60
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x8007000e
jmp 0x6dbb16
mov ecx, esi
call fcn.006da90a
mov ebx, eax
cmp ebx, edi
jl 0x6dbb87
mov ecx, esi
call fcn.006db8e1
mov ebx, eax
cmp ebx, edi
jl 0x6dbb87
mov ecx, esi
call fcn.006db459
mov ebx, eax
cmp ebx, edi
jge 0x6dbb91
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
jmp 0x6dbb98
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc