joyce8/EMBER2024-capa huggingface dataset:
Function at 0x593c30
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 [0x674ed8], ebp
call esi
mov dword [0x674ee0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebp
je 0x593d0b
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 0x593cc4
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 0x593cc4
cmp dword [esp + 0x38], 0x20
jne 0x593cc4
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x593d2f
lea ecx, [esp + 0x10]
push ecx
call fcn.00590380
add esp, 4
test eax, eax
je 0x593d5a
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.005938c0
add esp, 8
test eax, eax
je 0x593d82
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x674ed8], 1
mov dword [0x674edc], 0xace
call esi
mov dword [0x674ee0], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x24
ret
mov dword [0x674ed8], 0xf
mov dword [0x674edc], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x674ee0], eax
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x674ed8], 0x14
mov dword [0x674edc], 0xae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x674ee0], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
mov dword [0x674ed8], 0x1f
mov dword [0x674edc], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x674ee0], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x594060
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 [0x674ed8], ebp
call esi
mov dword [0x674ee0], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0xc], ebp
je 0x594137
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 0x5940f6
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 0x5940f6
cmp dword [esp + 0x3c], 0x20
jne 0x5940f6
mov ebp, 1
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x59414f
lea ecx, [esp + 0x14]
push ecx
call fcn.00590380
add esp, 4
test eax, eax
je 0x594178
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.005938c0
add esp, 8
test eax, eax
je 0x59418e
mov dword [esp + 0xc], 1
jmp 0x5941ad
mov dword [0x674ed8], 1
mov dword [0x674edc], 0xace
call esi
jmp 0x5941a8
mov dword [0x674ed8], 0xf
mov dword [0x674edc], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x674ee0], eax
mov dword [esp + 0xc], 1
jmp 0x5941ad
mov dword [0x674ed8], 0x14
mov dword [0x674edc], 0xae3
jmp 0x5941a2
mov dword [0x674ed8], 0x1f
mov dword [0x674edc], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x674ee0], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5941e8
mov edi, dword [esp + 0x40]
test edi, edi
je 0x5941d5
mov ecx, dword [esp + 0x44]
test ecx, ecx
jbe 0x5941d5
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 0x5941e3
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x5969e0
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 0x596a16
cmp ecx, edi
je 0x596b0c
xor esi, esi
xor edx, edx
or esi, eax
or ecx, edx
mov dword [esp + 0x20], ecx
ja 0x596a2d
cmp esi, 0x20
jbe 0x596b34
push ebx
push 0x200
call fcn.005d1478
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x596b5c
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 0x596a6e
cmp esi, 0x200
jbe 0x596a73
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.00598d10
add esp, 0x1c
test eax, eax
je 0x596b72
cmp esi, dword [esp + 0x10]
jne 0x596b88
add esi, esi
push esi
call fcn.005d1478
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x596b9e
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.005a6880
test eax, eax
jne 0x596bb4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 0x20
cmp edx, eax
ja 0x596bca
mov dword [esp + 0x18], 1
jmp 0x596be9
mov dword [0x674ed8], 0x1000b
mov dword [0x674edc], 0x1098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x674ee0], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x674ed8], 0x30
mov dword [0x674edc], 0x10a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x674ee0], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x674ed8], 0x21
mov dword [0x674edc], 0x10a7
jmp 0x596bde
mov dword [0x674ed8], 0xd
mov dword [0x674edc], 0x10b4
jmp 0x596bde
mov dword [0x674ed8], 0xd
mov dword [0x674edc], 0x10ba
jmp 0x596bde
mov dword [0x674ed8], 0x21
mov dword [0x674edc], 0x10c4
jmp 0x596bde
mov dword [0x674ed8], 0x2f
mov dword [0x674edc], 0x10cd
jmp 0x596bde
mov dword [0x674ed8], 0x30
mov dword [0x674edc], 0x10d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x674ee0], eax
test ebx, ebx
je 0x596bf6
push ebx
call fcn.005d14a1
add esp, 4
test ebp, ebp
pop ebx
je 0x596c04
push ebp
call fcn.005d14a1
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x597db0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5f4feb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5fac04]
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], 0x606798
call fcn.0045b5f0
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 0x597e17
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x597e17
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 0x597e50
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov dword [esi], 0x606798
test eax, eax
je 0x597e6d
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.0045b310
pop esi
ret

Function at 0x598790
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f5021
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, dword [esp + 0x228]
test ebp, ebp
je 0x598921
push ebp
call fcn.00441d20
add esp, 4
cmp eax, 2
jbe 0x598921
cmp word [ebp + 2], 0x3a
jne 0x598921
mov ax, word [ebp]
cmp ax, 0x61
jb 0x5987e8
cmp ax, 0x7a
jbe 0x5987fc
cmp ax, 0x41
jb 0x598921
cmp ax, 0x5a
ja 0x598921
push ebp
lea ecx, [esp + 0xc]
call fcn.0045aaa0
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0
call fcn.0045c520
mov edx, eax
cmp edx, 0xffffffff
je 0x59890d
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.0045d670
mov edx, dword [0x5fac04]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x6384a4
push edx
mov byte [esp + 0x238], 2
call fcn.0045e320
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 0x5988ba
mov edx, dword [esp + 0xc]
push 4
push eax
push edx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.0045b310
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call fcn.0045b310
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0045b310
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.0045b310
mov ecx, dword [esp + 0x218]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x598d10
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x598d1b
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 0x598d40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x598d4b
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 0x59b910
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x6755ac]
sub esp, 0x218
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x59bab5
mov ebp, dword [esp + 0x22c]
cmp ebp, ebx
je 0x59bab5
push 0x6755b0
call fcn.00441d20
add esp, 4
test eax, eax
je 0x59bab5
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 [0x6755a8]
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.00441d3d
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push 0x6755b0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x59bab5
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 0x59ba33
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.00441d20
add esp, 4
lea edx, [esp + 0x30]
shl eax, 1
push eax
push edx
push esi
call edi
push ebp
call fcn.00441d20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x59ba9e
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call fcn.00441d20
add esp, 4
shl eax, 1
push eax
push ebp
push esi
call edi
cmp word [ebp + ebx*2 - 2], 0xa
je 0x59ba9e
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x638114
call fcn.00441d20
add esp, 4
shl eax, 1
push eax
push 0x638114
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 0x59fd30
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f51c0
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.004620f0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.004620f0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x675e7c]
test eax, eax
je 0x59fde8
cmp ebp, eax
jne 0x59fde8
mov eax, dword [0x675e80]
test eax, eax
je 0x59fde8
cmp ebx, eax
jb 0x59fde8
add eax, 0x493e0
cmp eax, ebx
jb 0x59fde8
mov ebp, dword [0x675e84]
push 1
inc ebp
push 0x675d98
lea ecx, [esp + 0x18]
mov dword [0x675e84], ebp
call fcn.005cd840
push 0x675dc8
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00462340
push 0x675db8
mov ecx, edi
call fcn.00462340
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x59fe5e
push edi
push esi
mov dword [0x675e84], 0
call fcn.005a0160
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x675d98
call fcn.005cd840
push 0xffffffffffffffff
push 0
mov ecx, 0x675dc8
mov dword [esp + 0x38], 1
mov dword [0x675e7c], ebp
mov dword [0x675e80], ebx
call fcn.004620f0
push esi
mov ecx, 0x675dc8
call fcn.00462340
push 0xffffffffffffffff
push 0
mov ecx, 0x675db8
call fcn.004620f0
push edi
mov ecx, 0x675db8
call fcn.00462340
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.005cd8a0
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 0x59fe80
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5f51e6
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.005cf264
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.005cf264
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 0x59ffba
mov cl, byte [0x63967e]
mov dx, word [0x63967c]
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.005d0e15
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.005cf4a6
mov edx, dword [0x650810]
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.005d0f30
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.005cf4a6
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.005d0da7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.005d0da7
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 0x59fedb
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 0x59fff0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5f5206
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.00460420
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00460420
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 0x5a012a
mov cl, byte [0x63967e]
mov dx, word [0x63967c]
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.00454ff0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.00460aa0
mov edx, dword [0x5fac00]
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.00455c60
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00460aa0
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.004559a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.004559a0
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 0x5a004b
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 0x5a0160
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5f5226
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.004620f0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.004620f0
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 0x5a0299
mov edx, dword [0x63849c]
mov cx, word [0x6384a0]
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.0045aaa0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00462780
mov edx, dword [0x5fac04]
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.0045b5f0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00462780
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0045b310
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0045b310
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 0x5a01bb
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 0x5a1e52
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x5a4570
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x5a45c0
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x5a4790
push 0
push 0
call fcn.0044652a
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x5a45c0
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x5a45af
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
Function at 0x5a4610
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x5a4624
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 8]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5a4671
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x5a4fb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5a4fbd
xor eax, eax
ret 0xc
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x5a50c0
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x60759c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x60759c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x60759c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x60759c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x60759c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x60759c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x60759c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x60759c]
xor eax, edx
inc ecx
dec edi
jne 0x5a4fd8
pop edi
test esi, esi
je 0x5a50e2
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x60759c]
xor eax, edx
inc ecx
dec esi
jne 0x5a50c4
pop esi
pop ebx
not eax
ret 0xc