joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58b4f0
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 [0x669880], ebp
call esi
mov dword [0x669888], eax
mov eax, dword [esp + 0x38]
xor edi, edi
cmp eax, ebp
je 0x58b5cb
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 0x58b584
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 0x58b584
cmp dword [esp + 0x38], 0x20
jne 0x58b584
mov ebp, 1
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x58b5ef
lea ecx, [esp + 0x10]
push ecx
call fcn.00587c40
add esp, 4
test eax, eax
je 0x58b61a
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.0058b180
add esp, 8
test eax, eax
je 0x58b642
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x669880], 1
mov dword [0x669884], 0xace
call esi
mov dword [0x669888], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x24
ret
mov dword [0x669880], 0xf
mov dword [0x669884], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x669888], eax
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
mov dword [0x669880], 0x14
mov dword [0x669884], 0xae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x669888], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
mov dword [0x669880], 0x1f
mov dword [0x669884], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [0x669888], eax
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
Function at 0x58b920
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 [0x669880], ebp
call esi
mov dword [0x669888], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0xc], ebp
je 0x58b9f7
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 0x58b9b6
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 0x58b9b6
cmp dword [esp + 0x3c], 0x20
jne 0x58b9b6
mov ebp, 1
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
call edi
test ebp, ebp
pop ebx
je 0x58ba0f
lea ecx, [esp + 0x14]
push ecx
call fcn.00587c40
add esp, 4
test eax, eax
je 0x58ba38
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0058b180
add esp, 8
test eax, eax
je 0x58ba4e
mov dword [esp + 0xc], 1
jmp 0x58ba6d
mov dword [0x669880], 1
mov dword [0x669884], 0xace
call esi
jmp 0x58ba68
mov dword [0x669880], 0xf
mov dword [0x669884], 0xad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x669888], eax
mov dword [esp + 0xc], 1
jmp 0x58ba6d
mov dword [0x669880], 0x14
mov dword [0x669884], 0xae3
jmp 0x58ba62
mov dword [0x669880], 0x1f
mov dword [0x669884], 0xae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x669888], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x58baa8
mov edi, dword [esp + 0x40]
test edi, edi
je 0x58ba95
mov ecx, dword [esp + 0x44]
test ecx, ecx
jbe 0x58ba95
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 0x58baa3
mov dword [eax], 0
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x28
ret
Function at 0x58e2a0
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 0x58e2d6
cmp ecx, edi
je 0x58e3cc
xor esi, esi
xor edx, edx
or esi, eax
or ecx, edx
mov dword [esp + 0x20], ecx
ja 0x58e2ed
cmp esi, 0x20
jbe 0x58e3f4
push ebx
push 0x200
call fcn.005c8d38
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x58e41c
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 0x58e32e
cmp esi, 0x200
jbe 0x58e333
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.005905d0
add esp, 0x1c
test eax, eax
je 0x58e432
cmp esi, dword [esp + 0x10]
jne 0x58e448
add esi, esi
push esi
call fcn.005c8d38
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x58e45e
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.0059e140
test eax, eax
jne 0x58e474
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 0x20
cmp edx, eax
ja 0x58e48a
mov dword [esp + 0x18], 1
jmp 0x58e4a9
mov dword [0x669880], 0x1000b
mov dword [0x669884], 0x1098
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x669888], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x669880], 0x30
mov dword [0x669884], 0x10a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x669888], eax
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov dword [0x669880], 0x21
mov dword [0x669884], 0x10a7
jmp 0x58e49e
mov dword [0x669880], 0xd
mov dword [0x669884], 0x10b4
jmp 0x58e49e
mov dword [0x669880], 0xd
mov dword [0x669884], 0x10ba
jmp 0x58e49e
mov dword [0x669880], 0x21
mov dword [0x669884], 0x10c4
jmp 0x58e49e
mov dword [0x669880], 0x2f
mov dword [0x669884], 0x10cd
jmp 0x58e49e
mov dword [0x669880], 0x30
mov dword [0x669884], 0x10d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x669888], eax
test ebx, ebx
je 0x58e4b6
push ebx
call fcn.005c8d61
add esp, 4
test ebp, ebp
pop ebx
je 0x58e4c4
push ebp
call fcn.005c8d61
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x58f670
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5eb9bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x5f1c04]
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], 0x5fd368
call fcn.0045b380
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 0x58f6d7
and ebx, 0xfffffffe
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x58f6d7
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 0x58f710
Capabilities:
Set file attributes

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

Function at 0x590050
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5eb9f1
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebp
mov ebp, dword [esp + 0x228]
test ebp, ebp
je 0x5901e1
push ebp
call fcn.00441ab0
add esp, 4
cmp eax, 2
jbe 0x5901e1
cmp word [ebp + 2], 0x3a
jne 0x5901e1
mov ax, word [ebp]
cmp ax, 0x61
jb 0x5900a8
cmp ax, 0x7a
jbe 0x5900bc
cmp ax, 0x41
jb 0x5901e1
cmp ax, 0x5a
ja 0x5901e1
push ebp
lea ecx, [esp + 0xc]
call fcn.0045a830
push 0x5c
lea ecx, [esp + 0xc]
mov dword [esp + 0x224], 0
call fcn.0045c2b0
mov edx, eax
cmp edx, 0xffffffff
je 0x5901cd
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.0045d400
mov edx, dword [0x5f1c04]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x62d438
push edx
mov byte [esp + 0x238], 2
call fcn.0045e0b0
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 0x59017a
mov edx, dword [esp + 0xc]
push 4
push eax
push edx
call esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 1
call fcn.0045b0a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x228], 0
call fcn.0045b0a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], 0xffffffff
call fcn.0045b0a0
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.0045b0a0
mov ecx, dword [esp + 0x218]
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x5905d0
Capabilities:
Read file on windows

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

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

Disassembly:
mov eax, dword [0x669f54]
sub esp, 0x218
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
je 0x593375
mov ebp, dword [esp + 0x22c]
cmp ebp, ebx
je 0x593375
push 0x669f58
call fcn.00441ab0
add esp, 4
test eax, eax
je 0x593375
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 [0x669f50]
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.00441acd
add esp, 0x24
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x10000000
push 0x669f58
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x593375
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 0x5932f3
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.00441ab0
add esp, 4
lea edx, [esp + 0x30]
shl eax, 1
push eax
push edx
push esi
call edi
push ebp
call fcn.00441ab0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x59335e
lea eax, [esp + 0x10]
push 0
push eax
push ebp
call fcn.00441ab0
add esp, 4
shl eax, 1
push eax
push ebp
push esi
call edi
cmp word [ebp + ebx*2 - 2], 0xa
je 0x59335e
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x62d0a8
call fcn.00441ab0
add esp, 4
shl eax, 1
push eax
push 0x62d0a8
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 0x5975f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ebb90
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.00461e80
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.00461e80
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x66a824]
test eax, eax
je 0x5976a8
cmp ebp, eax
jne 0x5976a8
mov eax, dword [0x66a828]
test eax, eax
je 0x5976a8
cmp ebx, eax
jb 0x5976a8
add eax, 0x493e0
cmp eax, ebx
jb 0x5976a8
mov ebp, dword [0x66a82c]
push 1
inc ebp
push 0x66a740
lea ecx, [esp + 0x18]
mov dword [0x66a82c], ebp
call fcn.005c5100
push 0x66a770
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.004620d0
push 0x66a760
mov ecx, edi
call fcn.004620d0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x59771e
push edi
push esi
mov dword [0x66a82c], 0
call fcn.00597a20
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x66a740
call fcn.005c5100
push 0xffffffffffffffff
push 0
mov ecx, 0x66a770
mov dword [esp + 0x38], 1
mov dword [0x66a824], ebp
mov dword [0x66a828], ebx
call fcn.00461e80
push esi
mov ecx, 0x66a770
call fcn.004620d0
push 0xffffffffffffffff
push 0
mov ecx, 0x66a760
call fcn.00461e80
push edi
mov ecx, 0x66a760
call fcn.004620d0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.005c5160
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 0x597740
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5ebbb6
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.005c6b24
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.005c6b24
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 0x59787a
mov cl, byte [0x62e612]
mov dx, word [0x62e610]
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.005c86d5
mov eax, dword [esi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.005c6d66
mov edx, dword [0x6457a8]
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.005c87f0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.005c6d66
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.005c8667
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.005c8667
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 0x59779b
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 0x5978b0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5ebbd6
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.004601b0
mov ebp, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.004601b0
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 0x5979ea
mov cl, byte [0x62e612]
mov dx, word [0x62e610]
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.00454d80
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x13c], ebx
call fcn.00460830
mov edx, dword [0x5f1c00]
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.004559f0
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00460830
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], bl
call fcn.00455730
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], 0xffffffff
call fcn.00455730
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 0x59790b
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 0x597a20
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5ebbf6
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.00461e80
mov ebp, dword [esp + 0x248]
push 0xffffffffffffffff
push ebx
mov ecx, ebp
call fcn.00461e80
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 0x597b59
mov edx, dword [0x62d430]
mov cx, word [0x62d434]
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.0045a830
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x244], ebx
call fcn.00462510
mov edx, dword [0x5f1c04]
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.0045b380
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, ebp
call fcn.00462510
lea ecx, [esp + 0x14]
mov byte [esp + 0x23c], bl
call fcn.0045b0a0
lea ecx, [esp + 0x24]
mov dword [esp + 0x23c], 0xffffffff
call fcn.0045b0a0
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 0x597a7b
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 0x599712
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x599732
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004461ff
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x599755
test byte [esp + 8], 2
je 0x599755
call fcn.00446272
mov dword [eax], 0xd
call fcn.0044627b
mov dword [eax], 5
jmp 0x59972e
xor eax, eax
ret

Function at 0x59be30
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x59be80
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x59c050
push 0
push 0
call fcn.004462ba
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x59be80
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x59be6f
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 0x59bed0
Capabilities:
Terminate thread

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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x59c87d
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 0x59c980
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 + 0x5fe16c]
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 + 0x5fe16c]
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 + 0x5fe16c]
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 + 0x5fe16c]
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 + 0x5fe16c]
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 + 0x5fe16c]
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 + 0x5fe16c]
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 + 0x5fe16c]
xor eax, edx
inc ecx
dec edi
jne 0x59c898
pop edi
test esi, esi
je 0x59c9a2
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5fe16c]
xor eax, edx
inc ecx
dec esi
jne 0x59c984
pop esi
pop ebx
not eax
ret 0xc