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

Disassembly:
mov eax, 0x1177bcc0
call fcn.116d0630
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 0x11667250
mov ecx, dword [ebp + 0xc]
push esi
call fcn.116967c0
push esi
call fcn.116d0747
cmp eax, 1
pop ecx
jl 0x11667250
mov ax, word [esi]
cmp ax, 0x61
jb 0x1166705b
cmp ax, 0x7a
jbe 0x1166706f
cmp ax, 0x41
jb 0x11667250
cmp ax, 0x5a
ja 0x11667250
cmp word [esi + 2], 0x3a
jne 0x11667250
mov ecx, dword [0x11784e74]
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
movzx eax, ax
push eax
lea eax, [ebp - 0x14]
push 0x117a247c
push eax
call fcn.116994c0
mov eax, dword [0x11784e74]
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.116d0747
test eax, eax
pop ecx
jbe 0x1166710a
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.116967c0
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.116967c0
jmp 0x116670b3
lea ecx, [ebp - 0x30]
call fcn.11667481
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
jne 0x116671b4
lea eax, [ebp - 0x14]
push 0x5c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.11697b90
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.116674bc
lea ecx, [ebp - 0x30]
call fcn.116675ac
test eax, eax
je 0x11667220
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.116d0747
test eax, eax
pop ecx
jbe 0x116671a8
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.116967c0
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.116967c0
jmp 0x11667151
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11696540
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11695b40
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call fcn.11667264
test eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
je 0x116671f1
call fcn.11696540
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11695b40
jmp 0x116671c0
call fcn.11696540
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x1166722c
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push eax
push 0x117a2470
push dword [ebp + 0xc]
call fcn.116994c0
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x1166722c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11696540
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.116674b1
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.11696540
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.11696540
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 0x11667425
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 0x1166747b
push esi
call fcn.116d0747
cmp eax, 2
pop ecx
jb 0x1166747b
mov ax, word [esi]
cmp ax, 0x5c
jne 0x11667450
cmp word [esi + 2], ax
je 0x11667478
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 0x11667478
cmp eax, 1
jne 0x1166747b
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1166b046
Capabilities:
Find taskbar
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebx + ebx]
xor esi, esi
push eax
push esi
push dword [ebp + 8]
call fcn.116d01d0
add esp, 0xc
call fcn.116e38b0
test eax, eax
je 0x1166b118
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0xc6]
mov word [ebp - 0xc8], si
push esi
rep stosd dword es:[edi], eax
push str.Shell_TrayWnd
push esi
push esi
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_FindWindowExW]
cmp eax, esi
je 0x1166b0a9
lea ecx, [ebp - 0xc8]
push ecx
push eax
call fcn.1166b180
lea eax, [ebp - 0xc8]
push eax
call fcn.116d0747
test eax, eax
pop ecx
jne 0x1166b0f1
push 0x41
push esi
push 1
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
cmp edi, esi
jne 0x1166b0d7
xor eax, eax
jmp 0x1166b17b
lea eax, [ebp - 0xc8]
push eax
push fcn.1166b180
push edi
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
lea eax, [ebp - 0xc8]
push eax
call fcn.116d0747
cmp eax, ebx
pop ecx
jae 0x1166b0d0
lea eax, [ebp - 0xc8]
push eax
push dword [ebp + 8]
call fcn.116d0cdf
pop ecx
pop ecx
push 1
pop eax
jmp 0x1166b17b
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0xc6]
mov word [ebp - 0xc8], si
mov dword [ebp + 0xc], 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc8]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edi, eax
cmp edi, esi
je 0x1166b169
lea eax, [ebp - 0xc8]
push eax
call fcn.116d0747
cmp eax, ebx
pop ecx
jae 0x1166b0d0
lea eax, [ebp - 0xc8]
jmp 0x1166b108
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4dd
jne 0x1166b179
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1166b6ba
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.116d1310
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 0x1166b6f2
push 1
pop eax
jmp 0x1166b799
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1166b75d
cmp byte [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1166b718
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x1166b714
cmp byte [edi + 0x2e], 0
je 0x1166b775
test al, al
je 0x1166b775
push ecx
call fcn.116d1310
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1166b775
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116d1230
push 0x117a54b0
push esi
call fcn.116d1230
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1166b6ba
add esp, 0x20
mov byte [ebx + esi - 1], 0x2a
and byte [ebx + esi], 0
mov dword [ebp + 8], eax
jmp 0x1166b775
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 0x1166b78d
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1166b6f9
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 0x1166b85c
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.116d0747
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 0x1166b894
push 1
pop eax
jmp 0x1166b948
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1166b909
cmp word [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1166b8c0
mov ax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x1166b8bb
cmp word [edi + 0x30], 0
je 0x1166b924
test ax, ax
je 0x1166b924
push ecx
call fcn.116d0747
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1166b924
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116d0cb5
push 0x117a54b4
push esi
call fcn.116d0cb5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1166b85c
add esp, 0x20
mov word [esi + ebx*2 - 2], 0x2a
and word [esi + ebx*2], 0
mov dword [ebp + 8], eax
jmp 0x1166b924
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 0x1166b93c
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1166b89b
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 0x1166c121
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 0x1166c2b1
push ebx
call fcn.116d0747
test eax, eax
pop ecx
je 0x1166c2b1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1166c2b1
test al, 1
je 0x1166c169
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 0x1166c295
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.116d0cdf
lea eax, [ebp - 0x660]
push 0x117a54b4
push eax
call fcn.116d0cb5
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 0x1166c28b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x224]
push 0x117a54ec
push eax
call edi
test eax, eax
je 0x1166c26a
lea eax, [ebp - 0x224]
push 0x117a54e8
push eax
call edi
test eax, eax
je 0x1166c26a
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.116d0cdf
lea eax, [ebp - 0x458]
push 0x117a02e8
push eax
call fcn.116d0cb5
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.116d0cb5
push dword [ebp + 0xc]
lea eax, [ebp - 0x458]
push eax
call fcn.1166c121
add esp, 0x20
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1166c1e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
jmp 0x1166c29c
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1166c2b3
cmp dword [ebp + 0xc], eax
je 0x1166c2b3
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1166c2b3
xor eax, eax
pop ebx
leave
ret
Function at 0x1166c2b6
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 0x1166c4c1
push esi
call fcn.116d0747
test eax, eax
pop ecx
je 0x1166c4c1
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.11669bdc
add esp, 0x1c
test eax, eax
je 0x1166c4c1
cmp dword [ebp - 4], 0xffffffff
je 0x1166c4c1
test byte [ebp - 4], 1
je 0x1166c318
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1166c4a5
test byte [ebp - 3], 4
je 0x1166c33b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x1166c33b
push 1
pop eax
jmp 0x1166c4c3
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.116d0cdf
lea eax, [ebp - 0x668]
push 0x117a54b4
push eax
call fcn.116d0cb5
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x254]
mov dword [ebp - 0x258], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x1166c48a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x22c]
push 0x117a54ec
push eax
call edi
test eax, eax
je 0x1166c469
lea eax, [ebp - 0x22c]
push 0x117a54e8
push eax
call edi
test eax, eax
je 0x1166c469
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x45e]
mov word [ebp - 0x460], bx
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x460]
push eax
call fcn.116d0cdf
lea eax, [ebp - 0x460]
push 0x117a02e8
push eax
call fcn.116d0cb5
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x460]
push eax
call fcn.116d0cb5
add esp, 0x18
test byte [ebp - 0x257], 4
je 0x1166c458
test byte [ebp - 0x231], 0x20
jne 0x1166c449
cmp dword [ebp - 0x234], 0x8000001b
jne 0x1166c458
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1166c469
push dword [ebp + 0xc]
lea eax, [ebp - 0x460]
push eax
call fcn.1166c2b6
pop ecx
pop ecx
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1166c3ae
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 0x1166c4c3
cmp dword [ebp + 0xc], ebx
je 0x1166c4c3
push 4
push ebx
push dword [ebp + 8]
jmp 0x1166c4b9
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1166c4c3
cmp dword [ebp + 0xc], ebx
je 0x1166c4c3
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1166c4c3
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1166c4c7
Capabilities:
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 0x1166c663
push esi
call fcn.116d0747
test eax, eax
pop ecx
je 0x1166c663
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.11669bdc
add esp, 0x1c
test eax, eax
je 0x1166c663
cmp dword [ebp - 4], 0xffffffff
je 0x1166c663
test byte [ebp - 4], 1
je 0x1166c529
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1166c657
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.116d0cdf
lea eax, [ebp - 0x668]
push 0x117a54b4
push eax
call fcn.116d0cb5
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 0x1166c648
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x434]
push 0x117a54ec
push eax
call edi
test eax, eax
je 0x1166c627
lea eax, [ebp - 0x434]
push 0x117a54e8
push eax
call edi
test eax, eax
je 0x1166c627
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.116d0cdf
lea eax, [ebp - 0x210]
push 0x117a02e8
push eax
call fcn.116d0cb5
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.116d0cb5
lea eax, [ebp - 0x210]
push eax
call fcn.1166c4c7
add esp, 0x1c
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1166c5a6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 4
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
jmp 0x1166c665
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1166c665
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1166cada
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
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x1166cba1
mov ebx, dword [ebp + 0xc]
push ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1166cbb8
test al, 1
je 0x1166cb1d
and al, 0xfe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1166cbb8
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
push ebx
mov ebx, str._s.bak_08X
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.116d0d41
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1166cba5
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.116d0d41
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1166cb6c
xor eax, eax
jmp 0x1166cbd0
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.1166e38b
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1166cbd5
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
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
je 0x1166cc9c
mov ebx, dword [ebp + 0xc]
push ebx
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1166ccb3
test al, 1
je 0x1166cc18
and al, 0xfe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1166ccb3
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
push ebx
mov ebx, str._s.bak_08X
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.116d0d41
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1166cca0
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.116d0d41
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1166cc67
xor eax, eax
jmp 0x1166cccb
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push ebx
mov esi, eax
call fcn.1166e3c5
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1166d259
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.116e3900
test eax, eax
je 0x1166d276
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 0x1166d2df
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1166d2df
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.116d01d0
push esi
call fcn.116d0228
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1166d2df
push esi
push ebx
push edi
call fcn.116d01d0
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 0x1166d2df
push esi
xor ebx, ebx
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.1168b647
add esp, 0x10
test eax, eax
je 0x1166d2df
push dword [ebp + 0xc]
call fcn.116d0747
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x1166d32c
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 0x1166d353
mov edi, 0x400
cmp dword [ebp - 4], 2
jne 0x1166d393
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 0x1166d3dd
mov edi, dword [ebp - 0x10]
cmp edi, 0x200
jb 0x1166d3dd
push edi
call fcn.116d0228
push edi
push ebx
push eax
mov dword [esi], eax
call fcn.116d01d0
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 0x1166d3d5
push dword [esi]
call fcn.116d01c0
inc dword [ebp - 4]
pop ecx
cmp dword [ebp - 4], 3
mov dword [esi], ebx
jl 0x1166d348
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 0x1166d3e5
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, 0x117a2468
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 0x1166d422
cmp esi, 1
jne 0x1166d430
call fcn.116e38b0
test eax, eax
jne 0x1166d430
push 4
pop edi
jmp 0x1166d49b
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 0x1166d499
cmp eax, 0x104
jae 0x1166d499
lea eax, [ebp - 0x210]
push eax
call fcn.116d1865
lea eax, [ebp - 0x210]
mov dword [esp], str.cdrom
push eax
call fcn.116d0c34
pop ecx
test eax, eax
pop ecx
je 0x1166d480
push 5
pop edi
lea eax, [ebp - 0x210]
push str.floppy
push eax
call fcn.116d0c34
pop ecx
test eax, eax
pop ecx
je 0x1166d49b
jmp 0x1166d42b
xor edi, edi
mov eax, edi
pop edi
pop esi
leave
ret