joyce8/EMBER2024-capa huggingface dataset:
Function at 0x598e00
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 [0x67b618], ebp
call esi
mov dword [0x67b620], eax
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebp
je 0x598edb
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 0x598e94
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 0x598e94
cmp dword [esp + 0x38], 0x20
jne 0x598e94
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x598eff
lea ecx, [esp + 0x10]
push ecx
call fcn.00595550
add esp, 4
test eax, eax
je 0x598f2a
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00598a90
add esp, 8
test eax, eax
je 0x598f52
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x67b618], 1
mov dword [0x67b61c], 0xace
call esi
mov dword [0x67b620], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x24
ret
mov dword [0x67b618], 0xf
mov dword [0x67b61c], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x67b620], eax
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x67b618], 0x14
mov dword [0x67b61c], 0xae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x67b620], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
mov dword [0x67b618], 0x1f
mov dword [0x67b61c], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x67b620], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x599230
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 [0x67b618], ebp
call esi
mov dword [0x67b620], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0xc], ebp
je 0x599307
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 0x5992c6
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 0x5992c6
cmp dword [esp + 0x3c], 0x20
jne 0x5992c6
mov ebp, 1
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x59931f
lea ecx, [esp + 0x14]
push ecx
call fcn.00595550
add esp, 4
test eax, eax
je 0x599348
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00598a90
add esp, 8
test eax, eax
je 0x59935e
mov dword [esp + 0xc], 1
jmp 0x59937d
mov dword [0x67b618], 1
mov dword [0x67b61c], 0xace
call esi
jmp 0x599378
mov dword [0x67b618], 0xf
mov dword [0x67b61c], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x67b620], eax
mov dword [esp + 0xc], 1
jmp 0x59937d
mov dword [0x67b618], 0x14
mov dword [0x67b61c], 0xae3
jmp 0x599372
mov dword [0x67b618], 0x1f
mov dword [0x67b61c], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x67b620], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5993b8
mov edi, dword [esp + 0x40]
test edi, edi
je 0x5993a5
mov ecx, dword [esp + 0x44]
test ecx, ecx
jbe 0x5993a5
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 0x5993b3
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x59bbb0
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 0x59bbe6
cmp ecx, edi
je 0x59bcdc
xor esi, esi
xor edx, edx
or esi, eax
or ecx, edx
mov dword [esp + 0x20], ecx
ja 0x59bbfd
cmp esi, 0x20
jbe 0x59bd04
push ebx
push 0x200
call fcn.005d62f8
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x59bd2c
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 0x59bc3e
cmp esi, 0x200
jbe 0x59bc43
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.0059dee0
add esp, 0x1c
test eax, eax
je 0x59bd42
cmp esi, dword [esp + 0x10]
jne 0x59bd58
add esi, esi
push esi
call fcn.005d62f8
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x59bd6e
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.005aba50
test eax, eax
jne 0x59bd84
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 0x20
cmp edx, eax
ja 0x59bd9a
mov dword [esp + 0x18], 1
jmp 0x59bdb9
mov dword [0x67b618], 0x1000b
mov dword [0x67b61c], 0x1098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x67b620], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x67b618], 0x30
mov dword [0x67b61c], 0x10a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x67b620], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x67b618], 0x21
mov dword [0x67b61c], 0x10a7
jmp 0x59bdae
mov dword [0x67b618], 0xd
mov dword [0x67b61c], 0x10b4
jmp 0x59bdae
mov dword [0x67b618], 0xd
mov dword [0x67b61c], 0x10ba
jmp 0x59bdae
mov dword [0x67b618], 0x21
mov dword [0x67b61c], 0x10c4
jmp 0x59bdae
mov dword [0x67b618], 0x2f
mov dword [0x67b61c], 0x10cd
jmp 0x59bdae
mov dword [0x67b618], 0x30
mov dword [0x67b61c], 0x10d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x67b620], eax
test ebx, ebx
je 0x59bdc6
push ebx
call fcn.005d6321
add esp, 4
test ebp, ebp
pop ebx
je 0x59bdd4
push ebp
call fcn.005d6321
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x59cf80
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5fa42b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5ffc34]
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], 0x60b7d8
call fcn.0045e0a0
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 0x59cfe7
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x59cfe7
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 0x59d020
Capabilities:
Set file attributes

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

Function at 0x59d960
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fa461
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, dword [esp + 0x228]
test ebp, ebp
je 0x59daf1
push ebp
call fcn.004447d0
add esp, 4
cmp eax, 2
jbe 0x59daf1
cmp word [ebp + 2], 0x3a
jne 0x59daf1
mov ax, word [ebp]
cmp ax, 0x61
jb 0x59d9b8
cmp ax, 0x7a
jbe 0x59d9cc
cmp ax, 0x41
jb 0x59daf1
cmp ax, 0x5a
ja 0x59daf1
push ebp
lea ecx, [esp + 0xc]
call fcn.0045d550
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0
call fcn.0045efd0
mov edx, eax
cmp edx, 0xffffffff
je 0x59dadd
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.00460120
mov edx, dword [0x5ffc34]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x63d648
push edx
mov byte [esp + 0x238], 2
call fcn.00460dd0
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 0x59da8a
mov edx, dword [esp + 0xc]
push 4
push eax
push edx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.0045ddc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call fcn.0045ddc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0045ddc0
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.0045ddc0
mov ecx, dword [esp + 0x218]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x59dee0
Capabilities:
Read file on windows

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

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

Disassembly:
mov eax, dword [0x67bcec]
sub esp, 0x218
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x5a0c85
mov ebp, dword [esp + 0x22c]
cmp ebp, ebx
je 0x5a0c85
push 0x67bcf0
call fcn.004447d0
add esp, 4
test eax, eax
je 0x5a0c85
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 [0x67bce8]
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.004447ed
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push 0x67bcf0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5a0c85
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 0x5a0c03
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.004447d0
add esp, 4
lea edx, [esp + 0x30]
shl eax, 1
push eax
push edx
push esi
call edi
push ebp
call fcn.004447d0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5a0c6e
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call fcn.004447d0
add esp, 4
shl eax, 1
push eax
push ebp
push esi
call edi
cmp word [ebp + ebx*2 - 2], 0xa
je 0x5a0c6e
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x63d2b8
call fcn.004447d0
add esp, 4
shl eax, 1
push eax
push 0x63d2b8
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 0x5a4f00
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5fa600
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.00464ba0
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00464ba0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x67c5bc]
test eax, eax
je 0x5a4fb8
cmp ebp, eax
jne 0x5a4fb8
mov eax, dword [0x67c5c0]
test eax, eax
je 0x5a4fb8
cmp ebx, eax
jb 0x5a4fb8
add eax, 0x493e0
cmp eax, ebx
jb 0x5a4fb8
mov ebp, dword [0x67c5c4]
push 1
inc ebp
push 0x67c4d8
lea ecx, [esp + 0x18]
mov dword [0x67c5c4], ebp
call fcn.005d26c0
push 0x67c508
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.00464df0
push 0x67c4f8
mov ecx, edi
call fcn.00464df0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x5a502e
push edi
push esi
mov dword [0x67c5c4], 0
call fcn.005a5330
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x67c4d8
call fcn.005d26c0
push 0xffffffffffffffff
push 0
mov ecx, 0x67c508
mov dword [esp + 0x38], 1
mov dword [0x67c5bc], ebp
mov dword [0x67c5c0], ebx
call fcn.00464ba0
push esi
mov ecx, 0x67c508
call fcn.00464df0
push 0xffffffffffffffff
push 0
mov ecx, 0x67c4f8
call fcn.00464ba0
push edi
mov ecx, 0x67c4f8
call fcn.00464df0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.005d2720
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 0x5a5050
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5fa626
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.005d40e4
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.005d40e4
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 0x5a518a
mov cl, byte [0x63e862]
mov dx, word [0x63e860]
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.005d5c95
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.005d4326
mov edx, dword [0x656c68]
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.005d5db0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.005d4326
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.005d5c27
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.005d5c27
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 0x5a50ab
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 0x5a51c0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5fa646
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.00462ed0
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00462ed0
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 0x5a52fa
mov cl, byte [0x63e862]
mov dx, word [0x63e860]
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.00457aa0
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.00463550
mov edx, dword [0x5ffc30]
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.00458710
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00463550
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.00458450
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.00458450
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 0x5a521b
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 0x5a5330
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5fa666
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.00464ba0
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00464ba0
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 0x5a5469
mov edx, dword [0x63d640]
mov cx, word [0x63d644]
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.0045d550
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00465230
mov edx, dword [0x5ffc34]
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.0045e0a0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00465230
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0045ddc0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0045ddc0
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 0x5a538b
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 0x5a7022
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5a7042
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00448f0f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5a7065
test byte [esp + 8], 2
je 0x5a7065
call fcn.00448f82
mov dword [eax], 0xd
call fcn.00448f8b
mov dword [eax], 5
jmp 0x5a703e
xor eax, eax
ret

Function at 0x5a9710
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x5a9760
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x5a9930
push 0
push 0
call fcn.00448fca
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x5a9760
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x5a974f
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 0x5a97b0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x5a97c4
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 0x5a9811
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 0x5aa180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x5aa18d
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 0x5aa290
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 + 0x60c5dc]
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 + 0x60c5dc]
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 + 0x60c5dc]
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 + 0x60c5dc]
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 + 0x60c5dc]
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 + 0x60c5dc]
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 + 0x60c5dc]
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 + 0x60c5dc]
xor eax, edx
inc ecx
dec edi
jne 0x5aa1a8
pop edi
test esi, esi
je 0x5aa2b2
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x60c5dc]
xor eax, edx
inc ecx
dec esi
jne 0x5aa294
pop esi
pop ebx
not eax
ret 0xc