joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1165cfbc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov edi, 0x200
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], 1
jne 0x1165cfe3
mov edi, 0x400
cmp dword [ebp - 4], 2
jne 0x1165d023
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
push ebx
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
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp - 0x24]
push 0x18
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1165d06d
mov edi, dword [ebp - 0x10]
cmp edi, 0x200
jb 0x1165d06d
push edi
call fcn.116bf8c8
push edi
push ebx
push eax
mov dword [esi], eax
call fcn.116bf870
add esp, 0x10
lea eax, [ebp - 0xc]
push ebx
push eax
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1165d065
push dword [esi]
call fcn.116bf860
inc dword [ebp - 4]
pop ecx
cmp dword [ebp - 4], 3
mov dword [esi], ebx
jl 0x1165cfd8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1165d075
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x1179128c
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp + 8]
xor edi, edi
test esi, esi
je 0x1165d0b2
cmp esi, 1
jne 0x1165d0c0
call fcn.116d2f50
test eax, eax
jne 0x1165d0c0
push 4
pop edi
jmp 0x1165d12b
lea eax, [ebp - 0x210]
push 0x103
push eax
lea eax, [ebp - 8]
add esi, 0x41
push eax
mov word [ebp - 8], si
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jbe 0x1165d129
cmp eax, 0x104
jae 0x1165d129
lea eax, [ebp - 0x210]
push eax
call fcn.116c0f35
lea eax, [ebp - 0x210]
mov dword [esp], str.cdrom
push eax
call fcn.116c02d4
pop ecx
test eax, eax
pop ecx
je 0x1165d110
push 5
pop edi
lea eax, [ebp - 0x210]
push str.floppy
push eax
call fcn.116c02d4
pop ecx
test eax, eax
pop ecx
je 0x1165d12b
jmp 0x1165d0bb
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1165d131
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
xor eax, eax
cmp ebx, esi
je 0x1165d2af
cmp dword [ebp + 0x10], 0x200
jne 0x1165d2af
push edi
push 7
pop ecx
lea edi, [ebp - 0x2a]
mov word [ebp - 0x2c], si
push 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x10], esi
call fcn.116bf870
mov eax, dword [0x11794404]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x11794408]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x41
push 0x10
mov word [ebp - 0xc], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 5
test eax, eax
pop edi
je 0x1165d27f
lea eax, [ebp - 0x2c]
push eax
call fcn.116bfde7
lea esi, [ebx + 0x36]
push edi
push str.FAT16
push esi
mov dword [ebp + 0xc], eax
call fcn.116d0910
add esp, 0x10
test eax, eax
jne 0x1165d219
cmp dword [ebp + 0xc], edi
jne 0x1165d1f8
push edi
lea eax, [ebp - 0x2c]
push 0x117943f0
push eax
call fcn.116bfcef
add esp, 0xc
test eax, eax
je 0x1165d215
cmp dword [ebp + 0xc], 3
jne 0x1165d219
push 3
lea eax, [ebp - 0x2c]
push 0x117943e8
push eax
call fcn.116bfcef
add esp, 0xc
test eax, eax
jne 0x1165d219
push 3
jmp 0x1165d27c
push edi
push str.FAT12
push esi
call fcn.116d0910
add esp, 0xc
test eax, eax
jne 0x1165d249
cmp dword [ebp + 0xc], 3
jne 0x1165d249
push 3
lea eax, [ebp - 0x2c]
push 0x117943e8
push eax
call fcn.116bfcef
add esp, 0xc
test eax, eax
je 0x1165d215
push edi
lea eax, [ebx + 0x52]
push str.FAT32
push eax
call fcn.116d0910
add esp, 0xc
test eax, eax
jne 0x1165d27f
cmp dword [ebp + 0xc], edi
jne 0x1165d27f
push edi
lea eax, [ebp - 0x2c]
push 0x117943cc
push eax
call fcn.116bfcef
add esp, 0xc
test eax, eax
jne 0x1165d27f
push 2
pop eax
jmp 0x1165d2ae
lea esi, [ebx + 3]
push edi
push str.EXFAT
push esi
call fcn.116d0910
add esp, 0xc
test eax, eax
jne 0x1165d299
mov eax, edi
jmp 0x1165d2ae
push 4
push str.NTFS
push esi
call fcn.116d0910
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165eb38
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2818
call fcn.116c1230
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 0x1165ec66
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 0x1165ebc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1165ec45
mov edi, dword [ebp - 0x14]
push edi
call fcn.116bf8c8
cmp eax, ebx
pop ecx
mov dword [ebp - 8], eax
je 0x1165ec45
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 8]
push 2
push dword [ebp + 8]
call esi
cmp eax, ebx
je 0x1165ec45
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 0x1165ec45
xor esi, esi
cmp dword [ebp - 0x2818], ebx
jbe 0x1165ec45
lea edi, [ebp - 0x2814]
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1165ec26
inc esi
add edi, 8
cmp esi, dword [ebp - 0x2818]
jb 0x1165ec09
jmp 0x1165ec45
mov eax, dword [ebp + esi*8 - 0x2810]
push 1
pop ecx
test al, 8
mov dword [ebp - 0x18], ecx
je 0x1165ec3c
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
test al, 4
je 0x1165ec45
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
cmp dword [ebp - 4], ebx
pop edi
pop esi
je 0x1165ec58
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
je 0x1165ec66
push dword [ebp - 8]
call fcn.116bf860
pop ecx
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret
Function at 0x1165ed23
Capabilities:
Find taskbar

Disassembly:
mov eax, 0x1176b868
call fcn.116bfcd0
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 0x1165edbf
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x1165edbf
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x10], ebx
je 0x1165edbf
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.1169f410
push str.Explorer.exe
mov dword [ebp - 4], ebx
push dword [eax]
call fcn.116c01f5
add esp, 0x10
cmp eax, ebx
sete byte [ebp + 0xb]
or dword [ebp - 4], edi
lea ecx, [ebp - 0x1c]
call fcn.11685570
cmp byte [ebp + 0xb], bl
je 0x1165edbf
push dword [ebp - 0x10]
call fcn.116a5340
cmp eax, ebx
pop ecx
mov dword [ebp - 0x14], eax
je 0x1165edbf
push eax
call fcn.116a4d30
cmp eax, ebx
pop ecx
je 0x1165ee40
mov dword [0x117bdd64], eax
jmp 0x1165ee40
cmp edi, 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x1165edd6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.1169f290
pop ecx
mov edi, eax
push str.explorer.exe
lea ecx, [ebp - 0x18]
call fcn.11684dd0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.11692960
push edi
lea eax, [ebp - 0x2c]
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
call fcn.1169f5f0
add esp, 0xc
cmp dword [ebp - 0x28], ebx
je 0x1165ee1c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x10], eax
call fcn.116a5340
pop ecx
jmp 0x1165ee25
mov eax, dword [0x117bdd64]
cmp eax, ebx
je 0x1165ee28
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.11692970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.11685570
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1165f9ca
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
mov eax, 0x1176b8fc
call fcn.116bfcd0
sub esp, 0x410
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
je 0x1165faad
cmp dword [ebp + 0xc], esi
jne 0x1165f9fc
cmp dword [ebp + 0x10], esi
jne 0x1165f9fc
cmp dword [ebp + 0x14], esi
je 0x1165faad
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.11684dd0
mov dword [ebp - 4], esi
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1165fa4e
test al, 0x10
je 0x1165fa4e
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 0x1165faa1
push 0x410
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.116bf870
lea eax, [ebp - 0x41c]
push 0x207
push eax
push dword [ebp + 8]
call fcn.116a85c0
add esp, 0x18
test eax, eax
je 0x1165faa1
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call fcn.116c01f5
pop ecx
cmp eax, esi
pop ecx
je 0x1165faa1
lea eax, [ebp - 0x41c]
lea ecx, [ebp + 8]
push eax
call fcn.116857f0
jmp 0x1165fa24
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.11685570
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x116670ca
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1176c0c8
call fcn.116bfcd0
sub esp, 0x21c
mov eax, dword [0x117bf398]
test eax, eax
je 0x116670fc
push str.NetMapDiskCorres__0
push 0x11793564
push 0xffffffffffffffff
push 0x117beb04
call fcn.116bdf00
add esp, 0x10
push ebx
push esi
push edi
mov ebx, 0x117bde00
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.1168af00
mov esi, 0x117bde10
mov ecx, esi
call fcn.11667524
mov eax, dword [0x11794404]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x11794408]
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 0x1166721c
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 0x117912a0
push eax
call fcn.116884f0
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 0x116671e3
lea eax, [ebp - 0x228]
push eax
call fcn.116bfde7
test eax, eax
pop ecx
jbe 0x116671e3
mov eax, dword [0x117bde04]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.1168b4a0
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
push dword [ebp - 0x10]
call fcn.11667583
mov ecx, eax
call fcn.116857f0
cmp dword [0x117bf398], 0
je 0x11667210
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x10]
push edi
push str.GetAllNetDriver__3_dwRet__d__strDrive__s__wszRemoteName__s__network
push 0x11793564
push 0xffffffffffffffff
push 0x117beb04
call fcn.116bdf00
add esp, 0x1c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.11685570
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1a
jl 0x1166712f
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x11667ecd
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 0x11667f80
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 0x11667f1f
cmp eax, 0x7a
jne 0x11667f89
push dword [ebp - 0x10]
call fcn.116bf8c8
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.116bf8c8
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
pop ecx
cmp eax, edi
pop ecx
je 0x11667f9b
cmp dword [ebp + 0xc], edi
je 0x11667f9b
push dword [ebp - 0x10]
push edi
push eax
call fcn.116bf870
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push edi
push dword [ebp + 0xc]
call fcn.116bf870
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 0x11667f92
jmp 0x11667fa2
mov dword [ebp - 8], 1
jmp 0x11667fb6
mov dword [ebp - 8], 2
jmp 0x11667fb0
mov dword [ebp - 8], 4
jmp 0x11667fa2
mov dword [ebp - 8], 3
cmp dword [ebp + 0xc], edi
je 0x11667fb0
push dword [ebp + 0xc]
call fcn.116bf860
pop ecx
cmp dword [ebp - 4], edi
pop ebx
jne 0x11667fc5
mov eax, dword [esi]
cmp eax, edi
je 0x11667fc5
push eax
call fcn.116bf860
pop ecx
mov dword [esi], edi
cmp dword [0x117bf398], edi
je 0x11667ffb
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x11667fd9
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 0x117beb04
call fcn.116bdf00
add esp, 0x20
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x11668909
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 0x116689e0
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 0x116689e9
cmp dword [ebp - 0x18], ebx
jbe 0x116689ec
cmp dword [ebp - 0x18], ebx
jbe 0x116689ec
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 0x1166899d
mov eax, dword [ebp - 0xc]
test byte [eax + 1], 0x10
jne 0x116689a6
add eax, 8
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x116689af
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x11668966
jmp 0x116689ec
mov dword [ebp - 4], 3
jmp 0x116689ec
mov dword [ebp - 4], 4
jmp 0x116689ec
cmp dword [ebp + 0x10], 0x10000000
mov dword [ebp - 8], 1
jne 0x116689ec
mov eax, dword [ebp - 0xc]
cmp byte [eax], bl
jne 0x116689d4
mov ecx, dword [eax + 4]
mov eax, 0x1f0000
and ecx, eax
cmp ecx, eax
je 0x116689ec
mov dword [ebp - 4], 5
mov dword [ebp - 8], ebx
jmp 0x116689ec
mov dword [ebp - 4], 1
jmp 0x116689ec
mov dword [ebp - 4], edi
cmp dword [0x117bf398], ebx
je 0x11668a1d
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 0x117beb04
call fcn.116bdf00
add esp, 0x28
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x116692eb
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x1176c464
call fcn.116bfcd0
sub esp, 0x850
and dword [ebp - 0x10], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call fcn.11668e4b
test eax, eax
jne 0x116693fb
lea ecx, [ebp - 0x5c]
call fcn.11669067
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push edi
lea ecx, [esi + 4]
call fcn.1166ae58
test eax, eax
je 0x116693ef
add eax, 0x10
lea ecx, [ebp - 0x5c]
push eax
call fcn.1166ac81
push edi
mov ecx, esi
call fcn.1166a897
test eax, eax
je 0x116693ef
push edi
mov ecx, esi
call fcn.11669284
test eax, eax
jne 0x116693ef
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x11669373
mov eax, dword [ecx]
call dword [eax]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x116693ef
cmp dword [ebp - 0x34], 2
jne 0x116693e8
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.1167fa90
push dword [eax]
mov byte [ebp - 4], 1
call fcn.116704bb
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp + 8]
call fcn.116801f0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x116693df
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.116690fc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1166940e
Capabilities:
Set current directory

Disassembly:
mov eax, 0x1176c480
call fcn.116bfcd0
sub esp, 0x50
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x5c]
xor edi, edi
call fcn.11669067
and dword [ebp - 4], edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
push dword [ebp + 8]
call fcn.1166ae58
test eax, eax
je 0x116694ae
add eax, 0x10
lea ecx, [ebp - 0x5c]
push eax
call fcn.1166ac81
push dword [ebp + 8]
mov ecx, esi
call fcn.1166a897
test eax, eax
je 0x116694ae
push dword [ebp + 8]
mov ecx, esi
call fcn.11669284
test eax, eax
jne 0x116694ae
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x11669479
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x116694ae
cmp dword [ebp - 0x34], 2
jne 0x116694ab
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [ebp - 0x50]
lea ecx, [ebp + 8]
call fcn.1167fa90
push dword [eax]
mov byte [ebp - 4], 1
call fcn.116704f4
and byte [ebp - 4], 0
pop ecx
lea ecx, [ebp + 8]
call fcn.116801f0
push 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.116690fc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1166a537
Capabilities:
Move file

Disassembly:
mov eax, 0x1176c5a8
call fcn.116bfcd0
push ecx
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.116b1420
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1166a5ad
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.116884f0
push edi
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.116b1420
add esp, 0x18
test eax, eax
je 0x1166a5a1
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.11685570
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x1166b431
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x1166b479
mov eax, dword [esi + 8]
cmp dword [eax - 8], edi
je 0x1166b479
call fcn.116a8440
push dword [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x1166b479
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1166b46d
push 1
pop edi
jmp 0x1166b479
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 0x1166d0fc
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1176ca4c
call fcn.116bfcd0
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push edi
call fcn.116852e0
mov edi, dword [ebp + 8]
push edi
call fcn.116bfde7
pop ecx
cmp eax, 1
mov cx, word [edi]
jl 0x1166d24e
cmp cx, 0x5c
je 0x1166d24e
cmp cx, 0x2e
jne 0x1166d150
cmp eax, 1
je 0x1166d24e
cmp eax, 2
jne 0x1166d150
cmp word [edi + 2], cx
je 0x1166d24e
mov edx, dword [0x11773dfc]
push esi
mov dword [ebp - 0x10], edx
and dword [ebp - 4], 0
cmp eax, 3
jle 0x1166d189
cmp word [edi + 2], 0x3a
jne 0x1166d189
cmp word [edi + 4], 0x5c
jne 0x1166d189
cmp cx, 0x61
jb 0x1166d17d
cmp cx, 0x7a
jbe 0x1166d1d7
cmp cx, 0x41
jb 0x1166d189
cmp cx, 0x5a
jbe 0x1166d1d7
mov esi, 0x105
lea ecx, [ebp - 0x10]
push esi
call fcn.11686240
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.11686310
test esi, esi
je 0x1166d24a
cmp esi, 0x104
ja 0x1166d24a
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x1166d1d7
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.11686200
push 0x11794330
lea ecx, [ebp - 0x18]
call fcn.11684dd0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.11685b10
push edi
push eax
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.11685ce0
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.11685700
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.11685570
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.11685570
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.11685570
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.11685570
mov eax, esi
pop esi
jmp 0x1166d251
xor esi, esi
jmp 0x1166d239
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
leave
ret

Function at 0x1166d33e
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1176ca88
call fcn.116bfcd0
push ecx
mov eax, dword [0x11773dfc]
push esi
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x1166d36e
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.1166d09b
pop ecx
test eax, eax
pop ecx
jne 0x1166d373
push dword [ebp + 8]
jmp 0x1166d376
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.11685570
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret