joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e5ef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46b3ac]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x44e63c
push dword [ebp + 8]
call fcn.00450844
mov esi, eax
test esi, esi
je 0x44e664
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x44e664
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x4577a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00431288
leave
ret 0xc

Function at 0x44fa11
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x46b3ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x44fa6f
push 0x45ccd0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004358d6
add esp, 0x10
cmp eax, 0xffffffff
je 0x44fa83
cmp eax, esi
jae 0x44fa83
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x44fa85
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x44fa3a
jmp 0x44fa86
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00431288
leave
ret
Function at 0x44faa6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46b3ac]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x4584b0
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44fb48
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x44fc4a
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x44fbf8
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44fc4b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44fbed
cmp dword [ebp - 0x34], 1
jne 0x44fbed
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x45ccec
push eax
call fcn.00435946
add esp, 0xc
cmp eax, 1
jne 0x44fbed
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44fc4b
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44fc4b
lea ecx, [ebp - 0x28]
push ecx
push 0x44fa90
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x44fc4b
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x44fc71
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.0044fa11
cmp eax, ebx
pop ecx
pop ecx
jne 0x44fc73
inc edi
cmp edi, esi
jl 0x44fc5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00431288
leave
ret 4
Function at 0x44fc82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x46a9bc
je 0x44fd3e
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44fd26
mov esi, dword [ebx + 4]
jmp 0x44fd20
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44fd10
cmp dword [ebp - 0xc], 4
jne 0x44fd10
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x44fd08
or dword [eax + 0x9c], ecx
jmp 0x44fd10
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x44fcd4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x44fcb7
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x45012f
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x454ad1
call fcn.004351e0
sub esp, 0x220
mov eax, dword [0x46b3ac]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x450228
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4501fc
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00403a40
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0045012f
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00403220
test bl, bl
jne 0x4501fc
or dword [ebp - 4], 0xffffffff
jmp 0x45016d
cmp esi, 0x103
je 0x45020c
cmp esi, 0x3f2
jne 0x45021c
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00431288
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x450a9f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x450ad4
cmp edi, dword [esi + 0xc]
jge 0x450ad4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450ad4
cmp edi, dword [eax + 8]
jge 0x450ad4
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x450ad6
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x450bda
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x450c0e
jmp fcn.004452d8
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x450c7f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x450d78
cmp eax, dword [edi + 0xc]
jge 0x450d78
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x450cd0
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x450d61
cmp dword [ebp + 0xc], ebx
je 0x450d61
jmp 0x450cfa
push 0x10
call fcn.0045096b
cmp eax, ebx
je 0x450ce6
mov ecx, eax
call fcn.00450bd1
mov esi, eax
jmp 0x450ce8
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x450d11
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x450d21
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x450d33
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004452d8
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00435180
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x450d73
cmp ecx, dword [esi + 8]
jge 0x450d73
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x450d79
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x450e37
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x450e65
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450e83
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00450da1
jmp 0x450e83
mov eax, dword [esi + 0x14]
test eax, eax
je 0x450e83
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00450da1
test edi, edi
mov eax, edi
jne 0x450e6d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46e8f4]
test ecx, ecx
je 0x450f36
jmp 0x450e36
ret 8
Function at 0x100559a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x101ac60]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
push dword [ebp + 0x2c]
mov dword [ebp - 4], eax
push dword [ebp + 0x28]
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [ebp - 0x1a8], eax
push dword [ebp + 0xc]
mov dword [ebp - 0x1a4], esi
call fcn.01017fa0
push dword [ebp + 0x2c]
mov dword [ebp - 0x1a0], eax
push dword [ebp + 0x28]
mov dword [ebp - 0x19c], edx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.01017fa0
mov ecx, dword [ebp + 0x20]
mov ebx, eax
mov eax, edx
mov edx, dword [ebp + 0x24]
mov dword [ebp - 0x1b0], ebx
add ebx, ecx
mov edi, eax
adc edi, edx
mov dword [ebp - 0x1b8], edi
mov edi, dword [ebp - 0x1b0]
and dword [ebp - 0x1b8], 0
or edi, eax
jne 0x1005627
push 0xe7
jmp 0x1005714
xor eax, eax
lea edi, [ebp - 0x1d0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x101a848]
cmp eax, 1
je 0x1005643
cmp eax, 3
jne 0x1005655
mov eax, dword [0x101a850]
add dword [ebp - 0x1a0], eax
adc dword [ebp - 0x19c], 0
mov eax, ecx
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x198], esi
xor esi, esi
mov dword [ebp - 0x1b4], esi
mov esi, eax
and esi, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x1b4]
mov edi, edx
and edi, eax
mov eax, esi
or eax, edi
je 0x1005696
lea eax, [ecx - 1]
not eax
and eax, dword [ebp - 0x1a4]
add eax, ecx
mov dword [ebp - 0x198], eax
mov eax, dword [ebp - 0x1a0]
and dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1c4], eax
lea eax, [ebp - 0x1d0]
push eax
lea eax, [ebp - 0x1b8]
push eax
push dword [ebp - 0x1b0]
push dword [ebp - 0x198]
push dword [ebp - 0x1a8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1005727
push dword [ebp + 0xc]
lea eax, [ebp - 0x194]
push dword [ebp - 0x1a0]
push dword [ebp - 0x1b0]
push dword [ebp - 0x198]
push dword [ebp - 0x1a8]
push 0x1001418
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0x10a
push 0x100135c
push 0x10013c8
call fcn.01007320
xor eax, eax
jmp 0x1005761
or esi, edi
je 0x100575e
mov esi, dword [ebp - 0x1b0]
mov edi, dword [ebp - 0x1a4]
push esi
push dword [ebp - 0x198]
push edi
call dword [sym.imp.msvcrt.dll_memmove]
mov ecx, ebx
sub ecx, esi
mov edx, ecx
shr ecx, 2
add edi, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0xc
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01017c5b
leave
ret 0x28
Function at 0x10078fa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101ac60]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov dword [ebp - 4], eax
je 0x100795a
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, 0x104
cmp eax, esi
pop ecx
jae 0x100795a
push esi
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
and word [ebp - 8], 0
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x100795a
cmp eax, esi
ja 0x100795a
xor eax, eax
inc eax
jmp 0x100795c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01017c5b
leave
ret 4

Function at 0x1009de4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x101ac60]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x8c]
push 0x10021b0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0xc
push 0xf
lea eax, [ebp - 0x24]
push eax
xor eax, eax
push eax
push eax
push eax
push 0x64
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x1009e55
push 0xc7
push 0x100217c
push 0x1002130
call fcn.01007320
xor eax, eax
jmp 0x1009eb3
lea eax, [ebp - 0x154]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
pop ecx
pop ecx
push 0x1002120
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x1009e82
mov dword [edi], 2
jmp 0x1009eb0
push 0x1002118
lea eax, [ebp - 0x24]
push eax
call esi
test eax, eax
jne 0x1009e99
mov dword [edi], 1
jmp 0x1009eb0
push 0x100210c
lea eax, [ebp - 0x24]
push eax
call esi
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
mov dword [edi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01017c5b
leave
ret 0xc

Function at 0x100a295
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x101ac60]
and word [ebp - 0x12], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x41
mov dword [ebp - 4], eax
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
pop esi
push 0x33
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], si
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x100a2f1
push 0x30
lea eax, [ebp - 0x80]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x100a309
inc esi
cmp si, 0x5a
jbe 0x100a2c5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01017c5b
leave
ret 8
xor eax, eax
mov word [edi], si
inc eax
jmp 0x100a2fa
Function at 0x100ab85
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x101ac60]
and dword [ebp - 0x78], 0
and dword [ebp - 0x70], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x18]
cmp dword [esi], 0xa
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, 0x100197c
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edi
jne 0x100abc3
xor esi, esi
jmp 0x100ac5d
push 0x33
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x100abbc
push 0x30
push dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x100ac0e
mov eax, dword [esi]
lea ecx, [ebx + eax*8]
inc eax
mov dword [esi], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x70], 1
call fcn.0100a7e8
cmp dword [esi], 0xa
jne 0x100ac0e
xor esi, esi
inc esi
jmp 0x100ac5d
push 0xfa00
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x74], eax
jne 0x100ac36
push 0x397
push 0x100217c
push 0x1002130
call fcn.01007320
jmp 0x100abbc
push 0x7d00
push eax
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
cmp eax, 0xffffffff
mov dword [ebp - 0x84], eax
jne 0x100ac7a
push dword [ebp - 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp - 0x70]
pop ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
call fcn.0100709f
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.0100709f
mov eax, esi
jmp 0x100ad0e
push 0xffffffffffffffff
push 1
push dword [ebp + 0xc]
lea ecx, [ebp - 0x7c]
call fcn.010070d4
push 0xffffffffffffffff
push 0
push dword [ebp - 0x74]
lea ecx, [ebp - 0x7c]
call fcn.010070d4
lea ecx, [ebp - 0x7c]
call fcn.01009dc3
test eax, eax
jne 0x100acc8
push esi
push ebx
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push ecx
push ecx
mov ecx, esp
push 0xffffffffffffffff
push eax
call fcn.0100a7ba
call fcn.0100ab85
test eax, eax
je 0x100acc8
mov dword [ebp - 0x70], 1
push 0x7d00
push dword [ebp - 0x74]
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
test eax, eax
jne 0x100ac7a
push dword [ebp - 0x74]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
call fcn.0100709f
lea ecx, [ebp + 8]
mov dword [ebp + 8], edi
call fcn.0100709f
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 4]
call fcn.01017c5b
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100ae6d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x100ae93
push esi
push 1
push ebx
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100aecb
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100aeca
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
cmp ecx, 1
jbe 0x100aec2
shr ecx, 1
mov word [edi + ecx*2 - 2], bx
jmp 0x100aeca
mov word [edi], bx
mov eax, 0x3f2
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x100aed6
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
mov word [ebp - 4], di
jne 0x100af0e
lea eax, [ebp + 8]
push eax
push esi
push edi
push 0xf003f
push edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x100af23
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
leave
ret 0x18

Function at 0x100b02c
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x28
push 0x1002498
call fcn.01017f40
or dword [ebp - 0x20], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100b077
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x100b0f4
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
cmp esi, ebx
je 0x100b09d
mov dword [ebp - 0x2c], esi
mov dword [edi], esi
cmp esi, ebx
je 0x100b0f4
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x100b0b8
push 0x59
jmp 0x100b0c8
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x100b083
push 0x49
jmp 0x100b0c8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x38], eax
cmp eax, ebx
jne 0x100b0d9
push 0x60
push 0x1002410
push 0x1002448
call fcn.01007320
jmp 0x100b0f4
push ebx
lea ecx, [ebp - 0x30]
push ecx
push esi
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100b0f4
mov dword [ebp - 0x28], 1
or dword [ebp - 4], 0xffffffff
call fcn.0100b10a
mov eax, dword [ebp - 0x1c]
call fcn.01017f7b
ret 0x10