joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1082773
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x10827ee
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 8]
push eax
push 0
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x10827e9
add eax, 5
push esi
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
je 0x10827e8
push edi
lea edi, [esi + 4]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x10827df
cmp byte [esi + 5], 0x3a
jne 0x10827df
mov al, byte [edi]
push esi
mov byte [esi + 3], 0x3d
mov byte [esi], 0x3d
mov byte [esi + 1], al
mov byte [esi + 2], 0x3a
call dword [sym.imp.msvcrt.dll__putenv]
test eax, eax
pop ecx
je 0x10827e7
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
or eax, 0xffffffff
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1082853
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 2
or eax, 0xffffffff
pop ebp
ret
test al, 1
je 0x108286b
test byte [ebp + 0xc], 2
je 0x108286b
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xd
jmp 0x108284e
xor eax, eax
pop ebp
ret

Function at 0x1082874
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x108288b
or eax, eax
pop ebp
ret
test byte [ebp + 0xc], 0x80
je 0x1082896
and eax, 0xfffffffe
jmp 0x1082899
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
neg eax
sbb eax, eax
neg eax
dec eax
pop ebp
ret

Function at 0x1082b4a
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10de03c]
and dword [ebp - 0x208], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
push 0x1004528
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push 0xf003f
push 0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x1082beb
push 4
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x1082be8
lea eax, [ebp - 0x224]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1082be5
cmp dword [ebp - 0x220], 4
jne 0x1082be5
mov dword [ebp - 0x208], 1
push esi
call edi
push ebx
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x208], eax
pop edi
pop esi
setne al
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x108354d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
push edi
xor edi, edi
cmp dword [0x10e6c74], edi
jne 0x1083596
push 0x10106b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x10e6c74], eax
je 0x108377e
push 0x10ec9d4
push ebx
call fcn.01082a08
cmp dword [0x10e6c74], edi
je 0x108377e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101069c
push dword [0x10e6c74]
call esi
push 0x1010680
push dword [0x10e6c74]
mov dword [0x10e6c54], eax
call esi
push 0x1010670
push dword [0x10e6c74]
mov dword [0x10e6c58], eax
call esi
push 0x1010660
push dword [0x10e6c74]
mov dword [0x10e6c5c], eax
call esi
push 0x101064c
push dword [0x10e6c74]
mov dword [0x10e6c60], eax
call esi
push 0x1010634
push dword [0x10e6c74]
mov dword [0x10e6c64], eax
call esi
push 0x101061c
push dword [0x10e6c74]
mov dword [0x10e6c68], eax
call esi
push 0x1010610
push dword [0x10e6c74]
mov dword [0x10e6c6c], eax
call esi
push 0x1010604
push dword [0x10e6c74]
mov dword [0x10e6c70], eax
call esi
push 0x10105f0
push dword [0x10e6c74]
mov dword [0x10e6c4c], eax
call esi
push 0x10105dc
push dword [0x10e6c74]
mov dword [0x10e6c48], eax
call esi
push 0x10105c0
push dword [0x10e6c74]
mov dword [0x10e6c50], eax
call esi
push 0x10105a0
push dword [0x10e6c74]
mov dword [0x10e6c40], eax
call esi
push 0x1010590
push dword [0x10e6c74]
mov dword [0x10e6c3c], eax
call esi
cmp dword [0x10e6c74], edi
mov dword [0x10e6c44], eax
je 0x108377e
cmp dword [0x10e6c54], edi
je 0x108377e
cmp dword [0x10e6c58], edi
je 0x108377e
cmp dword [0x10e6c5c], edi
je 0x108377e
cmp dword [0x10e6c60], edi
je 0x108377e
cmp dword [0x10e6c64], edi
je 0x108377e
cmp dword [0x10e6c68], edi
je 0x108377e
cmp dword [0x10e6c6c], edi
je 0x108377e
cmp dword [0x10e6c70], edi
je 0x108377e
cmp dword [0x10e6c4c], edi
je 0x108377e
cmp dword [0x10e6c48], edi
je 0x108377e
cmp dword [0x10e6c50], edi
je 0x108377e
cmp dword [0x10e6c40], edi
je 0x108377e
cmp dword [0x10e6c3c], edi
je 0x108377e
cmp eax, edi
je 0x108377e
or dword [ebp + 8], 0xffffffff
lea eax, [ebp + 8]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.01082aad
mov esi, eax
cmp esi, edi
je 0x1083774
push 0x10103e4
push esi
call fcn.01082b4a
test ax, ax
je 0x108376c
push edi
push edi
lea eax, [ebp - 4]
push eax
push 3
push esi
push ebx
mov dword [ebp - 4], edi
call fcn.01082eaf
jmp 0x1083774
mov eax, dword [ebp + 8]
call fcn.01082ae6
cmp dword [ebp + 8], 0xffffffff
jne 0x1083730
xor eax, eax
jmp 0x1083781
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1086db1
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d0
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4cc]
push 0x10e85e0
push eax
xor ebx, ebx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x4cc]
push 0x1004204
push eax
call esi
lea eax, [ebp - 0x4cc]
push 0x10106ec
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0x18
push 1
call esi
push ebx
push 0x80
push 4
push ebx
push ebx
mov dword [ebp - 0x4d0], eax
push 0xc0000000
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x1086e46
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1086e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13
jne 0x1086e54
xor ebx, ebx
inc ebx
push dword [ebp - 0x4d0]
call esi
mov ecx, dword [ebp - 4]
pop esi
mov byte [0x10de1c0], bl
mov ax, bx
pop ebx
call fcn.01075aef
leave
ret

Function at 0x1087250
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
and dword [0x10eb274], 0
push 0xa
pop ecx
push 0xa
or eax, 0xffffffff
mov edi, 0x10eb21c
rep stosd dword es:[edi], eax
pop ecx
or eax, 0xffffffff
mov edi, 0x10e89e0
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
xor edi, edi
inc edi
push edi
push 0
push 0x100a0f0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10872ef
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x10de180
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1010728
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10872e6
mov eax, dword [0x10de180]
cmp eax, edi
jae 0x10872cd
mov eax, edi
cmp eax, 0x64
jbe 0x10872d5
push 0x64
pop eax
imul eax, eax, 0xf4240
mov dword [0x10de180], eax
mov dword [0x10eb274], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [0x10eb214], 0xffffffff
pop edi
leave
ret
Function at 0x10873f6
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.010872fe
xor esi, esi
sub eax, esi
je 0x108758a
dec eax
jne 0x10875d2
mov ecx, dword [0x10eb214]
cmp ecx, 0xffffffff
je 0x1087576
cmp dword [0x10eb254], esi
jne 0x1087576
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [0x10de1b8]
sub dword [ebp + 0x10], edx
cmp dword [0x10eb258], esi
jne 0x108744e
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [0x10eb248]
mov ecx, dword [0x10de17c]
cmp eax, ecx
jbe 0x1087463
sub eax, ecx
inc eax
inc eax
jmp 0x108746b
cmp eax, 2
jbe 0x108746b
push 2
pop eax
mov ecx, dword [ebp + 0x10]
shr ecx, 9
cmp ecx, eax
jae 0x1087477
mov eax, ecx
mov edi, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push dword [ebp + 0x18]
mov ecx, eax
and ecx, 1
sub eax, ecx
shl eax, 9
push edi
mov ebx, eax
push ebx
push dword [ebp + 0xc]
push dword [0x10eb214]
call esi
cmp dword [edi], 0
mov dword [ebp + 0x10], eax
jne 0x10874ec
call fcn.010870d2
mov ecx, dword [0x10eb248]
mov eax, ecx
shl eax, 9
cmp eax, ebx
jae 0x10874f2
mov eax, dword [0x10de17c]
cmp ecx, eax
jbe 0x10874c6
sub ecx, eax
jmp 0x10874cd
push 2
pop eax
cmp ecx, eax
ja 0x10874cf
mov eax, ecx
push dword [ebp + 0x18]
mov ecx, eax
and ecx, 1
push edi
sub eax, ecx
shl eax, 9
push eax
push dword [ebp + 0xc]
push dword [0x10eb214]
call esi
mov dword [ebp + 0x10], eax
mov ecx, dword [0x10eb248]
cmp dword [ebp + 0x10], 0
pop ebx
je 0x10874fd
and dword [ebp + 0x10], 0
mov eax, dword [edi]
xor edx, edx
div dword [0x10de1b8]
mov esi, eax
cmp dword [0x10eb24c], esi
jae 0x108751e
call fcn.010870d2
mov ecx, dword [0x10eb248]
jmp 0x1087524
sub dword [0x10eb24c], esi
cmp ecx, esi
jbe 0x1087530
sub ecx, esi
mov dword [0x10eb248], ecx
cmp ecx, dword [0x10de17c]
jae 0x1087542
mov dword [0x10eb268], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add dword [0x10eb258], esi
cmp dword [0x10eb274], 0
mov dword [0x10e8e08], eax
je 0x10875d2
mov eax, dword [0x10eb27c]
add eax, dword [edi]
cmp eax, dword [0x10de180]
mov dword [0x10eb27c], eax
jbe 0x10875d2
and dword [ebp + 0x10], 0
jmp 0x10875c8
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x10], esi
mov dword [eax], esi
mov dword [0x10e8e08], 0x13
jmp 0x10875d2
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01087325
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x10eb274], esi
mov dword [ebp + 0x10], eax
je 0x10875d2
mov eax, dword [0x10eb27c]
add eax, dword [edi]
cmp eax, dword [0x10de180]
mov dword [0x10eb27c], eax
jbe 0x10875d2
mov dword [ebp + 0x10], esi
mov dword [0x10eb278], 1
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1087a5c
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.010872fe
xor esi, esi
sub eax, esi
je 0x1087b10
dec eax
jne 0x1087b2c
mov eax, dword [0x10eb214]
xor edi, edi
cmp eax, 0xffffffff
je 0x1087b04
cmp dword [0x10eb254], esi
jne 0x1087b04
cmp dword [0x10eb258], esi
jne 0x1087aa4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1087b2f
cmp dword [ebp + 0x10], esi
je 0x1087b2f
call fcn.010879ca
push esi
lea eax, [ebp + 8]
push eax
push dword [0x10de1b8]
push 0x10e9210
push dword [0x10eb214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
mov eax, dword [0x10de1b8]
cmp dword [ebp + 8], eax
jne 0x1087af7
xor edx, edx
div eax
sub dword [0x10eb24c], eax
sub dword [0x10eb248], eax
add dword [0x10eb258], eax
dec dword [ebp + 0x10]
jne 0x1087aad
jmp 0x1087b2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10e8e08], eax
jmp 0x1087b2f
mov dword [0x10e8e08], 0x13
jmp 0x1087b2f
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01087325
push eax
call dword [sym.imp.KERNEL32.dll_WriteTapemark]
mov edi, eax
jmp 0x1087b2f
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x1087e4c
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x10d1769
call fcn.01077798
push ecx
push ecx
push ebx
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.010872fe
dec eax
jne 0x108806d
cmp dword [0x10eb26c], ebx
jne 0x108806d
push esi
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
mov esi, 0x10e8a08
push esi
mov dword [0x10eb254], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb214], eax
jne 0x108800b
push edi
mov edi, 0x10e8e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
mov dword [0x10e8e08], eax
mov dword [ebp - 0x10], eax
jne 0x1087f9b
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::CString_4
push esi
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
test eax, eax
je 0x1087fe8
push 0x5c
push edi
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
push 0x2805
lea ecx, [ebp + 8]
mov word [eax], bx
call sub.MFC42u.DLL_CString::LoadStringW
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Format_1
add esp, 0xc
call fcn.01021462
cmp word [eax + 0xb88], 2
je 0x1087f50
push 1
push ebx
push 0x40
push 4
push dword [ebp - 0x14]
push 0x2806
call fcn.01054b83
cmp eax, 6
jne 0x1087fe0
push edi
call fcn.01033add
test eax, eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
je 0x1087fe4
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb214], eax
je 0x1087eaf
jmp 0x108800a
push ebx
push 0x80
push 4
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x10eb214], eax
jne 0x1087fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x10e8e08], eax
mov dword [ebp - 0x10], eax
jmp 0x108800a
mov dword [0x10e8e08], ebx
mov dword [ebp - 0x10], ebx
mov dword [0x10eb254], 1
jmp 0x108800a
push 3
jmp 0x1087fea
push 0x57
jmp 0x1087ff0
push 0x57
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
pop eax
mov dword [0x10e8e08], eax
mov dword [ebp - 0x10], eax
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
pop edi
cmp dword [0x10e8e08], 0xb7
jne 0x108801d
mov dword [0x10e8e08], ebx
cmp dword [0x10eb214], 0xffffffff
je 0x108806c
push 0x2000
push esi
mov dword [0x10eb26c], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.010870d2
push ebx
push dword [0x10eb264]
push dword [0x10eb260]
push dword [0x10eb214]
call fcn.0108739e
push ebx
push dword [0x10de1b8]
push edx
push eax
call fcn.01077b00
mov dword [0x10eb258], eax
pop esi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1088084
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
push eax
mov dword [ebp - 0x408], edi
call fcn.010872fe
dec eax
jne 0x10881c0
cmp dword [0x10eb26c], edi
je 0x10881c0
push ebx
push esi
push 1
push edi
push edi
push dword [0x10eb214]
call fcn.0108739e
push 2
push edi
push edi
push dword [0x10eb214]
mov dword [0x10eb260], eax
mov dword [0x10eb264], edx
call fcn.0108739e
push dword [0x10eb214]
mov esi, eax
mov dword [ebp - 0x40c], edx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x108810b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
push dword [0x10eb214]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
or dword [0x10eb214], 0xffffffff
or esi, dword [ebp - 0x40c]
jne 0x1088133
push 0x10e8a08
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x10eb218], edi
je 0x10881b8
lea eax, [ebp - 0x404]
push 0x1010708
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x404]
push 0x10e85e0
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10881b8
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x108819d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
push edi
lea eax, [ebp - 0x40c]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
call ebx
pop esi
mov dword [0x10eb26c], edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
pop edi
call fcn.01075aef
leave
ret 4
Function at 0x1088272
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.010872fe
xor esi, esi
sub eax, esi
je 0x1088381
dec eax
jne 0x10883a0
push dword [ebp + 0x10]
call fcn.010881d8
mov ecx, dword [0x10eb214]
cmp ecx, 0xffffffff
mov ebx, eax
jne 0x10882b2
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
jmp 0x1088355
cmp word [0x10eb280], si
je 0x10882e6
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, bl
mov dl, al
mov dh, dl
push 0x3f
pop ecx
mov eax, edx
shl eax, 0x10
mov ax, dx
xor esi, esi
mov dword [0x10e8e08], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jmp 0x10883a3
mov eax, ebx
xor edx, edx
div dword [0x10de1b8]
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
sub ebx, edx
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x108830d
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [0x10e8e08], eax
jne 0x1088326
and dword [0x10e8e08], 0
mov eax, dword [edi]
mov ecx, dword [0x10de1b8]
cmp eax, ecx
jb 0x1088361
sub eax, ecx
add eax, ebx
mov edx, dword [eax]
mov ecx, 0x101075c
cmp edx, dword [ecx]
jne 0x1088361
push 0x1a
push eax
call fcn.010af2d5
test ax, ax
jne 0x1088361
mov eax, dword [0x10de1b8]
sub dword [edi], eax
mov dword [0x10e8e08], 0x44d
jmp 0x10883a3
test esi, esi
jne 0x10883a3
cmp dword [0x10e8e08], 0x44d
je 0x10883a3
cmp dword [edi], esi
jne 0x10883a3
mov dword [0x10e8e08], 0x450
jmp 0x10883a3
push dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01087325
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x10883a3
mov esi, dword [ebp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x1088e7c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push edi
xor edi, edi
cmp dword [0x10de1c8], edi
je 0x1088fc7
cmp dword [0x10eb288], edi
mov dword [0x10de1c8], edi
jne 0x1088fc7
push ebx
push 0x1010834
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x1088fc6
push 1
push 0x24
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, edi
pop ecx
pop ecx
mov dword [0x10eb288], eax
je 0x1088fc6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1010818
push ebx
call esi
mov ecx, dword [0x10eb288]
push 0x10107fc
push ebx
mov dword [ecx + 4], eax
call esi
mov ecx, dword [0x10eb288]
push 0x10107e4
push ebx
mov dword [ecx + 8], eax
call esi
mov ecx, dword [0x10eb288]
push 0x10107c8
push ebx
mov dword [ecx + 0xc], eax
call esi
mov ecx, dword [0x10eb288]
push 0x10107b8
push ebx
mov dword [ecx + 0x10], eax
call esi
mov ecx, dword [0x10eb288]
push 0x101079c
push ebx
mov dword [ecx + 0x14], eax
call esi
mov ecx, dword [0x10eb288]
push 0x1010784
push ebx
mov dword [ecx + 0x18], eax
call esi
mov ecx, dword [0x10eb288]
push 0x101076c
push ebx
mov dword [ecx + 0x1c], eax
call esi
mov ecx, dword [0x10eb288]
mov dword [ecx + 0x20], eax
mov eax, dword [0x10eb288]
cmp dword [eax + 4], edi
pop esi
je 0x1088f8b
cmp dword [eax + 8], edi
je 0x1088f8b
cmp dword [eax + 0xc], edi
je 0x1088f8b
cmp dword [eax + 0x10], edi
je 0x1088f8b
cmp dword [eax + 0x14], edi
je 0x1088f8b
cmp dword [eax + 0x18], edi
je 0x1088f8b
cmp dword [eax + 0x1c], edi
je 0x1088f8b
cmp dword [eax + 0x20], edi
jne 0x1088fc6
mov dword [eax + 4], edi
mov eax, dword [0x10eb288]
mov dword [eax + 8], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0xc], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x10], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x14], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x18], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x1c], edi
mov eax, dword [0x10eb288]
mov dword [eax + 0x20], edi
pop ebx
pop edi
ret
Function at 0x1088fe3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x10de03c]
push esi
mov esi, edx
test esi, esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x408], ecx
jne 0x108900d
xor eax, eax
jmp 0x1089142
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcscpy]
push edi
mov edi, dword [eax + 0x5c]
lea eax, [ebp - 0x404]
push esi
push eax
call ebx
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 0xc
cmp word [esi + eax*2 - 2], 0x5c
je 0x1089048
lea eax, [ebp - 0x404]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
push 0x200
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1089077
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x204]
push eax
call ebx
pop ecx
pop ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x108913e
cmp eax, 2
je 0x108913e
mov esi, dword [edi + 0x54]
jmp 0x10890bc
lea eax, [ebp - 0x204]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.msvcrt.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x108913e
mov esi, dword [esi + 0x404]
test esi, esi
jne 0x108909b
push 1
push 0x408
call dword [sym.imp.msvcrt.dll_calloc]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x108913e
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x10890e7
mov dword [eax + 0x404], esi
jmp 0x10890ea
mov dword [edi + 0x54], esi
lea eax, [ebp - 0x204]
push eax
lea edi, [esi + 4]
push edi
call ebx
pop ecx
pop ecx
push 0
push 0x2000000
push 3
push 0
push 3
push 0x20080
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x108913a
lea eax, [ebp - 0x43c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1089133
mov eax, dword [ebp - 0x420]
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1089140
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075aef
leave
ret 4