joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500f3f
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
push dword [edi + 4]
mov dword [edi], vtable.CCfgMgr.0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x500f66
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [edi + 4], 0
mov eax, dword [edi + 0x5a4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x500f7d
push 0xffffffffffffffff
push eax
call esi
mov eax, dword [edi + 0x5ac]
test eax, eax
je 0x500f8c
push 0xffffffffffffffff
push eax
call esi
mov eax, dword [edi + 0x5b0]
test eax, eax
je 0x500f9b
push 0xffffffffffffffff
push eax
call esi
lea esi, [edi + 0x634]
lea ecx, [esi + 0x18]
call fcn.00403f80
mov ecx, esi
call fcn.00403f80
lea ecx, [edi + 0x628]
call fcn.00507282
lea ecx, [edi + 0x61c]
call fcn.00507282
lea ecx, [edi + 0x610]
call fcn.00507282
lea ecx, [edi + 0x604]
call fcn.00507282
lea ecx, [edi + 0x5f8]
call fcn.00507282
lea ecx, [edi + 0x5ec]
call fcn.00507282
lea ecx, [edi + 0x5e8]
call fcn.00500f01
lea ecx, [edi + 0x5dc]
call fcn.005071da
lea ecx, [edi + 0x5d0]
call fcn.005071da
lea ecx, [edi + 0x5c0]
call fcn.0050722e
push 0x17
pop ebx
mov dword [ebp - 4], ebx
mov esi, ebx
lea ebx, [edi + 0x59c]
sub ebx, 0x18
mov ecx, ebx
call fcn.00403f80
sub esi, 1
jne 0x50102c
mov ebx, dword [ebp - 4]
lea esi, [edi + 0x374]
sub esi, 0x18
mov ecx, esi
call fcn.00403f80
sub ebx, 1
jne 0x501044
cmp dword [edi + 0x14], ebx
pop esi
pop ebx
je 0x501062
push dword [edi + 0x14]
call fcn.005275b0
pop edi
leave
ret

Function at 0x502b34
Capabilities:
Create thread

Disassembly:
push esi
push 1
push 0x10
mov esi, ecx
call fcn.0050402c
test eax, eax
je 0x502b4c
mov ecx, esi
pop esi
jmp fcn.00503ec9
pop esi
ret

Function at 0x502d18
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi + 0x5e8]
test edx, edx
je 0x502d51
mov eax, dword [edx + 4]
sub eax, dword [edx]
test eax, 0xfffffff8
je 0x502d51
xor eax, eax
push eax
push eax
push edx
push 0x502d53
push eax
push eax
mov dword [esi + 0x5e8], eax
call fcn.00577219
add esp, 0x18
mov dword [esi + 0x5ac], eax
pop esi
ret
Function at 0x504d2f
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0xc]
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [esi + 0x5a1], al
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], ebx
jne 0x504dff
push 0x5d1448
push 0xc9
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x504df8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x504df8
test ebx, ebx
je 0x504df8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
and dword [ebp - 0xc], 0
push ebx
push eax
mov dword [ebp - 8], 0xf
call fcn.0043f8cc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.005066ac
mov ecx, dword [ebp - 8]
mov byte [ebp + 0xf], al
cmp ecx, 0x10
jb 0x504e08
mov edx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edx
cmp ecx, 0x1000
jb 0x504ded
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403fef
mov edx, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push ecx
push edx
call fcn.00541bf5
pop ecx
pop ecx
jmp 0x504e08
xor al, al
jmp 0x504eb9
push eax
call fcn.005066ac
mov byte [ebp + 0xf], al
lea ebx, [esi + 0x64c]
lea edi, [esi + 0x634]
push ebx
push edi
call fcn.00506c11
xor eax, eax
pop ecx
pop ecx
cmp dword [esi + 0x1bc], eax
jne 0x504e5b
cmp byte [esi + 0x5a1], al
jne 0x504e4f
cmp dword [esi + 0x644], eax
je 0x504e4f
push eax
push eax
push edi
push 0x50435d
push eax
push eax
call fcn.00577219
add esp, 0x18
mov dword [esi + 0x5b0], eax
push ebx
lea ecx, [esi + 0x1ac]
call fcn.004065d3
push 6
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00504bd4
push eax
call fcn.00507881
mov ecx, eax
call fcn.00507d2e
lea ecx, [ebp - 0x1c]
call fcn.00403f80
cmp byte [esi + 0x5a1], 0
jne 0x504e94
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov ecx, esi
call fcn.00505c0b
push dword [esi + 0x5bc]
push 0x5d1454
push 2
call fcn.005bb560
push eax
call fcn.005bb420
mov al, byte [ebp + 0xf]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x50a044
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, str.QQBrowser.exe
lea ecx, [ebp - 0x30]
push esi
call fcn.0040921d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00509ead
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00403f80
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50a095
lea eax, [ebp - 0x18]
push eax
call fcn.0050a012
pop ecx
test al, al
jne 0x50a0fa
push esi
lea ecx, [ebp - 0x30]
call fcn.0040921d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00509f5a
mov esi, eax
lea eax, [ebp - 0x18]
pop ecx
pop ecx
cmp eax, esi
je 0x50a0c6
mov ecx, eax
call fcn.00403f80
push esi
lea ecx, [ebp - 0x18]
call fcn.00444e92
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea ecx, [ebp - 0x30]
call fcn.00403f80
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50a0fe
lea eax, [ebp - 0x18]
push eax
call fcn.0050a012
pop ecx
test al, al
je 0x50a0fe
mov bl, 1
jmp 0x50a100
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.00403f80
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x50a363
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, 0x208
mov dword [ebp - 8], 1
push esi
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00548bf0
add esp, 0xc
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
pop esi
test eax, eax
jne 0x50a3cf
lea eax, [ebp - 0x210]
push eax
call fcn.00553a47
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00409b94
leave
ret
Function at 0x50a3d1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, str.uninst.exe
lea ecx, [ebp - 0x30]
push esi
call fcn.0040921d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00509ead
pop ecx
pop ecx
lea ecx, [ebp - 0x30]
call fcn.00403f80
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50a422
lea eax, [ebp - 0x18]
push eax
call fcn.0050a012
pop ecx
test al, al
jne 0x50a487
push esi
lea ecx, [ebp - 0x30]
call fcn.0040921d
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00509f5a
mov esi, eax
lea eax, [ebp - 0x18]
pop ecx
pop ecx
cmp eax, esi
je 0x50a453
mov ecx, eax
call fcn.00403f80
push esi
lea ecx, [ebp - 0x18]
call fcn.00444e92
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea ecx, [ebp - 0x30]
call fcn.00403f80
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50a4ce
lea eax, [ebp - 0x18]
push eax
call fcn.0050a012
pop ecx
test al, al
je 0x50a4ce
push str._fromuninstall64_from_setup32
lea ecx, [ebp - 0x48]
call fcn.0040921d
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x30]
cmovae eax, dword [ebp - 0x18]
push eax
call fcn.0040921d
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.005b3f90
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x48]
call fcn.00403f80
mov bl, 1
jmp 0x50a4d0
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.00403f80
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x50cf99
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 1
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov esi, ecx
push 7
push eax
call fcn.005ad360
add esp, 0x10
lea eax, [ebp - 0x18]
cmp dword [ebp - 4], 8
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50d051
sub esp, 0x18
xor ebx, ebx
mov ecx, esp
push dword [ebp + 0x10]
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00408766
push dword [ebp + 0xc]
sub esp, 0x18
mov ecx, esp
push dword [ebp + 8]
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00408766
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 7
push dword [eax]
call fcn.0050d2b6
mov edi, 0x5f9b84
lea ecx, [ebp - 0x48]
push edi
call fcn.0040921d
push edi
lea ecx, [ebp - 0x30]
call fcn.0040921d
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
push ebx
push ebx
push 0x65
push 0x7d6
call fcn.0050eebb
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x50d99d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.005b1fe0
lea ecx, [ebp - 0x18]
mov dword [esp], str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlags
call fcn.0040921d
push str.Compatibility_AssistantPersisted
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0044a2d9
push 0x5d45e8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0044a2d9
push 0x20006
push SysReAllocString
push 1
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.005ab400
add esp, 0x2c
call fcn.005b7650
cmp eax, 0x40
jne 0x50da4d
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
push ecx
cmovae eax, dword [ebp - 0x18]
push 0x2011f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50da4d
cmp dword [esi + 0x14], 8
jb 0x50da35
mov esi, dword [esi]
push esi
push str.Layers
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea ecx, [ebp - 0x30]
call fcn.00403f80
lea ecx, [ebp - 0x18]
call fcn.00403f80
pop esi
leave
ret 4

Function at 0x50dd48
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.0051d8aa
test al, al
je 0x50ddc2
lea ecx, [esi + 0xd4]
call fcn.00505793
test al, al
je 0x50ddc2
push str.User_DataDefaultpreferences
lea ecx, [ebp - 0x30]
call fcn.0040921d
push 1
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push 9
push eax
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.00403f80
mov esi, 0x6015ec
push esi
call fcn.00553a47
pop ecx
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.00409b94
cmp dword [ebp - 4], 8
lea eax, [ebp - 0x18]
cmovae eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x18]
call fcn.00403f80
pop esi
leave
ret
Function at 0x50ddc5
Capabilities:
Check if file exists
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push str.User_DataDefaultUserTyped
lea ecx, [ebp - 0x28]
call fcn.0040921d
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push 9
push eax
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00403f80
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x50df03
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
xor ebx, ebx
push esi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x50df01
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
test eax, eax
je 0x50defa
lea ecx, [ebp - 1]
mov dword [ebp - 0x1c], ebx
push ecx
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 1], bl
call fcn.004bc890
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
cmp byte [eax], bl
je 0x50debc
push str.InputUrls
lea ecx, [ebp - 0x58]
call fcn.0040921d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0xf
call fcn.005aa830
add esp, 0xc
lea ecx, [ebp - 0x58]
call fcn.00403f80
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x50defa
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0x1000
jb 0x50dee8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403fef
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
push ecx
push eax
call fcn.00541bf5
pop ecx
pop ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
call fcn.0051deea
lea ecx, [ebp - 0x40]
call fcn.00403f80
leave
ret

Function at 0x50df12
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 0xb
ja 0x50df4c
mov edx, dword [edi + esi*4 + 0x54]
test edx, edx
jne 0x50df43
xor eax, eax
push eax
push eax
push esi
push 0x516006
push eax
push eax
call fcn.00577219
mov edx, eax
add esp, 0x18
mov dword [edi + esi*4 + 0x54], edx
xor eax, eax
test edx, edx
setne al
jmp 0x50df4e
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x50e435
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x79c], ebx
je 0x50e45a
mov dword [edi + 0x75c], 5
xor eax, eax
jmp 0x50e538
push esi
push str.mutex_qqbrowser_uninstall
lea ecx, [ebp - 0x20]
call fcn.0040921d
lea eax, [ebp - 0x20]
push eax
call fcn.0050e53c
pop ecx
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00403f80
test esi, esi
je 0x50e48f
mov dword [edi + 0x75c], 6
jmp 0x50e530
call fcn.005b2b90
test eax, eax
jne 0x50e4a7
mov dword [edi + 0x75c], 2
jmp 0x50e530
lea ecx, [edi + 0xd4]
call fcn.0050589d
test al, al
jne 0x50e4cc
call fcn.005b7640
cmp eax, 5
jg 0x50e4cc
mov dword [edi + 0x75c], 0xb
jmp 0x50e530
push ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 8], ebx
push 4
push eax
mov dword [ebp - 4], ebx
call fcn.005ad3a0
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0050ff44
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x50e4f3
mov eax, dword [eax]
lea ecx, [ebp - 8]
push ecx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00403f80
lea ecx, [ebp - 0x38]
call fcn.00403f80
test esi, esi
je 0x50e534
cmp dword [ebp - 4], ebx
ja 0x50e534
jb 0x50e526
cmp dword [ebp - 8], 0x12c00000
jae 0x50e534
mov dword [edi + 0x75c], 4
xor eax, eax
jmp 0x50e537
xor eax, eax
inc eax
pop esi
pop edi
pop ebx
leave
ret
Function at 0x50e570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xf0]
push str.chrome.dll
call fcn.0040921d
push str.chrome_elf.dll
lea ecx, [ebp - 0xd8]
call fcn.0040921d
push str.F1Assistant.dll
lea ecx, [ebp - 0xc0]
call fcn.0040921d
push str.F1Frame.dll
lea ecx, [ebp - 0xa8]
call fcn.0040921d
push str.FrameLoader.dll
lea ecx, [ebp - 0x90]
call fcn.0040921d
push str.QQBrowser.exe
lea ecx, [ebp - 0x78]
call fcn.0040921d
push dword [ebp + 8]
lea eax, [ebp - 0x60]
xor ebx, ebx
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0x10], ebx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.004cb53d
push 6
pop esi
push 0x18
lea edi, [ebp - 0x60]
pop eax
sub edi, eax
mov ecx, edi
call fcn.00403f80
push 0x18
pop eax
sub esi, 1
jne 0x50e606
mov eax, dword [ebp - 0xc]
xor edi, edi
mov esi, dword [ebp - 0x10]
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x50e6f9
push 1
sub esp, 0x18
xor eax, eax
mov ecx, esp
push esi
mov dword [ecx], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
call fcn.00408766
lea eax, [ebp - 0x48]
push eax
call fcn.00507881
mov ecx, eax
call fcn.005078b1
push eax
lea eax, [ebp - 0x30]
push 1
push eax
call fcn.005ad360
add esp, 0x10
lea ecx, [ebp - 0x48]
call fcn.00403f80
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x50e6df
bts ebx, edi
cmp byte [ebp + 8], al
je 0x50e6df
push 0x5f9b84
lea ecx, [ebp - 0x48]
call fcn.0040921d
push 0x5f9b84
lea ecx, [ebp - 0x60]
call fcn.0040921d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x14]
push 0
push eax
push 0xe7
push 0x7d6
call fcn.0050eebb
lea ecx, [ebp - 0x60]
call fcn.00403f80
lea ecx, [ebp - 0x48]
call fcn.00403f80
lea ecx, [ebp - 0x30]
call fcn.00403f80
push 0x18
pop ecx
inc edi
add esi, ecx
cmp edi, dword [ebp - 0x18]
jl 0x50e632
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x50e748
mov edi, esi
jmp 0x50e70d
mov ecx, edi
call fcn.00403f80
push 0x18
pop ecx
add edi, ecx
cmp edi, dword [ebp - 0xc]
jne 0x50e701
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 4], esi
cdq
idiv ecx
imul eax, eax, 0x18
mov dword [ebp + 8], eax
cmp eax, 0x1000
jb 0x50e73f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00403fef
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 4]
pop ecx
pop ecx
push eax
push esi
call fcn.00541bf5
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x50ed0b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push 2
push eax
call fcn.005ac890
mov ecx, eax
call fcn.005ac030
push 7
pop edi
push ebx
mov byte [ebp - 8], bl
lea ecx, [ebp - 0x20]
push dword [ebp - 8]
mov dword [ebp - 0x20], ebx
push 0x105
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
call fcn.004f763d
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push 0x104
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x50ee29
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
push esi
cmovae eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x38]
push eax
call fcn.0040921d
mov esi, str.icacls.exe
push esi
call fcn.00553a47
pop ecx
push eax
push esi
lea ecx, [ebp - 0x38]
call fcn.00409b94
push 0x5ff8fc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push 0x60085c
push eax
call fcn.0044a28b
add esp, 0xc
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0044a32b
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.00403f80
push str.__inheritance:d__Q
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0044a2d9
push eax
lea eax, [ebp - 0x38]
push 0x1388
push eax
call fcn.005b3f90
add esp, 0x18
lea ecx, [ebp - 0x80]
call fcn.00403f80
push str.__remove:g__Authenticated_Users___Q
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0044a2d9
push eax
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.005b3f90
add esp, 0x18
lea ecx, [ebp - 0x80]
call fcn.00403f80
lea ecx, [ebp - 0x50]
call fcn.00403f80
lea ecx, [ebp - 0x38]
call fcn.00403f80
pop esi
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x50ee66
mov ecx, dword [ebp - 0x20]
lea eax, [eax*2 + 2]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp eax, 0x1000
jb 0x50ee5d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403fef
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, dword [ebp - 8]
push eax
push ecx
call fcn.00541bf5
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0xc], edi
mov word [ebp - 0x20], ax
call fcn.00403f80
pop edi
pop ebx
leave
ret

Function at 0x50ee7e
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x50eeb9
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x50eeb9
push 0
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x465
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
ret
Function at 0x5100b1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
cmp dword [ebp + 0x1c], ebx
je 0x51012c
push 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.005ad360
mov esi, eax
add esp, 0x10
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x5100ec
mov ecx, eax
call fcn.00403f80
push esi
lea ecx, [ebp + 0xc]
call fcn.00444e92
lea ecx, [ebp - 0x18]
call fcn.00403f80
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x51012c
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00444e92
lea ecx, [ebp + 0xc]
call fcn.00403f80
mov eax, esi
jmp 0x510193
mov eax, dword [ebp + 0x24]
cmp dword [eax + 0x10], ebx
je 0x51017b
push 1
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.005ad360
mov esi, eax
add esp, 0x10
lea eax, [ebp + 0xc]
cmp eax, esi
je 0x51015d
mov ecx, eax
call fcn.00403f80
push esi
lea ecx, [ebp + 0xc]
call fcn.00444e92
lea ecx, [ebp - 0x18]
call fcn.00403f80
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51010a
mov ecx, dword [ebp + 8]
push 0x5f9b84
call fcn.0040921d
lea ecx, [ebp + 0xc]
call fcn.00403f80
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret