joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c2b78
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5c2d23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5c2d04
mov dl, 1
mov eax, dword [0x48ea20]
call fcn.004b1f60
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040932c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5c2cf3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0052f2a4
test al, al
je 0x5c2ce6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x5c2d34
lea eax, [ebp - 0x394]
call fcn.00423020
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5c2ce6
xor eax, eax
push ebp
push 0x5c2cdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x5c2da4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5c2cc8
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409f14
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5c2cc8
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00409f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c2ce6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5c2be9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004b1e9c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c2d2a
lea eax, [ebp - 0x3a0]
call fcn.0040932c
ret

Function at 0x5c38e4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5fd350]
cmp byte [eax + 0xc1], 0
jne 0x5c3956
cmp dword [0x5fd370], 0
jne 0x5c3916
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5f6c10]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5fd370], eax
cmp dword [0x5fd36c], 0
jne 0x5c3931
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5fd36c], eax
cmp dword [0x5fd374], 0
jne 0x5c3956
push esp
push 0
push 0
mov eax, dword [0x5f6c0c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5fd374], eax
pop edx
ret
Function at 0x5c3f44
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5c3f5b
add esp, 0xfffffff0
call fcn.00407cc0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c52cc
mov eax, dword [0x5f6d6c]
cmp byte [eax], 0
jne 0x5c3f88
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x5f70d8]
cmp word [eax + 2], 0
jne 0x5c3fa2
mov eax, dword [0x5f70d8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c625c
mov eax, dword [0x5f7214]
cmp word [eax + 2], 0
jne 0x5c3fbc
mov eax, dword [0x5f7214]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c6460
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4fbb20]
call fcn.00501c70
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5c69d8
mov dl, 1
mov eax, dword [0x48b264]
call fcn.0040768c
mov dword [ebx + 0xa4], eax
mov dl, 1
mov eax, dword [0x48b264]
call fcn.0040768c
mov dword [ebx + 0xc4], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xb9], 1
mov byte [ebx + 0xd0], 1
mov dl, 1
mov eax, dword [0x500548]
call fcn.0050b420
mov esi, eax
mov dword [ebx + 0xb4], esi
push 0x5c41a4
mov eax, dword [0x5f6f80]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0050b8b0
mov eax, dword [ebx + 0xb4]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5c6cc0
mov dl, 1
mov eax, dword [0x48b264]
call fcn.0040768c
mov dword [ebx + 0xac], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5f6f80]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00422e20
test eax, eax
je 0x5c40d6
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00422c5c
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00422e04
test eax, eax
je 0x5c40ee
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa0]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00409f14
push ebx
push 0x5c5c38
call fcn.005b96ec
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe4], 0
mov eax, dword [0x5f6d6c]
cmp byte [eax], 0
jne 0x5c413f
mov eax, ebx
call fcn.005c436c
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xba], 1
mov byte [ebx + 0xe5], 0
mov byte [ebx + 0xf0], 0
xor eax, eax
mov dword [ebx + 0xe8], eax
mov byte [ebx + 0xe7], 0
xor eax, eax
mov dword [ebx + 0xbc], eax
mov eax, ebx
call fcn.005c6f08
mov eax, ebx
call fcn.005c7b60
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c419c
call fcn.00407d18
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c46ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5c4758
cmp dword [ebx + 0xa8], 0
jne 0x5c4752
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5c45e4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa4]
cmp dword [eax + 8], 0
je 0x5c4752
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
mov eax, esi
mov edx, 0xffffffec
push edx
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x5c4718
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa4]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5c4752
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa4]
call fcn.004ad888
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5c4727
inc dword [ebx + 0xa8]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5c4978
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5fd350]
cmp dword [eax + 0x188], 0
je 0x5c4add
test bl, bl
jne 0x5c4a2b
cmp dword [esi + 0xb0], 0
jne 0x5c4a20
mov eax, esi
call fcn.005c79b0
push eax
push 0x5c4884
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5c49f1
mov eax, dword [0x5fd350]
cmp byte [eax + 0xe7], 0
je 0x5c49f1
mov eax, dword [esi + 0xec]
call fcn.0040b0dc
mov edi, eax
cmp edi, 0
jl 0x5c49f1
push 0
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c49da
mov eax, dword [esi + 0xac]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c4a20
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xac]
call fcn.004ad888
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c4a00
inc dword [esi + 0xb0]
jmp 0x5c4add
cmp dword [esi + 0xb0], 0
jle 0x5c4add
dec dword [esi + 0xb0]
cmp dword [esi + 0xb0], 0
jne 0x5c4add
cmp dword [esi + 0x58], 0
je 0x5c4a88
mov eax, dword [0x5fd350]
cmp byte [eax + 0xe7], 0
je 0x5c4a88
mov eax, dword [esi + 0xec]
call fcn.0040b0dc
mov edi, eax
cmp edi, 0
jl 0x5c4a88
push 5
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c4a71
mov eax, dword [esi + 0xac]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c4ab7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xac]
call fcn.004ad888
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c4a97
mov eax, dword [esi + 0xac]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xec]
mov ecx, 1
mov edx, dword [0x5b5f90]
call fcn.0040b2f0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x5c5738
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc0], 0
je 0x5c5795
cmp byte [ebx + 0xe7], 0
jne 0x5c5795
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004094b4
mov eax, dword [esi]
test eax, eax
je 0x5c5782
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c57a2
mov eax, esi
mov edx, dword [ebx + 0xa0]
call fcn.0040970c
jmp 0x5c57a2
mov eax, esi
mov edx, dword [ebx + 0xa0]
call fcn.0040970c
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c70f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5c7165
mov eax, esi
call fcn.00529070
test al, al
je 0x5c7165
mov eax, dword [ebx + 0x98]
call fcn.00528c98
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5c7165
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x110]
test al, al
je 0x5c7156
push 0
mov eax, dword [ebx + 0x98]
call fcn.00528c98
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.0051f96c
jmp 0x5c7165
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005c6f28
pop esi
pop ebx
ret
Function at 0x5cdc70
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5cdcea
mov eax, dword [ebx + 8]
call fcn.00528c98
mov ecx, eax
mov dl, 1
mov eax, dword [0x535bac]
call fcn.00522fc4
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0053afb4
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5cd568
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00528c98
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00528c98
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5cdd60
mov eax, dword [ebx + 8]
call fcn.00528c98
mov ecx, eax
mov dl, 1
mov eax, dword [0x535bac]
call fcn.00522fc4
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0053afb4
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5cd5b4
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00528c98
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00528c98
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5cddcc
mov eax, dword [ebx + 8]
call fcn.00528c98
mov ecx, eax
mov dl, 1
mov eax, dword [0x53661c]
call fcn.00522fc4
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00528c98
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00528c98
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x1000105a
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x1000fa10
sub esp, 0x104
push esi
mov esi, ecx
mov eax, dword [esi + 0xb7c]
test eax, eax
jne 0x1000fab3
push ebp
push edi
call fcn.100d8d30
mov ebp, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.10001352
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
pop edi
mov dword [esi + 0xb7c], eax
test eax, eax
pop ebp
jne 0x1000fa83
pop esi
add esp, 0x104
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000fab3
mov eax, dword [esi + 0xb7c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb7c], 0
xor eax, eax
pop esi
add esp, 0x104
ret 4
mov eax, 1
pop esi
add esp, 0x104
ret 4

Function at 0x100010c8
Capabilities:
Get graphical window text

Disassembly:
jmp 0x10016c30
call fcn.100fe6e0
test eax, eax
je 0x10016c4f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x10016cd0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10016cd0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.101d175d
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10016cd0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x10016cd0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.10001113
add esp, 0x10
test eax, eax
je 0x10016cd0
push esi
call fcn.10033dce
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x1000113b
Capabilities:
Check for time delay via gettickcount

Disassembly:
jmp 0x1001b870
push 0xffffffffffffffff
push 0x101e9448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
cmp bl, 0xff
push edi
mov esi, ecx
mov byte [esp + 0x10], 0
jne 0x1001b8a3
xor al, al
jmp 0x1001ba01
lea eax, [esi + 0xc]
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.100d7a60
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebp, ebp
mov dword [esp + 0x28], ebp
call edi
mov dword [esp + 0x30], eax
call edi
mov ecx, dword [esi + 0xf0]
mov edi, eax
mov eax, ebx
and eax, 0xff
lea edx, [eax + 1]
cmp edx, ecx
jg 0x1001b9b4
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 0xec]
mov ecx, esi
lea ebx, [eax + edx*8]
push ebx
call fcn.100015aa
test eax, eax
je 0x1001b913
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d7ac0
xor al, al
jmp 0x1001ba01
mov al, byte [ebx]
test al, al
mov byte [esp + 0x10], al
je 0x1001b950
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x3c]
jne 0x1001b933
cmp eax, 1
je 0x1001b933
cmp eax, 2
jne 0x1001b950
push eax
push ebx
mov ecx, esi
call fcn.10001d39
test eax, eax
je 0x1001b947
mov ebp, 1
jmp 0x1001b950
mov cl, byte [esi + 0x34]
xor ebp, ebp
mov byte [esp + 0x10], cl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test ebp, ebp
mov edi, eax
je 0x1001b995
mov ecx, esi
call fcn.100010c3
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.10001e2e
test eax, eax
jne 0x1001b979
mov byte [esp + 0x10], al
jmp 0x1001b9b4
push 0
push ebx
mov ecx, esi
call fcn.10001d39
test eax, eax
je 0x1001b995
mov ecx, esi
call fcn.100010c3
mov byte [esp + 0x10], 0
jmp 0x1001b9b4
mov al, byte [esp + 0x10]
test al, al
je 0x1001b9b4
mov eax, dword [esp + 0x38]
test eax, eax
je 0x1001b9b4
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x1001b9b4
push ebx
mov ecx, esi
call fcn.10001d57
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1077f6f0]
test ecx, ecx
je 0x1001b9ec
mov ecx, dword [esp + 0x30]
mov edx, eax
sub edx, ecx
sub eax, edi
push edx
sub edi, ecx
push eax
push edi
push str.CITEuHelperSZ::drvTocDrive:___d___d___d__r_n
push str.TVDTest
push 0xffffffffffffffff
push 0x1077ee5c
call fcn.1005bc20
add esp, 0x1c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.100d7ac0
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x10001186
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
jmp 0x10025ce0
sub esp, 0x18
xor eax, eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov ecx, 0x46
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x838]
push 0x104
lea ecx, [esi + 0x12]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
je 0x10025df7
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
push edx
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x10025d3e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov eax, dword [ebp + 4]
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x10025d5f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
mov ebp, dword [ebp + 0x838]
cmp dword [ebp - 8], ebx
jne 0x10025d6f
mov byte [esi + 0x10], bl
jmp 0x10025d83
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10025d80
mov byte [esi + 0x10], bl
jmp 0x10025d83
mov byte [esi + 0x10], al
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x34]
call fcn.1012aeb0
push eax
mov ecx, esi
call fcn.1012aba0
lea edx, [esp + 0x18]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x34]
lea ebx, [esi + 8]
call fcn.1012aeb0
push eax
mov ecx, ebx
call fcn.1012aba0
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x34]
lea edi, [esi + 4]
call fcn.1012aeb0
push eax
mov ecx, edi
call fcn.1012aba0
mov ecx, esi
call fcn.1012abc0
test eax, eax
jne 0x10025de4
push edi
mov ecx, esi
call fcn.1012aba0
mov ecx, ebx
call fcn.1012abc0
test eax, eax
jne 0x10025df7
push edi
mov ecx, ebx
call fcn.1012aba0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 4
Function at 0x100011e5
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x10005ad0
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x110]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push ecx
call fcn.10001352
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
pop edi
jne 0x10005b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
add esp, 0x104
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x104
ret
Function at 0x10001253
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
jmp 0x10011780
sub esp, 0x1c
push ebx
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x10011906
call fcn.10011a10
test eax, eax
je 0x10011906
mov bl, byte [esi]
and bl, 0xdf
cmp bl, 0x41
jl 0x100118f1
cmp bl, 0x5a
jg 0x100118f1
mov eax, dword [str..X:]
mov cx, word [0x10266854]
mov dl, byte [0x10266856]
push 0
push 0
push 3
mov dword [esp + 0x1c], eax
push 0
push 3
lea eax, [esp + 0x24]
push 0
mov word [esp + 0x2c], cx
push eax
mov byte [esp + 0x32], dl
mov byte [esp + 0x30], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10011812
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceCfg:__EjectDevice__CreateFile_failed_errno_ld__n
call fcn.10011990
add esp, 8
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
xor ecx, ecx
push edi
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x24]
push 0xc
push eax
push ecx
push ecx
push 0x2d1080
push esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
jne 0x10011872
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceCfg:__EjectDevice__DeviceIoControl_failed_errno_ld__n
call fcn.10011990
add esp, 8
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [0x102667c0]
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x28]
mov dword [esp + 0x28], ecx
push edx
mov byte [esp + 0x2c], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
push esi
call fcn.10011b80
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x100118b6
push str.DeviceCfg:__EjectDevice__GetDrivesDevInstByDiskNumber_failed_n
call fcn.10011990
add esp, 4
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
push 0
push eax
lea eax, [esp + 0x10]
push eax
call dword [0x10298548]
test eax, eax
je 0x100118de
push eax
push str.DeviceCfg:__EjectDevice__pfnCM_Get_Parent_failed__dwStatus_08x__n
call fcn.10011990
add esp, 8
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
push ecx
call fcn.10011df0
add esp, 4
pop esi
pop ebx
add esp, 0x1c
ret
push str.DeviceCfg:_param_error_n
call fcn.10011990
add esp, 4
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
push str.DeviceCfg:_param_error_or_init_failed_n
call fcn.10011990
add esp, 4
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x100012a3
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
jmp 0x100172a0
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101e9088
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
test ebp, ebp
je 0x1001741e
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x1001741e
push ebp
lea ecx, [esp + 0x10]
call fcn.101d2b7a
push 3
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.101d303b
push 2
push 0x102672d4
push ebp
mov esi, eax
call fcn.100341a4
add esp, 0xc
test eax, eax
jne 0x1001731d
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.101d303b
mov esi, eax
push 0x10294024
lea ecx, [esp + 0x28]
call fcn.101d2b7a
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ebp, 0xffffffff
cmp esi, ebp
mov byte [esp + 0x1c], 1
je 0x1001739e
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x14]
call fcn.101cb490
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 2
call fcn.101d2c45
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.101d2b0c
mov ecx, dword [esp + 0x24]
push ecx
call edi
cmp eax, ebp
jne 0x10017387
mov edx, dword [esp + 0x24]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x10017403
jmp 0x1001738b
test al, 0x10
je 0x10017403
inc esi
lea ecx, [esp + 0xc]
push esi
push 0x5c
call fcn.101d303b
mov esi, eax
cmp esi, ebp
jne 0x1001733d
mov esi, dword [esp + 0xc]
call fcn.100f41a0
push eax
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
mov eax, dword [esp + 0x24]
push eax
call edi
mov ecx, dword [esp + 0x28]
mov edx, ecx
or edx, 0x10
cmp eax, edx
je 0x100173d1
mov eax, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.101d2b0c
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebp
call fcn.101d2b0c
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call fcn.101d2b0c
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebp
call fcn.101d2b0c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret