joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495f10
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61d338
push eax
mov eax, dword [0x6f6334]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x49602f
mov eax, dword [0x6f66f8]
test eax, eax
jne 0x495f59
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6f66ec]
test eax, eax
jne 0x495f76
call fcn.004955c0
mov dword [0x6f66e8], eax
mov dword [0x6f66ec], 1
mov eax, dword [0x6f66e8]
test eax, eax
je 0x495f9b
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00495680
add esp, 4
test eax, eax
jne 0x495ff2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x495fdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x495ff2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x496015
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.004953b0
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x496084
mov eax, dword [0x6c95a4]
test eax, eax
jne 0x496084
push edi
lea ecx, [esp + 0x1c]
call fcn.0060198c
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.005e51d0
add esp, 8
test eax, eax
jne 0x496073
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.006018cc
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x4960a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61d358
push eax
mov eax, dword [0x6f6334]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x496203
mov eax, dword [0x6f66f8]
test eax, eax
jne 0x4960f3
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6f66ec]
test eax, eax
jne 0x496110
call fcn.004955c0
mov dword [0x6f66e8], eax
mov dword [0x6f66ec], 1
mov eax, dword [0x6f66e8]
test eax, eax
je 0x496120
mov edx, dword [esp + 0x18]
push edx
jmp 0x4960d2
mov esi, dword [esp + 0x18]
push esi
call fcn.00495680
add esp, 4
test eax, eax
jne 0x496162
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49617e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4961c6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6f65d8]
test eax, eax
jne 0x496170
mov eax, 0x6f65dc
push eax
push esi
call fcn.005e783c
add esp, 8
test eax, eax
jne 0x496194
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6f64c8]
test eax, eax
jne 0x4961a2
mov eax, 0x6f64cc
push eax
push esi
call fcn.005e783c
add esp, 8
test eax, eax
jne 0x4961c6
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4961e9
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00495460
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x496268
mov eax, dword [0x6c95a4]
test eax, eax
jne 0x496268
push edi
lea ecx, [esp + 0x1c]
call fcn.0060198c
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.005e51d0
add esp, 8
test eax, eax
jne 0x496257
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.006018cc
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x496280
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x61d378
push eax
mov eax, dword [0x6f6334]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4963a4
mov eax, dword [0x6f66f8]
test eax, eax
jne 0x4962cb
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6f66ec]
test eax, eax
jne 0x4962e8
call fcn.004955c0
mov dword [0x6f66e8], eax
mov dword [0x6f66ec], 1
mov eax, dword [0x6f66e8]
test eax, eax
je 0x49630f
mov ecx, dword [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov esi, dword [esp + 0x18]
push esi
call fcn.00495680
add esp, 4
test eax, eax
jne 0x496367
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x496351
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x496367
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x49638a
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
push esi
call fcn.00495510
add esp, 4
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov edi, dword [esp + 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x4963fc
mov eax, dword [0x6c95a4]
test eax, eax
jne 0x4963fc
push edi
lea ecx, [esp + 0x1c]
call fcn.0060198c
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.005e51d0
add esp, 8
test eax, eax
jne 0x4963eb
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.006018cc
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x496410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x90
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0x24], eax
push edi
xor ebx, ebx
mov dword [esp + 0x2c], eax
mov ecx, 0x10
lea edi, [esp + 0x60]
mov dword [esp + 0x5c], ebx
mov esi, str.S_1_16_8192
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x4c], ecx
push edx
mov dword [esp + 0x54], ecx
push 0x8b
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], eax
xor ebp, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
cmp esi, ebx
je 0x496542
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push 1
push 2
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, eax
cmp esi, ebx
je 0x496542
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
je 0x496542
push str.ConvertStringSidToSidW
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x496542
lea edx, [esp + 0x14]
lea ecx, [esp + 0x34]
push edx
push ecx
call eax
mov esi, eax
cmp esi, ebx
je 0x496542
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0x20
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push edx
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov esi, eax
cmp esi, ebx
je 0x496542
lea ecx, [esp + 0x24]
lea edx, [esp + 0x5c]
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x496553
push eax
call edi
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x49655e
push eax
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x496574
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x49657f
push eax
call edi
cmp ebp, ebx
je 0x49658a
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
Function at 0x497360
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61d510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x49739d
push eax
call fcn.005fdcf6
add esp, 4
mov ebx, dword [ebp + 8]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005fdccd
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x49745a
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
mov ecx, dword [ebp - 0x18]
push ebx
push 1
push eax
mov edx, dword [ecx + 8]
mov eax, dword [0x6f6360]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x6f5cb8
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49745a
lea edx, [ebp + 8]
push edx
call fcn.005e6a09
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x6f5cb8
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4975c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61d540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], esi
call fcn.004450c0
mov ecx, dword [0x6f6360]
cmp ecx, esi
je 0x497660
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x14]
push edx
push esi
push esi
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x497671
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x49761f
push eax
call fcn.005fdcf6
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x497660
inc eax
push eax
call fcn.005fdccd
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x497660
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x6f6360]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x497660
mov eax, dword [ebx + 4]
push eax
call fcn.005fdcf6
add esp, 4
mov dword [ebx + 4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
push str.ExceptionServers
push eax
call fcn.005e695a
add esp, 8
test eax, eax
jne 0x497660
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.005fdccd
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x497660
mov edi, str..update.microsoft.com_download.windowsupdate.com_.download.windowsupdate.com_siteseal.thawte.com_ecom.cimetz.com_.voice2page.com
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebx + 8]
push edx
mov edx, dword [0x6f6360]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c420
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.005fdccd
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x49c568
mov eax, dword [0x6c95a4]
test eax, eax
je 0x49c462
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
jmp 0x49c495
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call fcn.0060198c
mov edx, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.006018cc
cmp ebx, 0xffffffff
je 0x49c4ca
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49c4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49c4c3
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x49c4c3
test esi, esi
jne 0x49c4df
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.005fdcf6
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.005fdccd
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x49c50d
push ebp
call fcn.005fdcf6
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, esi
xor eax, eax
mov edx, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push ebx
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x49c556
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x49c556
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.005fdcf6
push ebp
call fcn.005fdcf6
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x49c920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61d858
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x6f175c]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0xc]
push str._d__URL_s
push eax
mov dword [esp + 0x20], 0
call fcn.005fa6fb
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
add esp, 0x10
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0049c870
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.006018cc
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x49d380
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
mov eax, dword [0x6f6360]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esp + 8]
je 0x49d3b4
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x49d3c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x61d918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x6f6360]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push 0
push 0
push 0
push esi
push ecx
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x49d47c
mov edx, dword [0x6f175c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.00601c99
mov edx, dword [0x6f6360]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x49d46b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00601641
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.006018cc
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.006018cc
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49d489
mov eax, 0x6f5cb8
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0060193a
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49e2c0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x6f6710]
test eax, eax
jne 0x49e316
lea eax, [esp]
push eax
push 0
push 0
push 0x49e320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x6f6710], eax
je 0x49e30d
mov eax, dword [0x6f6714]
test eax, eax
jne 0x49e31b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
push 1
push 0
call esi
mov eax, dword [0x6f6714]
test eax, eax
je 0x49e2fb
pop esi
pop ecx
ret
xor eax, eax
mov dword [0x6f6714], eax
pop ecx
ret
mov eax, dword [0x6f6714]
pop ecx
ret
Function at 0x4aa000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x6f5cb8
push 0
push str.SoftwareDownloadManagerGetAllDlgLS
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4aa0a0
lea ecx, [ebp - 0x23c]
call fcn.004ac570
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 1
call fcn.004ac690
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0
call fcn.004ac680
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x24], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x4aa0d5
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push edi
call ebx
push 0x5a
push edi
mov dword [ebp - 0x24], eax
call ebx
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 0x24], 0x60
je 0x4aa0df
mov byte [ebp - 0x11], 1
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esi + 0x45c]
xor edi, edi
mov dword [ebp - 0x1c], eax
cmp edi, 6
jge 0x4aa138
mov al, byte [ebp - 0x11]
mov edx, dword [esi + 0x42c]
push 0
push edi
test al, al
push 0x101d
push edx
je 0x4aa128
call ebx
mov ecx, dword [ebp - 0x24]
push ecx
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x4aa0f0
call ebx
mov ecx, dword [ebp - 0x1c]
inc edi
mov dword [ecx], eax
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x4aa0f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x45c]
push 4
push eax
mov eax, dword [ebp - 0x18]
push 4
push 0
push str.FileName
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x460]
push 4
push ecx
push 4
push 0
push str.FileType
push edx
call edi
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x464]
push 4
push eax
push 4
push 0
push str.Size
push ecx
call edi
mov eax, dword [ebp - 0x18]
lea edx, [esi + 0x468]
push 4
push edx
push 4
push 0
push 0x6c8cec
push eax
call edi
mov edx, dword [ebp - 0x18]
lea ecx, [esi + 0x46c]
push 4
push ecx
push 4
push 0
push str.SaveTo
push edx
call edi
mov eax, dword [ebp - 0x18]
add esi, 0x470
push 4
push esi
push 4
push 0
push 0x6cd490
push eax
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae090
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edx, dword [esi + 0x1c]
test edx, edx
jle 0x4ae109
mov ebx, dword [esi + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x4ae0be
inc eax
add ecx, 4
cmp eax, edx
jl 0x4ae0a8
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov dword [ebx + eax*4], 0
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
sub ecx, eax
dec ecx
lea ebx, [edx + eax*4]
je 0x4ae0e5
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.005e6240
add esp, 0xc
mov edx, dword [esi + 0x1c]
dec edx
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x4ae0f6
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x4ae109
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
ret 4