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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
mov edx, dword [esi + 0xda0]
xor eax, eax
cmp edx, ebp
mov edx, dword [esp + 0x10]
sete al
push esi
push eax
push ecx
push edx
call fcn.005b9f30
mov eax, dword [esi + 0x3c1e]
add esp, 0x10
cmp eax, ebp
je 0x5ba137
cmp eax, dword [esi + 0xdb0]
je 0x5ba07d
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x5ba056
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0x3c1e]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi + 0x3c1e]
push ecx
call fcn.005ce291
add esp, 4
mov dword [esi + 0x3c1e], ebp
jmp 0x5ba137
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
cmp eax, 0xffffffff
je 0x5ba137
mov edx, dword [esi + 0xdb8]
push edi
test byte [esi + 0xdf1], 0x80
mov dword [esp + 0x1c], edx
jne 0x5ba127
mov edi, edx
push 0
push 0
push edi
push eax
call fcn.005bfdc0
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x5ba125
cmp edx, ecx
jne 0x5ba125
mov dword [esi + 0xdd0], edi
mov edi, dword [esi + 0xdbc]
test edi, edi
push esi
push ebx
je 0x5ba100
push edi
call fcn.005c1c40
add esp, 0xc
test eax, eax
jne 0x5ba125
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
mov ecx, dword [edi + 0x18]
add eax, edx
lea edx, [eax + ecx + 0x2e]
mov ecx, dword [esi + 0xdd0]
add ecx, edx
inc ebp
mov dword [esi + 0xdd0], ecx
mov edi, dword [edi + 0x4e]
jmp 0x5ba0ca
mov eax, dword [esi + 0xdc8]
mov ecx, dword [esi + 0xdc4]
mov edx, dword [esi + 0xdd0]
push eax
mov eax, dword [esp + 0x28]
push ecx
sub edx, eax
push eax
push edx
push ebp
call fcn.005c2040
add esp, 0x1c
xor ebp, ebp
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0xffffffff
pop edi
mov eax, dword [esi + 0xda8]
cmp eax, ebp
je 0x5ba150
push eax
call fcn.005ce291
add esp, 4
mov dword [esi + 0xda8], ebp
mov eax, dword [esi + 0xdac]
cmp eax, ebp
je 0x5ba163
push eax
call fcn.005ce291
add esp, 4
mov eax, dword [esi + 0xdb0]
mov dword [esi + 0xdac], ebp
cmp eax, ebp
je 0x5ba17c
push eax
call fcn.005ce291
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi + 0xdb0], ebp
cmp eax, 3
je 0x5ba194
push esi
call fcn.005b9cb0
add esp, 4
pop esi
pop ebp
pop ebx
ret
Function at 0x5bd0a0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
mov ecx, dword [eax + 0x1e2]
test ecx, ecx
je 0x5bd0c0
mov eax, 1
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
test eax, eax
jl 0x5bd117
cmp eax, 0x1a
jg 0x5bd117
test eax, eax
jne 0x5bd0d9
call fcn.005bdce0
lea ecx, [esp]
push esi
push ecx
push eax
xor esi, esi
call fcn.005bddd0
add esp, 8
test eax, eax
je 0x5bd10d
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x5bd108
mov eax, esi
pop esi
add esp, 0x104
ret
mov esi, 1
mov eax, esi
pop esi
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret

Function at 0x5bd120
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [esp + 0x10]
cmp al, 0x5c
mov al, byte [esp + 0x11]
jne 0x5bd169
cmp al, 0x5c
jne 0x5bd169
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.005b14f0
test eax, eax
je 0x5bd177
inc eax
push 0x5c
push eax
call fcn.005b14f0
test eax, eax
je 0x5bd177
mov byte [eax + 1], 0
jmp 0x5bd177
cmp al, 0x3a
jne 0x5bd177
mov byte [esp + 0x12], 0x5c
mov byte [esp + 0x13], 0
lea eax, [esp + 0xc]
lea ecx, [esp]
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x5bd1a1
mov eax, closesocket
jmp 0x5bd1af
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp]
test eax, 0x80000000
je 0x5bd1bb
mov eax, closesocket
add esp, 0x114
ret
Function at 0x5bd1d0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, dword [esp + 0x120]
mov dword [edi], 0xffffffff
mov al, byte [esi]
test al, al
jne 0x5bd205
mov eax, dword [esp + 0x118]
push esi
push eax
call fcn.005bddd0
add esp, 8
lea ecx, [esp + 0x10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x10]
push edx
call fcn.005bead0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x5bd234
lea eax, [esp + 0x10]
push 0x6713a0
push eax
call ebp
lea ecx, [esp + 0x10]
push 0x6732c0
push ecx
call ebp
mov esi, dword [esp + 0x11c]
lea edx, [esp + 0x10]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x5bd2fa
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esi]
test al, 0x10
je 0x5bd285
mov ecx, dword [esp + 0x128]
mov edx, dword [ecx + 0xd94]
test edx, edx
jne 0x5bd27f
test al, 6
jne 0x5bd285
cmp byte [esi + 0x2c], 0x2e
jne 0x5bd291
mov edx, dword [edi]
push esi
push edx
call ebx
test eax, eax
je 0x5bd2e6
jmp 0x5bd264
mov ebx, dword [esp + 0x124]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push ebx
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call fcn.005bead0
add esp, 4
test eax, eax
jne 0x5bd2c3
lea edx, [esp + 0x10]
push 0x6713a0
push edx
call ebp
add esi, 0x2c
lea eax, [esp + 0x10]
push esi
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push ebx
call edi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x5bd2fa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [edi], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret

Function at 0x5bd3e0
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [ebp], eax
je 0x5bd452
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [edi], 0x10
jne 0x5bd426
lea esi, [edi + 0x2c]
push 0x672e94
push esi
call ebx
test eax, eax
je 0x5bd426
push 0x672e90
push esi
call ebx
test eax, eax
jne 0x5bd437
mov ecx, dword [ebp]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x5bd441
jmp 0x5bd406
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp], 0xffffffff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x5bd4f0
Capabilities:
Delete file
Set file attributes

Disassembly:
sub esp, 0x24c
lea eax, [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
push ebp
push eax
xor esi, esi
call ebx
lea ecx, [esp + 0x18]
push ecx
call fcn.005bead0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x5bd534
lea edx, [esp + 0x18]
push 0x6713a0
push edx
call edi
lea eax, [esp + 0x18]
push eax
call fcn.005bdb30
add al, 0x40
add esp, 4
movsx ecx, al
push ecx
push 0
push 0x25d
call fcn.005be950
add esp, 8
lea edx, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
lea eax, [esp + 0x30]
push 0x64
push eax
call fcn.005b6930
add esp, 0x20
lea ecx, [esp + 0x18]
push ebp
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call fcn.005bead0
add esp, 4
test eax, eax
jne 0x5bd59c
lea eax, [esp + 0x18]
push 0x6713a0
push eax
call edi
lea ecx, [esp + 0x18]
push 0x6732c0
push ecx
call edi
mov edx, dword [esp + 0x268]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x124]
push ecx
push edx
mov dword [esp + 0x20], 0xffffffff
call fcn.005bd3e0
add esp, 0x10
test eax, eax
je 0x5bd6aa
mov esi, dword [esp + 0x264]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x11c]
test esi, esi
mov ebx, eax
je 0x5bd5fa
and al, 0xf8
mov ebx, eax
test bl, 7
jne 0x5bd66c
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call fcn.005bead0
add esp, 4
test eax, eax
jne 0x5bd628
lea edx, [esp + 0x18]
push 0x6713a0
push edx
call edi
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
cmp ebx, dword [esp + 0x11c]
je 0x5bd64c
lea edx, [esp + 0x18]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [esp + 0x1c]
push 0x64
push eax
call fcn.005b6ab0
add esp, 0xc
test eax, eax
jne 0x5bd692
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x268]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x120]
push eax
push ecx
call fcn.005bd460
add esp, 0xc
test eax, eax
je 0x5bd696
jmp 0x5bd5e9
xor esi, esi
jmp 0x5bd69a
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x5bd6aa
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x5bdd10
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x108
mov cl, byte [eax + 0xdf0]
push esi
test cl, 1
je 0x5bdd33
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x110]
xor esi, esi
test eax, eax
jne 0x5bdd45
call fcn.005bdce0
add al, 0x40
lea edx, [esp + 4]
movsx ecx, al
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
push 0
push 0x69ab84
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5bddba
push 0
push 0x80
push 2
push 0
push 0
lea edx, [esp + 0x1c]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x5bddba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, esi
pop esi
add esp, 0x108
ret

Function at 0x5be6f0
Capabilities:
Get file size

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov eax, dword [edi + 0x96]
cmp eax, 0xffffffff
je 0x5be728
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5be728
test ecx, ecx
jl 0x5be728
mov eax, dword [edi + 0x19e]
pop edi
sub eax, ecx
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x5be730
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, 0xa
mov eax, dword [esi + 0x96]
mov dword [esp + 0xc], edi
cmp eax, 0xffffffff
je 0x5be907
mov ecx, dword [esp + 0x20]
xor ebp, ebp
cmp ecx, ebp
je 0x5be907
cmp dword [ecx], 0xffffffff
je 0x5be907
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x5be907
mov eax, dword [esi + 0x96]
push ebx
push 2
push ebp
push ebp
push eax
call fcn.005bfdc0
mov ebx, edx
add esp, 0x10
cmp ebx, ebp
mov dword [esp + 0x18], eax
jg 0x5be7a2
jl 0x5be79c
cmp eax, ebp
jae 0x5be7a2
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov ecx, dword [esi + 0x96]
push ebp
push ebp
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x5be8c7
push 0x7800
mov dword [esp + 0x14], ebp
call fcn.005ce37a
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x5be7d9
mov dword [esp + 0x10], 4
mov edx, dword [esi + 0xdb0]
push esi
push edx
call fcn.005bd120
cdq
add esp, 8
cmp edx, ebx
jl 0x5be8a4
jg 0x5be7fe
cmp eax, dword [esp + 0x18]
jb 0x5be8a4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5be8a8
test ebx, ebx
jl 0x5be8a8
jg 0x5be820
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x5be8a8
push esi
call fcn.005b6c20
add esp, 4
test eax, eax
jne 0x5be89a
mov ecx, dword [esi + 0x96]
push eax
lea eax, [esp + 0x2c]
push eax
push 0x7800
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5be890
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, eax
jne 0x5be85c
mov dword [esp + 0x18], eax
xor ebx, ebx
jmp 0x5be80a
lea edx, [esp + 0x14]
push 0
push edx
push eax
mov eax, dword [esp + 0x30]
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5be890
cmp dword [esp + 0x14], edi
jne 0x5be890
mov ecx, dword [esp + 0x18]
mov eax, edi
cdq
sub ecx, eax
mov dword [esp + 0x18], ecx
sbb ebx, edx
jmp 0x5be80a
mov dword [esp + 0x10], 0xa
jmp 0x5be8a8
mov dword [esp + 0x10], 9
jmp 0x5be8a8
mov dword [esp + 0x10], edi
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test ebp, ebp
je 0x5be8c2
push ebp
call fcn.005ce291
add esp, 4
mov edi, 0xa
mov ecx, dword [esi + 0x96]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
pop ebx
je 0x5be903
push 0
push 0x8000080
push 2
push 0
push 0
lea edx, [esi + 0x9a]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x96], eax
jne 0x5be907
mov dword [esp + 0xc], edi
mov eax, dword [esi + 0xdb0]
push esi
push eax
call fcn.005bd120
add esp, 8
test eax, eax
jg 0x5be936
mov ecx, dword [esp + 0x20]
push esi
push 0xffffffffffffffff
push ecx
push 0
call fcn.005bdf60
add esp, 0x10
test eax, eax
mov eax, 9
jne 0x5be93a
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x5be950
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6edde0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5be98b
mov eax, dword [esp + 0x18]
push 0x6a0f60
mov ecx, eax
shl ecx, 6
add ecx, eax
lea esi, [ecx*4 + 0x37f2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x18]
test edi, edi
jge 0x5be997
xor edi, edi
jmp 0x5be9a1
cmp edi, 2
jle 0x5be9a1
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x5bea59
mov ecx, dword [ebp*8 + 0x69ac00]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x5be9f4
mov edx, edi
mov eax, dword [ebp*8 + 0x69ac04]
shl edx, 6
add edx, edi
push 0x103
push eax
lea esi, [ebx + edx*4]
lea ecx, [esi + 0x37f2]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [esp + 0x18]
mov byte [esi + 0x38f5], 0
mov eax, 1
test ecx, ecx
jne 0x5be9fd
or ebp, 0xffffffff
jmp 0x5be9fe
inc ebp
test eax, eax
je 0x5be9a5
mov eax, dword [ebx + 0xb28]
test eax, eax
je 0x5bea46
lea esi, [ebx + 0x3afe]
push 0x673c88
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebx + 0xb2c]
mov ecx, edi
shl ecx, 6
add ecx, edi
push eax
mov eax, dword [esp + 0x18]
push esi
lea edx, [ebx + ecx*4 + 0x37f2]
push edx
push 0
push eax
push 0
push 0xd
call dword [ebx + 0xb28]
mov ecx, edi
shl ecx, 6
add ecx, edi
pop edi
pop esi
pop ebp
lea eax, [ebx + ecx*4 + 0x37f2]
pop ebx
ret
test eax, eax
jne 0x5bea02
mov edx, edi
push 0x6a0f60
shl edx, 6
add edx, edi
lea esi, [ebx + edx*4 + 0x37f2]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5bedf0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
test eax, eax
push esi
push edi
je 0x5bee85
add al, 0x40
push 0x678870
mov byte [esp + 0xc], al
lea eax, [esp + 0xd]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x12c]
lea ecx, [esp + 0x18]
push 0x104
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push eax
lea esi, [edi + 0x3d32]
push ecx
push 0x104
lea edx, [esp + 0x20]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x5bee85
push edi
push 0
push 0
push 0
call fcn.005bf6c0
mov ecx, dword [esp + 0x134]
mov edx, dword [esp + 0x138]
add esp, 0x10
mov dword [ecx], eax
mov eax, esi
pop edi
mov dword [edx], 8
pop esi
add esp, 0x114
ret
pop edi
xor eax, eax
pop esi
add esp, 0x114
ret
Function at 0x5bf8f0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x24
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push eax
push esi
call fcn.005b1130
mov ebp, dword [esp + 0x44]
add esp, 8
test eax, eax
jne 0x5bf931
cmp word [esp + 0x18], 1
jg 0x5bf941
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5bf931
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x5bf9ce
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push connect
push ebp
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x5bf970
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
add esp, 0x24
ret
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ebp
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x5bf9a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x24
ret
mov ecx, dword [esp + 0x40]
push ecx
push 0xffffffffffffffff
push esi
push edi
call fcn.005bfaf0
add esp, 0x10
mov ebx, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
test eax, eax
jne 0x5bf9d8
test ebx, ebx
jne 0x5bf9d8
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test ebx, ebx
je 0x5bf9ee
cmp ebx, 0xa
mov eax, ebx
jne 0x5bf9d0
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x24
ret

Function at 0x5bfaf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x2000
call fcn.005ce37a
mov esi, eax
add esp, 4
test esi, esi
jne 0x5bfb17
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
cmp edi, 0xffffffff
je 0x5bfb39
cmp ebx, edi
jae 0x5bfbb5
mov eax, edi
sub eax, ebx
cmp eax, 0x2000
jb 0x5bfb3e
mov eax, 0x2000
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5bfb9f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5bfbb5
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5bfbde
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x5bfbde
mov eax, dword [esp + 0x28]
push eax
call fcn.005b6c20
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [ecx + 0x8e]
test eax, eax
jne 0x5bfbc8
add ebx, dword [esp + 0x14]
jmp 0x5bfb21
push esi
call fcn.005ce291
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005ce291
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005ce291
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005ce291
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5bfc00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x514
lea ecx, [esp + 0x30c]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
push ecx
call edi
lea edx, [esp + 0x31c]
push edx
call fcn.005b9440
push 0
lea eax, [esp + 0x220]
push 0
lea ecx, [esp + 0x42c]
push eax
lea edx, [esp + 0x32c]
push ecx
push edx
call fcn.005beb50
push 0
lea eax, [esp + 0x234]
push 0
lea ecx, [esp + 0x440]
push eax
lea edx, [esp + 0x138]
push ecx
push edx
call fcn.005bed00
add esp, 0x2c
lea eax, [esp + 0x114]
lea ecx, [esp + 0x218]
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x114]
push 0x5c
push edx
call fcn.005b1530
test eax, eax
je 0x5bfcbd
mov byte [eax], 0
lea eax, [esp + 0x114]
push eax
call esi
cmp eax, 0xffffffff
je 0x5bfc89
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
jmp 0x5bfcca
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x6713a0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x218]
lea ecx, [esp + 0x114]
push eax
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x10]
push edx
call ebx
mov esi, eax
lea eax, [esp + 0x114]
push eax
call ebx
cmp esi, eax
jge 0x5bfd9d
mov ebp, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x10]
lea edi, [esp + eax + 0x10]
push edx
call ebx
lea esi, [esp + eax + 0x114]
mov al, byte [esp + eax + 0x114]
test al, al
je 0x5bfd5e
cmp al, 0x5c
je 0x5bfd5e
mov byte [edi], al
mov al, byte [esi]
push eax
inc edi
call ebp
test eax, eax
je 0x5bfd4f
mov cl, byte [esi + 1]
mov byte [edi], cl
inc edi
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x5bfd39
lea edx, [esp + 0x10]
push 0
push edx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5bfdaa
lea eax, [esp + 0x10]
push 0x6713a0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0x114]
mov esi, eax
push edx
call ebx
cmp esi, eax
jl 0x5bfd15
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x514
ret
pop edi
pop esi
pop ebp
mov eax, 0xf
pop ebx
add esp, 0x514
ret
Function at 0x5c1a80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
cmp dword [esi + 0x96], 0xffffffff
jne 0x5c1b0b
mov edi, dword [esp + 0x24]
push 0x10
push edi
push 0
call fcn.005bdf60
add esp, 0x10
test eax, eax
je 0x5c1abd
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
add esp, 0x10
ret
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi]
push ecx
lea edx, [esp + 0x10]
push 0x10
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c1b00
cmp dword [esp + 0x24], 0x10
je 0x5c1b71
mov eax, 0xa
pop edi
pop esi
add esp, 0x10
ret
call fcn.005be6f0
add esp, 4
cmp eax, 0x10
jge 0x5c1b2a
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.005be730
add esp, 8
test eax, eax
jne 0x5c1b05
mov eax, dword [esp + 0x1c]
push 0
mov dword [esp + 0xc], 0x8074b50
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [esi + 0x96]
push eax
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c1b00
cmp dword [esp + 0x24], 0x10
jne 0x5c1b00
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x5c1b80
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 8], 0x8074b50
mov eax, dword [esi + 0x96]
push esi
cmp eax, 0xffffffff
jne 0x5c1bee
mov edi, dword [esp + 0x14]
push 4
push edi
push 0
call fcn.005bdf60
add esp, 0x10
test eax, eax
je 0x5c1bc3
mov eax, dword [esi + 0x8e]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf6
add eax, 0x13
pop ecx
ret
mov edx, dword [edi]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x10]
push 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c1be5
cmp dword [esp + 0x14], 4
je 0x5c1c33
mov eax, 0xa
pop edi
pop esi
pop ecx
ret
call fcn.005be6f0
add esp, 4
cmp eax, 4
jge 0x5c1c0d
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.005be730
add esp, 8
test eax, eax
jne 0x5c1bea
mov eax, dword [esi + 0x96]
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x10]
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5c1be5
cmp dword [esp + 0x14], 4
jne 0x5c1be5
pop edi
xor eax, eax
pop esi
pop ecx
ret