joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c43a8
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 0x5c4534
cmp dword [ebp + 0xc], edi
je 0x5c4534
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 0x5c43fa
call fcn.005c326e
mov eax, 0x80004005
jmp 0x5c4539
push ebx
push esi
mov ebx, 0x400000
and dword [ebp + 8], 0
push 0x18
pop esi
sub esi, edi
cmp esi, ebx
jbe 0x5c4410
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 0x5c4484
cmp dword [ebp + 8], 0
je 0x5c4489
cmp dword [ebp + 8], esi
jne 0x5c4489
add edi, esi
cmp edi, 0x18
jne 0x5c4401
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
je 0x5c4511
cmp dword [ebp - 0x20], ebx
je 0x5c4511
cmp dword [ebp - 0x1c], ebx
je 0x5c4511
cmp dword [ebp - 0x10], ebx
je 0x5c446d
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x5c4511
push 0x2c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x5c4493
mov ecx, eax
call fcn.005c40fd
mov esi, eax
jmp 0x5c4495
call fcn.005c326e
mov edi, 0x80004005
jmp 0x5c4516
xor esi, esi
cmp esi, ebx
mov dword [ebp - 0xc], esi
jne 0x5c44a3
mov edi, 0x8007000e
jmp 0x5c4516
cmp dword [ebp - 0x10], ebx
push dword [ebp - 0x1c]
mov ecx, esi
push dword [ebp - 0x20]
je 0x5c44cc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.005c3f8c
mov edi, eax
cmp edi, ebx
mov eax, dword [esi]
jge 0x5c44d6
push 1
mov ecx, esi
call dword [eax + 0x4c]
jmp 0x5c4516
push dword [ebp - 0x24]
call fcn.005c3e59
jmp 0x5c44bb
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 0x5c4516
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.005c330d
mov edi, eax
test edi, edi
jl 0x5c4516
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor edi, edi
jmp 0x5c4516
mov edi, 0x8876086c
cmp dword [ebp - 4], 0
pop esi
pop ebx
je 0x5c4527
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 0x5c4539
mov eax, 0x8876086c
pop edi
leave
ret 8

Function at 0x5f03e8
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 0x5f09d0
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 0x5f0a01
mov eax, 0x88760389
jmp 0x5f0ae0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x5f0a22
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x5f0ae0
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 0x5f0a4b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x5f0adf
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 0x5f0a75
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 0x5f0adf
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5f0a94
push dword [ebp - 8]
mov ecx, eax
push dword [ebp + 8]
push ebx
push edi
call fcn.005f57b3
mov ebx, eax
jmp 0x5f0a96
xor ebx, ebx
cmp ebx, esi
jne 0x5f0aaa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x8007000e
jmp 0x5f0a63
push 0x30
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5f0ac3
push ebx
push dword [ebp + 0xc]
mov ecx, eax
call fcn.005f0703
jmp 0x5f0ac5
xor eax, eax
cmp eax, esi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x5f0add
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, 0x8007000e
jmp 0x5f0adf
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x5f0aeb
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x73cb90]
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.00465e4d
test eax, eax
jne 0x5f0b4d
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.005f09d0
jmp 0x5f0c5a
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 0x5f0b73
mov eax, 0x88760389
jmp 0x5f0c5a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x110], eax
jne 0x5f0b97
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x5f0c5a
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 0x5f0b86
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 0x5f0be1
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 0x5f0c5a
push 0x24
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5f0c06
push dword [ebp - 0x110]
mov ecx, eax
push dword [ebp - 0x10c]
push ebx
push edi
call fcn.005f57b3
mov ebx, eax
jmp 0x5f0c08
xor ebx, ebx
cmp ebx, esi
jne 0x5f0c1f
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ebx, 0x8007000e
jmp 0x5f0bcc
push 0x30
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x5f0c3b
push ebx
push dword [ebp - 0x118]
mov ecx, eax
call fcn.005f0703
jmp 0x5f0c3d
xor eax, eax
cmp eax, esi
mov ecx, dword [ebp - 0x114]
mov dword [ecx], eax
jne 0x5f0c58
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
mov eax, 0x8007000e
jmp 0x5f0c5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00666f65
leave
ret 0xc
Function at 0x5f1953
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x73cb90]
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 0x5f1af3
cmp dword [eax], edi
je 0x5f1af3
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x5f1af3
cmp dword [eax], edi
je 0x5f1af3
mov eax, dword [esi + 0x40]
sub eax, edi
je 0x5f19b5
dec eax
jne 0x5f19bc
push dword [esi + 0x58]
call fcn.005f158f
push 0x424f8c
mov ecx, esi
call fcn.005f0327
jmp 0x5f19bc
push 0x37
call fcn.005f03a0
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 0x5f19de
mov eax, 0x8876038f
jmp 0x5f1af5
mov eax, dword [esi + 0x50]
cmp dword [eax], edi
mov dword [ebp - 0x88], edi
jbe 0x5f1af3
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 0x5f19d4
push dword [ebp - 0x8c]
mov ecx, esi
call fcn.005f03c4
push edi
mov ecx, esi
call fcn.005f03c4
push edi
push edi
push dword [ebp - 0x8c]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5f19d4
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 0x5f19d4
push edi
lea ecx, [ebp - 0x90]
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
xor ebx, ebx
push eax
jmp 0x5f1ac0
cmp dword [ebp - 0x90], edi
je 0x5f1aca
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
mov ecx, esi
call fcn.005f037d
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 0x5f1a84
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 0x5f19ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00666f65
leave
ret
Function at 0x5f1fa1
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], 0x424fb4
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x5f1fc8
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x5f1fde
test al, al
js 0x5f1feb
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5f1feb
test al, al
js 0x5f1feb
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.005f10c5
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.005f06d1
Function at 0x5f2cd1
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x424f04
call fcn.005f1953
lea ecx, [esi + 0x30]
call fcn.005f3dc2
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 0x5f2d03
push ebx
call fcn.005f14cc
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x5f2d10
push ebx
call fcn.005f14cc
mov eax, dword [esi + 0x50]
test eax, eax
je 0x5f2d52
push edi
xor edi, edi
cmp dword [eax], edi
jbe 0x5f2d44
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 0x5f2d1e
mov ecx, dword [esi + 0x50]
test ecx, ecx
pop edi
je 0x5f2d52
push ebx
call fcn.005f14cc
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x5f2d5f
push ebx
call fcn.005f14cc
cmp byte [esi + 0x5c], 0
je 0x5f2d74
cmp dword [esi + 0x44], ebx
jne 0x5f2d81
push dword [esi + 0x2c]
call fcn.005f5250
jmp 0x5f2d81
cmp dword [esi + 0x44], ebx
jne 0x5f2d81
push dword [esi + 0x2c]
call fcn.005f50f8
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.005f3e95
lea ecx, [esi + 0x1c]
call fcn.005f659f
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.005f06d1

Function at 0x5f2db2
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 0x5f2dbd
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 0x5f2de5
mov eax, 0x8007000e
jmp 0x5f2e94
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 0x5f2e21
mov esi, 0x8876038f
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x5f2e94
push 0x60
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x5f2e4c
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.005f1434
mov esi, eax
jmp 0x5f2e4e
xor esi, esi
test esi, esi
jne 0x5f2e69
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x8007000e
jmp 0x5f2e16
mov ecx, esi
call fcn.005f1641
test eax, eax
je 0x5f2e8d
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 0x5f2e94
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x5f2ea0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x73cb90]
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.00465e4d
test eax, eax
jne 0x5f2f0b
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.005f2db2
jmp 0x5f300e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x5f2f10
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 0x5f2f4a
mov eax, 0x8007000e
jmp 0x5f300e
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 0x5f2f8f
mov esi, 0x8876038f
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x5f300e
push 0x60
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x5f2fbd
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.005f14f6
mov esi, eax
jmp 0x5f2fbf
xor esi, esi
test esi, esi
jne 0x5f2fdd
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x8007000e
jmp 0x5f2f84
mov ecx, esi
call fcn.005f1641
test eax, eax
je 0x5f3004
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 0x5f300e
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.00666f65
leave
ret 0x10
Function at 0x5f3961
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 0x5f3996
mov eax, 0x88760389
jmp 0x5f3a87
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x5f39ba
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x5f3a87
cmp dword [ebp - 8], edi
jg 0x5f39c6
jl 0x5f39a9
cmp eax, 0x20
jb 0x5f39a9
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 0x5f39ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x5f3a86
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 0x5f3a16
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 0x5f3a86
push 0x54
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x5f3a38
push dword [ebp - 0xc]
mov ecx, eax
push dword [ebp + 8]
push ebx
push esi
push dword [ebp + 0xc]
call fcn.005f2624
mov esi, eax
jmp 0x5f3a3a
xor esi, esi
cmp esi, edi
jne 0x5f3a4e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x8007000e
jmp 0x5f3a04
mov ecx, esi
call fcn.005f27f8
mov ebx, eax
cmp ebx, edi
jl 0x5f3a75
mov ecx, esi
call fcn.005f37cf
mov ebx, eax
cmp ebx, edi
jl 0x5f3a75
mov ecx, esi
call fcn.005f3347
mov ebx, eax
cmp ebx, edi
jge 0x5f3a7f
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
jmp 0x5f3a86
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x5f3a92
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x11c], ebx
call fcn.00465e4d
test eax, eax
jne 0x5f3af4
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.msvcrt.dll_wcstombs
add esp, 0xc
push ebx
push edi
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 5], 0
call fcn.005f3961
jmp 0x5f3c1c
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5f3b1a
mov eax, 0x88760389
jmp 0x5f3c1c
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x118], eax
jne 0x5f3b44
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8876038f
jmp 0x5f3c1c
cmp dword [ebp - 0x114], edi
jg 0x5f3b53
jl 0x5f3b33
cmp eax, 0x20
jb 0x5f3b33
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x120], esi
je 0x5f3b33
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0x10c], eax
jne 0x5f3b9d
mov edi, 0x8876038f
push dword [ebp - 0x120]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov eax, edi
jmp 0x5f3c1c
push 0x54
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x5f3bc8
push dword [ebp - 0x118]
mov ecx, eax
push dword [ebp - 0x10c]
push esi
push ebx
push dword [ebp - 0x110]
call fcn.005f2624
mov esi, eax
jmp 0x5f3bca
xor esi, esi
cmp esi, edi
jne 0x5f3be1
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, 0x8007000e
jmp 0x5f3b88
mov ecx, esi
call fcn.005f27f8
mov ebx, eax
cmp ebx, edi
jge 0x5f3bf8
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
jmp 0x5f3c1c
mov ecx, esi
call fcn.005f37cf
mov ebx, eax
cmp ebx, edi
jl 0x5f3bee
mov ecx, esi
call fcn.005f3347
mov ebx, eax
cmp ebx, edi
jl 0x5f3bee
mov eax, dword [ebp - 0x11c]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00666f65
leave
ret 0xc

Function at 0x5f3dc2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x5f3e04
cmp dword [esi], 0
je 0x5f3e04
mov ebx, eax
jmp 0x5f3dfa
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 8]
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5f3e04
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [esi + 8], eax
cmp dword [esi + 8], 0
jg 0x5f3ddc
xor eax, eax
jmp 0x5f3e09
mov eax, 0x80004005
pop esi
pop ebx
leave
ret
Function at 0x5f4f60
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], eax
jl 0x5f4faf
jg 0x5f4fa7
cmp eax, 0xffffffff
jbe 0x5f4faf
push 0xe
pop eax
jmp 0x5f50d8
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5f4fd3
mov eax, 0x8876038f
jmp 0x5f50d8
cmp dword [ebp - 0x18], 0x10
jne 0x5f4fa7
push edi
mov esi, 0x425054
lea edi, [ebp - 0xb]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x5f50d2
push edi
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x5f50d2
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x8000
push edi
push dword [ebp - 0x30]
jmp 0x5f50c1
cmp dword [ebp - 0x18], 0
je 0x5f50e8
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push 0x8008
push dword [ebx + 0x10]
push dword [ebp - 0x18]
push dword [ebx + 0xc]
push dword [ebx]
call fcn.005fb547
test eax, eax
jne 0x5f50ec
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x5f50d2
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x5f50d2
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
push dword [ebx + 0x10]
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x5f50d2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x5f50ec
mov eax, dword [ebx + 0xc]
push 0
lea ecx, [ebp - 0x18]
push ecx
add eax, edi
push edi
mov byte [ebp - 0x28], 1
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5f5030
mov eax, 0x8876038f
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00666f65
leave
ret 8
xor eax, eax
jmp 0x5f50d7
mov eax, 0x8007000e
jmp 0x5f50d7