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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
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 - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
je 0x11651445
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 8]
call fcn.116510ce
add esp, 0x10
test eax, eax
je 0x11651434
cmp dword [ebp - 8], ebx
je 0x11651434
lea eax, [ebp - 4]
mov byte [ebp - 0x1c], bl
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x11651434
push esi
push edi
mov edi, dword [ebp - 8]
xor esi, esi
cmp dword [edi], ebx
jbe 0x11651432
lea eax, [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push dword [eax]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x11651412
add dword [ebp - 0xc], 8
inc esi
cmp esi, dword [edi]
jb 0x116513f5
jmp 0x11651432
test byte [edi + esi*8 + 8], 8
push 1
lea eax, [edi + esi*8 + 8]
pop ecx
mov dword [ebp - 0x10], ecx
je 0x11651428
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
test byte [eax], 4
je 0x11651432
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x11651445
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call fcn.116510a0
cmp dword [0x117bf398], ebx
pop ecx
pop ebx
je 0x11651480
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push dword [ebp - 0x10]
push str.CAdminTokenMgr::IsInAdminGroup__bIsAdmin___d__hToken__08x__bOwner___d___bEnabled__d_
push str.AdminToken
push 0xffffffffffffffff
push 0x117beb04
call fcn.116bdf00
add esp, 0x20
mov eax, dword [ebp - 0x10]
leave
ret
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.116a4ea0
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 [0x117bf398], 0
pop ecx
mov edi, str.CAdminTokenMgr::IsMatchProcessToken__Match___d___hNewToken__08x___dwTargetProcessId___d____hTargetHandle__08x____dwSessionId__d_
mov esi, 0x117beb04
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.116bdf00
add esp, 0x24
test ebx, ebx
je 0x11651809
cmp dword [0x117bf398], 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.116bdf00
add esp, 0x24
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x116568da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1176b2b4
call fcn.116bfcd0
sub esp, 0x434
cmp dword [0x117bd864], 0
je 0x116568fd
mov eax, dword [0x117bd860]
jmp 0x11656aab
push ebx
push esi
push edi
push 1
pop eax
mov esi, 0x20019
mov dword [0x117bd864], eax
mov dword [0x117bd860], eax
call fcn.116d2ec0
test eax, eax
je 0x11656920
mov esi, 0x20219
lea ecx, [ebp - 0x18]
call fcn.11693ff0
and dword [ebp - 4], 0
push esi
push str.softwareTECOcular.3Agent
push SysStringLen
lea ecx, [ebp - 0x18]
call fcn.11694160
push 4
test eax, eax
pop ebx
je 0x116569a1
mov esi, str.RunAs
push ebx
push esi
lea ecx, [ebp - 0x18]
call fcn.11696630
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x18]
mov edi, eax
call fcn.11694300
movzx eax, al
test eax, eax
jne 0x11656971
and dword [0x117bd860], eax
jmp 0x11656991
push 2
pop ecx
cmp eax, ecx
jne 0x11656980
mov dword [0x117bd860], ecx
jmp 0x11656991
push 3
pop ecx
cmp eax, ecx
je 0x11656978
cmp eax, ebx
jne 0x11656991
mov dword [0x117bd860], ebx
lea ecx, [ebp - 0x18]
call fcn.116941b0
test edi, edi
jne 0x11656a94
and word [ebp - 0x238], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x236]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x43e]
mov word [ebp - 0x440], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x440]
push 0x104
push eax
call fcn.116aaae0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
add esp, 0xc
mov dword [ebp - 0x24], str.ingress_sdm.exe
mov dword [ebp - 0x20], str.ist.exe
mov dword [ebp - 0x1c], str.OGuard.exe
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 3
lea esi, [ebp - 0x24]
mov ebx, 0x103
push dword [esi]
lea eax, [ebp - 0x440]
push eax
push 0x1178f20c
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.116c0450
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
call edi
cmp eax, 0xffffffff
je 0x11656a7a
lea eax, [ebp - 0x440]
push str.winrdlv3.exe
push eax
push 0x1178f20c
lea eax, [ebp - 0x238]
push ebx
push eax
call fcn.116c0450
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
call edi
cmp eax, 0xffffffff
je 0x11656a88
inc dword [ebp - 0x10]
add esi, 4
cmp dword [ebp - 0x10], 3
jb 0x11656a1f
jmp 0x11656a94
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x30]
mov dword [0x117bd860], eax
mov esi, dword [0x117bd860]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.116940e0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x11656e8c
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1176b320
call fcn.116bfcd0
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 0x116570ce
mov ecx, dword [ebp + 0xc]
push esi
call fcn.116857f0
push esi
call fcn.116bfde7
cmp eax, 1
pop ecx
jl 0x116570ce
mov ax, word [esi]
cmp ax, 0x61
jb 0x11656ed9
cmp ax, 0x7a
jbe 0x11656eed
cmp ax, 0x41
jb 0x116570ce
cmp ax, 0x5a
ja 0x116570ce
cmp word [esi + 2], 0x3a
jne 0x116570ce
mov ecx, dword [0x11773dfc]
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
movzx eax, ax
push eax
lea eax, [ebp - 0x14]
push 0x117912a0
push eax
call fcn.116884f0
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.116bfde7
test eax, eax
pop ecx
jbe 0x11656f88
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.116857f0
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.116857f0
jmp 0x11656f31
lea ecx, [ebp - 0x30]
call fcn.116572ff
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
cmp dword [eax - 8], 0
jne 0x11657032
lea eax, [ebp - 0x14]
push 0x5c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.11686bc0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.1165733a
lea ecx, [ebp - 0x30]
call fcn.1165742a
test eax, eax
je 0x1165709e
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.116bfde7
test eax, eax
pop ecx
jbe 0x11657026
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x14]
push eax
call fcn.116857f0
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x10]
push eax
call fcn.116857f0
jmp 0x11656fcf
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685570
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11684b70
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 4
push dword [ebp - 0x18]
call fcn.116570e2
test eax, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
je 0x1165706f
call fcn.11685570
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x18]
push eax
call fcn.11684b70
jmp 0x1165703e
call fcn.11685570
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], 0
je 0x116570aa
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
push eax
push 0x11791294
push dword [ebp + 0xc]
call fcn.116884f0
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x116570aa
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.11685570
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.1165732f
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.11685570
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.11685570
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 0x116572a3
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 0x116572f9
push esi
call fcn.116bfde7
cmp eax, 2
pop ecx
jb 0x116572f9
mov ax, word [esi]
cmp ax, 0x5c
jne 0x116572ce
cmp word [esi + 2], ax
je 0x116572f6
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 0x116572f6
cmp eax, 1
jne 0x116572f9
push 1
pop edi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1165b536
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.116c09e0
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 0x1165b56e
push 1
pop eax
jmp 0x1165b615
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1165b5d9
cmp byte [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1165b594
mov al, byte [edi + 0x2d]
cmp al, 0x2e
jne 0x1165b590
cmp byte [edi + 0x2e], 0
je 0x1165b5f1
test al, al
je 0x1165b5f1
push ecx
call fcn.116c09e0
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1165b5f1
and byte [ebx + esi - 1], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116c0900
push 0x117942d0
push esi
call fcn.116c0900
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1165b536
add esp, 0x20
mov byte [ebx + esi - 1], 0x2a
and byte [ebx + esi], 0
mov dword [ebp + 8], eax
jmp 0x1165b5f1
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 0x1165b609
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1165b575
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 0x1165b6d8
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.116bfde7
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 0x1165b710
push 1
pop eax
jmp 0x1165b7c4
mov dword [ebp + 8], 1
test byte [edi], 0x10
je 0x1165b785
cmp word [edi + 0x2c], 0x2e
lea ecx, [edi + 0x2c]
jne 0x1165b73c
mov ax, word [edi + 0x2e]
cmp ax, 0x2e
jne 0x1165b737
cmp word [edi + 0x30], 0
je 0x1165b7a0
test ax, ax
je 0x1165b7a0
push ecx
call fcn.116bfde7
inc eax
pop ecx
cmp dword [ebp - 4], eax
jb 0x1165b7a0
and word [esi + ebx*2 - 2], 0
lea eax, [edi + 0x2c]
push eax
push esi
call fcn.116c0355
push 0x117942d4
push esi
call fcn.116c0355
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push esi
call fcn.1165b6d8
add esp, 0x20
mov word [esi + ebx*2 - 2], 0x2a
and word [esi + ebx*2], 0
mov dword [ebp + 8], eax
jmp 0x1165b7a0
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 0x1165b7b8
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165b717
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 0x1165bf9d
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 0x1165c12d
push ebx
call fcn.116bfde7
test eax, eax
pop ecx
je 0x1165c12d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x1165c12d
test al, 1
je 0x1165bfe5
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 0x1165c111
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.116c037f
lea eax, [ebp - 0x660]
push 0x117942d4
push eax
call fcn.116c0355
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 0x1165c107
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x224]
push 0x1179430c
push eax
call edi
test eax, eax
je 0x1165c0e6
lea eax, [ebp - 0x224]
push 0x11794308
push eax
call edi
test eax, eax
je 0x1165c0e6
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.116c037f
lea eax, [ebp - 0x458]
push 0x1178f308
push eax
call fcn.116c0355
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.116c0355
push dword [ebp + 0xc]
lea eax, [ebp - 0x458]
push eax
call fcn.1165bf9d
add esp, 0x20
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165c060
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
jmp 0x1165c118
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1165c12f
cmp dword [ebp + 0xc], eax
je 0x1165c12f
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1165c12f
xor eax, eax
pop ebx
leave
ret
Function at 0x1165c132
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 0x1165c2ed
push esi
call fcn.116bfde7
test eax, eax
pop ecx
je 0x1165c2ed
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.11659a58
add esp, 0x1c
test eax, eax
je 0x1165c2ed
cmp dword [ebp - 4], 0xffffffff
je 0x1165c2ed
test byte [ebp - 4], 1
je 0x1165c194
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test byte [ebp - 4], 0x10
je 0x1165c2d1
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.116c037f
lea eax, [ebp - 0x668]
push 0x117942d4
push eax
call fcn.116c0355
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 0x1165c2b6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x434]
push 0x1179430c
push eax
call edi
test eax, eax
je 0x1165c295
lea eax, [ebp - 0x434]
push 0x11794308
push eax
call edi
test eax, eax
je 0x1165c295
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.116c037f
lea eax, [ebp - 0x210]
push 0x1178f308
push eax
call fcn.116c0355
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.116c0355
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call fcn.1165c132
add esp, 0x20
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1165c211
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 0x1165c2ef
cmp dword [ebp + 0xc], ebx
je 0x1165c2ef
push 4
push ebx
push dword [ebp + 8]
jmp 0x1165c2e5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x1165c2ef
cmp dword [ebp + 0xc], ebx
je 0x1165c2ef
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1165c2ef
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x1165c764
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 0x1165c798
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
jmp 0x1165c855
test bl, 1
je 0x1165c7a8
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x1165c841
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.116c03e1
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1165c831
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.116c03e1
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1165c7f8
xor eax, eax
jmp 0x1165c85d
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.1165e006
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1165c862
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 0x1165c896
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
push edi
jmp 0x1165c953
test bl, 1
je 0x1165c8a6
and ebx, 0xfffffffe
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x1165c93f
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.116c03e1
and dword [ebp - 4], 0
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
cmp eax, 0xffffffff
je 0x1165c92f
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.116c03e1
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x1165c8f6
xor eax, eax
jmp 0x1165c95b
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.1165e040
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1165cee9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
call fcn.116d2fa0
test eax, eax
je 0x1165cf06
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 0x1165cf6f
mov esi, dword [ebp + 0x10]
cmp esi, ebx
je 0x1165cf6f
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp + 0xc]
call fcn.116bf870
push esi
call fcn.116bf8c8
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1165cf6f
push esi
push ebx
push edi
call fcn.116bf870
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 0x1165cf6f
push esi
xor ebx, ebx
push dword [ebp + 0xc]
push 0xffffffffffffffff
push edi
call fcn.1167a9c2
add esp, 0x10
test eax, eax
je 0x1165cf6f
push dword [ebp + 0xc]
call fcn.116bfde7
pop ecx
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret