joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a5da2
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x625894]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x110], esi
mov dword [ebp - 0x114], edi
call fcn.0042a1fb
test eax, eax
jne 0x5a5e05
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.msvcrt.dll_wcstombs
add esp, 0xc
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
push esi
mov byte [ebp - 5], 0
call fcn.005a5cac
jmp 0x5a5eed
push ebx
call sub.msvcrt.dll_wcslen
inc eax
lea esi, [eax + eax]
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
xor eax, eax
cmp edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x10c], edi
jne 0x5a5e2f
mov eax, 0x8007000e
jmp 0x5a5eed
mov ecx, esi
mov edx, ecx
shr ecx, 2
push eax
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x8000080
push 2
push eax
push eax
mov ecx, edx
push 0x40000000
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5a5e65
mov esi, 0x8876038f
jmp 0x5a5eb1
push 0x60
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x5a5e98
mov edx, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 1
and ecx, 1
push ecx
and edx, 1
push edx
push edi
push dword [ebp - 0x10c]
mov ecx, eax
push dword [ebp - 0x110]
call fcn.005a487b
mov esi, eax
jmp 0x5a5e9a
xor esi, esi
test esi, esi
jne 0x5a5ec1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x8007000e
push dword [ebp - 0x10c]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x5a5eed
mov ecx, esi
call fcn.005a49c6
test eax, eax
je 0x5a5ee3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 0x8876038f
jmp 0x5a5eed
mov eax, dword [ebp - 0x114]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.006056c0
leave
ret 0x10

Function at 0x5a5fa9
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], 0x423910
call edi
push dword [esi + 0x34]
call edi
mov eax, dword [esi + 0x38]
cmp eax, 0xffffffff
je 0x5a5fd0
push eax
call edi
mov al, byte [esi + 0x48]
test al, 0x40
je 0x5a5fe6
test al, al
js 0x5a5ff3
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5a5ff3
test al, al
js 0x5a5ff3
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.005a44db
pop edi
lea ecx, [esi + 0x10]
pop esi
jmp fcn.005a3b24
Function at 0x5a659e
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x423874
call fcn.005a66a7
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.005a70a9
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x5a65da
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x4c]
test edi, edi
je 0x5a65f1
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x50]
xor edi, edi
cmp eax, edi
je 0x5a663b
cmp dword [eax], edi
jbe 0x5a6624
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 0x5a65fe
mov edi, dword [esi + 0x50]
test edi, edi
je 0x5a663b
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov edi, dword [esi + 0x54]
test edi, edi
je 0x5a6652
push dword [edi + 0xc]
call sub.msvcrt.dll_free
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
cmp byte [esi + 0x5c], 0
je 0x5a6668
cmp dword [esi + 0x44], 1
jne 0x5a6676
push dword [esi + 0x2c]
call fcn.005a8578
jmp 0x5a6676
cmp dword [esi + 0x44], 1
jne 0x5a6676
push dword [esi + 0x2c]
call fcn.005a8424
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]
mov ecx, ebx
call fcn.005a7185
lea ecx, [esi + 0x1c]
call fcn.005a9913
pop edi
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.005a3b24
Function at 0x5a66a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x625894]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x50]
push edi
xor edi, edi
cmp eax, edi
je 0x5a6847
cmp dword [eax], edi
je 0x5a6847
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x5a6847
cmp dword [eax], edi
je 0x5a6847
mov eax, dword [esi + 0x40]
sub eax, edi
je 0x5a6707
dec eax
jne 0x5a6710
push dword [esi + 0x58]
call fcn.005a4914
push 0x423998
mov ecx, esi
call fcn.005a3792
jmp 0x5a6710
push 0x37
mov ecx, esi
call fcn.005a380b
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
je 0x5a6856
mov eax, dword [esi + 0x50]
cmp dword [eax], edi
mov dword [ebp - 0x88], edi
jbe 0x5a6847
mov eax, dword [esi + 0x54]
mov ebx, dword [ebp - 0x88]
mov eax, dword [eax + 0xc]
push edi
push edi
shl ebx, 2
push dword [eax + ebx]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5a6856
push dword [ebp - 0x8c]
mov ecx, esi
call fcn.005a74a2
push edi
mov ecx, esi
call fcn.005a74a2
push edi
push edi
push dword [ebp - 0x8c]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5a6856
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 0xc]
push edi
push 0x8000080
push 3
push edi
push edi
push 0x80000000
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x94], eax
je 0x5a6856
push edi
lea ecx, [ebp - 0x90]
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
xor ebx, ebx
push eax
jmp 0x5a6814
cmp dword [ebp - 0x90], edi
je 0x5a681e
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
mov ecx, esi
call fcn.005a37e8
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 0x5a67d8
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 0x5a673d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.006056c0
leave
ret
mov eax, 0x8876038f
jmp 0x5a6849
Function at 0x5a6c79
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 0x5a6cae
mov eax, 0x88760389
jmp 0x5a6d88
push ebx
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x5a6cc9
mov esi, 0x8876038f
jmp 0x5a6d42
cmp dword [ebp - 8], edi
jg 0x5a6cd5
jl 0x5a6cc2
cmp eax, 0x20
jb 0x5a6cc2
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
je 0x5a6cc2
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 0x5a6d03
mov esi, 0x8876038f
jmp 0x5a6d3b
push 0x54
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x5a6d27
push dword [ebp - 0xc]
mov ecx, eax
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.005a56bc
mov esi, eax
jmp 0x5a6d29
xor esi, esi
cmp esi, edi
jne 0x5a6d4f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, 0x8007000e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5a6d87
mov ecx, esi
call fcn.005a5822
mov ebx, eax
cmp ebx, edi
jge 0x5a6d66
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
jmp 0x5a6d87
mov ecx, esi
call fcn.005a6aec
mov ebx, eax
cmp ebx, edi
jl 0x5a6d5c
mov ecx, esi
call fcn.005a6334
mov ebx, eax
cmp ebx, edi
jl 0x5a6d5c
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x5a6d93
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x625894]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x120], ebx
call fcn.0042a1fb
test eax, eax
jne 0x5a6df3
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.005a6c79
jmp 0x5a6f1b
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 esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x10c], esi
jne 0x5a6e1f
mov eax, 0x88760389
jmp 0x5a6f1b
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x11c], eax
jne 0x5a6e42
mov esi, 0x8876038f
jmp 0x5a6ed0
cmp dword [ebp - 0x118], edi
jg 0x5a6e51
jl 0x5a6e38
cmp eax, 0x20
jb 0x5a6e38
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
je 0x5a6e38
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp - 0x110], eax
jne 0x5a6e82
mov esi, 0x8876038f
jmp 0x5a6ec9
push 0x54
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x5a6eb2
push dword [ebp - 0x11c]
mov ecx, eax
push dword [ebp - 0x110]
push ebx
push dword [ebp - 0x10c]
push dword [ebp - 0x114]
call fcn.005a56bc
mov esi, eax
jmp 0x5a6eb4
xor esi, esi
cmp esi, edi
jne 0x5a6ee0
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, 0x8007000e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5a6f1b
mov ecx, esi
call fcn.005a5822
mov ebx, eax
cmp ebx, edi
jl 0x5a6f07
mov ecx, esi
call fcn.005a6aec
mov ebx, eax
cmp ebx, edi
jl 0x5a6f07
mov ecx, esi
call fcn.005a6334
mov ebx, eax
cmp ebx, edi
jge 0x5a6f11
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
jmp 0x5a6f1b
mov eax, dword [ebp - 0x120]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.006056c0
leave
ret 0xc

Function at 0x5a70a9
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 0x5a70eb
cmp dword [esi], 0
je 0x5a70eb
mov ebx, eax
jmp 0x5a70e1
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 0x5a70eb
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [esi + 8], eax
cmp dword [esi + 8], 0
jg 0x5a70c3
xor eax, eax
jmp 0x5a70f0
mov eax, 0x80004005
pop esi
pop ebx
leave
ret
Function at 0x5a8290
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 [0x625894]
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 0x5a82d5
jg 0x5a82ff
cmp eax, 0xffffffff
ja 0x5a82ff
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 0x5a82f9
mov eax, 0x8876038f
jmp 0x5a8406
cmp dword [ebp - 0x18], 0x10
je 0x5a8307
push 0xe
pop eax
jmp 0x5a8406
push edi
mov esi, 0x4239bc
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 0x5a8400
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 0x5a8400
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x8000
push edi
push dword [ebp - 0x30]
jmp 0x5a83ef
cmp dword [ebp - 0x18], 0
je 0x5a8414
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.005ae974
test eax, eax
jne 0x5a8418
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 0x5a8400
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 0x5a8400
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 0x5a8400
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x5a8418
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 0x5a835e
mov eax, 0x8876038f
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.006056c0
leave
ret 8
xor eax, eax
jmp 0x5a8405
mov eax, 0x8007000e
jmp 0x5a8405
Function at 0x5a8424
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x625894]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x108]
push eax
xor edi, edi
push edi
push 0x4239c0
push 0x407f14
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5a846a
mov eax, 0x88760387
jmp 0x5a8565
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x114], eax
jne 0x5a849e
mov eax, 0x8876038f
jmp 0x5a8564
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a84c6
mov dword [ebp - 0x10c], 0x8876038f
jmp 0x5a8512
lea ecx, [ebp - 0x138]
call fcn.005a8122
lea ecx, [ebp - 0x138]
call fcn.005a81d3
test eax, eax
jne 0x5a84ec
mov dword [ebp - 0x10c], 0x8007000e
jmp 0x5a8504
push dword [ebp - 0x114]
lea ecx, [ebp - 0x138]
push esi
call fcn.005a8290
mov dword [ebp - 0x10c], eax
push esi
call ebx
lea ecx, [ebp - 0x138]
call fcn.005a8146
push dword [ebp - 0x114]
call ebx
cmp dword [ebp - 0x10c], edi
jge 0x5a8531
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x5a855e
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x5a855e
mov dword [ebp - 0x10c], 0x8876038f
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.006056c0
leave
ret 4
Function at 0x5a8578
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x625894]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
push 0x4239c8
push 0x4239c4
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x5a85be
mov eax, 0x88760387
jmp 0x5a86b9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
jne 0x5a85f2
mov eax, 0x8876038f
jmp 0x5a86b8
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5a861a
mov dword [ebp - 0x210], 0x8876038f
jmp 0x5a8666
lea ecx, [ebp - 0x23c]
call fcn.005a8122
lea ecx, [ebp - 0x23c]
call fcn.005a81d3
test eax, eax
jne 0x5a8640
mov dword [ebp - 0x210], 0x8007000e
jmp 0x5a8658
push dword [ebp - 0x218]
lea ecx, [ebp - 0x23c]
push esi
call fcn.005a8290
mov dword [ebp - 0x210], eax
push esi
call ebx
lea ecx, [ebp - 0x23c]
call fcn.005a8146
push dword [ebp - 0x218]
call ebx
cmp dword [ebp - 0x210], edi
jge 0x5a8685
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5a86b2
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x5a86b2
mov dword [ebp - 0x210], 0x8876038f
mov eax, dword [ebp - 0x210]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.006056c0
leave
ret 4

Function at 0x5aa66a
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0x423bd4
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [ebp + 8]
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], eax
je 0x5aa6b9
push ebx
push 0x423bbc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x5aa6ab
push esi
call ebx
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, edi
pop ebx
jne 0x5aa70c
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x5aafd5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.005a777a
mov ecx, dword [esi]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ecx
jne 0x5ab007
mov eax, 0x80004005
jmp 0x5ab11d
mov ecx, eax
mov dword [ebp + 8], ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x5ab00f
push ebx
sub ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp + 8]
push edx
inc ecx
push ecx
push eax
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x5ab039
mov eax, 0x8007000e
jmp 0x5ab11d
mov eax, dword [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5ab03f
push ebx
sub eax, ecx
lea ecx, [ebp + 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5ab02f
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x5ab0fe
cmp dword [ecx], ebx
mov dword [ebp - 4], ebx
jbe 0x5ab0fe
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
cmp dword [eax], ebx
mov dword [ebp - 0xc], eax
je 0x5ab0a2
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x4082ea
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5ab02f
push ebx
lea eax, [ebp + 8]
push eax
push 4
push dword [ebp - 0xc]
jmp 0x5ab0e0
cmp dword [eax + 4], ebx
je 0x5ab0f0
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x4239ab
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5ab02f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5ab0ce
sub eax, dword [ebp - 0xc]
push ebx
lea edx, [ebp + 8]
push edx
inc eax
push eax
push ecx
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5ab02f
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
jb 0x5ab071
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x4239aa
push dword [edi + 0x30]
call esi
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 4