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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
je 0x116517a0
cmp dword [ebp + 0x18], edi
je 0x116517a0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.11651669
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
je 0x116517a0
mov esi, dword [ebp + 0x14]
cmp esi, 0xffffffff
je 0x1165175e
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push ebx
call fcn.116a50e0
pop ecx
test eax, eax
pop ecx
je 0x11651797
cmp dword [ebp - 8], esi
jne 0x11651797
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x11651797
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x11651797
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x11651797
push ebx
call fcn.116512f7
cmp dword [ebp + 0x18], eax
pop ecx
jbe 0x116517a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
push dword [ebp - 4]
call fcn.116510a0
cmp dword [0x117bf508], 0
pop ecx
mov edi, str.CAdminTokenMgr::IsMatchProcessToken__Match___d___hNewToken__08x___dwTargetProcessId___d____hTargetHandle__08x____dwSessionId__d_
mov esi, 0x117bec74
je 0x116517df
push dword [ebp + 0x14]
xor eax, eax
test ebx, ebx
push dword [ebp + 0xc]
setne al
push dword [ebp + 8]
push ebx
push eax
push edi
push str.AdminTokenAll
push 0xffffffffffffffff
push esi
call fcn.116bdad0
add esp, 0x24
test ebx, ebx
je 0x11651809
cmp dword [0x117bf508], 0
je 0x11651809
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 1
push edi
push str.AdminToken
push 0xffffffffffffffff
push esi
call fcn.116bdad0
add esp, 0x24
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x11656f7d
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1176af30
call fcn.116bf8a0
sub esp, 0x22c
and dword [ebp - 0x20], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [ebp - 0x1c], ecx
je 0x116571bf
mov ecx, dword [ebp + 0xc]
push esi
call fcn.11685a10
push esi
call fcn.116bf9b7
cmp eax, 1
pop ecx
jl 0x116571bf
mov ax, word [esi]
cmp ax, 0x61
jb 0x11656fca
cmp ax, 0x7a
jbe 0x11656fde
cmp ax, 0x41
jb 0x116571bf
cmp ax, 0x5a
ja 0x116571bf
cmp word [esi + 2], 0x3a
jne 0x116571bf
mov ecx, dword [0x11773dfc]
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
movzx eax, ax
push eax
lea eax, [ebp - 0x14]
push 0x117912b8
push eax
call fcn.11688710
mov eax, dword [0x11773dfc]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov esi, dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov byte [ebp - 4], 1
mov ebx, 0x103
and word [ebp - 0x238], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push ebx
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x238]
push eax
call fcn.116bf9b7
test eax, eax
pop ecx
jbe 0x11657079
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.11685a10
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.11685a10
jmp 0x11657022
lea ecx, [ebp - 0x30]
call fcn.116573f0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
jne 0x11657123
lea eax, [ebp - 0x14]
push 0x5c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.11686de0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.1165742b
lea ecx, [ebp - 0x30]
call fcn.1165751b
test eax, eax
je 0x1165718f
and word [ebp - 0x238], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x236]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x238]
push ebx
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x238]
push eax
call fcn.116bf9b7
test eax, eax
pop ecx
jbe 0x11657117
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.11685a10
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.11685a10
jmp 0x116570c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685790
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11684d90
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call fcn.116571d3
test eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
je 0x11657160
call fcn.11685790
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11684d90
jmp 0x1165712f
call fcn.11685790
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x1165719b
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push eax
push 0x117912ac
push dword [ebp + 0xc]
call fcn.11688710
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x1165719b
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685790
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.11657420
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.11685790
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.11685790
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x11657394
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x116573ea
push esi
call fcn.116bf9b7
cmp eax, 2
pop ecx
jb 0x116573ea
mov ax, word [esi]
cmp ax, 0x5c
jne 0x116573bf
cmp word [esi + 2], ax
je 0x116573e7
mov word [ebp - 8], ax
mov ax, word [esi + 2]
mov word [ebp - 6], ax
lea eax, [ebp - 8]
push eax
mov word [ebp - 4], di
mov word [ebp - 2], di
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x116573e7
cmp eax, 1
jne 0x116573ea
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1165b627
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.116c05b0
mov edi, dword [ebp + 0xc]
mov ebx, eax
pop ecx
mov eax, 0x1f3
sub eax, ebx
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1165b65f
push 1
pop eax
jmp 0x1165b706
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1165b6ca
cmp byte [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1165b685
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x1165b681
cmp byte [edi + 0x2e], 0
je 0x1165b6e2
test al, al
je 0x1165b6e2
push ecx
call fcn.116c05b0
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1165b6e2
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116c04d0
push 0x117942e8
push esi
call fcn.116c04d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1165b627
add esp, 0x20
mov byte [ebx + esi - 1], 0x2a
and byte [ebx + esi], 0
mov dword [ebp + 8], eax
jmp 0x1165b6e2
push dword [ebp + 0x14]
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov byte [ebx + esi - 1], 0x2a
cmp dword [ebp + 8], 0
je 0x1165b6fa
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1165b666
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1165b7c9
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.116bf9b7
mov edi, dword [ebp + 0xc]
mov ebx, eax
pop ecx
mov eax, 0x1f3
sub eax, ebx
push edi
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1165b801
push 1
pop eax
jmp 0x1165b8b5
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1165b876
cmp word [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1165b82d
mov ax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x1165b828
cmp word [edi + 0x30], 0
je 0x1165b891
test ax, ax
je 0x1165b891
push ecx
call fcn.116bf9b7
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1165b891
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116bff25
push 0x117942ec
push esi
call fcn.116bff25
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1165b7c9
add esp, 0x20
mov word [esi + ebx*2 - 2], 0x2a
and word [esi + ebx*2], 0
mov dword [ebp + 8], eax
jmp 0x1165b891
push dword [ebp + 0x14]
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call dword [ebp + 0x10]
mov dword [ebp + 8], eax
mov word [esi + ebx*2 - 2], 0x2a
cmp dword [ebp + 8], 0
je 0x1165b8a9
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165b808
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165c08e
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1165c21e
push ebx
call fcn.116bf9b7
test eax, eax
pop ecx
je 0x1165c21e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1165c21e
test al, 1
je 0x1165c0d6
and al, 0xfe
push eax
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp + 8], 0x10
je 0x1165c202
and word [ebp - 0x660], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x65e]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x660]
push eax
call fcn.116bff4f
lea eax, [ebp - 0x660]
push 0x117942ec
push eax
call fcn.116bff25
and dword [ebp - 0x250], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x24c]
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1165c1f8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x224]
push 0x11794324
push eax
call edi
test eax, eax
je 0x1165c1d7
lea eax, [ebp - 0x224]
push 0x11794320
push eax
call edi
test eax, eax
je 0x1165c1d7
and word [ebp - 0x458], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x456]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.116bff4f
lea eax, [ebp - 0x458]
push 0x1178f308
push eax
call fcn.116bff25
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.116bff25
push dword [ebp + 0xc]
lea eax, [ebp - 0x458]
push eax
call fcn.1165c08e
add esp, 0x20
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165c151
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
jmp 0x1165c209
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1165c220
cmp dword [ebp + 0xc], eax
je 0x1165c220
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1165c220
xor eax, eax
pop ebx
leave
ret
Function at 0x1165c223
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x1165c3de
push esi
call fcn.116bf9b7
test eax, eax
pop ecx
je 0x1165c3de
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.11659b49
add esp, 0x1c
test eax, eax
je 0x1165c3de
cmp dword [ebp - 4], 0xffffffff
je 0x1165c3de
test byte [ebp - 4], 1
je 0x1165c285
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1165c3c2
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x666]
mov word [ebp - 0x668], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x668]
push eax
call fcn.116bff4f
lea eax, [ebp - 0x668]
push 0x117942ec
push eax
call fcn.116bff25
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x45c]
mov dword [ebp - 0x460], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1165c3a7
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x434]
push 0x11794324
push eax
call edi
test eax, eax
je 0x1165c386
lea eax, [ebp - 0x434]
push 0x11794320
push eax
call edi
test eax, eax
je 0x1165c386
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
call fcn.116bff4f
lea eax, [ebp - 0x210]
push 0x1178f308
push eax
call fcn.116bff25
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.116bff25
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.1165c223
add esp, 0x20
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165c302
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, ebx
pop edi
jne 0x1165c3e0
cmp dword [ebp + 0xc], ebx
je 0x1165c3e0
push 4
push ebx
push dword [ebp + 8]
jmp 0x1165c3d6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1165c3e0
cmp dword [ebp + 0xc], ebx
je 0x1165c3e0
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1165c3e0
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1165c855
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1165c889
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
jmp 0x1165c946
test bl, 1
je 0x1165c899
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x1165c932
and word [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x402]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
mov ebx, str._s.bak_08X
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.116bffb1
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1165c922
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
lea eax, [ebp - 0x404]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.116bffb1
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1165c8e9
xor eax, eax
jmp 0x1165c94e
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov esi, eax
call fcn.1165e0f7
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165c953
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov edi, dword [ebp + 0xc]
push edi
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1165c987
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
jmp 0x1165ca44
test bl, 1
je 0x1165c997
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x1165ca30
and word [ebp - 0x404], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x402]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
mov ebx, str._s.bak_08X
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.116bffb1
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1165ca20
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
lea eax, [ebp - 0x404]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.116bffb1
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1165c9e7
xor eax, eax
jmp 0x1165ca4c
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [ebp + 0xc]
mov esi, eax
call fcn.1165e131
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1165cfda
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.116d2b70
test eax, eax
je 0x1165cff7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop ebp
ret
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
je 0x1165d060
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1165d060
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.116bf440
push esi
call fcn.116bf498
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1165d060
push esi
push ebx
push edi
call fcn.116bf440
add esp, 0xc
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, eax
test ebx, ebx
je 0x1165d060
push esi
xor ebx, ebx
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.1167abe5
add esp, 0x10
test eax, eax
je 0x1165d060
push dword [ebp + 0xc]
call fcn.116bf9b7
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x1165d0ad
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 0x1165d0d4
mov edi, 0x400
cmp dword [ebp - 4], 2
jne 0x1165d114
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 0x1165d15e
mov edi, dword [ebp - 0x10]
cmp edi, 0x200
jb 0x1165d15e
push edi
call fcn.116bf498
push edi
push ebx
push eax
mov dword [esi], eax
call fcn.116bf440
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 0x1165d156
push dword [esi]
call fcn.116bf430
inc dword [ebp - 4]
pop ecx
cmp dword [ebp - 4], 3
mov dword [esi], ebx
jl 0x1165d0c9
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 0x1165d166
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, 0x117912a4
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 0x1165d1a3
cmp esi, 1
jne 0x1165d1b1
call fcn.116d2b20
test eax, eax
jne 0x1165d1b1
push 4
pop edi
jmp 0x1165d21c
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 0x1165d21a
cmp eax, 0x104
jae 0x1165d21a
lea eax, [ebp - 0x210]
push eax
call fcn.116c0b05
lea eax, [ebp - 0x210]
mov dword [esp], str.cdrom
push eax
call fcn.116bfea4
pop ecx
test eax, eax
pop ecx
je 0x1165d201
push 5
pop edi
lea eax, [ebp - 0x210]
push str.floppy
push eax
call fcn.116bfea4
pop ecx
test eax, eax
pop ecx
je 0x1165d21c
jmp 0x1165d1ac
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1165d222
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 0x1165d3a0
cmp dword [ebp + 0x10], 0x200
jne 0x1165d3a0
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.116bf440
mov eax, dword [0x1179441c]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x11794420]
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 0x1165d370
lea eax, [ebp - 0x2c]
push eax
call fcn.116bf9b7
lea esi, [ebx + 0x36]
push edi
push str.FAT16
push esi
mov dword [ebp + 0xc], eax
call fcn.116d04e0
add esp, 0x10
test eax, eax
jne 0x1165d30a
cmp dword [ebp + 0xc], edi
jne 0x1165d2e9
push edi
lea eax, [ebp - 0x2c]
push 0x11794408
push eax
call fcn.116bf8bf
add esp, 0xc
test eax, eax
je 0x1165d306
cmp dword [ebp + 0xc], 3
jne 0x1165d30a
push 3
lea eax, [ebp - 0x2c]
push 0x11794400
push eax
call fcn.116bf8bf
add esp, 0xc
test eax, eax
jne 0x1165d30a
push 3
jmp 0x1165d36d
push edi
push str.FAT12
push esi
call fcn.116d04e0
add esp, 0xc
test eax, eax
jne 0x1165d33a
cmp dword [ebp + 0xc], 3
jne 0x1165d33a
push 3
lea eax, [ebp - 0x2c]
push 0x11794400
push eax
call fcn.116bf8bf
add esp, 0xc
test eax, eax
je 0x1165d306
push edi
lea eax, [ebx + 0x52]
push str.FAT32
push eax
call fcn.116d04e0
add esp, 0xc
test eax, eax
jne 0x1165d370
cmp dword [ebp + 0xc], edi
jne 0x1165d370
push edi
lea eax, [ebp - 0x2c]
push 0x117943e4
push eax
call fcn.116bf8bf
add esp, 0xc
test eax, eax
jne 0x1165d370
push 2
pop eax
jmp 0x1165d39f
lea esi, [ebx + 3]
push edi
push str.EXFAT
push esi
call fcn.116d04e0
add esp, 0xc
test eax, eax
jne 0x1165d38a
mov eax, edi
jmp 0x1165d39f
push 4
push str.NTFS
push esi
call fcn.116d04e0
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret