joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7b00
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
mov esi, ecx
push ebx
push eax
lea edi, [esi + 0x88]
push 1
mov ecx, edi
call fcn.00600b1c
mov ebp, eax
mov eax, dword [esi + 0x13c]
test eax, eax
je 0x4a7b5f
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x50]
push edx
push 0
push 0
push ebx
push eax
mov dword [esp + 0x60], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a7b5f
cmp dword [esp + 0x4c], 2
je 0x4a7b87
mov ecx, dword [esi + 0xa8]
lea eax, [esp + 0x10]
push eax
push ebp
push 0x102b
push ecx
mov dword [esp + 0x30], 0xf000
mov dword [esp + 0x2c], 0x2000
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ecx, edi
call fcn.00600b5f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x4a7ea0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x64f070
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 0x110]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
cmp edi, dword [esi + 0x13c]
push 0
sete al
push 0
push pe_nt_image_headers32
push ecx
mov dword [esp + 0x2c], eax
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x18]
push edx
push 4
neg eax
push 0
sbb eax, eax
push str.PanelView
add eax, 2
push edi
mov dword [esp + 0x2c], eax
call ebx
mov eax, dword [esi + 0x100]
push 0
push 0
push pe_nt_image_headers32
push eax
call ebp
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
neg eax
push 0
sbb eax, eax
push str.DonlCaptWP
add eax, 2
push edi
mov dword [esp + 0x2c], eax
call ebx
mov edx, dword [esi + 0xa8]
push 0
push 0xffffffffffffffff
push 0x100c
push edx
call ebp
mov edi, eax
test edi, edi
jl 0x4a8068
mov eax, dword [esi + 0xa8]
push 0xf000
push edi
push 0x102c
push eax
call ebp
shr eax, 0xc
dec eax
neg eax
push 0
sbb eax, eax
push edi
lea ecx, [esp + 0x20]
add eax, 2
push ecx
lea ecx, [esi + 0x88]
mov dword [esp + 0x20], eax
call fcn.0060101e
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x18]
mov eax, ecx
lea ebx, [eax + 1]
jmp 0x4a7fb0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a7fb0
sub eax, ebx
je 0x4a8025
mov eax, dword [esp + 0x38]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0x18]
push edx
push 4
push 0
push ecx
push eax
call ebx
cmp dword [esp + 0x1c], 0
je 0x4a8025
cmp dword [esi + 0x140], 0
je 0x4a8025
push edi
lea ecx, [esi + 0x88]
call fcn.00600683
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a8013
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0x140]
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push edx
push eax
call ebx
jmp 0x4a8025
mov ecx, dword [esp + 0x18]
mov edx, dword [esi + 0x140]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a804d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0xa8]
push 0
push edi
push 0x100c
push ecx
call ebp
mov edi, eax
test edi, edi
jge 0x4a7f64
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4a8083
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x13c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4a80c3
push eax
call fcn.004a7ea0
mov eax, dword [esi + 0x13c]
push eax
call edi
mov ecx, dword [esi + 0x140]
push ecx
call edi
mov dword [esi + 0x13c], 0
mov dword [esi + 0x140], 0
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareDownloadManagerIDMBIFirefoxDwnlPanel
push 0x80000001
call ebp
test eax, eax
jne 0x4a8101
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.004a7ea0
mov ecx, dword [esp + 0xc]
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareDownloadManagerIDMBIIEXPLOREDwnlPanel
push 0x80000001
call ebp
pop ebp
test eax, eax
jne 0x4a8139
mov eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.004a7ea0
mov ecx, dword [esp + 8]
push ecx
call edi
cmp byte [esi + 0x144], 0
je 0x4a817f
mov edx, dword [esi + 0xe0]
push 0
push 0
push pe_nt_image_headers32
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x75dbe4]
neg eax
sbb eax, eax
neg eax
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.CatchSecureRTMP
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, esi
call fcn.006054c0
pop edi
pop esi
add esp, 8
ret
Function at 0x4a9d40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x94
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
push esi
push edi
xor edi, edi
xor eax, eax
push 0x40
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], edi
call fcn.00620920
mov ecx, dword [str.S_1_16_8192]
mov eax, dword [0x6896ec]
mov edx, dword [0x6896e8]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x6896f0]
mov dword [esp + 0x8c], eax
mov eax, dword [0x6896f8]
add esp, 0xc
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], edx
mov edx, dword [0x6896f4]
mov dword [esp + 0x8c], eax
xor eax, eax
push ecx
push 0x8b
xor ebp, ebp
mov dword [esp + 0x90], edx
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, edi
je 0x4a9ecc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push 1
push 2
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, edi
je 0x4a9ecc
push str.Advapi32.dll
call fcn.004476d0
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x4a9ecc
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4a9ecc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push edx
call eax
mov esi, eax
cmp esi, edi
je 0x4a9ecc
mov eax, dword [esp + 0x14]
push eax
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0x10]
add eax, 8
push eax
lea eax, [esp + 0x20]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, edi
je 0x4a9ecc
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x4a9edd
push eax
call ebx
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4a9ee8
push eax
call ebx
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4a9efe
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4a9f09
push eax
call ebx
cmp ebp, edi
je 0x4a9f14
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0xa0]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0062023e
add esp, 0x94
ret
Function at 0x4aaa20
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x64f3e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
cmp dword [0x75dbac], 0
je 0x4aab6b
cmp dword [0x75e5b8], 0
jne 0x4aaa7f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
cmp dword [0x75e5ac], 0
jne 0x4aaa9c
call fcn.004a9c80
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4aaac8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
push esi
call fcn.004aa640
mov edi, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x4aab28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4aab10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4aab28
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
cmp dword [esp + 0x30], 0
jne 0x4aab4c
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0
push esi
push edi
call fcn.004aa140
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ebp, eax
test ebp, ebp
jne 0x4aac3d
cmp dword [0x752d28], eax
jne 0x4aac3d
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00402a80
mov dword [esp + 0x2c], ebp
push ebp
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00402a80
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
push 0x3f
push eax
call fcn.00621820
add esp, 0x20
test eax, eax
jne 0x4aac1e
mov ecx, dword [esp + 0x10]
push 0x3f
push ecx
call fcn.00621820
add esp, 8
test eax, eax
jne 0x4aac1e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00402580
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402580
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00402580
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402580
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x4aac60
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x645050
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
cmp dword [0x75dbac], 0
je 0x4aad97
cmp dword [0x75e5b8], 0
jne 0x4aacc6
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [0x75e5ac], 0
jne 0x4aace3
call fcn.004a9c80
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
jne 0x4aac9d
mov esi, dword [esp + 0x30]
push esi
call fcn.004aa640
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x4aad53
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4aad3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4aad53
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
cmp dword [esp + 0x38], 0
jne 0x4aad78
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push edi
push esi
push ebx
call fcn.004aa270
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
test ebp, ebp
jne 0x4aae70
cmp dword [0x752d28], eax
jne 0x4aae70
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402a80
mov dword [esp + 0x30], ebp
push ebp
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00402a80
mov byte [esp + 0x3c], 1
mov edx, dword [esp + 0x30]
push 0x3f
push edx
call fcn.00621820
add esp, 0x20
test eax, eax
jne 0x4aae51
mov eax, dword [esp + 0x14]
push 0x3f
push eax
call fcn.00621820
add esp, 8
test eax, eax
jne 0x4aae51
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00402580
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402580
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.00402580
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402580
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4aae90
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x642b98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x75dbac], 0
je 0x4aafc0
cmp dword [0x75e5b8], 0
jne 0x4aaee6
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x75e5ac], 0
jne 0x4aaf03
call fcn.004a9c80
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4aaf29
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004aa640
add esp, 4
test eax, eax
jne 0x4aaf82
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4aaf6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4aaf82
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x4aafa5
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004aa3a0
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x4ab01a
cmp dword [0x752d28], eax
jne 0x4ab01a
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a80
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00621820
add esp, 0x14
test eax, eax
jne 0x4ab009
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402580
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4ab030
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x642b98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x75dbac], 0
je 0x4ab18d
cmp dword [0x75e5b8], 0
jne 0x4ab090
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x75e5ac], 0
jne 0x4ab0ad
call fcn.004a9c80
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4ab0bd
mov edx, dword [esp + 0x20]
push edx
jmp 0x4ab06e
mov esi, dword [esp + 0x20]
push esi
call fcn.004aa640
add esp, 4
test eax, eax
jne 0x4ab117
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ab100
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab14f
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [0x75e5bc]
test eax, eax
jne 0x4ab125
mov eax, 0x75e5c0
push eax
push esi
call fcn.0062574a
add esp, 8
test eax, eax
je 0x4ab100
mov eax, dword [0x75e5c8]
test eax, eax
jne 0x4ab141
mov eax, 0x75e5cc
push eax
push esi
call fcn.0062574a
add esp, 8
test eax, eax
je 0x4ab100
cmp dword [esp + 0x24], 0
jne 0x4ab172
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004aa480
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x4ab1f7
cmp dword [0x752d28], edx
jne 0x4ab1f7
push edx
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00402a80
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
push 0x3f
push ecx
call fcn.00621820
add esp, 0x14
test eax, eax
jne 0x4ab1e6
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov esi, ecx
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402580
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4ab210
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x642b98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x75dbac], 0
je 0x4ab345
cmp dword [0x75e5b8], 0
jne 0x4ab268
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [0x75e5ac], 0
jne 0x4ab285
call fcn.004a9c80
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4ab2ad
mov ecx, dword [esp + 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov esi, dword [esp + 0x20]
push esi
call fcn.004aa640
add esp, 4
test eax, eax
jne 0x4ab307
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4ab2f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab307
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x4ab32a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push esi
call fcn.004aa560
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 0x20]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4ab3a2
cmp dword [0x752d28], eax
jne 0x4ab3a2
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a80
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00621820
add esp, 0x14
test eax, eax
jne 0x4ab391
mov ecx, dword [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00402580
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4ac260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f510
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4ac2a4
push eax
call fcn.005f4517
add esp, 4
mov esi, dword [ebp + 8]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ac2b0
sub eax, edx
inc eax
push eax
call fcn.005f4522
add esp, 4
mov dword [edi + 4], eax
test eax, eax
je 0x4ac365
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4ac2d2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ac2e1
sub eax, edx
mov ecx, dword [edi + 8]
inc eax
push eax
push esi
push 1
push 0
push ecx
mov eax, dword [0x75dbe4]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call esi
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x67997c
push 0
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4ac35e
lea edx, [ebp + 8]
push edx
call fcn.006239e1
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
push 4
lea ecx, [ebp - 0x18]
push ecx
push 4
push 0
push 0x67997c
mov edx, dword [ebp - 0x14]
push edx
call esi
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4