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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push eax
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x4d8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104fbf6
xor eax, eax
inc eax
jmp 0x104fce3
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], ebx
lea eax, [ebp - 0x4e8]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x4e0], eax
jne 0x104fcc1
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xcc], bx
lea esi, [ebp - 0xcc]
je 0x104fcaa
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104fca3
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104fcaa
inc esi
inc esi
cmp word [esi], bx
jne 0x104fc85
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
push dword [ebp + 8]
call fcn.0104fa54
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104fc04
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret 8
Function at 0x104fcf5
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10de03c]
push ebx
lea ecx, [ebp - 0x4d4]
push ecx
push 0x20019
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push eax
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x4d8], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x104fd39
xor eax, eax
inc eax
jmp 0x104fe23
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcscat]
mov dword [ebp - 0x4d0], ebx
lea eax, [ebp - 0x4e8]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x4dc]
push eax
lea eax, [ebp - 0xcc]
push eax
push dword [ebp - 0x4d0]
mov dword [ebp - 0x4dc], 0x64
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x4e0], eax
jne 0x104fe01
push dword [ebp - 0x4d8]
lea eax, [ebp - 0x4cc]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x4cc]
push 0x1004204
push eax
call edi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x4cc]
push eax
call edi
add esp, 0x18
cmp word [ebp - 0xcc], bx
lea esi, [ebp - 0xcc]
je 0x104fded
xor eax, eax
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaW]
test eax, eax
jne 0x104fde6
mov ax, word [esi]
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x104fded
inc esi
inc esi
cmp word [esi], bx
jne 0x104fdc8
push esi
call fcn.01082763
pop ecx
lea ecx, [ebp - 0x4cc]
push ecx
push eax
call fcn.0104fbb2
inc dword [ebp - 0x4d0]
cmp dword [ebp - 0x4e0], ebx
je 0x104fd47
push dword [ebp - 0x4d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01075aef
leave
ret 4

Function at 0x10508e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov ebx, eax
push 0xa
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov edi, dword [sym.imp.msvcrt.dll_fwrite]
jmp 0x105093b
mov eax, dword [ebp - 4]
sub eax, ebx
push esi
sar eax, 1
push eax
push 2
push ebx
call edi
mov eax, dword [esi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x1050965
push esi
push 2
push 2
push 0x100548c
call edi
mov eax, dword [esi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x1050965
mov ebx, dword [ebp - 4]
add ebx, 2
push 0xa
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x10508fc
cmp word [ebx], ax
je 0x1050963
push esi
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push 2
push ebx
call edi
mov eax, dword [esi + 0xc]
add esp, 0x10
and eax, 0x20
jne 0x1050965
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x1050d71
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
call fcn.01021462
mov esi, edi
shl esi, 3
cmp dword [esi + 0x10dd4ac], 0
mov ebx, eax
mov ax, word [esi + reloc.ADVAPI32.dll_RegDeleteValueW]
mov word [ebp - 0xc], ax
jne 0x1050e9a
push edi
mov edi, 0x10e3358
mov ecx, edi
call fcn.010509db
cmp word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 1
lea eax, [ebp - 8]
jne 0x1050dd1
push 0x100a594
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov dword [ebp - 4], 8
jmp 0x1050df3
and dword [ebp - 4], 0
push 0x100a590
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov word [ebx + reloc.ADVAPI32.dll_RegDeleteValueW], 1
mov word [esi + reloc.ADVAPI32.dll_RegDeleteValueW], 1
xor ebx, ebx
cmp word [reloc.ADVAPI32.dll_RegDeleteValueW], bx
pop ecx
pop ecx
je 0x1050e9a
push dword [ebp - 4]
push edi
call fcn.010828b1
cmp eax, ebx
mov dword [esi + 0x10dd4ac], eax
jne 0x1050e26
push edi
push 0xdbb
call fcn.010815f2
pop ecx
pop ecx
jmp 0x1050e9a
push eax
mov byte [ebp - 2], CompareStringW
mov byte [ebp - 1], 0xfe
call dword [sym.imp.msvcrt.dll_ftell]
test eax, eax
pop ecx
jne 0x1050e51
push dword [esi + 0x10dd4ac]
lea eax, [ebp - 2]
push 2
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
call fcn.01021462
cmp dword [eax + 0xbec], ebx
je 0x1050e9a
cmp word [ebp - 0xc], 1
je 0x1050e9a
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], LoadLibraryW
mov dword [ebp - 0x10], ebx
call fcn.01059f29
test eax, eax
jl 0x1050e9a
lea eax, [ebp - 0x2c]
push eax
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
lea eax, [ebp - 0x18]
push eax
call fcn.0105a0b4
pop edi
pop esi
pop ebx
leave
ret

Function at 0x105543a
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10de03c]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
xor edi, edi
push edi
push 0x2000000
push edi
push 0x100205c
push edi
push 0x100b108
push reloc.KERNEL32.dll_WaitForSingleObject
mov dword [ebp - 0x20c], 7
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1055491
xor eax, eax
inc eax
jmp 0x105551f
push esi
call fcn.010214fa
push eax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x204]
push 0x10e3d78
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x14
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push edi
push 0x100b0e4
push dword [ebp - 0x208]
call esi
test eax, eax
jne 0x105550d
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push edi
push 0x100b0c4
push dword [ebp - 0x208]
call esi
test eax, eax
je 0x1055510
xor edi, edi
inc edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.01075aef
leave
ret
Function at 0x105552f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
push reloc.KERNEL32.dll_LoadLibraryW
pop ecx
mov esi, 0x100b228
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
push eax
mov ebx, 0x2000000
push ebx
push eax
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, 0x100205c
push esi
push eax
push 0x100b190
push reloc.KERNEL32.dll_WaitForSingleObject
call edi
test eax, eax
jne 0x10555dc
cmp dword [ebp - 0x50], 1
jne 0x10555b4
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax*4 + 4]
push eax
lea eax, [ebp - 0x48]
push eax
push 1
push 0
push esi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10555b4
xor esi, esi
inc esi
jmp 0x10555e3
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
xor eax, eax
push eax
push ebx
push eax
push esi
push eax
push 0x100a0f0
push WaitForSingleObject
call edi
test eax, eax
je 0x10555e1
xor eax, eax
inc eax
jmp 0x10555ee
xor esi, esi
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01075aef
leave
ret
Function at 0x1057d60
Capabilities:
Set current directory

Disassembly:
call fcn.01021457
test eax, eax
jne 0x1057d6e
call fcn.0105552f
push ebx
push esi
push edi
call fcn.01021a52
call fcn.0105543a
mov ebx, CompareStringW
push ebx
push 0x10e4230
mov edi, 0x100205c
push edi
xor eax, eax
push 0x100bc08
mov esi, 0x100b458
push esi
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
mov word [reloc.ADVAPI32.dll_RegDeleteValueW], ax
call fcn.010215f5
call fcn.01021478
push eax
call fcn.01021810
push ebx
push 0x10e4430
push edi
push 0x100bbec
push esi
call fcn.010215f5
call fcn.010214cb
push eax
call fcn.01021926
push 1
push 0x100ba08
push esi
call fcn.01021516
movzx eax, ax
mov dword [0x10e4b14], eax
call fcn.01092890
push 0
call fcn.0108cc38
test eax, eax
pop edi
pop esi
mov dword [0x10e4b08], eax
mov dword [0x10e3d70], eax
pop ebx
je 0x1057e4b
mov word [eax + 0x66], 1
mov eax, dword [0x10e3d70]
or dword [eax + 0x9c], 2
call fcn.01055600
call fcn.010579c1
call fcn.01055b51
call fcn.01055c94
and dword [0x10e25c8], 0
call fcn.01055dd0
call fcn.01055e12
call fcn.01032e62
jmp fcn.01021505
ret

Function at 0x1058081
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10de03c]
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
xor esi, esi
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
xor edi, edi
push WaitForSingleObject
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10580f5
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
push 0x100c278
push dword [ebp - 0x30]
mov dword [ebp - 0x38], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10580ec
cmp dword [ebp - 0x34], 4
jne 0x10580ec
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.01075aef
leave
ret

Function at 0x1058108
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10de03c]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push 0x2000000
push esi
push esi
push esi
push 0x100a0f0
push WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1058160
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x100c278
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
call fcn.01075aef
leave
ret 4
Function at 0x105865b
Capabilities:
Get common file path

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x10], ebx
call edi
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.010761fc
cmp eax, ebx
je 0x105873f
push dword [ebp - 0x14]
push eax
call edi
push 0xffffffffffffffff
mov ecx, esi
call fcn.010762f8
push dword [esi]
call fcn.010337cd
mov edi, eax
cmp edi, ebx
je 0x105873f
mov eax, dword [esi]
push edi
push eax
lea ecx, [ebp + 0xc]
call fcn.01076ca0
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [0x10e25b0]
call fcn.01084401
test ax, ax
jne 0x1058733
push dword [ebp - 0x18]
push dword [0x10e25b4]
call fcn.0108ee4e
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x1058733
mov eax, dword [esi]
mov ax, word [eax + edi*2]
cmp ax, 0x5c
mov ecx, esi
lea eax, [ebp + 8]
jne 0x105870e
inc edi
push edi
push eax
call fcn.010765c8
mov byte [ebp - 4], 1
jmp 0x1058719
push edi
push eax
call fcn.010765c8
mov byte [ebp - 4], 2
mov ecx, esi
push eax
call fcn.01075e30
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.01075e24
mov dword [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1058758
Capabilities:
Set registry value

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, reloc.KERNEL32.dll_GetTapeStatus
mov eax, dword [0x10de03c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov ecx, ebx
mov dword [ebp - 0x10], eax
call fcn.010748bb
mov ecx, esi
call fcn.01075fd4
mov ecx, esi
call fcn.01075fc8
push 1
call fcn.0102e27e
mov edi, eax
cmp edi, 1
je 0x105887f
cmp edi, 4
je 0x105886d
lea ecx, [ebp - 0x12c]
call fcn.01075e60
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x128]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0105865b
test eax, eax
je 0x105884a
lea eax, reloc.KERNEL32.dll_PrepareTape
push eax
lea eax, [ebp - 0x128]
push eax
push edi
push 0x2000000
push edi
push edi
push edi
push 0x100c2c0
push reloc.KERNEL32.dll_WaitForSingleObject
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x105884a
push 0x45
pop ecx
lea edi, reloc.KERNEL32.dll_GetTapeStatus
rep stosd dword es:[edi], eax
lea eax, reloc.KERNEL32.dll_GetTapeStatus
mov esi, EraseTape
push eax
mov dword [ebp - reloc.KERNEL32.dll_GetTapeStatus], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push esi
lea eax, reloc.KERNEL32.dll_GetTapeStatus
push eax
push 3
push 0
push 0x100c2a0
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov ecx, ebx
call fcn.010744f8
test eax, eax
je 0x105885c
push 7
call fcn.01039acd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.01075e24
jmp 0x105887f
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xd4]
push 1
call fcn.01075fb0
xor edi, edi
mov ecx, dword [ebp - 0xc]
xor eax, eax
test edi, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
sete al
pop ebx
call fcn.01075aef
leave
ret 4
Function at 0x10591a5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
push ebx
push esi
push edi
mov esi, 0x100c378
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [0x1004ba0]
movsw word es:[edi], word [esi]
xor edi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [0x1004ba4]
push 0x41
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], edi
pop esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], si
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x105929d
push edi
push edi
push 3
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x14], si
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10592bb
push edi
lea eax, [ebp - 0x28]
push eax
push reloc.KERNEL32.dll_ExpandEnvironmentStringsW
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push 0x70c00
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1059288
mov eax, dword [ebp - 0x28]
xor edx, edx
push 0x18
pop ecx
div ecx
xor edx, edx
cmp eax, edi
jbe 0x105928e
xor ecx, ecx
lea ecx, [ecx + ecx*2]
mov ecx, dword [ebp + ecx*8 - 0x204]
cmp ecx, edi
je 0x1059276
cmp ecx, 0xb
je 0x105927b
cmp ecx, 0xc
je 0x1059276
mov dword [ebp - 0x2c], 1
jmp 0x105927e
cmp ecx, 0xb
jne 0x105927e
mov dword [ebp - 0x20], esi
inc edx
movzx ecx, dx
cmp ecx, eax
jb 0x1059255
jmp 0x105928e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 1
je 0x10592c6
jmp 0x10592bb
cmp eax, 4
jne 0x10592ad
cmp word [ebp - 0x20], di
jne 0x10592bb
mov dword [ebp - 0x20], esi
jmp 0x10592bb
cmp eax, 3
jne 0x10592bb
cmp word [ebp - 0x24], di
jne 0x10592bb
mov dword [ebp - 0x24], esi
inc esi
cmp si, 0x5a
jbe 0x10591e9
mov ecx, dword [ebp - 4]
xor eax, eax
mov ax, 0x5a
cmp ax, si
pop edi
sbb eax, eax
not eax
and eax, esi
pop esi
pop ebx
call fcn.01075aef
leave
ret
Function at 0x10596c4
Capabilities:
Get common file path
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa24
mov eax, dword [0x10de03c]
push ebx
push edi
push 4
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0105946e
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xa18], eax
je 0x105984b
xor eax, eax
mov ecx, 0x200
lea edi, [ebp - 0xa10]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xa10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jge 0x1059723
xor eax, eax
jmp 0x1059851
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], bx
mov dword [ebp - 0xa1c], ebx
je 0x105984b
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0xa10]
mov dword [ebp - 0xa14], eax
push dword [ebp - 0xa14]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x105981c
push 0x104
push dword [ebp - 0xa14]
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 8], bx
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x210]
push eax
call edi
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp - 0x210]
push 0x10054a8
push eax
call dword [sym.imp.msvcrt.dll_wcsncat]
add esp, 0x1c
push ebx
push ebx
mov dword [ebp - 0xa20], CView::OnEndPrintPreview
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
lea eax, [ebx + ebx]
push eax
call fcn.01075fe0
test eax, eax
pop ecx
mov dword [ebp - 0xa24], eax
je 0x10597ed
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [ebp - 0xa24]
cmp word [eax + 2], 0x3a
jne 0x10597e6
mov cx, word [eax]
mov word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], cx
push eax
call fcn.01075ec0
pop ecx
mov ax, word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW]
cmp word [ebp - reloc.ADVAPI32.dll_RegDeleteValueW], ax
je 0x1059811
push 1
lea eax, [ebp - 0x210]
push eax
call fcn.01059363
mov dword [ebp - 0xa18], eax
cmp dword [ebp - 0xa18], 0
je 0x105984b
xor ebx, ebx
push dword [ebp - 0xa14]
call edi
pop ecx
mov ecx, dword [ebp - 0xa1c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0xa1c], eax
lea eax, [ebp + eax*2 - 0xa10]
cmp word [eax], bx
mov dword [ebp - 0xa14], eax
jne 0x1059748
mov eax, dword [ebp - 0xa18]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01075aef
leave
ret 8

Function at 0x1059864
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10de03c]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x100c388
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 2
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.0105946e
mov ecx, dword [ebp - 4]
call fcn.01075aef
leave
ret
Function at 0x105d3ba
Capabilities:
Get disk information

Disassembly:
mov eax, reloc.ADVAPI32.dll_AddAccessAllowedAce
call fcn.01077798
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.01075e60
mov esi, dword [ebp + 8]
lea eax, [esi + 0x74]
xor edi, edi
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.01075e30
push esi
mov ecx, ebx
call fcn.01058758
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d589
push esi
mov ecx, ebx
call fcn.0105d1a9
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x105d52f
push dword [0x10e25b4]
call fcn.01081da5
mov ecx, esi
call fcn.01074258
cmp dword [esi + 0x5c], edi
jne 0x105d544
lea ecx, [ebp - 0x14]
call fcn.01075e60
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
call fcn.0104e8e8
test eax, eax
je 0x105d4fd
lea ecx, [ebp + 8]
call fcn.01075e60
mov byte [ebp - 4], 2
call fcn.01021462
add eax, 0xa2
push eax
lea ecx, [ebp + 8]
call fcn.01075e54
push dword [ebp + 8]
call fcn.010337cd
cmp eax, edi
je 0x105d4d6
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.01076220
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.01075e30
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.01075e24
push 0x1004204
lea ecx, [ebp - 0x20]
call fcn.01075e3c
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.010761d8
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.01075e24
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x105d4d6
cmp eax, 5
je 0x105d4d6
mov dword [ebp - 0x18], 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.01075e24
cmp dword [ebp - 0x18], edi
je 0x105d4fd
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0xa3
push eax
call fcn.01076214
add esp, 0xc
jmp 0x105d511
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push LoadLibraryW
push eax
call fcn.01076214
add esp, 0x10
push 1
push edi
push reloc.ADVAPI32.dll_ReadEncryptedFileRaw
push edi
push dword [ebp - 0x14]
push 0x17
call fcn.01054b83
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.01075e24
jmp 0x105d544
push 1
push edi
push 0x30
push edi
push 0x80f5
push 0xfa6
call fcn.01054be3
mov ecx, dword [ebx + 0x20]
push 0x1005368
call fcn.01052e48
push dword [0x10e25b4]
mov edi, eax
call fcn.01081da5
mov ecx, esi
call fcn.01074258
push 3
mov ecx, ebx
call fcn.010584f7
test eax, eax
je 0x105d579
mov ecx, eax
call fcn.0107374f
push 1
mov ecx, esi
call fcn.010741f7
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.01075e24
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4