joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a23a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x68d990], ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68d998], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov esi, dword [esp + 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x5a23e4
mov ecx, 8
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
jmp 0x5a244d
mov esi, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x5a243e
lea ecx, [esp + 0x3c]
push 0
push ecx
lea edx, [esp + 0x1c]
push 0x20
push edx
push esi
mov dword [esp + 0x50], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a243e
cmp dword [esp + 0x3c], 0x20
jne 0x5a243e
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
je 0x5a2481
lea ecx, [esp + 0x14]
push ecx
call fcn.005a1f50
add esp, 4
test eax, eax
je 0x5a24a0
mov ecx, dword [esp + 0x40]
mov eax, 1
test ecx, ecx
je 0x5a24a2
mov bl, byte [esp + 0x1b]
xor edx, edx
cmp bl, 0xe
pop edi
setne dl
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
add esp, 0x24
ret
mov dword [0x68d990], 0xf
mov dword [0x68d994], 0x2f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68d998], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x5a5800
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
push edi
mov dword [0x68d990], ebp
call esi
mov dword [0x68d998], eax
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebp
je 0x5a58db
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x34]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x20], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x5a5894
lea ecx, [esp + 0x38]
push ebp
push ecx
lea edx, [esp + 0x1c]
push 0x20
push edx
push esi
mov dword [esp + 0x4c], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a5894
cmp dword [esp + 0x38], 0x20
jne 0x5a5894
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x5a58ff
lea ecx, [esp + 0x10]
push ecx
call fcn.005a1f50
add esp, 4
test eax, eax
je 0x5a592a
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.005a5490
add esp, 8
test eax, eax
je 0x5a5952
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x68d990], 1
mov dword [0x68d994], 0xace
call esi
mov dword [0x68d998], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x24
ret
mov dword [0x68d990], 0xf
mov dword [0x68d994], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x68d998], eax
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x68d990], 0x14
mov dword [0x68d994], 0xae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x68d998], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
mov dword [0x68d990], 0x1f
mov dword [0x68d994], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x68d998], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x5a5c30
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
push edi
mov dword [0x68d990], ebp
call esi
mov dword [0x68d998], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0xc], ebp
je 0x5a5d07
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x38]
push ebx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x24], ebp
call edi
push ebp
push ebp
push ebp
push esi
mov ebx, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x5a5cc6
lea ecx, [esp + 0x3c]
push ebp
push ecx
lea edx, [esp + 0x20]
push 0x20
push edx
push esi
mov dword [esp + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a5cc6
cmp dword [esp + 0x3c], 0x20
jne 0x5a5cc6
mov ebp, 1
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x5a5d1f
lea ecx, [esp + 0x14]
push ecx
call fcn.005a1f50
add esp, 4
test eax, eax
je 0x5a5d48
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.005a5490
add esp, 8
test eax, eax
je 0x5a5d5e
mov dword [esp + 0xc], 1
jmp 0x5a5d7d
mov dword [0x68d990], 1
mov dword [0x68d994], 0xace
call esi
jmp 0x5a5d78
mov dword [0x68d990], 0xf
mov dword [0x68d994], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68d998], eax
mov dword [esp + 0xc], 1
jmp 0x5a5d7d
mov dword [0x68d990], 0x14
mov dword [0x68d994], 0xae3
jmp 0x5a5d72
mov dword [0x68d990], 0x1f
mov dword [0x68d994], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68d998], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5a5db8
mov edi, dword [esp + 0x40]
test edi, edi
je 0x5a5da5
mov ecx, dword [esp + 0x44]
test ecx, ecx
jbe 0x5a5da5
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5a5db3
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x5a85b0
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
push ebp
push esi
lea eax, [esp + 0x14]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0x1c], edi
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
cmp eax, edi
jne 0x5a85e6
cmp ecx, edi
je 0x5a86dc
xor esi, esi
xor edx, edx
or esi, eax
or ecx, edx
mov dword [esp + 0x20], ecx
ja 0x5a85fd
cmp esi, 0x20
jbe 0x5a8704
push ebx
push 0x200
call fcn.005e15b8
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x5a872c
mov ecx, 0x80
xor eax, eax
mov edi, ebx
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x30]
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x5a863e
cmp esi, 0x200
jbe 0x5a8643
mov esi, 0x200
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x14]
push 0
push eax
push esi
push ebx
push edi
push ecx
mov dword [esp + 0x2c], 0
call fcn.005aa8e0
add esp, 0x1c
test eax, eax
je 0x5a8742
cmp esi, dword [esp + 0x10]
jne 0x5a8758
add esi, esi
push esi
call fcn.005e15b8
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5a876e
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
push ebp
mov dword [esp + 0x24], esi
call fcn.005b6d10
test eax, eax
jne 0x5a8784
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 0x20
cmp edx, eax
ja 0x5a879a
mov dword [esp + 0x18], 1
jmp 0x5a87b9
mov dword [0x68d990], 0x1000b
mov dword [0x68d994], 0x1098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68d998], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x68d990], 0x30
mov dword [0x68d994], 0x10a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68d998], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x68d990], 0x21
mov dword [0x68d994], 0x10a7
jmp 0x5a87ae
mov dword [0x68d990], 0xd
mov dword [0x68d994], 0x10b4
jmp 0x5a87ae
mov dword [0x68d990], 0xd
mov dword [0x68d994], 0x10ba
jmp 0x5a87ae
mov dword [0x68d990], 0x21
mov dword [0x68d994], 0x10c4
jmp 0x5a87ae
mov dword [0x68d990], 0x2f
mov dword [0x68d994], 0x10cd
jmp 0x5a87ae
mov dword [0x68d990], 0x30
mov dword [0x68d994], 0x10d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x68d998], eax
test ebx, ebx
je 0x5a87c6
push ebx
call fcn.005e15e1
add esp, 4
test ebp, ebp
pop ebx
je 0x5a87d4
push ebp
call fcn.005e15e1
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x5a9980
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x60655b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x60c46c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 4]
mov dword [edi], eax
mov ebp, dword [esp + 0x24]
xor ebx, ebx
push ebp
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x618108
call fcn.00467530
mov edi, dword [edi]
mov dword [esi + 8], ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
je 0x5a99e7
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x5a99e7
mov dword [esi + 8], ebx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x5a9a20
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], 0x618108
test eax, eax
je 0x5a9a3d
or al, 1
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esi + 4]
call fcn.00467250
pop esi
ret

Function at 0x5aa360
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x606591
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, dword [esp + 0x228]
test ebp, ebp
je 0x5aa4f1
push ebp
call fcn.0044cf30
add esp, 4
cmp eax, 2
jbe 0x5aa4f1
cmp word [ebp + 2], 0x3a
jne 0x5aa4f1
mov ax, word [ebp]
cmp ax, 0x61
jb 0x5aa3b8
cmp ax, 0x7a
jbe 0x5aa3cc
cmp ax, 0x41
jb 0x5aa4f1
cmp ax, 0x5a
ja 0x5aa4f1
push ebp
lea ecx, [esp + 0xc]
call fcn.004669e0
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0
call fcn.00468460
mov edx, eax
cmp edx, 0xffffffff
je 0x5aa4dd
push esi
push edi
mov ecx, 5
mov esi, str.X:_baksd_
lea edi, [esp + 0x18]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x7c
lea edi, [esp + 0x2e]
rep stosd dword es:[edi], eax
inc edx
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
mov ax, word [ebp]
push edx
push ecx
lea ecx, [esp + 0x18]
mov word [esp + 0x20], ax
call fcn.004695b0
mov edx, dword [0x60c46c]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x64ba00
push edx
mov byte [esp + 0x238], 2
call fcn.0046a260
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 1
push eax
push ebp
call esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x5aa48a
mov edx, dword [esp + 0xc]
push 4
push eax
push edx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.00467250
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call fcn.00467250
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.00467250
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret
lea ecx, [esp + 8]
mov dword [esp + 0x220], 0xffffffff
call fcn.00467250
mov ecx, dword [esp + 0x218]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x5aa8e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x5aa8eb
xor eax, eax
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret

Function at 0x5aa910
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x5aa91b
xor eax, eax
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret

Function at 0x5ad4e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x68e064]
sub esp, 0x218
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x5ad685
mov ebp, dword [esp + 0x22c]
cmp ebp, ebx
je 0x5ad685
push 0x68e068
call fcn.0044cf30
add esp, 4
test eax, eax
je 0x5ad685
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x16], eax
push ecx
mov dword [esp + 0x1e], eax
mov word [esp + 0x18], bx
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bx
mov edx, dword [0x68e060]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and ecx, 0xffff
stosw word es:[edi], ax
mov eax, dword [esp + 0x24]
and edx, 0xffff
and eax, 0xffff
push eax
mov eax, dword [esp + 0x22]
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x44]
push str.__04d__02d__02d__02d:_02d:_02d____d_
push eax
call fcn.0044cf4d
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push 0x68e068
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5ad685
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x5ad603
lea ecx, [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x2c]
push 2
push edx
push esi
mov dword [esp + 0x38], 0xfeff
call edi
lea eax, [esp + 0x10]
push ebx
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0044cf30
add esp, 4
lea edx, [esp + 0x30]
shl eax, 1
push eax
push edx
push esi
call edi
push ebp
call fcn.0044cf30
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5ad66e
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call fcn.0044cf30
add esp, 4
shl eax, 1
push eax
push ebp
push esi
call edi
cmp word [ebp + ebx*2 - 2], 0xa
je 0x5ad66e
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x64b670
call fcn.0044cf30
add esp, 4
shl eax, 1
push eax
push 0x64b670
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
Function at 0x5b0ed0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6066f0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0046e030
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.0046e030
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x68e37c]
test eax, eax
je 0x5b0f88
cmp ebp, eax
jne 0x5b0f88
mov eax, dword [0x68e380]
test eax, eax
je 0x5b0f88
cmp ebx, eax
jb 0x5b0f88
add eax, 0x493e0
cmp eax, ebx
jb 0x5b0f88
mov ebp, dword [0x68e384]
push 1
inc ebp
push 0x68e298
lea ecx, [esp + 0x18]
mov dword [0x68e384], ebp
call fcn.005dd980
push 0x68e2c8
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.0046e280
push 0x68e2b8
mov ecx, edi
call fcn.0046e280
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x5b0ffe
push edi
push esi
mov dword [0x68e384], 0
call fcn.005b1300
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x68e298
call fcn.005dd980
push 0xffffffffffffffff
push 0
mov ecx, 0x68e2c8
mov dword [esp + 0x38], 1
mov dword [0x68e37c], ebp
mov dword [0x68e380], ebx
call fcn.0046e030
push esi
mov ecx, 0x68e2c8
call fcn.0046e280
push 0xffffffffffffffff
push 0
mov ecx, 0x68e2b8
call fcn.0046e030
push edi
mov ecx, 0x68e2b8
call fcn.0046e280
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.005dd9e0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x5b1020
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x606716
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.005df3a4
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.005df3a4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x5b115a
mov cl, byte [0x64cc1a]
mov dx, word [0x64cc18]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.005e0f55
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.005df5e6
mov edx, dword [0x667c48]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.005e1070
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.005df5e6
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.005e0ee7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.005e0ee7
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x5b107b
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x5b1190
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x606736
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x138]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0046c360
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0046c360
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
test ecx, edx
je 0x5b12ca
mov cl, byte [0x64cc1a]
mov dx, word [0x64cc18]
mov byte [esp + 0x12], cl
mov cl, dl
mov word [esp + 0x10], dx
add cl, al
lea edx, [esp + 0x10]
mov byte [esp + 0x10], cl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.00460f30
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.0046c9e0
mov edx, dword [0x60c468]
mov dword [esp + 0x14], edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x140], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x12f], bl
call fcn.00461ba0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.0046c9e0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004618e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.004618e0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x5b11eb
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x5b1300
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x606756
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
mov esi, dword [esp + 0x240]
push edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.0046e030
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.0046e030
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test ecx, edx
je 0x5b1439
mov edx, dword [0x64b9f8]
mov cx, word [0x64b9fc]
mov dword [esp + 0x18], edx
add word [esp + 0x18], ax
lea edx, [esp + 0x18]
mov word [esp + 0x1c], cx
push edx
lea ecx, [esp + 0x28]
mov word [esp + 0x22], bx
call fcn.004669e0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.0046e6c0
mov edx, dword [0x60c46c]
mov dword [esp + 0x14], edx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x2c]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x248], 1
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
push edx
mov word [esp + 0x236], bx
call fcn.00467530
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.0046e6c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.00467250
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00467250
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
inc eax
shl edx, 1
cmp eax, 0x1a
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edx
jb 0x5b135b
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x230
ret

Function at 0x5b2dc6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5b2de6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045166f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5b2e09
test byte [esp + 8], 2
je 0x5b2e09
call fcn.004516e2
mov dword [eax], 0xd
call fcn.004516eb
mov dword [eax], 5
jmp 0x5b2de2
xor eax, eax
ret

Function at 0x5b49d0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x5b4a20
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x5b4bf0
push 0
push 0
call fcn.0045172a
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x5b4a20
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x5b4a0f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret