joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11308a1c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x11502d74
call fcn.11364418
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 0x11308c5e
mov ecx, dword [ebp + 0xc]
push esi
call fcn.1137e660
push esi
call fcn.11363fc6
cmp eax, 1
pop ecx
jl 0x11308c5e
mov ax, word [esi]
cmp ax, 0x61
jb 0x11308a69
cmp ax, 0x7a
jbe 0x11308a7d
cmp ax, 0x41
jb 0x11308c5e
cmp ax, 0x5a
ja 0x11308c5e
cmp word [esi + 2], 0x3a
jne 0x11308c5e
mov ecx, dword [0x11526534]
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
movzx eax, ax
push eax
lea eax, [ebp - 0x14]
push 0x11569284
push eax
call fcn.11381390
mov eax, dword [0x11526534]
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.11363fc6
test eax, eax
pop ecx
jbe 0x11308b18
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.1137e660
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.1137e660
jmp 0x11308ac1
lea ecx, [ebp - 0x30]
call fcn.11308e8f
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
jne 0x11308bc2
lea eax, [ebp - 0x14]
push 0x5c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1137fab0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.11308eca
lea ecx, [ebp - 0x30]
call fcn.11308fba
test eax, eax
je 0x11308c2e
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.11363fc6
test eax, eax
pop ecx
jbe 0x11308bb6
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.1137e660
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.1137e660
jmp 0x11308b5f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.1137e380
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.1137d900
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call fcn.11308c72
test eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
je 0x11308bff
call fcn.1137e380
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.1137d900
jmp 0x11308bce
call fcn.1137e380
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x11308c3a
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push eax
push 0x11569278
push dword [ebp + 0xc]
call fcn.11381390
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x11308c3a
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.1137e380
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.11308ebf
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.1137e380
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1137e380
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 0x1130e25a
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.11365270
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 0x1130e292
push 1
pop eax
jmp 0x1130e339
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1130e2fd
cmp byte [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1130e2b8
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x1130e2b4
cmp byte [edi + 0x2e], 0
je 0x1130e315
test al, al
je 0x1130e315
push ecx
call fcn.11365270
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1130e315
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.11365190
push 0x1156a578
push esi
call fcn.11365190
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1130e25a
add esp, 0x20
mov byte [ebx + esi - 1], 0x2a
and byte [ebx + esi], 0
mov dword [ebp + 8], eax
jmp 0x1130e315
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 0x1130e32d
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1130e299
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 0x1130e3fc
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.11363fc6
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 0x1130e434
push 1
pop eax
jmp 0x1130e4e8
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1130e4a9
cmp word [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1130e460
mov ax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x1130e45b
cmp word [edi + 0x30], 0
je 0x1130e4c4
test ax, ax
je 0x1130e4c4
push ecx
call fcn.11363fc6
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1130e4c4
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.11363f77
push 0x1156a57c
push esi
call fcn.11363f77
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1130e3fc
add esp, 0x20
mov word [esi + ebx*2 - 2], 0x2a
and word [esi + ebx*2], 0
mov dword [ebp + 8], eax
jmp 0x1130e4c4
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 0x1130e4dc
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1130e43b
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 0x1130ed35
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 0x1130eec4
push ebx
call fcn.11363fc6
test eax, eax
pop ecx
je 0x1130eec4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1130eec4
test al, 1
je 0x1130ed7d
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 0x1130eea8
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.11363fa1
lea eax, [ebp - 0x660]
push 0x1156a57c
push eax
call fcn.11363f77
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 0x1130ee9e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x224]
push 0x1156a5c8
push eax
call edi
test eax, eax
je 0x1130ee7d
lea eax, [ebp - 0x224]
push 0x1156a5c4
push eax
call edi
test eax, eax
je 0x1130ee7d
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.11363fa1
lea eax, [ebp - 0x458]
push 0x11567574
push eax
call fcn.11363f77
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.11363f77
lea eax, [ebp - 0x458]
push 0
push eax
call fcn.1130ed35
add esp, 0x20
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1130edf8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
jmp 0x1130eeaf
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1130eec6
cmp dword [ebp + 0xc], eax
je 0x1130eec6
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1130eec6
xor eax, eax
pop ebx
leave
ret
Function at 0x1130eec9
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 esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
je 0x1130f081
push edi
call fcn.11363fc6
test eax, eax
pop ecx
je 0x1130f081
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push esi
push eax
push edi
mov dword [ebp - 4], esi
call fcn.1130c95e
add esp, 0x1c
test eax, eax
je 0x1130f081
cmp dword [ebp - 4], 0xffffffff
je 0x1130f081
test byte [ebp - 4], 1
je 0x1130ef2b
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1130f065
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x666]
mov word [ebp - 0x668], si
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x668]
push eax
call fcn.11363fa1
lea eax, [ebp - 0x668]
push 0x1156a57c
push eax
call fcn.11363f77
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x45c]
mov dword [ebp - 0x460], esi
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 0x1130f04b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x434]
push 0x1156a5c8
push eax
call edi
test eax, eax
je 0x1130f02a
lea eax, [ebp - 0x434]
push 0x1156a5c4
push eax
call edi
test eax, eax
je 0x1130f02a
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov word [ebp - 0x210], si
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push eax
call fcn.11363fa1
lea eax, [ebp - 0x210]
push 0x11567574
push eax
call fcn.11363f77
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.11363f77
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.1130eec9
add esp, 0x20
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1130efa5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, esi
jne 0x1130f083
cmp dword [ebp + 0xc], esi
je 0x1130f083
push 4
push esi
push dword [ebp + 8]
jmp 0x1130f079
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, esi
jne 0x1130f083
cmp dword [ebp + 0xc], esi
je 0x1130f083
push 4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1130f083
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1130f4e3
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 0x1130f517
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
jmp 0x1130f5d4
test bl, 1
je 0x1130f527
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x1130f5c0
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.11364437
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1130f5b0
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.11364437
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1130f577
xor eax, eax
jmp 0x1130f5dc
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.11310a85
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1130f992
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.11393920
test eax, eax
je 0x1130f9af
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 0x1130fa18
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1130fa18
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.11364b20
push esi
call fcn.114ef26e
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1130fa18
push esi
push ebx
push edi
call fcn.11364b20
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 0x1130fa18
push esi
xor ebx, ebx
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.1133f094
add esp, 0x10
test eax, eax
je 0x1130fa18
push dword [ebp + 0xc]
call fcn.11363fc6
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x1130fa65
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 0x1130fa8c
mov edi, 0x400
cmp dword [ebp - 4], 2
jne 0x1130facc
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 0x1130fb16
mov edi, dword [ebp - 0x10]
cmp edi, 0x200
jb 0x1130fb16
push edi
call fcn.114ef26e
push edi
push ebx
push eax
mov dword [esi], eax
call fcn.11364b20
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 0x1130fb0e
push dword [esi]
call fcn.114ef297
inc dword [ebp - 4]
pop ecx
cmp dword [ebp - 4], 3
mov dword [esi], ebx
jl 0x1130fa81
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 0x1130fb1e
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, 0x11569270
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 0x1130fb5b
cmp esi, 1
jne 0x1130fb69
call fcn.113938d0
test eax, eax
jne 0x1130fb69
push 4
pop edi
jmp 0x1130fbd4
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 0x1130fbd2
cmp eax, 0x104
jae 0x1130fbd2
lea eax, [ebp - 0x210]
push eax
call fcn.113657d5
lea eax, [ebp - 0x210]
mov dword [esp], str.cdrom
push eax
call fcn.11365599
pop ecx
test eax, eax
pop ecx
je 0x1130fbb9
push 5
pop edi
lea eax, [ebp - 0x210]
push str.floppy
push eax
call fcn.11365599
pop ecx
test eax, eax
pop ecx
je 0x1130fbd4
jmp 0x1130fb64
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1130fbda
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 0x1130fd58
cmp dword [ebp + 0x10], 0x200
jne 0x1130fd58
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.11364b20
mov eax, dword [0x1156a6a8]
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x1156a6ac]
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 0x1130fd28
lea eax, [ebp - 0x2c]
push eax
call fcn.11363fc6
lea esi, [ebx + 0x36]
push edi
push str.FAT16
push esi
mov dword [ebp + 0xc], eax
call fcn.113755f0
add esp, 0x10
test eax, eax
jne 0x1130fcc2
cmp dword [ebp + 0xc], edi
jne 0x1130fca1
push edi
lea eax, [ebp - 0x2c]
push 0x1156a694
push eax
call fcn.1136507b
add esp, 0xc
test eax, eax
je 0x1130fcbe
cmp dword [ebp + 0xc], 3
jne 0x1130fcc2
push 3
lea eax, [ebp - 0x2c]
push 0x1156a68c
push eax
call fcn.1136507b
add esp, 0xc
test eax, eax
jne 0x1130fcc2
push 3
jmp 0x1130fd25
push edi
push str.FAT12
push esi
call fcn.113755f0
add esp, 0xc
test eax, eax
jne 0x1130fcf2
cmp dword [ebp + 0xc], 3
jne 0x1130fcf2
push 3
lea eax, [ebp - 0x2c]
push 0x1156a68c
push eax
call fcn.1136507b
add esp, 0xc
test eax, eax
je 0x1130fcbe
push edi
lea eax, [ebx + 0x52]
push str.FAT32
push eax
call fcn.113755f0
add esp, 0xc
test eax, eax
jne 0x1130fd28
cmp dword [ebp + 0xc], edi
jne 0x1130fd28
push edi
lea eax, [ebp - 0x2c]
push 0x1156a670
push eax
call fcn.1136507b
add esp, 0xc
test eax, eax
jne 0x1130fd28
push 2
pop eax
jmp 0x1130fd57
lea esi, [ebx + 3]
push edi
push str.EXFAT
push esi
call fcn.113755f0
add esp, 0xc
test eax, eax
jne 0x1130fd42
mov eax, edi
jmp 0x1130fd57
push 4
push str.NTFS
push esi
call fcn.113755f0
add esp, 0xc
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1131227a
Capabilities:
Check if file exists
Get disk size
Get file attributes

Disassembly:
mov eax, 0x11503664
call fcn.11364418
sub esp, 0x410
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp dword [ebp + 8], esi
je 0x1131235d
cmp dword [ebp + 0xc], esi
jne 0x113122ac
cmp dword [ebp + 0x10], esi
jne 0x113122ac
cmp dword [ebp + 0x14], esi
je 0x1131235d
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.1137db10
mov dword [ebp - 4], esi
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x113122fe
test al, 0x10
je 0x113122fe
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 0x11312351
push 0x410
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.11364b20
lea eax, [ebp - 0x41c]
push 0x207
push eax
push dword [ebp + 8]
call fcn.11397430
add esp, 0x18
test eax, eax
je 0x11312351
lea eax, [ebp - 0x41c]
push eax
push dword [ebp + 8]
call fcn.11364f9c
pop ecx
cmp eax, esi
pop ecx
je 0x11312351
lea eax, [ebp - 0x41c]
lea ecx, [ebp + 8]
push eax
call fcn.1137e660
jmp 0x113122d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1137e380
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x11317538
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 0x113175eb
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 0x1131758a
cmp eax, 0x7a
jne 0x113175f4
push dword [ebp - 0x10]
call fcn.114ef26e
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
call fcn.114ef26e
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
pop ecx
cmp eax, edi
pop ecx
je 0x11317606
cmp dword [ebp + 0xc], edi
je 0x11317606
push dword [ebp - 0x10]
push edi
push eax
call fcn.11364b20
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push edi
push dword [ebp + 0xc]
call fcn.11364b20
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 0x113175fd
jmp 0x1131760d
mov dword [ebp - 8], 1
jmp 0x11317621
mov dword [ebp - 8], 2
jmp 0x1131761b
mov dword [ebp - 8], 4
jmp 0x1131760d
mov dword [ebp - 8], 3
cmp dword [ebp + 0xc], edi
je 0x1131761b
push dword [ebp + 0xc]
call fcn.114ef297
pop ecx
cmp dword [ebp - 4], edi
pop ebx
jne 0x11317630
mov eax, dword [esi]
cmp eax, edi
je 0x11317630
push eax
call fcn.114ef297
pop ecx
mov dword [esi], edi
cmp dword [0x115a41e0], edi
je 0x11317666
mov eax, dword [ebp + 8]
cmp eax, edi
jne 0x11317644
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 0x115a394c
call fcn.113a7c00
add esp, 0x20
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret