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

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi], 0x422cec
call fcn.005b3481
lea ebx, [esi + 0x30]
mov ecx, ebx
call fcn.005b3e83
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esi + 0x48]
test edi, edi
je 0x5b33b4
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 0x5b33cb
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 0x5b3415
cmp dword [eax], edi
jbe 0x5b33fe
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 0x5b33d8
mov edi, dword [esi + 0x50]
test edi, edi
je 0x5b3415
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 0x5b342c
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 0x5b3442
cmp dword [esi + 0x44], 1
jne 0x5b3450
push dword [esi + 0x2c]
call fcn.005b53a0
jmp 0x5b3450
cmp dword [esi + 0x44], 1
jne 0x5b3450
push dword [esi + 0x2c]
call fcn.005b524c
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.005b3f5f
lea ecx, [esi + 0x1c]
call fcn.005b1275
pop edi
lea ecx, [esi + 0xc]
pop esi
pop ebx
jmp fcn.005b08be
Function at 0x5b3481
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x60e890]
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 0x5b3621
cmp dword [eax], edi
je 0x5b3621
mov eax, dword [esi + 0x54]
cmp eax, edi
je 0x5b3621
cmp dword [eax], edi
je 0x5b3621
mov eax, dword [esi + 0x40]
sub eax, edi
je 0x5b34e1
dec eax
jne 0x5b34ea
push dword [esi + 0x58]
call fcn.005b16ee
push 0x422e10
mov ecx, esi
call fcn.005b052c
jmp 0x5b34ea
push 0x37
mov ecx, esi
call fcn.005b05a5
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 0x5b3630
mov eax, dword [esi + 0x50]
cmp dword [eax], edi
mov dword [ebp - 0x88], edi
jbe 0x5b3621
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 0x5b3630
push dword [ebp - 0x8c]
mov ecx, esi
call fcn.005b427c
push edi
mov ecx, esi
call fcn.005b427c
push edi
push edi
push dword [ebp - 0x8c]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x5b3630
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 0x5b3630
push edi
lea ecx, [ebp - 0x90]
push ecx
push 0x80
lea ecx, [ebp - 0x84]
push ecx
xor ebx, ebx
push eax
jmp 0x5b35ee
cmp dword [ebp - 0x90], edi
je 0x5b35f8
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x90]
mov ecx, esi
call fcn.005b0582
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 0x5b35b2
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 0x5b3517
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005f059d
leave
ret
mov eax, 0x8876038f
jmp 0x5b3623
Function at 0x5b3a53
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 0x5b3a88
mov eax, 0x88760389
jmp 0x5b3b62
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 0x5b3aa3
mov esi, 0x8876038f
jmp 0x5b3b1c
cmp dword [ebp - 8], edi
jg 0x5b3aaf
jl 0x5b3a9c
cmp eax, 0x20
jb 0x5b3a9c
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 0x5b3a9c
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 0x5b3add
mov esi, 0x8876038f
jmp 0x5b3b15
push 0x54
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x5b3b01
push dword [ebp - 0xc]
mov ecx, eax
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.005b2496
mov esi, eax
jmp 0x5b3b03
xor esi, esi
cmp esi, edi
jne 0x5b3b29
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 0x5b3b61
mov ecx, esi
call fcn.005b25fc
mov ebx, eax
cmp ebx, edi
jge 0x5b3b40
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
jmp 0x5b3b61
mov ecx, esi
call fcn.005b38c6
mov ebx, eax
cmp ebx, edi
jl 0x5b3b36
mov ecx, esi
call fcn.005b310e
mov ebx, eax
cmp ebx, edi
jl 0x5b3b36
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x5b3b6d
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x60e890]
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.004291fb
test eax, eax
jne 0x5b3bcd
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.005b3a53
jmp 0x5b3cf5
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 0x5b3bf9
mov eax, 0x88760389
jmp 0x5b3cf5
lea eax, [ebp - 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x11c], eax
jne 0x5b3c1c
mov esi, 0x8876038f
jmp 0x5b3caa
cmp dword [ebp - 0x118], edi
jg 0x5b3c2b
jl 0x5b3c12
cmp eax, 0x20
jb 0x5b3c12
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 0x5b3c12
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 0x5b3c5c
mov esi, 0x8876038f
jmp 0x5b3ca3
push 0x54
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x5b3c8c
push dword [ebp - 0x11c]
mov ecx, eax
push dword [ebp - 0x110]
push ebx
push dword [ebp - 0x10c]
push dword [ebp - 0x114]
call fcn.005b2496
mov esi, eax
jmp 0x5b3c8e
xor esi, esi
cmp esi, edi
jne 0x5b3cba
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 0x5b3cf5
mov ecx, esi
call fcn.005b25fc
mov ebx, eax
cmp ebx, edi
jl 0x5b3ce1
mov ecx, esi
call fcn.005b38c6
mov ebx, eax
cmp ebx, edi
jl 0x5b3ce1
mov ecx, esi
call fcn.005b310e
mov ebx, eax
cmp ebx, edi
jge 0x5b3ceb
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, ebx
jmp 0x5b3cf5
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.005f059d
leave
ret 0xc

Function at 0x5b3e83
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 0x5b3ec5
cmp dword [esi], 0
je 0x5b3ec5
mov ebx, eax
jmp 0x5b3ebb
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 0x5b3ec5
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [esi + 8], eax
cmp dword [esi + 8], 0
jg 0x5b3e9d
xor eax, eax
jmp 0x5b3eca
mov eax, 0x80004005
pop esi
pop ebx
leave
ret
Function at 0x5b50b8
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 [0x60e890]
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 0x5b50fd
jg 0x5b5127
cmp eax, 0xffffffff
ja 0x5b5127
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 0x5b5121
mov eax, 0x8876038f
jmp 0x5b522e
cmp dword [ebp - 0x18], 0x10
je 0x5b512f
push 0xe
pop eax
jmp 0x5b522e
push edi
mov esi, 0x422e34
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 0x5b5228
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 0x5b5228
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x8000
push edi
push dword [ebp - 0x30]
jmp 0x5b5217
cmp dword [ebp - 0x18], 0
je 0x5b523c
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.005bb74b
test eax, eax
jne 0x5b5240
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 0x5b5228
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 0x5b5228
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 0x5b5228
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x5b5240
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 0x5b5186
mov eax, 0x8876038f
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.005f059d
leave
ret 8
xor eax, eax
jmp 0x5b522d
mov eax, 0x8007000e
jmp 0x5b522d
Function at 0x5b524c
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x60e890]
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 0x422e38
push 0x407e24
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5b5292
mov eax, 0x88760387
jmp 0x5b538d
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 0x5b52c6
mov eax, 0x8876038f
jmp 0x5b538c
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 0x5b52ee
mov dword [ebp - 0x10c], 0x8876038f
jmp 0x5b533a
lea ecx, [ebp - 0x138]
call fcn.005b4f4a
lea ecx, [ebp - 0x138]
call fcn.005b4ffb
test eax, eax
jne 0x5b5314
mov dword [ebp - 0x10c], 0x8007000e
jmp 0x5b532c
push dword [ebp - 0x114]
lea ecx, [ebp - 0x138]
push esi
call fcn.005b50b8
mov dword [ebp - 0x10c], eax
push esi
call ebx
lea ecx, [ebp - 0x138]
call fcn.005b4f6e
push dword [ebp - 0x114]
call ebx
cmp dword [ebp - 0x10c], edi
jge 0x5b5359
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x5b5386
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 0x5b5386
mov dword [ebp - 0x10c], 0x8876038f
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.005f059d
leave
ret 4
Function at 0x5b53a0
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x60e890]
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 0x422e40
push 0x422e3c
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x5b53e6
mov eax, 0x88760387
jmp 0x5b54e1
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 0x5b541a
mov eax, 0x8876038f
jmp 0x5b54e0
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 0x5b5442
mov dword [ebp - 0x210], 0x8876038f
jmp 0x5b548e
lea ecx, [ebp - 0x23c]
call fcn.005b4f4a
lea ecx, [ebp - 0x23c]
call fcn.005b4ffb
test eax, eax
jne 0x5b5468
mov dword [ebp - 0x210], 0x8007000e
jmp 0x5b5480
push dword [ebp - 0x218]
lea ecx, [ebp - 0x23c]
push esi
call fcn.005b50b8
mov dword [ebp - 0x210], eax
push esi
call ebx
lea ecx, [ebp - 0x23c]
call fcn.005b4f6e
push dword [ebp - 0x218]
call ebx
cmp dword [ebp - 0x210], edi
jge 0x5b54ad
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5b54da
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 0x5b54da
mov dword [ebp - 0x210], 0x8876038f
mov eax, dword [ebp - 0x210]
pop esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.005f059d
leave
ret 4

Function at 0x5b7493
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0x423050
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 0x5b74e2
push ebx
push 0x423038
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x5b74d4
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 0x5b7535
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 0x5b7db0
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.005b45a2
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 0x5b7de2
mov eax, 0x80004005
jmp 0x5b7ef8
mov ecx, eax
mov dword [ebp + 8], ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x5b7dea
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 0x5b7e14
mov eax, 0x8007000e
jmp 0x5b7ef8
mov eax, dword [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5b7e1a
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 0x5b7e0a
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x5b7ed9
cmp dword [ecx], ebx
mov dword [ebp - 4], ebx
jbe 0x5b7ed9
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 0x5b7e7d
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x4081fa
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5b7e0a
push ebx
lea eax, [ebp + 8]
push eax
push 4
push dword [ebp - 0xc]
jmp 0x5b7ebb
cmp dword [eax + 4], ebx
je 0x5b7ecb
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x423034
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5b7e0a
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 0x5b7ea9
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 0x5b7e0a
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
jb 0x5b7e4c
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x423033
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
Function at 0x5b8149
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [edi + 8]
mov esi, ecx
push eax
push dword [esi + 0x30]
mov dword [ebp - 0xc], esi
call ebx
test eax, eax
je 0x5b8225
mov ecx, dword [edi + 4]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5b818d
sub eax, dword [ebp - 0x10]
push 0
lea edx, [ebp - 4]
push edx
inc eax
push eax
push ecx
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5b8225
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x5b81f0
and dword [ebp - 8], 0
cmp dword [edi], 0
jbe 0x5b81f0
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x4081fa
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5b8225
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [eax + ecx*4]
mov ecx, esi
call fcn.005b7db0
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x5b825a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi]
jb 0x5b81b9
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x423033
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5b8225
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x24], ecx
jne 0x5b822c
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0x423032
push dword [esi + 0x30]
call ebx
test eax, eax
jne 0x5b8257
mov eax, 0x8007000e
jmp 0x5b825a
mov eax, dword [eax + 0x20]
cmp eax, ecx
mov dword [ebp - 0x10], eax
je 0x5b823d
cmp dword [eax], ecx
mov dword [ebp + 8], ecx
ja 0x5b8264
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0x423033
push dword [esi + 0x30]
call ebx
test eax, eax
mov eax, 0x8007000e
je 0x5b825a
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
push 4
lea esi, [eax + 4]
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 0x18], esi
mov edi, 0x40b354
push eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp - 0xc]
push 1
je 0x5b82d3
push 0x4081fa
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5b8225
mov eax, dword [ebp - 8]
mov edi, dword [eax]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5b82a7
push 0
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push edi
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5b8225
push 0
lea eax, [ebp - 4]
push eax
push 0x10
push dword [ebp - 0x18]
jmp 0x5b8301
push 0x423034
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5b8225
mov eax, dword [ebp - 8]
mov edi, dword [eax]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5b82ef
sub eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push edi
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5b8225
inc dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
jb 0x5b8261
mov esi, dword [ebp - 0xc]
xor ecx, ecx
jmp 0x5b823d