joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081060
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100b1008]
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 edi, edx
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x10], 0
jne 0x10030fde
xor al, al
jmp 0x10031188
push 0x21
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
push str.SystemCurrentControlSet_services
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.10005750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push esi
lea ecx, [ebp - 0x48]
call fcn.1006ae50
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ecx
cmovae eax, dword [ebp - 0x48]
push eax
push 0x80000002
mov dword [ebp - 0x50], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10031056
xor bl, bl
jmp 0x100310db
push 0x40
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], 0x40
call fcn.1007a55b
push dword [ebp - 0x4c]
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push str.Type
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100310c4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x100310c4
mov dword [ebp - 0x14], 0
cmp eax, 4
jbe 0x100310af
mov eax, dword [esi]
jmp 0x100310c0
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [edi], eax
mov bl, 1
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100310d2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1007abed
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1003111b
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031111
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031111
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x10031172
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031168
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031168
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov al, bl
mov dword [ebp - 0x1c], 7
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.1007a4e9
mov esp, ebp
pop ebp
ret
Function at 0x100311b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081060
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x100b1008]
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 edi, edx
mov esi, ecx
xor bl, bl
cmp dword [esi + 0x10], 0
jne 0x100311ee
xor al, al
jmp 0x10031398
push 0x21
xor eax, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x30]
push str.SystemCurrentControlSet_services
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.10005750
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push esi
lea ecx, [ebp - 0x48]
call fcn.1006ae50
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ecx
cmovae eax, dword [ebp - 0x48]
push eax
push 0x80000002
mov dword [ebp - 0x50], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10031266
xor bl, bl
jmp 0x100312eb
push 0x40
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x4c], 0x40
call fcn.1007a55b
push dword [ebp - 0x4c]
mov esi, eax
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push str.Start
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100312d4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x100312d4
mov dword [ebp - 0x14], 0
cmp eax, 4
jbe 0x100312bf
mov eax, dword [esi]
jmp 0x100312d0
push eax
lea eax, [ebp - 0x14]
push esi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [edi], eax
mov bl, 1
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100312e2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1007abed
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x1003132b
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031321
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031321
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x10031382
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10031378
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10031378
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
mov al, bl
mov dword [ebp - 0x1c], 7
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.1007a4e9
mov esp, ebp
pop ebp
ret
Function at 0x1003fd40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100827dc
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100b1008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x244]
call fcn.10004c00
push 0x20c
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x1003fde2
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003fdc0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.10005750
cmp dword [ebp - 0x234], 0
je 0x1003fea3
xorps xmm0, xmm0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.10030070
mov byte [ebp - 4], 1
call fcn.10071560
test al, al
je 0x1003fe2d
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x1003fe2d
cmp dword [ebp - 0x220], 0
jne 0x1003fe2d
lea ecx, [ebp - 0x220]
push ecx
call eax
push str.temppmdata.dat
lea ecx, [ebp - 0x274]
call fcn.10005700
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x25c]
call fcn.1006ae50
add esp, 4
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.10004b70
lea ecx, [ebp - 0x25c]
call fcn.1006ca90
test al, al
je 0x1003fe85
lea ecx, [ebp - 0x25c]
call fcn.10073c00
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.10004b70
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.100302d0
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
call fcn.10004b70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a4e9
mov esp, ebp
pop ebp
ret
Function at 0x10054ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100827dc
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x100b1008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x244]
call fcn.10004c00
push 0x20c
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10054f72
xor eax, eax
lea ecx, [ebp - 0x21c]
mov word [ebp - 0x12], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10054f50
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.10005750
cmp dword [ebp - 0x234], 0
je 0x10055033
xorps xmm0, xmm0
lea ecx, [ebp - 0x22c]
movups xmmword [ebp - 0x22c], xmm0
call fcn.10030070
mov byte [ebp - 4], 1
call fcn.10071560
test al, al
je 0x10054fbd
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x10054fbd
cmp dword [ebp - 0x220], 0
jne 0x10054fbd
lea ecx, [ebp - 0x220]
push ecx
call eax
push 0x1009701c
lea ecx, [ebp - 0x274]
call fcn.10005700
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x244]
lea ecx, [ebp - 0x25c]
call fcn.1006ae50
add esp, 4
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.10004b70
lea ecx, [ebp - 0x25c]
call fcn.1006ca90
test al, al
je 0x10055015
lea ecx, [ebp - 0x25c]
call fcn.10073c00
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.10004b70
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0
call fcn.100302d0
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0xffffffff
call fcn.10004b70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a4e9
mov esp, ebp
pop ebp
ret
Function at 0x10057bc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100844c0
mov eax, dword fs:[0]
push eax
mov eax, 0x494c
call fcn.1007c1f0
mov eax, dword [0x100b1008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x18]
push 0x4928
lea eax, [ebp - 0x4958]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x4928
lea eax, [ebp - 0x4958]
mov dword [ebp - 0x14], 0
push eax
push 2
mov edx, 0x6b
lea ecx, [ebp - 0x14]
call fcn.1005dce0
add esp, 0x18
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp - 0x14]
push ecx
mov edx, esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], esp
mov dword [edx], eax
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov ecx, dword [esi + 8]
push 9
call fcn.100606e0
cmp dword [ebp - 0x18], 0
jne 0x10057d0d
cmp dword [0x100b42b0], 0
je 0x10057ce6
push ecx
mov ecx, 0x100b42b0
call fcn.10074780
mov eax, dword [0x100b42b0]
cmp byte [eax + 0x54], 0
je 0x10057ce6
cmp dword [eax + 0x58], 4
jb 0x10057ce6
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x30]
call fcn.10004c00
push 0x21
push 0x10097800
mov byte [ebp - 4], 2
call fcn.10005750
push 0x91
push str.RC::RCWebProtectDriver::ReStartWork
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345exprotect_rcwebprotectdriver.cpp
lea eax, [ebp - 0x30]
mov ecx, 0x100b42b0
push eax
push 4
call fcn.10075550
test bl, bl
je 0x10057cda
lea eax, [ebp - 0x30]
mov ecx, 0x100b42b0
push eax
call fcn.100758f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10004b70
push 0
push 0
push 0
push 0x10057960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10057d06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x10057d8c
cmp dword [0x100b42b0], 0
je 0x10057d8a
push ecx
mov ecx, 0x100b42b0
call fcn.10074780
mov eax, dword [0x100b42b0]
cmp byte [eax + 0x54], 0
je 0x10057d8a
cmp dword [eax + 0x58], 4
jb 0x10057d8a
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x30]
call fcn.10004c00
push 0x21
push 0x10097780
mov byte [ebp - 4], 4
call fcn.10005750
push 0x99
push str.RC::RCWebProtectDriver::ReStartWork
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotectdriverapinew_srclibdriverctrl_src2345exprotect_rcwebprotectdriver.cpp
lea eax, [ebp - 0x30]
mov ecx, 0x100b42b0
push eax
push 4
call fcn.10075550
test bl, bl
je 0x10057d7e
lea eax, [ebp - 0x30]
mov ecx, 0x100b42b0
push eax
call fcn.100758f0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.10004b70
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10057dae
mov dword [ebp - 4], 5
mov edx, dword [ecx]
push 1
call dword [edx]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a4e9
mov esp, ebp
pop ebp
ret
Function at 0x10068d30
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100b1008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.1007a4fa
mov dword [esi], eax
push pe_nt_image_headers32
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x10068d8c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.1007a4e9
add esp, 0x120
ret

Function at 0x1006b6d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e278
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100b1008]
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 esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x1006b70b
xor al, al
jmp 0x1006b7af
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x1006b727
mov eax, dword [edi]
test eax, eax
je 0x1006b727
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x1006b78c
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x1006b250
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x1006b7cb
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x1006b784
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.1006b410
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1006b7ad
mov eax, dword [edi]
test eax, eax
je 0x1006b7a6
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
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.1007a4e9
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1006b7e3
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1006b76e
mov bl, 1
jmp 0x1006b78e
Function at 0x1006dae0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100869d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100b1008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0
cmp dword [esi + 0x14], 8
jb 0x1006db23
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1006db3e
mov eax, edx
nop dword [eax]
cmp word [eax], 0x25
je 0x1006db71
add eax, 2
sub ecx, 1
jne 0x1006db30
push esi
mov ecx, edi
call fcn.100072a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007a4e9
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1006db3e
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x1006db3e
push esi
lea ecx, [ebp - 0x28]
call fcn.100072a0
mov dword [ebp - 4], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1006db98
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x1006dc12
push esi
mov ecx, edi
call fcn.100072a0
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1006dbf9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006dbef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006dbef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007a52a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1006db54
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007a55b
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x1006dc39
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, dword [ebp - 0x2c]
test eax, eax
je 0x1006dc79
cmp eax, dword [ebp - 0x34]
ja 0x1006dc79
xor ecx, ecx
mov word [esi + eax*2], cx
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006dc60
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10005750
push esi
call fcn.1007abed
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x10], 0
add esp, 4
mov dword [edi + 0x14], 0
xor eax, eax
movups xmmword [edi], xmm0
mov word [ebp - 0x28], ax
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x30], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1006db54
Function at 0x10071210
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x808]
sub esp, 0x808
push 0xffffffffffffffff
push 0x10086f50
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x100b1008]
xor eax, ebp
mov dword [ebp + 0x804], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea eax, [ebp + 4]
push eax
push 0x3fe
call edi
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x100712d7
lea edx, [ebp + 4]
mov dword [ebp], 0
xor esi, esi
mov dword [ebp - 0x10], edx
mov dword [ebp], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x100712fc
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1007a55b
add esp, 4
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebp], esi
push eax
push ebx
call edi
test eax, eax
je 0x100712c1
cmp eax, ebx
ja 0x100712c1
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov dword [ebp - 0x14], ebx
mov dword [edx + eax*2], ecx
jmp 0x10071324
mov dword [ebp - 4], 0xffffffff
mov eax, esi
test eax, eax
je 0x100712d7
push eax
call fcn.1007abed
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x804]
xor ecx, ebp
call fcn.1007a4e9
lea esp, [ebp + 0x808]
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x1007142f
xor ecx, ecx
mov word [ebp + eax + 4], cx
add eax, 2
cmp eax, 0x800
jae 0x1007142f
mov word [ebp + eax + 4], cx
xor eax, eax
xor edi, edi
test ebx, ebx
je 0x1007140e
mov ecx, dword [ebp - 0x14]
mov ebx, 2
nop dword [eax + eax]
cmp word [edx + ebx - 2], 0
jne 0x10071402
cmp eax, edi
je 0x10071402
lea edx, [edx + eax*2]
mov dword [ebp - 0x24], 0
mov ecx, edx
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
mov dword [ebp - 0x20], 7
lea eax, [ecx + 2]
mov dword [ebp - 0x18], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10071381
sub ecx, dword [ebp - 0x18]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x34]
call fcn.10005750
mov byte [ebp - 4], 1
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.10068900
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x100713e5
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100713db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10071429
push edx
push ecx
call fcn.1007a52a
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov edx, dword [ebp - 0x10]
mov word [ebp - 0x34], ax
lea eax, [edi + 1]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
inc edi
add ebx, 2
cmp edi, ecx
jb 0x10071340
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x10071422
push esi
call fcn.1007abed
add esp, 4
mov al, 1
jmp 0x100712d9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.1007ad13
int3
Function at 0x10072fd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x100b1008]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x10073052
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x10073052
test ecx, ecx
je 0x1007304e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10073010
xor eax, eax
jmp 0x10073057
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10073061
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007a4e9
add esp, 0xc
ret 0xc