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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x651449
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 0x4c2e18
mov eax, dword [esi + 8]
jmp 0x4c2e1b
lea eax, [esi + 0xc]
push ebx
push eax
push str._s.gsd
lea ecx, [ebp - 0x2c]
call fcn.004021c0
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4c2e34
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 0x4c2e75
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.0062023e
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 0x4c2e8f
mov eax, dword [esi + 8]
jmp 0x4c2e92
lea eax, [esi + 0xc]
push ebx
lea ecx, [ebp - 0x250]
push ecx
push eax
push 0x678de0
lea ecx, [ebp - 0x20]
call fcn.00402330
push 0x58
call fcn.005f44e8
add esp, 4
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4c2ec9
mov ecx, eax
call fcn.00526f80
jmp 0x4c2ecb
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 0x4c2ee1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00527060
xor bl, bl
xor esi, esi
mov dword [ebp - 0x288], esi
cmp esi, dword [0x75dc70]
jge 0x4c2f10
push esi
mov ecx, 0x75dc68
call fcn.00430270
mov edx, dword [eax]
cmp edx, dword [edi + 0x40]
je 0x4c2f14
inc esi
jmp 0x4c2eed
test bl, bl
je 0x4c2f45
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4c2f1e
lea eax, [ebp - 0x1c]
push 0
push eax
push 0x678ea8
lea ecx, [edi + 0x44]
call fcn.004021c0
lea eax, [ebp - 0x28c]
push eax
mov ecx, dword [ebp - 0x280]
add ecx, 0x14
call fcn.004c29c0
jmp 0x4c2f53
test edi, edi
je 0x4c2f53
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 0x4c2f96
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 0x4c2e59
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00401210
mov esi, dword [ebp - 0x280]
xor ebx, ebx
jmp 0x4c2e75
Function at 0x4c2ff0
Capabilities:
Delete file

Disassembly:
mov edx, dword [ecx + 0x1c]
xor eax, eax
test edx, edx
jle 0x4c301d
push edi
mov edi, dword [esp + 8]
add ecx, 0x14
push esi
test eax, eax
jl 0x4c3057
cmp eax, dword [ecx + 8]
jge 0x4c3057
mov esi, dword [ecx + 4]
mov esi, dword [esi + eax*4]
cmp dword [esi + 0x40], edi
je 0x4c3020
inc eax
cmp eax, edx
jl 0x4c3002
pop esi
pop edi
ret 4
cmp eax, dword [ecx + 8]
jge 0x4c3057
mov edx, dword [ecx + 4]
push 1
push eax
mov dword [edx + eax*4], 0
call fcn.00518410
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x4c3041
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.005f4635
int3

Function at 0x4c3060
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x651488
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 0x4c30b8
lea esi, [eax + 0xc]
mov eax, dword [esp + 0x68]
push 0
push 0xa
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00622fa2
add esp, 0xc
push eax
push esi
push str._sproject_s.gsd
lea ecx, [esp + 0x18]
call fcn.00402330
mov eax, dword [esp + 8]
test eax, eax
jne 0x4c30ea
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.0062023e
add esp, 0x5c
ret 4
Function at 0x4c4190
Capabilities:
Get disk information via ioctl

Disassembly:
push 0xffffffffffffffff
push 0x65f028
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.00402510
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
push str.._s:
push ecx
call fcn.00402f80
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 0x4c424a
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 0x4c424a
mov edx, dword [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.004c3f90
test eax, eax
jne 0x4c4245
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004c3b20
test eax, eax
je 0x4c424a
mov edi, 1
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402580
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 0x4c4280
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.00620920
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 0x4c4321
cmp dword [esp + 0x1c], 2
jne 0x4c4321
push 0x67b490
call fcn.004476d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4c4321
push edi
push str.SHGetFolderPathA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4c4315
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 0x4c430f
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 0x4c4352
push 0x104
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x4c4352
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.0062023e
add esp, 0x19c
ret
lea ecx, [esp + 0xa0]
push 0x67d050
push ecx
call fcn.006218e0
add esp, 8
test eax, eax
je 0x4c4338
lea edx, [esp + 0xa0]
push edx
mov ecx, ebp
mov byte [eax], 0
call fcn.004c4190
mov ecx, dword [esp + 0x1a4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0062023e
add esp, 0x19c
ret
Function at 0x4c4470
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x2f0]
sub esp, 0x2f0
push 0xffffffffffffffff
push 0x6516c0
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.00620920
add esp, 0xc
mov dword [ebp], 0x94
lea ecx, [ebp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4c453b
cmp dword [ebp + 0x10], 2
jne 0x4c453b
push 0x67b490
call fcn.004476d0
add esp, 4
mov edi, eax
cmp edi, ebx
je 0x4c453b
push str.SHGetFolderPathA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4c4530
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 0x4c452a
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 0x4c455c
push 0x104
lea eax, [ebp + 0x1e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4c45d8
mov dword [ebp - 0x14], 1
push 0x67d050
lea ecx, [ebp + 0x1e8]
push ecx
call fcn.006218e0
add esp, 8
test eax, eax
je 0x4c45d8
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 0x4c45d8
mov edx, dword [ebp - 0x18]
push edx
push 0x684f40
mov eax, dword [ebp - 0x1c]
add eax, 4
push eax
call fcn.00402f80
add esp, 0xc
mov eax, 1
jmp 0x4c45da
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.0062023e
add ebp, 0x2f0
mov esp, ebp
pop ebp
ret
Function at 0x4c4600
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x6516fb
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 0x4c46aa
lea ecx, [esp + 0x14]
call fcn.004c14c0
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.004c1630
mov dword [esp + 0x230], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004c1620
jmp 0x4c46d4
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.0062023e
add esp, 0x22c
ret 4

Function at 0x4c4700
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x65173b
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 0x4c479d
lea ecx, [esp + 0x18]
call fcn.004c14c0
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.004c1630
mov dword [esp + 0x234], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.004c1620
xor al, al
jmp 0x4c47db
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 0x4c47ce
cmp dword [esp + 0xc], 0xa
jne 0x4c47ce
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.0062023e
add esp, 0x230
ret
Function at 0x4c4800
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x65177b
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 0x4c48a3
lea ecx, [esp + 0xc]
call fcn.004c14c0
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.004c1630
mov dword [esp + 0x228], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004c1620
jmp 0x4c48be
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.0062023e
add esp, 0x228
ret
Function at 0x4c83e0
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.00600683
xor ecx, ecx
test edi, edi
jle 0x4c8427
mov esi, dword [esi + 0xc8]
xor edx, edx
test edx, edx
jl 0x4c846a
cmp ecx, dword [esi + 8]
jge 0x4c846a
mov ebx, dword [esi + 4]
mov ebx, dword [ebx + edx]
cmp dword [ebx + 0x4f8], eax
je 0x4c842f
inc ecx
add edx, 0x10
cmp ecx, edi
jl 0x4c8408
pop edi
pop esi
mov al, 1
pop ebx
ret 4
cmp ecx, dword [esi + 8]
jge 0x4c846a
mov edx, dword [esi + 4]
shl ecx, 4
mov ecx, dword [ecx + edx]
cmp dword [ecx + 0x954], 3
jne 0x4c8427
cmp dword [ecx + 0x5c], 0
je 0x4c8427
mov eax, dword [ecx + 0x54]
test eax, eax
jne 0x4c8456
lea eax, [ecx + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c8427
pop edi
pop esi
xor al, al
pop ebx
ret 4
call fcn.005f4635
int3
Function at 0x4cbf00
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 0x4cbf91
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 0x4cbf40
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 0x68cabc
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 0x4cbfa0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x642db8
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 0x4cc0af
mov eax, dword [edi + 8]
mov ecx, dword [0x75e640]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4cc008
test dl, dl
je 0x4cc004
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4cc008
add eax, 2
add ecx, 2
test dl, dl
jne 0x4cbfe8
xor eax, eax
jmp 0x4cc00d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4cc0af
mov edx, dword [0x75e664]
mov eax, edx
test edx, edx
jne 0x4cc026
mov eax, 0x75e668
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cc030
sub eax, esi
sar eax, 1
je 0x4cc0af
mov eax, edx
test edx, edx
jne 0x4cc04c
mov eax, 0x75e668
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4cc0af
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x14]
call fcn.00406fb0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x10]
mov ecx, eax
test eax, eax
jne 0x4cc07b
lea ecx, [esp + 0x14]
mov eax, dword [0x75e664]
test eax, eax
jne 0x4cc089
mov eax, 0x75e668
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4cc09e
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.0062023e
add esp, 0x20
ret
Function at 0x4cc280
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x652083
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 0x4cc2f2
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4cc2c8
lea eax, [esi + 0x30]
lea edx, [eax + 2]
jmp 0x4cc2d0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4cc2d0
sub eax, edx
sar eax, 1
je 0x4cc2f2
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4cc2eb
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.004cc180
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4cc880
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x652161
mov eax, dword fs:[0]
push eax
mov eax, 0x2830
call fcn.00621970
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 0x4cc8e6
mov eax, 0x75dc3c
push ebx
push eax
push str._sproxy.pac
lea ecx, [esp + 0x30]
call fcn.004021c0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x4cc902
lea eax, [esp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00402a80
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.00401990
mov byte [esp + 0x2848], 2
mov eax, dword [esp + 0x24]
mov ecx, eax
cmp eax, ebx
jne 0x4cc94d
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4cc960
lea eax, [esp + 0x34]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4cc986
cmp dx, bx
je 0x4cc982
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4cc986
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x4cc960
xor eax, eax
jmp 0x4cc98b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4cc99f
mov ecx, dword [esp + 0x10]
push ecx
push 0x678ea8
lea edx, [edi + 4]
push edx
jmp 0x4cc9ae
mov eax, dword [0x75dc44]
push eax
push str._sproxy.pac
lea ecx, [edi + 4]
push ecx
call fcn.00402f80
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 0x4cca5a
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 0x68cabc
push eax
mov dword [esp + 0x2c], 0x2800
call esi
test eax, eax
jne 0x4cca21
lea ecx, [esp + 0x3c]
push ecx
lea edx, [edi + 0xc]
push 0x678ea8
push edx
call fcn.00402f80
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 0x4cca4f
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.00402580
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.0062023e
add esp, 0x283c
ret
Function at 0x4cd050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x652230
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.00402510
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
push str.lt_p_proxy_ld.pac
push ecx
call fcn.00402f80
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
xor edx, edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], dx
call fcn.00401990
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x10]
mov ecx, eax
cmp eax, ebx
jne 0x4cd0d9
lea ecx, [esp + 0x14]
mov eax, dword [0x75dc38]
cmp eax, ebx
jne 0x4cd0e7
mov eax, 0x75dc3c
push ebx
push ecx
push eax
push 0x678de0
lea ecx, [esi + 0x2c]
call fcn.00402330
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x10]
call fcn.00401210
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402580
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0062023e
add esp, 0x20
ret 4

Function at 0x4cd190
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x65e118
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call fcn.00402510
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push str.SoftwareDownloadManagerProxyPac_s
push ecx
call fcn.00402f80
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
test edx, edx
je 0x4cd26a
mov eax, esi
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cd230
sub eax, edi
inc eax
push eax
push esi
push 0
push 0
push 0x68cb9c
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push ebp
push str.EncPassword
push edx
call fcn.005ba340
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x30]
push ebp
push esi
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004ccbf0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402580
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 0xc