joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bb50
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100130de
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10023330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000bb85
mov dword [eax], 0
push str.plusmat
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_310]
push 0
push 0
push 0
push 0
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x1000bbf5
mov edi, dword [ebp + 0xc]
push 0
push 0x80000000
push 0
push 0
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x1000bc14
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x80000000
push esi
push esi
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x1000bc14
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
lea ecx, [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.1000b650
add esp, 4
push esi
cmp eax, 0xc8
je 0x1000bc32
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
jmp 0x1000bbf5
call fcn.1000acd0
xor ecx, ecx
test eax, eax
setne cl
test eax, eax
mov dword [ebp - 0x20], ecx
mov ecx, 0x40000
cmove eax, ecx
push eax
mov dword [ebp - 0x24], eax
call sub.mfc140.dll_Ordinal_265
add esp, 8
xor edi, edi
mov ebx, eax
lea eax, [ebp - 0x10]
push edi
push edi
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000bc99
nop
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [edi + ebx]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
add edi, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push 0
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1000bc70
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x20], 0
jne 0x1000bcca
push edi
call sub.mfc140.dll_Ordinal_265
push edi
mov esi, eax
push ebx
push esi
call sub.VCRUNTIME140.dll_memcpy
push ebx
call sub.mfc140.dll_Ordinal_266
add esp, 0x14
mov ebx, esi
jmp 0x1000bccd
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1000bbf7
mov dword [eax], edi
jmp 0x1000bbf7
Function at 0x1000c260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018e30
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c2a0
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c2c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018e90
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c300
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0xf003f
push 0
push 0x10018f10
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c360
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov esp, ebp
pop ebp
ret

Function at 0x1000c440
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push str.AppEventsSchemesAppsExplorerNavigating.Current
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c4d7
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c4b3
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f27b
mov esp, ebp
pop ebp
ret
Function at 0x1000c510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x10c], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
push 0xf003f
push 0
push str.AppEventsSchemesAppsExplorerNavigating.Default
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000c5a7
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c583
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f27b
mov esp, ebp
pop ebp
ret

Function at 0x1000c5e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1000c649
test esi, esi
je 0x1000c649
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push dword [0x10023174]
lea eax, [ebp - 0x404]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov esi, 1
jmp 0x1000c64b
xor esi, esi
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1000f27b
mov esp, ebp
pop ebp
ret
Function at 0x1000ce70
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100133ee
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10023330]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x24], ebx
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x20]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
call ebx
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.mfc140.dll_Ordinal_316]
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push str.cx___d__cy___d
push eax
call dword [sym.imp.mfc140.dll_Ordinal_4807]
add esp, 0x10
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1000cf05
lea ecx, [ebp - 0x20]
push ecx
push eax
call ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov esi, dword [ebx + 0xac]
mov ebx, dword [ebx + 0xa8]
push 0x40
push esi
mov dword [ebp - 0x30], eax
call edi
add esp, 4
add eax, 2
push eax
push ebx
call edi
add esp, 4
push eax
push esi
call edi
mov ecx, dword [ebp - 0x2c]
add esp, 4
sub ecx, dword [ebp - 0x30]
sub ecx, eax
push ecx
push ebx
call edi
mov ecx, dword [ebp - 0x34]
add esp, 4
sub ecx, eax
mov eax, dword [ebp - 0x24]
push ecx
push dword [eax + 0x94]
mov ecx, eax
call sub.mfc140.dll_Ordinal_14048
lea ecx, [ebp - 0x28]
call dword [sym.imp.mfc140.dll_Ordinal_1044]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f27b
mov esp, ebp
pop ebp
ret
Function at 0x100074c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1018af10
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x101f771c], 1
jge 0x1018af7f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x1018af55
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x1018af55
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x1018af32
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x1018af6b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x1018af72
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x1018b06f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x1018b040
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1018b035
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x1018b029
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x1018b030
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x1018b06f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x1018b06a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x1018b053
mov eax, dword [ebx + 8]
jmp 0x1018b06f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1018b061
xor eax, eax
jmp 0x1018b06f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x1018af9f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10079300
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005781
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101f6b08], 0
jne 0x1007933d
cmp dword [0x101f6b04], 0
je 0x1007933d
mov eax, dword [0x101f6b04]
mov dword [0x101f6b08], eax
cmp dword [0x101f6b08], 0
je 0x100793ba
mov ecx, dword [0x101f6b08]
cmp dword [ecx + 8], 0
je 0x100793ba
mov edx, dword [0x101f6b08]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100793ba
mov ecx, dword [0x101f6b08]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100793ba
mov eax, dword [0x101f6b08]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10079389
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10079390
xor eax, eax
jmp 0x100794d9
mov ecx, dword [0x101f6b08]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10004255
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100794d9
mov edx, dword [0x101f6b04]
mov dword [0x101f6b08], edx
jmp 0x100793d6
mov eax, dword [0x101f6b08]
mov ecx, dword [eax + 4]
mov dword [0x101f6b08], ecx
cmp dword [0x101f6b08], 0
je 0x10079416
cmp dword [0x101f6b08], 0
je 0x10079414
mov edx, dword [0x101f6b08]
cmp dword [edx + 8], 0
je 0x10079414
mov eax, dword [0x101f6b08]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10079414
mov edx, dword [0x101f6b08]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10079414
jmp 0x1007936e
jmp 0x100793c8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10079560
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100794d7
mov eax, dword [ebp - 0x18]
mov dword [0x101f6b08], eax
mov ecx, dword [0x101f6b08]
mov dword [ecx], 0x52727464
mov edx, dword [0x101f6b08]
mov dword [edx + 8], 0
mov eax, dword [0x101f6b08]
mov ecx, dword [0x101f6b04]
mov dword [eax + 4], ecx
mov edx, dword [0x101f6b08]
mov dword [0x101f6b04], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101f6b08]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100794a7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100794c7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1007949e
mov eax, dword [0x101f6b08]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1007936e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x102e6d66
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 4]
popfd
lea esp, [esp + 0x10]
and al, 0x10
call fcn.102a8a97
mov bl, 0x82
loop 0x102e0c6e
pop edx
mov byte [edx - 0xf], dh
jb 0x102e0c61
rol dword [eax + edi*4 + 0x1cbe6c58], cl
lahf
invalid
pushfd
test si, si
movsx esi, si
mov dword [esp + 0xc], 0xc0f0450
mov esi, dword [esp + esi*8 + 0xe6a8]
je 0x102e0c5a
call 0x102e0c5a
Function at 0x1104f870
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2824
call fcn.11051be0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
lea ebx, [ebx]
mov eax, dword [0x110020d8]
mov ecx, dword [0x110020dc]
mov edx, dword [0x110020e0]
mov dword [esp + 0x24], eax
mov eax, dword [0x110020e4]
push 0xed
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ecx
mov cx, word [0x110020e8]
mov dword [esp + 0x30], edx
mov dl, byte [0x110020ea]
lea eax, [esp + 0x3b]
push ebx
push eax
mov word [esp + 0x40], cx
mov byte [esp + 0x42], dl
call fcn.11051c10
mov cl, byte [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [esp + 0x3c]
add cl, 0x30
push edx
mov byte [esp + 0x51], cl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1104fa96
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
mov dword [esp + 0x24], eax
lea eax, [esp + 0x128]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.11051c10
add esp, 0xc
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x2710
lea edx, [esp + 0x130]
push edx
push 0xc
lea eax, [esp + 0x2c]
push eax
push 0x2d1400
push edi
call ebp
test eax, eax
je 0x1104fa8f
mov eax, dword [esp + 0x130]
xor esi, esi
cmp eax, ebx
je 0x1104f9b0
lea ecx, [esp + eax + 0x124]
push ecx
call fcn.1104f850
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1104f982
sub eax, edx
mov edx, dword [esp + 0x130]
push eax
lea eax, [esp + edx + 0x128]
push eax
call fcn.1104f850
add esp, 4
push eax
push 1
call fcn.110515d0
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x134]
cmp eax, ebx
je 0x1104f9fe
lea ecx, [esp + eax + 0x124]
push ecx
call fcn.1104f850
add esp, 4
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1104f9d0
sub eax, edx
mov edx, dword [esp + 0x134]
push eax
lea eax, [esp + edx + 0x128]
push eax
call fcn.1104f850
add esp, 4
push eax
push 1
call fcn.110515d0
add esp, 0xc
xor esi, eax
mov eax, dword [esp + 0x138]
cmp eax, ebx
je 0x1104fa4e
lea ecx, [esp + eax + 0x124]
push ecx
call fcn.1104f850
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1104fa20
sub eax, edx
mov edx, dword [esp + 0x138]
push eax
lea eax, [esp + edx + 0x128]
push eax
call fcn.1104f850
add esp, 4
push eax
push 1
call fcn.110515d0
add esp, 0xc
xor esi, eax
push 0x2710
lea ecx, [esp + 0x128]
push ebx
push ecx
call fcn.11051c10
add esp, 0xc
push ebx
lea edx, [esp + 0x18]
push edx
push 0x2710
lea eax, [esp + 0x130]
push eax
push ebx
push ebx
push 0x700a0
push edi
call ebp
test eax, eax
je 0x1104fa8f
cmp dword [esp + 0x12c], 0xc
je 0x1104fab5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xa
mov dword [esp + 0x10], eax
jl 0x1104f890
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2824
ret
mov eax, dword [esp + 0x13c]
xor eax, dword [esp + 0x140]
pop edi
xor eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2824
ret
Function at 0x1104fad0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x37c4
call fcn.11051be0
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [esp + 0x10], ebx
xor ebp, ebp
lea esp, [esp]
push ebp
lea eax, [esp + 0x28]
push 0x110020ec
push eax
call fcn.11051c68
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1104fcac
xor eax, eax
push 0x2710
lea edx, [esp + 0x10c8]
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.11051c10
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x10d0]
push ecx
push 0xc
lea edx, [esp + 0x2c]
push edx
push 0x2d1400
push esi
call edi
test eax, eax
je 0x1104fc9f
mov ecx, dword [esp + 0x10d0]
lea eax, [esp + 0x8f4]
push eax
push ebx
push ecx
lea edx, [esp + 0x10d0]
push edx
call fcn.1104f680
mov ecx, dword [esp + 0x10e4]
lea eax, [esp + 0x51c]
push eax
push ebx
push ecx
lea edx, [esp + 0x10e0]
push edx
call fcn.1104f680
mov ecx, dword [esp + 0x10f8]
lea eax, [esp + 0xcfc]
push eax
push ebx
push ecx
lea edx, [esp + 0x10f0]
push edx
call fcn.1104f680
mov ecx, dword [esp + 0x110c]
lea eax, [esp + 0x154]
push eax
push 1
push ecx
lea edx, [esp + 0x1100]
push edx
call fcn.1104f680
add esp, 0x40
cmp byte [0x11096018], bl
jne 0x1104fc6a
movsx eax, byte [esp + 0x124]
push eax
call fcn.11051ab8
add esp, 4
test eax, eax
jne 0x1104fc29
movsx ecx, byte [esp + 0x137]
push ecx
call fcn.11051ab8
add esp, 4
test eax, eax
je 0x1104fc6a
xor eax, eax
jmp 0x1104fc30
mov cl, byte [esp + eax + 0x124]
mov byte [eax + 0x11096018], cl
inc eax
cmp cl, bl
jne 0x1104fc30
xor eax, eax
jmp 0x1104fc50
mov cl, byte [esp + eax + 0x50c]
mov byte [eax + 0x11096418], cl
inc eax
cmp cl, bl
jne 0x1104fc50
mov dword [esp + 0x10], 1
push 0x2710
lea edx, [esp + 0x10c8]
push ebx
push edx
call fcn.11051c10
add esp, 0xc
push ebx
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x10d0]
push ecx
push ebx
push ebx
push 0x700a0
push esi
call edi
jmp 0x1104fca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebp
cmp ebp, 0x10
jl 0x1104faf0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x37c4
ret
Function at 0x110507b0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0x5c
mov edx, dword [0x110021cc]
mov eax, dword [0x110021c4]
mov ecx, dword [0x110021c8]
push esi
push edi
push 0
push 0
push 3
push 0
push 3
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], eax
mov ax, word [0x110021d0]
mov dword [esp + 0x2c], ecx
mov cx, word [esp + 0x7c]
push 0
lea edx, [esp + 0x2c]
push edx
mov word [esp + 0x3c], ax
mov word [esp + 0x38], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1105089f
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor eax, eax
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
push eax
push 0x28
lea ecx, [esp + 0x48]
push ecx
push 0xc
lea edx, [esp + 0x1c]
push edx
push 0x2d1400
push esi
mov dword [esp + 0x44], 0
call edi
test eax, eax
je 0x11050898
cmp dword [esp + 0x58], 7
jne 0x11050898
push 0
lea eax, [esp + 0x6c]
push eax
push 0x18
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0x70000
push esi
call edi
test eax, eax
je 0x11050898
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x5c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret

Function at 0x11050bb0
Capabilities:
Get disk information via ioctl

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0xc
push esi
mov eax, edx
push edi
or edi, 0xffffffff
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11050bc1
sub eax, esi
sar eax, 1
cmp word [edx + eax*2 - 2], 0x5c
jne 0x11050bf6
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x11050be0
sub eax, esi
sar eax, 1
xor ecx, ecx
mov word [edx + eax*2 - 2], cx
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x11050c44
push 0
lea edx, [esp + 0x1c]
push edx
push 0xc
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x11050c3d
mov edi, dword [esp + 8]
shl edi, 8
add edi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret