joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ce70
Capabilities:
Terminate process

Disassembly:
cmp dword [0x54e5b8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x51ce8e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x54e5b4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x54e5b0], bl
jne 0x51cee8
cmp dword [0x6e680c], 0
je 0x51ced6
mov edi, dword [0x6e6808]
sub edi, 4
cmp edi, dword [0x6e680c]
jb 0x51ced6
mov eax, dword [edi]
test eax, eax
je 0x51cecb
call eax
sub edi, 4
cmp edi, dword [0x6e680c]
jae 0x51cec3
push 0x543040
push 0x543038
call fcn.0051cf20
add esp, 8
push 0x543048
push 0x543044
call fcn.0051cf20
add esp, 8
test ebx, ebx
jne 0x51cf0f
mov dword [0x54e5b8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret

Function at 0x51d0e0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x51d0fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x51d10d
push eax
call fcn.005203b0
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x520850
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0051a3b0
push ebx
push esi
push edi
xor ebx, ebx
mov esi, dword [esp + 0x1014]
push ebp
cmp dword [0x6e57f0], esi
jbe 0x52099d
mov eax, esi
mov ecx, esi
and eax, 0xffffffe7
and ecx, 0x1f
sar eax, 3
mov edx, dword [eax + 0x6e56f0]
test byte [edx + ecx*8 + 4], 1
je 0x52099d
push 1
push ebx
push esi
call fcn.00519d90
mov dword [esp + 0x1c], eax
add esp, 0xc
cmp eax, 0xffffffff
je 0x52098d
push 2
push ebx
push esi
call fcn.00519d90
add esp, 0xc
cmp eax, 0xffffffff
je 0x52098d
mov ecx, dword [esp + 0x101c]
mov ebp, ecx
sub ebp, eax
test ebp, ebp
jle 0x520933
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x400
push 0x8000
rep stosd dword es:[edi], eax
push esi
call fcn.00524420
add esp, 8
mov edi, eax
mov eax, 0x1000
cmp ebp, eax
jge 0x5208f6
mov eax, ebp
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0051b500
add esp, 0xc
cmp eax, 0xffffffff
je 0x520912
sub ebp, eax
test ebp, ebp
jg 0x5208eb
jmp 0x520927
cmp dword [0x54e574], 5
jne 0x520925
mov dword [0x54e570], 0xd
mov ebx, eax
push edi
push esi
call fcn.00524420
add esp, 8
jmp 0x520970
jge 0x520970
push 0
push ecx
push esi
call fcn.00519d90
add esp, 0xc
push esi
call fcn.00520800
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp eax, 1
sbb ebx, ebx
cmp ebx, 0xffffffff
jne 0x520970
mov dword [0x54e570], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x54e574], eax
mov eax, dword [esp + 0x10]
push 0
push eax
push esi
call fcn.00519d90
add esp, 0xc
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x54e570], 9
pop edi
pop esi
pop ebx
add esp, 0x1004
ret
Function at 0x522f20
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x54f1a8], ebx
jne 0x522f6f
call esi
cmp eax, ebx
mov edi, eax
je 0x522f4d
mov dword [0x54f1a8], 1
jmp 0x522f6f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x522f65
mov dword [0x54f1a8], 2
jmp 0x522f6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x54f1a8], 1
jne 0x52301e
test edi, edi
jne 0x522f92
call esi
mov edi, eax
test edi, edi
jne 0x522f92
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x522fac
add esi, 2
cmp word [esi], 0
jne 0x522f9a
add esi, 2
cmp word [esi], 0
jne 0x522f9a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x52300d
push ebp
call fcn.00513ee0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x52300d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x522ffc
push ebx
call fcn.00514010
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x54f1a8], 2
jne 0x5230a2
test ebx, ebx
jne 0x523041
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x523041
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x523056
inc ebp
cmp byte [ebp], 0
jne 0x523048
inc ebp
cmp byte [ebp], 0
jne 0x523048
sub ebp, ebx
inc ebp
push ebp
call fcn.00513ee0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x52307b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x523130
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x54f1b0
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x523157
add eax, 8
inc ecx
cmp eax, 0x54f240
jb 0x523148
cmp dword [ecx*8 + 0x54f1b0], edx
lea ebx, [ecx*8]
jne 0x52331b
cmp dword [0x54e5cc], 1
je 0x5232d7
cmp dword [0x54e5cc], 0
jne 0x52318e
cmp dword [0x54e5d0], 1
je 0x5232d7
cmp edx, 0xfc
je 0x52331b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x5231cb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x52320f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x53abac
push ebp
call fcn.0051a2b0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x53ab8c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x54f1b4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00525150
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x6e56f0], 0
je 0x5232ed
mov eax, dword [0x6e56f0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x5232f7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x54f1b4]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x525ec0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x5260fe
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0051bc70
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x5260fe
cmp ebp, dword [esp + 0x18]
je 0x5260fe
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x54e598]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x54e59c], ecx
jne 0x525f1d
push ecx
call fcn.00526170
add esp, 4
mov dword [0x54e598], eax
cmp dword [0x54e598], 0
jne 0x525fcd
cmp dword [esp + 0x1c], 0
je 0x525f54
cmp dword [0x54e5a0], 0
je 0x525f54
call fcn.005257e0
test eax, eax
je 0x525fcd
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x525f65
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x54e598], 0
jne 0x525f99
push 4
call fcn.00513ee0
add esp, 4
mov dword [0x54e598], eax
test eax, eax
jne 0x525f8e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x54e598]
mov dword [eax], 0
cmp dword [0x54e5a0], 0
jne 0x525fcd
push 4
call fcn.00513ee0
add esp, 4
mov dword [0x54e5a0], eax
test eax, eax
jne 0x525fc2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x54e5a0]
mov dword [eax], 0
mov esi, dword [0x54e598]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.00526110
add esp, 8
mov edi, eax
test edi, edi
jl 0x526035
cmp dword [esi], 0
je 0x526035
cmp dword [esp + 0x10], 0
je 0x52602c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00514010
add esp, 4
cmp dword [ebx], 0
je 0x526019
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x52600a
shl edi, 2
push edi
push esi
call fcn.00513fb0
add esp, 8
test eax, eax
je 0x52607d
jmp 0x526078
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x52607d
cmp dword [esp + 0x10], 0
jne 0x5260f4
test edi, edi
jge 0x526046
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00513fb0
add esp, 8
test eax, eax
jne 0x526068
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x54e598], eax
cmp dword [esp + 0x1c], 0
je 0x5260ea
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00513ee0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x5260ea
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00514010
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x10045bc
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1036a44]
push ebx
push esi
xor ebx, ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [esi], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x100461a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x8000ffff
jmp 0x1004688
cmp dword [ebp + 0xc], ebx
push edi
jne 0x1004627
push esi
push dword [ebp - 0x10]
push ebx
jmp 0x100464f
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
push 1
call fcn.010044f6
mov edi, eax
cmp edi, ebx
jge 0x1004648
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
jmp 0x1004687
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call sub.ADVAPI32.dll_CheckTokenMembership
mov esi, eax
cmp esi, ebx
jne 0x1004660
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x14], ebx
je 0x100466e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 0x10

Function at 0x10052fa
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x1036af8], eax
jne 0x100533e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jg 0x1005328
mov dword [0x1036b04], eax
jmp 0x100539b
mov ecx, eax
and ecx, 0xffff
or ecx, 0x80070000
mov dword [0x1036b04], ecx
jmp 0x100539b
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push 0x1004828
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
jne 0x1005392
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, esi
jg 0x100536a
mov dword [0x1036b04], edi
jmp 0x100537b
mov eax, edi
and eax, 0xffff
or eax, 0x80070000
mov dword [0x1036b04], eax
push dword [0x1036af8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov dword [0x1036af8], esi
pop edi
jmp 0x100539b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
leave
ret

Function at 0x100fab5
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 3
add ecx, 4
pop edx
xor eax, dword [ecx]
add ecx, 4
dec edx
jne 0x100fac5
pop ebp
ret 4
Function at 0x10105e2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xca0
mov eax, dword [0x1036a44]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xca0]
push eax
push 0
push 0
push esi
call ebx
test eax, eax
jne 0x1010623
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x101077a
mov eax, dword [ebp - 0xca0]
push edi
add eax, eax
push eax
call fcn.01003305
mov edi, eax
test edi, edi
mov dword [ebp - 0xc9c], edi
je 0x1010779
push 0
push dword [ebp - 0xca0]
push edi
push esi
call ebx
test eax, eax
jne 0x1010663
push edi
call fcn.01003336
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1010779
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
push esi
mov word [esi + 2], 0x3f
call ebx
and word [esi + eax*2 - 2], 0
pop ecx
lea eax, [ebp - 0xc98]
push eax
push esi
call fcn.0101f2ec
push 0x100140c
push esi
mov word [esi + 2], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0xc9c]
cmp word [eax], 0
je 0x101076e
push edi
call ebx
cmp eax, 3
pop ecx
jbe 0x101075b
push edi
call ebx
pop ecx
lea esi, [edi + eax*2 - 4]
jmp 0x10106c5
cmp esi, edi
je 0x10106cb
dec esi
dec esi
cmp word [esi], 0x5c
jne 0x10106bf
and word [esi], 0
push 0x208
lea eax, [ebp - 0x478]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
jne 0x10106f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov word [esi], 0x5c
jmp 0x101075b
lea eax, [ebp - 0x478]
push eax
mov word [esi], 0x5c
call ebx
pop ecx
lea edi, [edi + eax*2]
push 0x32
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1010724
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x101075b
lea eax, [ebp - 0x68]
push eax
mov word [ebp - 0x66], 0x3f
call ebx
and word [ebp + eax*2 - 0x6a], 0
pop ecx
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0101f2ec
lea eax, [ebp - 0xc98]
push eax
push edi
lea eax, [ebp - 0x888]
push eax
call fcn.010104cd
mov ax, word [edi]
inc edi
inc edi
test ax, ax
jne 0x101075b
cmp word [edi], ax
jne 0x10106a8
push dword [ebp - 0xc9c]
call fcn.01003336
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0102e95a
leave
ret 4

Function at 0x101078d
Capabilities:
Enumerate disk volumes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1036a44]
push esi
mov dword [ebp - 4], eax
mov eax, dword [0x1035e28]
and dword [eax], 0
and dword [eax + 4], 0
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10107ee
lea eax, [ebp - 0x210]
push eax
call fcn.010105e2
push esi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x10107c8
push edi
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0102e95a
leave
ret
Function at 0x1010d3b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x1036a44]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.010109e7
cmp word [ebp - 0x414], 0
je 0x1010e4b
and word [ebp - 0x824], 0
push esi
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.01003ebb
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x824]
push eax
call esi
cmp word [ebp + eax*2 - 0x826], 0x5c
je 0x1010dba
push 0x100140c
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push edi
call esi
cmp word [edi + eax*2 - 2], 0x5c
pop esi
lea eax, [ebp - 0x20c]
push edi
je 0x1010dde
push 0x1001568
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x1010de5
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test al, al
jne 0x1010e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x1010e59
sub eax, 4
je 0x1010e52
sub eax, 0x52
je 0x1010e2f
sub eax, 0x24
je 0x1010e28
sub eax, 0x16
je 0x1010e21
mov eax, 0xc1000418
jmp 0x1010e62
mov eax, 0xc1000417
jmp 0x1010e62
mov eax, 0xc1000419
jmp 0x1010e62
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1010e4b
test eax, eax
je 0x1010e4b
cmp eax, 1
je 0x1010e4b
mov eax, 0xc100041b
jmp 0x1010e62
mov eax, 0xc1000416
jmp 0x1010e62
mov eax, 0xc10003f8
jmp 0x1010e62
mov eax, 0xc1000415
jmp 0x1010e62
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
call fcn.0102e95a
leave
ret 0x10

Function at 0x1011060
Capabilities:
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
cmp byte [0x1036b7c], 0
mov eax, dword [0x1036a44]
mov dword [ebp - 4], eax
je 0x101110c
push esi
push edi
mov esi, 0x1036b5c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1036b78]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10110f0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
jne 0x10110e8
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100
mov ebx, eax
lea eax, [ebp - 0x204]
push eax
push 0x69
push dword [0x1036b20]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
lea eax, [ebp - 0x204]
push eax
push 0x1001b60
push 0xc1000002
call fcn.010152d4
add esp, 0x10
pop ebx
push dword [0x1036b78]
call edi
mov eax, dword [0x1036b74]
test eax, eax
je 0x10110fc
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.0102e95a
leave
ret
Function at 0x1011b33
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x1036b74], eax
jne 0x1011b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x1011ba9
push edi
mov edi, 0x1036b5c
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10119c1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x1036b78], eax
jne 0x1011b9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push dword [0x1036b74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1011ba8
mov byte [0x1036b7c], 1
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x1012095
Capabilities:
Get storage device properties

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1036a44]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x14], ebx
je 0x101211c
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x101211c
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
call fcn.0101ee58
test eax, eax
jge 0x10120d0
or byte [esi + 0x27], 4
jmp 0x101212e
cmp dword [ebp - 0x14], ebx
je 0x101212e
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x800
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.01011fea
mov ebx, eax
test ebx, ebx
je 0x101211c
push 0
lea eax, [ebp - 0x18]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x2d1400
push dword [ebp - 0x14]
call edi
test al, al
jne 0x101213d
push ebx
call fcn.01011fc4
or byte [esi + 0x27], 4
cmp dword [ebp - 0x14], 0
je 0x101212e
push dword [ebp - 0x14]
call fcn.0101f4b2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0102e95a
leave
ret 4
mov eax, dword [ebx + 0x1c]
cmp eax, 1
je 0x1012184
jle 0x101217e
cmp eax, 3
jle 0x1012178
cmp eax, 4
je 0x1012172
cmp eax, 5
je 0x101216c
cmp eax, 6
je 0x1012166
cmp eax, 7
jne 0x101217e
or byte [esi + 0x27], 2
jmp 0x1012188
or byte [esi + 0x27], 0x20
jmp 0x1012188
or byte [esi + 0x27], 0x10
jmp 0x1012188
or byte [esi + 0x27], 1
jmp 0x1012188
or byte [esi + 0x27], 0x40
jmp 0x1012188
or byte [esi + 0x27], 4
jmp 0x1012188
or byte [esi + 0x27], 0x80
push ebx
call fcn.01011fc4
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push 8
lea ecx, [ebp - 0x20]
push ecx
push eax
push eax
push 0x41018
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x1012120
movzx eax, byte [ebp - 0x1a]
mov dword [esi + 0x30], eax
movzx eax, byte [ebp - 0x1c]
mov dword [esi + 0x2c], eax
movzx eax, byte [ebp - 0x19]
mov dword [esi + 0x34], eax
jmp 0x1012120