joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bff4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42ce10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d8a
mov dword [ebp - 0x14], eax
cmp dword [0x2c89630], esi
jne 0x40c0e7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c074
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c1c7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c1c7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1c7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x2c89630], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x2c89634], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x2c89638], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c89640], eax
test eax, eax
je 0x40c0e4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x2c8963c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c10c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c0ff
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c121
push 4
pop eax
jmp 0x40c1c9
cmp dword [ebp - 0x14], esi
je 0x40c121
push dword [0x2c89630]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c106
mov eax, dword [0x2c8963c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c17f
cmp dword [0x2c89640], edi
je 0x40c17f
push eax
call ebx
push dword [0x2c89640]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c17f
test eax, eax
je 0x40c17f
call ecx
test eax, eax
je 0x40c174
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c174
test byte [ebp - 8], 1
jne 0x40c17f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c1af
mov eax, dword [0x2c89634]
cmp eax, edi
je 0x40c1ac
push eax
call ebx
test eax, eax
je 0x40c1ac
call eax
mov esi, eax
test esi, esi
je 0x40c1ac
mov eax, dword [0x2c89638]
cmp eax, edi
je 0x40c1ac
push eax
call ebx
test eax, eax
je 0x40c1ac
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x2c89630]
call ebx
test eax, eax
je 0x40c1c7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c1c9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e3e
mov esp, ebp
pop ebp
ret
Function at 0x1021a96
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x248
mov eax, dword [0x10de03c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov edi, reloc.KERNEL32.dll_WaitForSingleObject
push 0x4000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x234], 0x2000
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x24c], WaitForSingleObject
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x224], ebx
call fcn.01075fe0
cmp eax, ebx
pop ecx
mov dword [ebp - 0x230], eax
je 0x1021ce8
lea ecx, [esi + 0xba4]
mov dword [ebp - 0x238], ecx
call fcn.010765e0
lea ecx, [esi + 0xbc0]
mov dword [ebp - 0x240], ecx
call fcn.010765e0
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x1004238
push edi
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1021ca3
mov esi, dword [ebp - 0x230]
lea eax, [ebp - 0x234]
push eax
push esi
lea eax, [ebp - 0x244]
push eax
push ebx
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x22c]
mov dword [ebp - 0x23c], 0x208
push dword [ebp - 0x220]
mov dword [ebp - 0x234], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
inc dword [ebp - 0x22c]
cmp eax, ebx
jne 0x1021ca3
cmp dword [ebp - 0x244], 7
jne 0x1021b53
lea ecx, [ebp - 0x21c]
call fcn.01075e60
lea eax, [ebp - 0x218]
push 0x100421c
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x1021bee
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.01075e24
jmp 0x1021b53
cmp word [esi], bx
je 0x1021bda
mov edi, 0x1004208
push 0x25
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
je 0x1021c50
lea ecx, [ebp - 0x228]
call fcn.01075e60
lea eax, [ebp - 0x228]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.01021786
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.01075e84
add esp, 0x10
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], bl
call fcn.01075e24
jmp 0x1021c68
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call fcn.01075e84
add esp, 0x10
cmp dword [ebp - 0x224], 1
mov ecx, dword [ebp - 0x240]
lea eax, [ebp - 0x21c]
push eax
je 0x1021c84
mov ecx, dword [ebp - 0x238]
call fcn.010765d4
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
pop ecx
jne 0x1021bf8
jmp 0x1021bda
cmp dword [ebp - 0x220], ebx
je 0x1021cbd
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], ebx
inc dword [ebp - 0x224]
mov eax, dword [ebp - 0x224]
mov edi, dword [ebp + eax*4 - 0x250]
cmp edi, ebx
jne 0x1021b22
push dword [ebp - 0x230]
call fcn.01075ec0
pop ecx
xor eax, eax
jmp 0x1021ceb
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x1022a77
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1022b32
push 0x1004a34
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x1022b2c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1004a14
push eax
call edi
push 0x10049f4
push dword [esi + 4]
mov dword [esi + 8], eax
call edi
push 0x10049d4
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x10049b4
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push 0x1004990
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
push 0x1004968
push dword [esi + 4]
mov dword [esi + 0x18], eax
call edi
push 0x1004944
push dword [esi + 4]
mov dword [esi + 0x1c], eax
call edi
cmp dword [esi + 8], ebx
mov dword [esi + 0x20], eax
pop edi
je 0x1022b20
cmp dword [esi + 0xc], ebx
je 0x1022b20
cmp dword [esi + 0x10], ebx
je 0x1022b20
cmp dword [esi + 0x14], ebx
je 0x1022b20
cmp dword [esi + 0x18], ebx
je 0x1022b20
cmp eax, ebx
je 0x1022b20
cmp dword [esi + 0x1c], ebx
jne 0x1022b2c
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 4], ebx
mov dword [esi], 1
pop esi
pop ebx
ret

Function at 0x10230b2
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
cmp dword [ebp + 0xc], 0
mov eax, dword [0x10de03c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov edi, ecx
je 0x1023118
push CompareStringW
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10230f9
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x204]
push eax
mov ecx, edi
call fcn.01022ffe
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1023140
test ah, 4
je 0x1023140
push CompareStringW
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10230f9
xor eax, eax
jmp 0x102310a
Function at 0x1023385
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x834], eax
lea eax, [ebp - 0x828]
push eax
push dword [0x10dc6f0]
push reloc.KERNEL32.dll_WaitForSingleObject
call ebx
test eax, eax
je 0x10233c7
xor eax, eax
jmp 0x1023454
push esi
push edi
xor esi, esi
mov eax, dword [esi + 0x10046c0]
mov edi, dword [esi + 0x10046c4]
lea ecx, [ebp - 0x82c]
push ecx
push eax
push dword [ebp - 0x828]
mov dword [ebp - 0x830], 0x820
call ebx
test eax, eax
jne 0x102343b
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
push edi
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102342f
mov ecx, dword [ebp - 0x834]
lea eax, [ebp - 0x824]
push eax
call fcn.0102328e
push dword [ebp - 0x82c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 8
cmp esi, 0x50
jb 0x10233cb
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x1023466
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x22c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x220]
push eax
push dword [0x10dc6cc]
push reloc.KERNEL32.dll_WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10234eb
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0x1004a58
push dword [ebp - 0x220]
mov dword [ebp - 0x22c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1023506
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075aef
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x230], eax
lea eax, [eax + eax + 0x1e]
push eax
mov dword [ebp - 0x224], eax
call fcn.01075fe0
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
mov dword [ebp - 0x228], ebx
je 0x10234eb
push 7
pop ecx
mov esi, 0x10dc6d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x230]
lea esi, [ebp - 0x21c]
lea edi, [ebx + 0x1c]
rep movsw word es:[edi], word [esi]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x234]
and word [eax + ebx - 2], 0
and dword [ebp - 4], 0
push ebx
call fcn.0102328e
or dword [ebp - 4], 0xffffffff
push ebx
call fcn.01075ec0
xor eax, eax
pop ecx
inc eax
jmp 0x10234ed
Function at 0x10235a7
Capabilities:
Query environment variable

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x884
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], eax
push 0x410
lea eax, [ebp - 0x834]
push eax
push 0x1004ad4
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10235f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1004a78
call dword [sym.imp.msvcrt.dll_wprintf]
pop ecx
pop ecx
jmp 0x102364d
lea ecx, [ebp - 0x860]
call fcn.01022ee5
xor edi, edi
lea eax, [ebp - 0x860]
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x83c], edi
mov byte [ebp - 4], 1
call fcn.01023466
cmp eax, edi
jne 0x102362e
lea ecx, [ebp - 0x860]
jmp 0x1023644
lea eax, [ebp - 0x860]
push eax
call fcn.01023385
cmp eax, edi
lea ecx, [ebp - 0x860]
jne 0x1023654
or dword [ebp - 4], 0xffffffff
call fcn.01022f06
xor eax, eax
jmp 0x1023756
lea eax, [ebp - 0x834]
push eax
call fcn.0102328e
lea ecx, [ebp - 0x890]
call fcn.01022a50
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 2
call fcn.01022a77
lea ecx, [ebp - 0x890]
call fcn.01023232
lea eax, [ebp - 0x838]
push eax
push 1
lea ecx, [ebp - 0x890]
call fcn.01022b5a
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x83c], ebx
jne 0x10236c1
lea ecx, [ebp - 0x890]
call fcn.01022dc6
lea ecx, [ebp - 0x890]
mov byte [ebp - 4], 1
call fcn.0102320d
jmp 0x1023735
push ebx
lea ecx, [ebp - 0x860]
call fcn.0102328e
mov esi, dword [ebp - 0x838]
cmp word [esi], di
je 0x10236f1
push esi
lea ecx, [ebp - 0x860]
call fcn.0102328e
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea esi, [esi + eax*2]
jmp 0x10236d3
push ebx
call fcn.01075ec0
pop ecx
push dword [ebp - 0x838]
call fcn.01075ec0
pop ecx
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
jmp 0x1023685
lea ecx, [ebp - 0x860]
mov dword [ebp - 4], edi
call fcn.01023149
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x860]
mov esi, eax
call fcn.01022f06
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.01075aef
pop edi
pop esi
pop ebx
leave
ret
Function at 0x102595b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.010337cd
mov esi, eax
test esi, esi
je 0x10259bc
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x20c]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
jmp 0x10259be
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret 4

Function at 0x10259d1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.010337cd
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x1025a62
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
mov dword [ebp - 0x210], ebx
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp + esi*2 - 0x20c]
push 0x1004204
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1025a62
cmp eax, 5
jne 0x1025a5d
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test byte [ebp - 0x20e], 8
jne 0x1025a62
xor eax, eax
inc eax
jmp 0x1025a64
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x1025a78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
push esi
mov esi, dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1025ac8
test al, 0x10
je 0x1025b0f
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1025ab0
push 0x1004204
mov ecx, esi
call fcn.010761f0
push 0x1004c50
mov ecx, esi
call fcn.010761f0
push dword [ebp + 0xc]
mov ecx, esi
call fcn.010761d8
jmp 0x1025b0f
push 0x5c
mov ecx, esi
call fcn.01076238
cmp eax, 0xffffffff
mov ecx, esi
je 0x1025b05
push eax
lea eax, [ebp + 8]
push eax
call fcn.01076220
and dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.01075e30
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01075e24
push dword [ebp + 0xc]
push esi
call fcn.01025a78
jmp 0x1025b0f
push 0x100205c
call fcn.01075e54
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x10268dd
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10de03c]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x20
push 2
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp dword [ebp - 0x10], ebx
je 0x1026946
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call fcn.01077bcc
test eax, eax
jne 0x102693d
mov dword [ebp - 0x14], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x1026dfe
Capabilities:
Terminate thread

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1004f7c
cmp dword [esi + 0x11c], 0
mov dword [ebp - 4], 5
jne 0x1026e40
push 0x3e8
push dword [esi + 0x168]
mov dword [esi + 0x118], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x168]
test eax, eax
je 0x1026e5c
cmp dword [esi + 0x11c], 0
jne 0x1026e5c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x108]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [esi + reloc.KERNEL32.dll_SetErrorMode]
call edi
push dword [esi + 0x110]
call edi
add esp, 0xc
lea eax, [esi + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x168]
test eax, eax
pop edi
je 0x1026e9d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x170]
call fcn.01026d50
lea ecx, [esi + reloc.KERNEL32.dll_GetTapeStatus]
mov byte [ebp - 4], 4
call fcn.0107664c
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 3
call fcn.01075e24
lea ecx, [esi + 0xe0]
mov byte [ebp - 4], 2
call fcn.01075e24
lea ecx, [esi + 0xa0]
mov byte [ebp - 4], 1
call fcn.010761c0
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 0
call fcn.010761c0
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.01075e18
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x102811d
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x688
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
push 0xd
mov edx, ecx
pop ecx
xor ebx, ebx
push ebx
push 1
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x2001
lea edi, [ebp - 0x694]
rep stosd dword es:[edi], eax
lea edi, [edx + 0x150]
push reloc.KERNEL32.dll_LoadLibraryW
lea eax, [ebp - 0x420]
mov esi, 0x104
push reloc.KERNEL32.dll_LoadLibraryW
mov ecx, edi
mov dword [ebp - 0x62c], edx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x680], eax
call fcn.01076718
test eax, eax
je 0x10282bb
mov ecx, dword [ebp - 0x62c]
push 1
add ecx, 0xe8
push edi
mov dword [ebp - 0x62c], ecx
call fcn.010280ed
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
jmp 0x10282a8
inc dword [ebp - 0x634]
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0x2e
mov dword [ebp - 0x694], LoadLibraryW
mov dword [ebp - 0x630], esi
jne 0x102828a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103c247
push esi
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x660]
mov dword [ebp - 4], ebx
call fcn.0103bb2d
lea ecx, [ebp - 0x660]
mov dword [ebp - 0x68c], ebx
call fcn.0103bade
push eax
mov ecx, edi
call fcn.01027a61
mov ecx, dword [ebp - 0x62c]
mov dword [ebp - 0x678], eax
lea eax, [ebp - 0x694]
push eax
call fcn.010279be
mov dword [ebp - 0x638], eax
push esi
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x660]
call fcn.0103bb5a
mov ecx, dword [ebp - 0x62c]
lea eax, [ebp - 0x628]
push eax
push 1
push dword [ebp - 0x638]
call fcn.0107670c
inc dword [ebp - 0x690]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x660]
call fcn.0103ba5d
lea eax, [ebp - 0x640]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x634]
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10281c5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret
Function at 0x102a4e1
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x10de03c]
and word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push 0x10054a8
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x102a56e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.01087e03
test ax, ax
je 0x102a569
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
dec eax
neg eax
sbb eax, eax
add eax, 7
mov dword [esi], eax
mov ax, 1
jmp 0x102a5cc
xor ax, ax
jmp 0x102a5cc
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x102a5c8
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
test eax, eax
je 0x102a5bd
cmp eax, 2
je 0x102a5ac
jbe 0x102a5c8
cmp eax, 4
ja 0x102a5c8
xor eax, eax
cmp ebx, 0x6f9
setne al
dec eax
and eax, 0xfffffffd
add eax, 5
mov dword [esi], eax
jmp 0x102a5c3
cmp ebx, 0x15
jne 0x102a5b9
mov dword [esi], 3
jmp 0x102a5c3
mov dword [esi], ecx
jmp 0x102a5c3
mov dword [esi], 4
mov ax, cx
jmp 0x102a5cb
xor ax, ax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01075aef
leave
ret 8
Function at 0x102a700
Capabilities:
Get disk information

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
push esi
mov dword [ebp - 0x10], eax
call fcn.0104e8e8
xor ebx, ebx
test eax, eax
je 0x102a7de
call fcn.01021462
add eax, 0xa2
push eax
lea ecx, [ebp - 0x214]
call fcn.01075e3c
mov esi, 0x1004204
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], ebx
call fcn.01076568
cmp eax, 0xffffffff
lea ecx, [ebp - 0x214]
je 0x102a78c
inc eax
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.01076220
push eax
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 1
call fcn.01075e30
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], bl
call fcn.01075e24
jmp 0x102a792
push esi
call fcn.010761f0
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x102a7c0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x214]
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
call fcn.01075e24
jmp 0x102a85e
push dword [ebp - 0x214]
push edi
call dword [sym.imp.msvcrt.dll_wcscpy]
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x214]
call fcn.01075e24
call fcn.01021462
cmp word [eax + reloc.ADVAPI32.dll_RegDeleteValueW], 2
push CompareStringW
lea eax, [ebp - 0x210]
push eax
je 0x102a800
push 0xfa3
jmp 0x102a805
push 0xe000
call fcn.01067f86
push 1
push ebx
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
push 4
push 0xbd2
lea eax, [ebp - 0x210]
push eax
call fcn.01054b23
cmp eax, 6
jne 0x102a855
push edi
push 0xbc5
call fcn.01088826
pop ecx
pop ecx
push 1
push ebx
push 0x30
push ebx
mov esi, eax
push esi
push 0xfa0
call fcn.01054b83
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov ax, 0x8008
jmp 0x102a862
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov ax, 0x8007
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01075aef
leave
ret