joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1165ec29
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2818
call fcn.116c0e00
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
je 0x1165ed57
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
lea eax, [ebp - 0x2818]
push 0x2800
push eax
push 2
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
call esi
cmp eax, ebx
jne 0x1165ecb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1165ed36
mov edi, dword [ebp - 0x14]
push edi
call fcn.116bf498
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1165ed36
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 8]
push 2
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1165ed36
lea eax, [ebp - 4]
mov byte [ebp - 0x10], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x10]
push 2
push eax
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1165ed36
xor esi, esi
cmp dword [ebp - 0x2818], ebx
jbe 0x1165ed36
lea edi, [ebp - 0x2814]
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1165ed17
inc esi
add edi, 8
cmp esi, dword [ebp - 0x2818]
jb 0x1165ecfa
jmp 0x1165ed36
mov eax, dword [ebp + esi*8 - 0x2810]
push 1
pop ecx
test al, 8
mov dword [ebp - 0x18], ecx
je 0x1165ed2d
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
test al, 4
je 0x1165ed36
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], ebx
pop edi
pop esi
je 0x1165ed49
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x1165ed57
push dword [ebp - 8]
call fcn.116bf430
pop ecx
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret
Function at 0x1165ee14
Capabilities:
Find taskbar

Disassembly:
mov eax, 0x1176b478
call fcn.116bf8a0
sub esp, 0x20
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jne 0x1165eeb0
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x1165eeb0
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x10], ebx
je 0x1165eeb0
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.1169f650
push str.Explorer.exe
mov dword [ebp - 4], ebx
push dword [eax]
call fcn.116bfdc5
add esp, 0x10
cmp eax, ebx
sete byte [ebp + 0xb]
or dword [ebp - 4], edi
lea ecx, [ebp - 0x1c]
call fcn.11685790
cmp byte [ebp + 0xb], bl
je 0x1165eeb0
push dword [ebp - 0x10]
call fcn.116a5580
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x1165eeb0
push eax
call fcn.116a4f70
cmp eax, ebx
pop ecx
je 0x1165ef31
mov dword [0x117bdec4], eax
jmp 0x1165ef31
cmp edi, 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x1165eec7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1169f4d0
pop ecx
mov edi, eax
push str.explorer.exe
lea ecx, [ebp - 0x18]
call fcn.11684ff0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.11692b80
push edi
lea eax, [ebp - 0x2c]
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.1169f830
add esp, 0xc
cmp dword [ebp - 0x28], ebx
je 0x1165ef0d
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x10], eax
call fcn.116a5580
pop ecx
jmp 0x1165ef16
mov eax, dword [0x117bdec4]
cmp eax, ebx
je 0x1165ef19
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.11692b90
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1165fabb
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
mov eax, 0x1176b50c
call fcn.116bf8a0
sub esp, 0x410
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
je 0x1165fb9e
cmp dword [ebp + 0xc], esi
jne 0x1165faed
cmp dword [ebp + 0x10], esi
jne 0x1165faed
cmp dword [ebp + 0x14], esi
je 0x1165fb9e
push edi
mov ecx, 0x103
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x41a]
mov word [ebp - 0x41c], si
rep stosd dword es:[edi], eax
lea ecx, [ebp + 8]
stosw word es:[edi], ax
call fcn.11684ff0
mov dword [ebp - 4], esi
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1165fb3f
test al, 0x10
je 0x1165fb3f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ebx, eax
cmp ebx, esi
jne 0x1165fb92
push 0x410
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.116bf440
lea eax, [ebp - 0x41c]
push 0x207
push eax
push dword [ebp + 8]
call fcn.116a8800
add esp, 0x18
test eax, eax
je 0x1165fb92
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call fcn.116bfdc5
pop ecx
cmp eax, esi
pop ecx
je 0x1165fb92
lea eax, [ebp - 0x41c]
lea ecx, [ebp + 8]
push eax
call fcn.11685a10
jmp 0x1165fb15
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x116671e0
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1176bcd8
call fcn.116bf8a0
sub esp, 0x21c
mov eax, dword [0x117bf508]
test eax, eax
je 0x11667212
push str.NetMapDiskCorres__0
push 0x1179357c
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x117bdf60
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.1168b120
mov esi, 0x117bdf70
mov ecx, esi
call fcn.1166763a
mov eax, dword [0x1179441c]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x11794420]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
add eax, 0x41
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x11667332
mov eax, dword [0x11773dfc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
add eax, 0x41
push eax
lea eax, [ebp - 0x10]
push 0x117912b8
push eax
call fcn.11688710
and word [ebp - 0x228], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
rep stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x18], 0x104
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x10]
call sub.MPR.dll_WNetGetConnectionW
mov edi, eax
test edi, edi
jne 0x116672f9
lea eax, [ebp - 0x228]
push eax
call fcn.116bf9b7
test eax, eax
pop ecx
jbe 0x116672f9
mov eax, dword [0x117bdf64]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.1168b6c0
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
push dword [ebp - 0x10]
call fcn.11667699
mov ecx, eax
call fcn.11685a10
cmp dword [0x117bf508], 0
je 0x11667326
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x10]
push edi
push str.GetAllNetDriver__3_dwRet__d__strDrive__s__wszRemoteName__s__network
push 0x1179357c
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x1c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.11685790
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1a
jl 0x11667245
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x11667fe3
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [esi], edi
je 0x11668096
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push edi
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
push edi
call ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], edi
jne 0x11668035
cmp eax, 0x7a
jne 0x1166809f
push dword [ebp - 0x10]
call fcn.116bf498
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.116bf498
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
pop ecx
cmp eax, edi
pop ecx
je 0x116680b1
cmp dword [ebp + 0xc], edi
je 0x116680b1
push dword [ebp - 0x10]
push edi
push eax
call fcn.116bf440
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push edi
push dword [ebp + 0xc]
call fcn.116bf440
add esp, 0x18
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push eax
push dword [esi]
push dword [ebp + 8]
push edi
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
je 0x116680a8
jmp 0x116680b8
mov dword [ebp - 8], 1
jmp 0x116680cc
mov dword [ebp - 8], 2
jmp 0x116680c6
mov dword [ebp - 8], 4
jmp 0x116680b8
mov dword [ebp - 8], 3
cmp dword [ebp + 0xc], edi
je 0x116680c6
push dword [ebp + 0xc]
call fcn.116bf430
pop ecx
cmp dword [ebp - 4], edi
pop ebx
jne 0x116680db
mov eax, dword [esi]
cmp eax, edi
je 0x116680db
push eax
call fcn.116bf430
pop ecx
mov dword [esi], edi
cmp dword [0x117bf508], edi
je 0x11668111
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x116680ef
mov eax, str.NULL
push dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push str.CKSecurity::GetSid_____ret:__d___myerror:__d___Name:__s___Sid:__08x_
push str.Security
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x20
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x11668a1f
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x11668af6
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
lea eax, [ebp - 0x18]
pop edi
mov dword [ebp - 0x18], ebx
push edi
push 0xc
push eax
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], 8
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
je 0x11668aff
cmp dword [ebp - 0x18], ebx
jbe 0x11668b02
cmp dword [ebp - 0x18], ebx
jbe 0x11668b02
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x11668ab3
mov eax, dword [ebp - 0xc]
test byte [eax + 1], 0x10
jne 0x11668abc
add eax, 8
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x11668ac5
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x11668a7c
jmp 0x11668b02
mov dword [ebp - 4], 3
jmp 0x11668b02
mov dword [ebp - 4], 4
jmp 0x11668b02
cmp dword [ebp + 0x10], 0x10000000
mov dword [ebp - 8], 1
jne 0x11668b02
mov eax, dword [ebp - 0xc]
cmp byte [eax], bl
jne 0x11668aea
mov ecx, dword [eax + 4]
mov eax, 0x1f0000
and ecx, eax
cmp ecx, eax
je 0x11668b02
mov dword [ebp - 4], 5
mov dword [ebp - 8], ebx
jmp 0x11668b02
mov dword [ebp - 4], 1
jmp 0x11668b02
mov dword [ebp - 4], edi
cmp dword [0x117bf508], ebx
je 0x11668b33
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push str.CKSecurity::IsInAcl_____Inner___ret:__d___myerror:__d___Acl:__08x___Sid:__08x___Mask:__08x___Index:__d_
push str.Security
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x28
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x11669401
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x1176c074
call fcn.116bf8a0
sub esp, 0x850
and dword [ebp - 0x10], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call fcn.11668f61
test eax, eax
jne 0x11669511
lea ecx, [ebp - 0x5c]
call fcn.1166917d
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push edi
lea ecx, [esi + 4]
call fcn.1166af74
test eax, eax
je 0x11669505
add eax, 0x10
lea ecx, [ebp - 0x5c]
push eax
call fcn.1166ad9d
push edi
mov ecx, esi
call fcn.1166a9b3
test eax, eax
je 0x11669505
push edi
mov ecx, esi
call fcn.1166939a
test eax, eax
jne 0x11669505
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x11669489
mov eax, dword [ecx]
call dword [eax]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x11669505
cmp dword [ebp - 0x34], 2
jne 0x116694fe
and word [ebp - 0x85c], 0
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x85a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x85c]
push eax
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call esi
push dword [ebp - 0x50]
lea ecx, [ebp + 8]
call fcn.1167fcb0
push dword [eax]
mov byte [ebp - 4], 1
call fcn.116705d7
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp + 8]
call fcn.11680410
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x116694f5
mov dword [eax], 1
lea eax, [ebp - 0x85c]
push eax
call esi
mov dword [ebp - 0x10], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.11669212
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x11669524
Capabilities:
Set current directory

Disassembly:
mov eax, 0x1176c090
call fcn.116bf8a0
sub esp, 0x50
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x5c]
xor edi, edi
call fcn.1166917d
and dword [ebp - 4], edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
push dword [ebp + 8]
call fcn.1166af74
test eax, eax
je 0x116695c4
add eax, 0x10
lea ecx, [ebp - 0x5c]
push eax
call fcn.1166ad9d
push dword [ebp + 8]
mov ecx, esi
call fcn.1166a9b3
test eax, eax
je 0x116695c4
push dword [ebp + 8]
mov ecx, esi
call fcn.1166939a
test eax, eax
jne 0x116695c4
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1166958f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x116695c4
cmp dword [ebp - 0x34], 2
jne 0x116695c1
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x50]
lea ecx, [ebp + 8]
call fcn.1167fcb0
push dword [eax]
mov byte [ebp - 4], 1
call fcn.11670610
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp + 8]
call fcn.11680410
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.11669212
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1166a653
Capabilities:
Move file

Disassembly:
mov eax, 0x1176c1b8
call fcn.116bf8a0
push ecx
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.116b1660
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1166a6c9
mov eax, dword [0x11773dfc]
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
and dword [ebp - 4], edi
lea eax, [ebp - 0x10]
push str._s.tmp
push eax
call fcn.11688710
push edi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.116b1660
add esp, 0x18
test eax, eax
je 0x1166a6bd
push 5
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x1166b54d
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x1166b595
mov eax, dword [esi + 8]
cmp dword [eax - 8], edi
je 0x1166b595
call fcn.116a8680
push dword [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x1166b595
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1166b589
push 1
pop edi
jmp 0x1166b595
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop esi
ret
Function at 0x1166d218
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1176c65c
call fcn.116bf8a0
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push edi
call fcn.11685500
mov edi, dword [ebp + 8]
push edi
call fcn.116bf9b7
pop ecx
cmp eax, 1
mov cx, word [edi]
jl 0x1166d36a
cmp cx, 0x5c
je 0x1166d36a
cmp cx, 0x2e
jne 0x1166d26c
cmp eax, 1
je 0x1166d36a
cmp eax, 2
jne 0x1166d26c
cmp word [edi + 2], cx
je 0x1166d36a
mov edx, dword [0x11773dfc]
push esi
mov dword [ebp - 0x10], edx
and dword [ebp - 4], 0
cmp eax, 3
jle 0x1166d2a5
cmp word [edi + 2], 0x3a
jne 0x1166d2a5
cmp word [edi + 4], 0x5c
jne 0x1166d2a5
cmp cx, 0x61
jb 0x1166d299
cmp cx, 0x7a
jbe 0x1166d2f3
cmp cx, 0x41
jb 0x1166d2a5
cmp cx, 0x5a
jbe 0x1166d2f3
mov esi, 0x105
lea ecx, [ebp - 0x10]
push esi
call fcn.11686460
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11686530
test esi, esi
je 0x1166d366
cmp esi, 0x104
ja 0x1166d366
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1166d2f3
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.11686420
push 0x11794348
lea ecx, [ebp - 0x18]
call fcn.11684ff0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.11685d30
push edi
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.11685f00
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.11685920
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.11685790
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.11685790
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.11685790
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.11685790
mov eax, esi
pop esi
jmp 0x1166d36d
xor esi, esi
jmp 0x1166d355
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x1166d45a
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1176c698
call fcn.116bf8a0
push ecx
mov eax, dword [0x11773dfc]
push esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x1166d48a
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d1b7
pop ecx
test eax, eax
pop ecx
jne 0x1166d48f
push dword [ebp + 8]
jmp 0x1166d492
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1166d4b5
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x1176c6ac
call fcn.116bf8a0
push ecx
mov eax, dword [0x11773dfc]
push esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x1166d4e5
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d1b7
pop ecx
test eax, eax
pop ecx
jne 0x1166d4ed
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x1166d4f3
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1166d6b6
Capabilities:
Create directory

Disassembly:
mov eax, 0x1176c70c
call fcn.116bf8a0
push ecx
mov eax, dword [0x11773dfc]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x1166d6e9
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d1b7
pop ecx
test eax, eax
pop ecx
je 0x1166d6e9
push 1
pop esi
mov eax, dword [0x117bf508]
test eax, eax
je 0x1166d70f
push dword [ebp - 0x10]
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x18
push dword [ebp + 0xc]
test esi, esi
jne 0x1166d71b
push dword [ebp + 8]
jmp 0x1166d71e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1166d700
Capabilities:
Create directory

Disassembly:
mov eax, 0x1176c70c
call fcn.116bf8a0
push ecx
mov eax, dword [0x11773dfc]
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x1166d6e9
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d1b7
pop ecx
test eax, eax
pop ecx
je 0x1166d6e9
push 1
pop esi
mov eax, dword [0x117bf508]
test eax, eax
je 0x1166d70f
push dword [ebp - 0x10]
push esi
push str.COverlongPathApi::CreateDirectoryW_bChangeToLongPath__d__wstrLongPath__s_
push str.COverlongPathApi
push 0xffffffffffffffff
push 0x117bec74
call fcn.116bdad0
add esp, 0x18
push dword [ebp + 0xc]
test esi, esi
jne 0x1166d71b
push dword [ebp + 8]
jmp 0x1166d71e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x11671c6c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
push edi
push 4
push 0x117944f4
push ebx
call fcn.116c0485
add esp, 0xc
test eax, eax
jne 0x11671c91
add ebx, 8
push ebx
call fcn.116bf9b7
cmp eax, 4
pop ecx
jb 0x11671d48
cmp word [ebx + 2], 0x3a
jne 0x11671d48
cmp word [ebx + 4], 0x5c
lea eax, [ebx + 4]
mov dword [ebp - 4], eax
jne 0x11671d48
push esi
mov esi, 0x117912a4
lea edi, [ebp - 0x10]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebx]
push eax
call fcn.116c129d
mov word [ebp - 0x10], ax
pop ecx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
pop esi
jne 0x11671d48
and word [ebp - 0x218], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x10]
push eax
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x11671d48
push dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp + 0x10]
dec eax
push 0x117912ac
push eax
push dword [ebp + 0xc]
call fcn.116c0020
add esp, 0x14
jmp 0x11671d59
mov eax, dword [ebp + 0x10]
dec eax
push eax
push ebx
push dword [ebp + 0xc]
call fcn.116bff74
add esp, 0xc
push 1
pop eax
pop edi
pop ebx
leave
ret