joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa290
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.00620850
mov ecx, dword [str.S_1_16_8192]
mov eax, dword [0x6896dc]
mov edx, dword [0x6896d8]
mov dword [esp + 0x84], ecx
mov ecx, dword [0x6896e0]
mov dword [esp + 0x8c], eax
mov eax, dword [0x6896e8]
add esp, 0xc
mov dword [esp + 0x84], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], edx
mov edx, dword [0x6896e4]
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 0x4aa41c
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 0x4aa41c
push str.Advapi32.dll
call fcn.00447f30
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x4aa41c
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4aa41c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x7c]
push edx
call eax
mov esi, eax
cmp esi, edi
je 0x4aa41c
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 0x4aa41c
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 0x4aa42d
push eax
call ebx
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x4aa438
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 0x4aa44e
push eax
call ebx
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4aa459
push eax
call ebx
cmp ebp, edi
je 0x4aa464
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.0062016f
add esp, 0x94
ret
Function at 0x4aaf70
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x64f4e0
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 0x4ab0bb
cmp dword [0x75e5b8], 0
jne 0x4aafcf
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 0x4aafec
call fcn.004aa1d0
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4ab018
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.004aab90
mov edi, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x4ab078
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4ab060
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab078
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 0x4ab09c
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.004aa690
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 0x4ab18d
cmp dword [0x752d28], eax
jne 0x4ab18d
push eax
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.00402a70
mov dword [esp + 0x2c], ebp
push ebp
lea edx, [esp + 0x20]
push esi
push edx
call fcn.00402a70
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x2c]
push 0x3f
push eax
call fcn.00621750
add esp, 0x20
test eax, eax
jne 0x4ab16e
mov ecx, dword [esp + 0x10]
push 0x3f
push ecx
call fcn.00621750
add esp, 8
test eax, eax
jne 0x4ab16e
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.00402570
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
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.00402570
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00402570
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 0x4ab1b0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x645080
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 0x4ab2e7
cmp dword [0x75e5b8], 0
jne 0x4ab216
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 0x4ab233
call fcn.004aa1d0
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
jne 0x4ab1ed
mov esi, dword [esp + 0x30]
push esi
call fcn.004aab90
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x4ab2a3
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4ab28a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab2a3
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 0x4ab2c8
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.004aa7c0
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 0x4ab3c0
cmp dword [0x752d28], eax
jne 0x4ab3c0
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402a70
mov dword [esp + 0x30], ebp
push ebp
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00402a70
mov byte [esp + 0x3c], 1
mov edx, dword [esp + 0x30]
push 0x3f
push edx
call fcn.00621750
add esp, 0x20
test eax, eax
jne 0x4ab3a1
mov eax, dword [esp + 0x14]
push 0x3f
push eax
call fcn.00621750
add esp, 8
test eax, eax
jne 0x4ab3a1
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.00402570
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
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.00402570
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
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 0x4ab3e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x642b58
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 0x4ab510
cmp dword [0x75e5b8], 0
jne 0x4ab436
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 0x4ab453
call fcn.004aa1d0
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4ab479
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.004aab90
add esp, 4
test eax, eax
jne 0x4ab4d2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4ab4bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab4d2
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 0x4ab4f5
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.004aa8f0
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 0x4ab56a
cmp dword [0x752d28], eax
jne 0x4ab56a
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a70
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00621750
add esp, 0x14
test eax, eax
jne 0x4ab559
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.00402570
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 0x4ab580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x642b58
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 0x4ab6dd
cmp dword [0x75e5b8], 0
jne 0x4ab5e0
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 0x4ab5fd
call fcn.004aa1d0
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4ab60d
mov edx, dword [esp + 0x20]
push edx
jmp 0x4ab5be
mov esi, dword [esp + 0x20]
push esi
call fcn.004aab90
add esp, 4
test eax, eax
jne 0x4ab667
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ab650
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab69f
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 0x4ab675
mov eax, 0x75e5c0
push eax
push esi
call fcn.0062567a
add esp, 8
test eax, eax
je 0x4ab650
mov eax, dword [0x75e5c8]
test eax, eax
jne 0x4ab691
mov eax, 0x75e5cc
push eax
push esi
call fcn.0062567a
add esp, 8
test eax, eax
je 0x4ab650
cmp dword [esp + 0x24], 0
jne 0x4ab6c2
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.004aa9d0
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 0x4ab747
cmp dword [0x752d28], edx
jne 0x4ab747
push edx
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00402a70
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
push 0x3f
push ecx
call fcn.00621750
add esp, 0x14
test eax, eax
jne 0x4ab736
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.00402570
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 0x4ab760
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x642b58
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 0x4ab895
cmp dword [0x75e5b8], 0
jne 0x4ab7b8
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 0x4ab7d5
call fcn.004aa1d0
mov dword [0x75e4a4], eax
mov dword [0x75e5ac], 1
cmp dword [0x75e4a4], 0
je 0x4ab7fd
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.004aab90
add esp, 4
test eax, eax
jne 0x4ab857
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4ab840
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4ab857
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 0x4ab87a
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.004aaab0
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 0x4ab8f2
cmp dword [0x752d28], eax
jne 0x4ab8f2
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a70
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00621750
add esp, 0x14
test eax, eax
jne 0x4ab8e1
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.00402570
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 0x4ac7d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f600
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 0x4ac814
push eax
call fcn.005f4432
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 0x4ac820
sub eax, edx
inc eax
push eax
call fcn.005f4427
add esp, 4
mov dword [edi + 4], eax
test eax, eax
je 0x4ac8d5
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4ac842
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4ac851
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 0x4ac8ce
lea edx, [ebp + 8]
push edx
call fcn.00623911
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
Function at 0x4acdf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64f6b8
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 ebx, ecx
mov dword [ebp - 4], 0
call fcn.0044b030
mov ecx, dword [0x75dbe4]
test ecx, ecx
je 0x4acfc2
lea esi, [ebx + 8]
mov dword [ebp - 0x14], esi
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push eax
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call edi
test eax, eax
jne 0x4acf62
mov eax, dword [ebx + 4]
test eax, eax
je 0x4ace6b
push eax
call fcn.005f4432
add esp, 4
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4acfc2
inc eax
push eax
call fcn.005f4427
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x4acfc2
mov esi, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
push 0
push esi
mov edx, dword [0x75dbe4]
push edx
call edi
test eax, eax
mov eax, dword [ebx + 4]
je 0x4acec3
push eax
call fcn.005f4432
add esp, 4
mov dword [ebx + 4], 0
jmp 0x4acfc2
push 0x679010
push eax
call fcn.00621810
add esp, 8
test eax, eax
jne 0x4acf03
mov eax, dword [ebx + 4]
push 0x678ff0
push eax
call fcn.00621810
add esp, 8
test eax, eax
jne 0x4acf03
mov eax, dword [ebx + 4]
push 0x679430
push eax
call fcn.00621810
add esp, 8
test eax, eax
je 0x4acfc2
mov eax, dword [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004030b0
mov byte [ebp - 4], 1
push 0x67997c
push 0x679010
lea ecx, [ebp - 0x14]
call fcn.00402c10
push 0x67997c
push 0x679430
lea ecx, [ebp - 0x14]
call fcn.00402c10
push 0x67997c
push 0x678ff0
lea ecx, [ebp - 0x14]
call fcn.00402c10
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.004ac7d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
jmp 0x4acfc2
push str.ExceptionServers
push esi
call fcn.00422230
add esp, 8
test al, al
je 0x4acfc2
push 0x84
call fcn.005f4427
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x4acfc2
mov ecx, 0x21
mov esi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [ebx + 4]
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4acfa0
sub eax, edx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx]
inc eax
push eax
push ebx
push 1
push 0
push ecx
mov eax, dword [0x75dbe4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
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
Function at 0x4b0290
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov al, byte [esi]
mov dword [esp + 0xc], ecx
mov cl, 0x22
xor ebp, ebp
push edi
cmp al, cl
je 0x4b02ad
cmp al, 0x27
jne 0x4b02be
mov ebx, dword [esp + 0x20]
inc esi
mov cl, al
mov ebp, 1
sub ebx, 2
jmp 0x4b02c2
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
movsx eax, cl
push edi
push eax
mov dword [esp + 0x1c], eax
call fcn.00625f97
mov eax, dword [esp + 0x30]
push edi
push eax
call fcn.00625e88
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push ebx
push esi
call fcn.004b0240
test eax, eax
je 0x4b0312
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edi
sub ecx, eax
push ecx
push 1
push eax
call fcn.00622cf5
add esp, 0x10
add esi, ebx
test ebp, ebp
je 0x4b0319
inc esi
mov edx, dword [esp + 0x14]
push edi
push edx
call fcn.00625f97
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10

Function at 0x4b08b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x64fb28
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 8
call fcn.005f43f8
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b0a18
cmp dword [0x752d28], 0
push 0
je 0x4b0911
mov eax, dword [esp + 0x2c]
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x4b0958
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00402a70
add esp, 0xc
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x28]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402570
cmp edi, 0xffffffff
je 0x4b0981
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b098f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b098f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.005f4432
add esp, 4
jmp 0x4b0a18
cmp dword [esp + 0x10], 0
ja 0x4b097a
test esi, esi
je 0x4b097a
push esi
call fcn.005f4427
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4b09bb
push ebx
call fcn.005f4432
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b0a18
push esi
push 0
push eax
call fcn.00620850
mov eax, dword [ebx]
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
push esi
push eax
push edi
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4b0a07
cmp dword [esp + 0x14], 0
jbe 0x4b0a07
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
mov ecx, dword [ebx]
push ecx
call fcn.005f4432
push ebx
call fcn.005f4432
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4