joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3520
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651e39
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x280], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
cmp dword [esi + 8], ebx
je 0x4c3578
mov eax, dword [esi + 8]
jmp 0x4c357b
lea eax, [esi + 0xc]
push ebx
push eax
push str._s.gsd
lea ecx, [ebp - 0x2c]
call fcn.004021a0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4c3594
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x27c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x284], eax
cmp eax, 0xffffffff
jne 0x4c35d5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00620b8d
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 2
cmp dword [esi + 8], ebx
je 0x4c35ef
mov eax, dword [esi + 8]
jmp 0x4c35f2
lea eax, [esi + 0xc]
push ebx
lea ecx, [ebp - 0x250]
push ecx
push eax
push 0x678de0
lea ecx, [ebp - 0x20]
call fcn.00402310
push 0x58
call fcn.005f4e18
add esp, 4
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4c3629
mov ecx, eax
call fcn.005272a0
jmp 0x4c362b
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
mov dword [ebp - 0x28c], edi
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
jne 0x4c3641
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00527380
xor bl, bl
xor esi, esi
mov dword [ebp - 0x288], esi
cmp esi, dword [0x75dc70]
jge 0x4c3670
push esi
mov ecx, 0x75dc68
call fcn.004ce870
mov edx, dword [eax]
cmp edx, dword [edi + 0x40]
je 0x4c3674
inc esi
jmp 0x4c364d
test bl, bl
je 0x4c36a5
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4c367e
lea eax, [ebp - 0x1c]
push 0
push eax
push 0x678ea8
lea ecx, [edi + 0x44]
call fcn.004021a0
lea eax, [ebp - 0x28c]
push eax
mov ecx, dword [ebp - 0x280]
add ecx, 0x14
call fcn.004c3120
jmp 0x4c36b3
test edi, edi
je 0x4c36b3
mov edx, dword [edi]
push 1
mov ecx, edi
mov eax, dword [edx]
call eax
lea ecx, [ebp - 0x27c]
push ecx
mov esi, dword [ebp - 0x284]
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c36f6
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
jmp 0x4c35b9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
mov esi, dword [ebp - 0x280]
xor ebx, ebx
jmp 0x4c35d5
Function at 0x4c3750
Capabilities:
Delete file

Disassembly:
mov edx, dword [ecx + 0x1c]
xor eax, eax
test edx, edx
jle 0x4c377d
push edi
mov edi, dword [esp + 8]
add ecx, 0x14
push esi
test eax, eax
jl 0x4c37b7
cmp eax, dword [ecx + 8]
jge 0x4c37b7
mov esi, dword [ecx + 4]
mov esi, dword [esi + eax*4]
cmp dword [esi + 0x40], edi
je 0x4c3780
inc eax
cmp eax, edx
jl 0x4c3762
pop esi
pop edi
ret 4
cmp eax, dword [ecx + 8]
jge 0x4c37b7
mov edx, dword [ecx + 4]
push 1
push eax
mov dword [edx + eax*4], 0
call fcn.00518780
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4c37a1
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
pop esi
pop edi
ret 4
call fcn.005f4f65
int3

Function at 0x4c37c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x651e78
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, ecx
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov word [esp + 0xc], cx
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 8]
mov esi, ecx
test ecx, ecx
jne 0x4c3818
lea esi, [eax + 0xc]
mov eax, dword [esp + 0x68]
push 0
push 0xa
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.006238f2
add esp, 0xc
push eax
push esi
push str._sproject_s.gsd
lea ecx, [esp + 0x18]
call fcn.00402310
mov eax, dword [esp + 8]
test eax, eax
jne 0x4c384a
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 8]
call fcn.00401210
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x5c
ret 4
Function at 0x4c48f0
Capabilities:
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x65aa48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x14]
xor edi, edi
call fcn.004024f0
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push str.._s:
push ecx
call fcn.00402f60
mov edx, dword [esp + 0x20]
add esp, 0xc
push edi
push edi
push 3
push edi
push 3
push edi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c49aa
push edi
lea eax, [esp + 0x38]
push eax
push 0xc
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push 0x2d1080
push esi
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, edi
je 0x4c49aa
mov edx, dword [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.004c46f0
test eax, eax
jne 0x4c49a5
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004c4280
test eax, eax
je 0x4c49aa
mov edi, 1
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402560
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x4c49e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x19c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push ebp
push esi
push 0x94
xor ebx, ebx
lea eax, [esp + 0x10]
push ebx
push eax
mov ebp, ecx
call fcn.00621270
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c4a81
cmp dword [esp + 0x1c], 2
jne 0x4c4a81
push 0x67b490
call fcn.00447cb0
mov esi, eax
add esp, 4
test esi, esi
je 0x4c4a81
push edi
push str.SHGetFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4c4a75
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0xa4]
push edx
push ebx
push ebx
push 5
push ebx
call edi
test eax, eax
jne 0x4c4a6f
lea ebx, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
test ebx, ebx
jne 0x4c4ab2
push 0x104
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4c4ab2
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00620b8d
add esp, 0x19c
ret
lea ecx, [esp + 0xa0]
push 0x67d050
push ecx
call fcn.00622230
add esp, 8
test eax, eax
je 0x4c4a98
lea edx, [esp + 0xa0]
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.004c48f0
mov ecx, dword [esp + 0x1a4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00620b8d
add esp, 0x19c
ret
Function at 0x4c4bd0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x2f0]
sub esp, 0x2f0
push 0xffffffffffffffff
push 0x652110
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x2ec], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
push 0x94
push ebx
lea eax, [ebp]
push eax
call fcn.00621270
add esp, 0xc
mov dword [ebp], 0x94
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c4c9b
cmp dword [ebp + 0x10], 2
jne 0x4c4c9b
push 0x67b490
call fcn.00447cb0
add esp, 4
mov edi, eax
cmp edi, ebx
je 0x4c4c9b
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4c4c90
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp + 0x1e8]
push edx
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x4c4c8a
mov ebx, 1
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4c4cbc
push 0x104
lea eax, [ebp + 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4c4d38
mov dword [ebp - 0x14], 1
push 0x67d050
lea ecx, [ebp + 0x1e8]
push ecx
call fcn.00622230
add esp, 8
test eax, eax
je 0x4c4d38
add eax, 2
mov byte [eax], 0
push 0x50
lea edx, [ebp + 0x198]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x104
lea eax, [ebp + 0x94]
push eax
lea ecx, [ebp + 0x1e8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4c4d38
mov edx, dword [ebp - 0x18]
push edx
push 0x684f78
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call fcn.00402f60
add esp, 0xc
mov eax, 1
jmp 0x4c4d3a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2ec]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x2f0
mov esp, ebp
pop ebp
ret
Function at 0x4c4d60
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x65214b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, dword [esp + 0x238]
lea eax, [esp + 0x10]
push eax
mov dword [ecx + 0x18], esi
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c4e0a
lea ecx, [esp + 0x14]
call fcn.004c1c00
mov dword [esp + 0x230], 0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::SetVisiblity__._r_n
lea ecx, [esp + 0x1c]
call fcn.004c1d70
mov dword [esp + 0x230], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004c1d60
jmp 0x4c4e34
mov eax, dword [esp + 8]
push 4
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.Visiblity
push eax
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x22c
ret 4

Function at 0x4c4e60
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x65218b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xc]
push ecx
xor ebx, ebx
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c4efd
lea ecx, [esp + 0x18]
call fcn.004c1c00
mov dword [esp + 0x234], ebx
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::CheckQAU__._r_n
lea ecx, [esp + 0x20]
call fcn.004c1d70
mov dword [esp + 0x234], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004c1d60
xor al, al
jmp 0x4c4f3b
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push str.QAUWA
push ecx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c4f2e
cmp dword [esp + 0xc], 0xa
jne 0x4c4f2e
mov bl, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00620b8d
add esp, 0x230
ret
Function at 0x4c4f60
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x6521cb
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
mov byte [ecx + 0x14], 0
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c5003
lea ecx, [esp + 0xc]
call fcn.004c1c00
mov dword [esp + 0x228], 0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteQAU__._r_n
lea ecx, [esp + 0x14]
call fcn.004c1d70
mov dword [esp + 0x228], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004c1d60
jmp 0x4c501e
mov edx, dword [esp + 4]
push str.QAUWA
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00620b8d
add esp, 0x228
ret
Function at 0x4c6220
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x65231b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
push eax
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4c62c8
lea ecx, [esp + 0x20]
call fcn.004c1c00
mov dword [esp + 0x23c], 0
push 1
push str.Cannot_open__create__registry_key_during_CIDMFoldersTree::DeleteItem__._r_n
lea ecx, [esp + 0x28]
call fcn.004c1d70
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004c1d60
jmp 0x4c63b0
mov ecx, dword [ebp + 8]
xor edi, edi
test ecx, ecx
jle 0x4c63b0
mov edx, dword [esp + 0x244]
xor eax, eax
mov edi, edi
test eax, eax
jl 0x4c62fd
cmp edi, ecx
jge 0x4c62fd
mov esi, dword [ebp + 4]
cmp dword [eax + esi], edx
je 0x4c6302
inc edi
add eax, 0x2c
cmp edi, ecx
jl 0x4c62e0
jmp 0x4c63b0
call fcn.005f4f65
cmp edi, ecx
jge 0x4c62fd
mov edx, dword [ebp + 4]
mov esi, edi
imul esi, esi, 0x2c
lea ebx, [edx + esi]
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
test eax, eax
jne 0x4c631e
lea eax, [ecx + 4]
lea edx, [eax + 2]
mov dword [esp + 0x14], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4c6325
sub eax, dword [esp + 0x14]
sar eax, 1
jne 0x4c6348
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4c6342
lea eax, [ebx + 8]
push eax
call fcn.004017e0
cmp edi, dword [ebp + 8]
jge 0x4c62fd
mov eax, dword [ebp + 4]
mov ecx, dword [eax + esi + 0x10]
lea eax, [eax + esi + 0x10]
test ecx, ecx
jne 0x4c635f
lea ecx, [eax + 4]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 1
push edi
mov ecx, ebp
call fcn.004c6050
cmp dword [ebp + 8], 0
jne 0x4c639e
mov eax, dword [esp + 0x18]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push 0x68bddc
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebp
call fcn.004c5310
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x22c
ret 4
Function at 0x4c8b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0xc8]
push edi
mov edi, dword [eax + 8]
push ecx
mov ecx, esi
call fcn.00601037
xor ecx, ecx
test edi, edi
jle 0x4c8b87
mov esi, dword [esi + 0xc8]
xor edx, edx
test edx, edx
jl 0x4c8bca
cmp ecx, dword [esi + 8]
jge 0x4c8bca
mov ebx, dword [esi + 4]
mov ebx, dword [ebx + edx]
cmp dword [ebx + 0x4f8], eax
je 0x4c8b8f
inc ecx
add edx, 0x10
cmp ecx, edi
jl 0x4c8b68
pop edi
pop esi
mov al, 1
pop ebx
ret 4
cmp ecx, dword [esi + 8]
jge 0x4c8bca
mov edx, dword [esi + 4]
shl ecx, 4
mov ecx, dword [ecx + edx]
cmp dword [ecx + 0x954], 3
jne 0x4c8b87
cmp dword [ecx + 0x5c], 0
je 0x4c8b87
mov eax, dword [ecx + 0x54]
test eax, eax
jne 0x4c8bb6
lea eax, [ecx + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c8b87
pop edi
pop esi
xor al, al
pop ebx
ret 4
call fcn.005f4f65
int3
Function at 0x4cc6a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push edi
lea eax, [esp + 0xc]
push eax
mov edi, ecx
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerProxyPac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4cc731
mov ecx, dword [edi + 0xc]
mov eax, ecx
push esi
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4cc6e0
mov edx, dword [esp + 8]
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push 0x68cb14
push edx
call esi
mov edx, dword [esp + 8]
xor eax, eax
cmp dword [edi + 0x10], eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
setne al
push 0
push str.bUse
push edx
mov dword [esp + 0x24], eax
call esi
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0xc
ret

Function at 0x4cc740
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x652d58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
cmp dword [0x75e648], 0
mov edi, ecx
je 0x4cc84f
mov eax, dword [edi + 8]
mov ecx, dword [0x75e640]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4cc7a8
test dl, dl
je 0x4cc7a4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4cc7a8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4cc788
xor eax, eax
jmp 0x4cc7ad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cc84f
mov edx, dword [0x75e664]
mov eax, edx
test edx, edx
jne 0x4cc7c6
mov eax, 0x75e668
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cc7d0
sub eax, esi
sar eax, 1
je 0x4cc84f
mov eax, edx
test edx, edx
jne 0x4cc7ec
mov eax, 0x75e668
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cc84f
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.004070a0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x10]
mov ecx, eax
test eax, eax
jne 0x4cc81b
lea ecx, [esp + 0x14]
mov eax, dword [0x75e664]
test eax, eax
jne 0x4cc829
mov eax, 0x75e668
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4cc83e
mov dword [edi + 0x1c], 1
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401210
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00620b8d
add esp, 0x20
ret
Function at 0x4cc9c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x652b43
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004cc870
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esi], vtable.CLatestPersonalProxyScript.0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
mov word [esi + 0x30], ax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4cca20
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x652b73
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CLatestPersonalProxyScript.0
mov dword [esp + 0x18], 1
cmp dword [esi + 0x10], 0
je 0x4cca92
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4cca68
lea eax, [esi + 0x30]
lea edx, [eax + 2]
jmp 0x4cca70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cca70
sub eax, edx
sar eax, 1
je 0x4cca92
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4cca8b
lea eax, [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x18], 0
lea ecx, [esi + 0x2c]
call fcn.00401210
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
call fcn.004cc920
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4cd020
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x652c51
mov eax, dword fs:[0]
push eax
mov eax, 0x2830
call fcn.006222c0
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x282c], eax
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x2840]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov edi, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov word [esp + 0x28], ax
mov dword [esp + 0x2848], ebx
mov eax, dword [0x75dc38]
cmp eax, ebx
jne 0x4cd086
mov eax, 0x75dc3c
push ebx
push eax
push str._sproxy.pac
lea ecx, [esp + 0x30]
call fcn.004021a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4cd0a2
lea eax, [esp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402a60
add esp, 0xc
mov byte [esp + 0x2848], 1
mov eax, dword [esp + 0x10]
push ebx
xor edx, edx
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov word [esp + 0x3c], dx
call fcn.00401970
mov byte [esp + 0x2848], 2
mov eax, dword [esp + 0x24]
mov ecx, eax
cmp eax, ebx
jne 0x4cd0ed
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4cd100
lea eax, [esp + 0x34]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cd126
cmp dx, bx
je 0x4cd122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cd126
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4cd100
xor eax, eax
jmp 0x4cd12b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4cd13f
mov ecx, dword [esp + 0x10]
push ecx
push 0x678ea8
lea edx, [edi + 4]
push edx
jmp 0x4cd14e
mov eax, dword [0x75dc44]
push eax
push str._sproxy.pac
lea ecx, [edi + 4]
push ecx
call fcn.00402f60
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push 0x67997c
push ebx
push str.SoftwareDownloadManagerProxyPac
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4cd1fa
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x40]
push edx
push ebx
push ebx
push 0x68cb14
push eax
mov dword [esp + 0x2c], 0x2800
call esi
test eax, eax
jne 0x4cd1c1
lea ecx, [esp + 0x3c]
push ecx
lea edx, [edi + 0xc]
push 0x678ea8
push edx
call fcn.00402f60
add esp, 0xc
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
push str.bUse
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
jne 0x4cd1ef
cmp dword [esp + 0x1c], ebx
setne al
mov dword [edi + 0x10], eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2848], 1
lea ecx, [esp + 0x30]
call fcn.00401210
mov byte [esp + 0x2848], bl
lea ecx, [esp + 0x10]
call fcn.00402560
mov dword [esp + 0x2848], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00401210
mov ecx, dword [esp + 0x2840]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x282c]
xor ecx, esp
call fcn.00620b8d
add esp, 0x283c
ret