joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5bac70
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.005baba0
mov eax, dword [esi + 0x3c1e]
add esp, 0x10
cmp eax, ebp
je 0x5bada7
cmp eax, dword [esi + 0xdb0]
je 0x5baced
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x5bacc6
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.005cebb0
add esp, 4
mov dword [esi + 0x3c1e], ebp
jmp 0x5bada7
mov eax, dword [esi + 8]
lea ebx, [esi + 8]
cmp eax, 0xffffffff
je 0x5bada7
mov edx, dword [esi + 0xdb8]
push edi
test byte [esi + 0xdf1], 0x80
mov dword [esp + 0x1c], edx
jne 0x5bad97
mov edi, edx
push 0
push 0
push edi
push eax
call fcn.005b2d20
add esp, 0x10
xor ecx, ecx
cmp eax, edi
jne 0x5bad95
cmp edx, ecx
jne 0x5bad95
mov dword [esi + 0xdd0], edi
mov edi, dword [esi + 0xdbc]
test edi, edi
push esi
push ebx
je 0x5bad70
push edi
call fcn.005c2560
add esp, 0xc
test eax, eax
jne 0x5bad95
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 0x5bad3a
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.005c2960
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 0x5badc0
push eax
call fcn.005cebb0
add esp, 4
mov dword [esi + 0xda8], ebp
mov eax, dword [esi + 0xdac]
cmp eax, ebp
je 0x5badd3
push eax
call fcn.005cebb0
add esp, 4
mov eax, dword [esi + 0xdb0]
mov dword [esi + 0xdac], ebp
cmp eax, ebp
je 0x5badec
push eax
call fcn.005cebb0
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi + 0xdb0], ebp
cmp eax, 3
je 0x5bae04
push esi
call fcn.005ba920
add esp, 4
pop esi
pop ebp
pop ebx
ret
Function at 0x5bdd10
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
mov ecx, dword [eax + 0x1e2]
test ecx, ecx
je 0x5bdd30
mov eax, 1
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
test eax, eax
jl 0x5bdd87
cmp eax, 0x1a
jg 0x5bdd87
test eax, eax
jne 0x5bdd49
call fcn.005be950
lea ecx, [esp]
push esi
push ecx
push eax
xor esi, esi
call fcn.005bea40
add esp, 8
test eax, eax
je 0x5bdd7d
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x5bdd78
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 0x5bdd90
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 0x5bddd9
cmp al, 0x5c
jne 0x5bddd9
lea edx, [esp + 0x12]
push 0x5c
push edx
call fcn.005b1f20
test eax, eax
je 0x5bdde7
inc eax
push 0x5c
push eax
call fcn.005b1f20
test eax, eax
je 0x5bdde7
mov byte [eax + 1], 0
jmp 0x5bdde7
cmp al, 0x3a
jne 0x5bdde7
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 0x5bde11
mov eax, closesocket
jmp 0x5bde1f
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp]
test eax, 0x80000000
je 0x5bde2b
mov eax, closesocket
add esp, 0x114
ret
Function at 0x5bde40
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 0x5bde75
mov eax, dword [esp + 0x118]
push esi
push eax
call fcn.005bea40
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.005bf6f0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x5bdea4
lea eax, [esp + 0x10]
push 0x6723a0
push eax
call ebp
lea ecx, [esp + 0x10]
push 0x6742bc
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 0x5bdf6a
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esi]
test al, 0x10
je 0x5bdef5
mov ecx, dword [esp + 0x128]
mov edx, dword [ecx + 0xd94]
test edx, edx
jne 0x5bdeef
test al, 6
jne 0x5bdef5
cmp byte [esi + 0x2c], 0x2e
jne 0x5bdf01
mov edx, dword [edi]
push esi
push edx
call ebx
test eax, eax
je 0x5bdf56
jmp 0x5bded4
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.005bf6f0
add esp, 4
test eax, eax
jne 0x5bdf33
lea edx, [esp + 0x10]
push 0x6723a0
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 0x5bdf6a
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 0x5be050
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 0x5be0c2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test byte [edi], 0x10
jne 0x5be096
lea esi, [edi + 0x2c]
push 0x673e94
push esi
call ebx
test eax, eax
je 0x5be096
push 0x673e90
push esi
call ebx
test eax, eax
jne 0x5be0a7
mov ecx, dword [ebp]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x5be0b1
jmp 0x5be076
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 0x5be160
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.005bf6f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
test eax, eax
jne 0x5be1a4
lea edx, [esp + 0x18]
push 0x6723a0
push edx
call edi
lea eax, [esp + 0x18]
push eax
call fcn.005be7a0
add al, 0x40
add esp, 4
movsx ecx, al
push ecx
push 0
push 0x25d
call fcn.005bf5c0
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.005b7670
add esp, 0x20
lea ecx, [esp + 0x18]
push ebp
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call fcn.005bf6f0
add esp, 4
test eax, eax
jne 0x5be20c
lea eax, [esp + 0x18]
push 0x6723a0
push eax
call edi
lea ecx, [esp + 0x18]
push 0x6742bc
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.005be050
add esp, 0x10
test eax, eax
je 0x5be31a
mov esi, dword [esp + 0x264]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x11c]
test esi, esi
mov ebx, eax
je 0x5be26a
and al, 0xf8
mov ebx, eax
test bl, 7
jne 0x5be2dc
lea eax, [esp + 0x18]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call fcn.005bf6f0
add esp, 4
test eax, eax
jne 0x5be298
lea edx, [esp + 0x18]
push 0x6723a0
push edx
call edi
lea eax, [esp + 0x148]
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
cmp ebx, dword [esp + 0x11c]
je 0x5be2bc
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.005b77f0
add esp, 0xc
test eax, eax
jne 0x5be302
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.005be0d0
add esp, 0xc
test eax, eax
je 0x5be306
jmp 0x5be259
xor esi, esi
jmp 0x5be30a
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x5be31a
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 0x5be980
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 0x5be9a3
mov eax, 1
pop esi
add esp, 0x108
ret
mov eax, dword [esp + 0x110]
xor esi, esi
test eax, eax
jne 0x5be9b5
call fcn.005be950
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 0x69ba64
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5bea2a
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 0x5bea2a
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 0x5bf360
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 0x5bf398
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 0x5bf398
test ecx, ecx
jl 0x5bf398
mov eax, dword [edi + 0x19e]
pop edi
sub eax, ecx
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x5bf3a0
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 0x5bf577
mov ecx, dword [esp + 0x20]
xor ebp, ebp
cmp ecx, ebp
je 0x5bf577
cmp dword [ecx], 0xffffffff
je 0x5bf577
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x5bf577
mov eax, dword [esi + 0x96]
push ebx
push 2
push ebp
push ebp
push eax
call fcn.005b2d20
mov ebx, edx
add esp, 0x10
cmp ebx, ebp
mov dword [esp + 0x18], eax
jg 0x5bf412
jl 0x5bf40c
cmp eax, ebp
jae 0x5bf412
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 0x5bf537
push 0x7800
mov dword [esp + 0x14], ebp
call fcn.005cec99
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x5bf449
mov dword [esp + 0x10], 4
mov edx, dword [esi + 0xdb0]
push esi
push edx
call fcn.005bdd90
cdq
add esp, 8
cmp edx, ebx
jl 0x5bf514
jg 0x5bf46e
cmp eax, dword [esp + 0x18]
jb 0x5bf514
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x5bf518
test ebx, ebx
jl 0x5bf518
jg 0x5bf490
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x5bf518
push esi
call fcn.005b7960
add esp, 4
test eax, eax
jne 0x5bf50a
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 0x5bf500
mov eax, dword [esp + 0x28]
test eax, eax
mov edi, eax
jne 0x5bf4cc
mov dword [esp + 0x18], eax
xor ebx, ebx
jmp 0x5bf47a
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 0x5bf500
cmp dword [esp + 0x14], edi
jne 0x5bf500
mov ecx, dword [esp + 0x18]
mov eax, edi
cdq
sub ecx, eax
mov dword [esp + 0x18], ecx
sbb ebx, edx
jmp 0x5bf47a
mov dword [esp + 0x10], 0xa
jmp 0x5bf518
mov dword [esp + 0x10], 9
jmp 0x5bf518
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 0x5bf532
push ebp
call fcn.005cebb0
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 0x5bf573
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 0x5bf577
mov dword [esp + 0xc], edi
mov eax, dword [esi + 0xdb0]
push esi
push eax
call fcn.005bdd90
add esp, 8
test eax, eax
jg 0x5bf5a6
mov ecx, dword [esp + 0x20]
push esi
push 0xffffffffffffffff
push ecx
push 0
call fcn.005bebd0
add esp, 0x10
test eax, eax
mov eax, 9
jne 0x5bf5aa
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x5bf5c0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x6eecc0]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5bf5fb
mov eax, dword [esp + 0x18]
push 0x6a1e40
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 0x5bf607
xor edi, edi
jmp 0x5bf611
cmp edi, 2
jle 0x5bf611
mov edi, 2
xor ebp, ebp
xor eax, eax
test ebp, ebp
jl 0x5bf6c9
mov ecx, dword [ebp*8 + 0x69bae0]
mov edx, dword [esp + 0x14]
cmp ecx, edx
mov dword [esp + 0x18], ecx
jne 0x5bf664
mov edx, edi
mov eax, dword [ebp*8 + 0x69bae4]
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 0x5bf66d
or ebp, 0xffffffff
jmp 0x5bf66e
inc ebp
test eax, eax
je 0x5bf615
mov eax, dword [ebx + 0xb28]
test eax, eax
je 0x5bf6b6
lea esi, [ebx + 0x3afe]
push 0x674c88
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 0x5bf672
mov edx, edi
push 0x6a1e40
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 0x5bf770
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x114
test eax, eax
push esi
push edi
je 0x5bf805
add al, 0x40
push 0x679858
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 0x5bf805
push edi
push 0
push 0
push 0
call fcn.005c0040
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 0x5c0280
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.005b1b10
mov ebp, dword [esp + 0x44]
add esp, 8
test eax, eax
jne 0x5c02c1
cmp word [esp + 0x18], 1
jg 0x5c02d1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x5c02c1
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 0x5c035e
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 0x5c0300
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 0x5c0330
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.005c0480
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 0x5c0368
test ebx, ebx
jne 0x5c0368
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 0x5c037e
cmp ebx, 0xa
mov eax, ebx
jne 0x5c0360
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
add esp, 0x24
ret

Function at 0x5c0480
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.005cec99
mov esi, eax
add esp, 4
test esi, esi
jne 0x5c04a7
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 0x5c04c9
cmp ebx, edi
jae 0x5c0545
mov eax, edi
sub eax, ebx
cmp eax, 0x2000
jb 0x5c04ce
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 0x5c052f
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c0545
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 0x5c056e
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp edx, eax
jne 0x5c056e
mov eax, dword [esp + 0x28]
push eax
call fcn.005b7960
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [ecx + 0x8e]
test eax, eax
jne 0x5c0558
add ebx, dword [esp + 0x14]
jmp 0x5c04b1
push esi
call fcn.005cebb0
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005cebb0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005cebb0
add esp, 4
mov eax, 9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push esi
call fcn.005cebb0
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x5c0590
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.005ba180
push 0
lea eax, [esp + 0x220]
push 0
lea ecx, [esp + 0x42c]
push eax
lea edx, [esp + 0x32c]
push ecx
push edx
call fcn.005b1fa0
push 0
lea eax, [esp + 0x234]
push 0
lea ecx, [esp + 0x440]
push eax
lea edx, [esp + 0x138]
push ecx
push edx
call fcn.005b2150
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.005b1f60
test eax, eax
je 0x5c064d
mov byte [eax], 0
lea eax, [esp + 0x114]
push eax
call esi
cmp eax, 0xffffffff
je 0x5c0619
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
jmp 0x5c065a
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call edi
lea edx, [esp + 0x10]
push 0x6723a0
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 0x5c072d
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 0x5c06ee
cmp al, 0x5c
je 0x5c06ee
mov byte [edi], al
mov al, byte [esi]
push eax
inc edi
call ebp
test eax, eax
je 0x5c06df
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 0x5c06c9
lea edx, [esp + 0x10]
push 0
push edx
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5c073a
lea eax, [esp + 0x10]
push 0x6723a0
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 0x5c06a5
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 0x5c23a0
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 0x5c242b
mov edi, dword [esp + 0x24]
push 0x10
push edi
push 0
call fcn.005bebd0
add esp, 0x10
test eax, eax
je 0x5c23dd
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 0x5c2420
cmp dword [esp + 0x24], 0x10
je 0x5c2491
mov eax, 0xa
pop edi
pop esi
add esp, 0x10
ret
call fcn.005bf360
add esp, 4
cmp eax, 0x10
jge 0x5c244a
mov ecx, dword [esp + 0x20]
push esi
push ecx
call fcn.005bf3a0
add esp, 8
test eax, eax
jne 0x5c2425
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 0x5c2420
cmp dword [esp + 0x24], 0x10
jne 0x5c2420
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x5c24a0
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 0x5c250e
mov edi, dword [esp + 0x14]
push 4
push edi
push 0
call fcn.005bebd0
add esp, 0x10
test eax, eax
je 0x5c24e3
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 0x5c2505
cmp dword [esp + 0x14], 4
je 0x5c2553
mov eax, 0xa
pop edi
pop esi
pop ecx
ret
call fcn.005bf360
add esp, 4
cmp eax, 4
jge 0x5c252d
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.005bf3a0
add esp, 8
test eax, eax
jne 0x5c250a
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 0x5c2505
cmp dword [esp + 0x14], 4
jne 0x5c2505
pop edi
xor eax, eax
pop esi
pop ecx
ret