joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bc10
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x61d4d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
cmp dword [0x70f5d4], 0
je 0x49bd47
cmp dword [0x70ff10], 0
jne 0x49bc76
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 [0x70ff04], 0
jne 0x49bc93
call fcn.0049ac10
mov dword [0x70fdfc], eax
mov dword [0x70ff04], 1
cmp dword [0x70fdfc], 0
jne 0x49bc4d
mov esi, dword [esp + 0x30]
push esi
call fcn.0049b5f0
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x49bd03
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x49bcea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x49bd03
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 0x49bd28
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.0049b220
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 0x49be20
cmp dword [0x704d14], eax
jne 0x49be20
push eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402a50
mov dword [esp + 0x30], ebp
push ebp
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.00402a50
mov byte [esp + 0x3c], 1
mov edx, dword [esp + 0x30]
push 0x3f
push edx
call fcn.005f9b50
add esp, 0x20
test eax, eax
jne 0x49be01
mov eax, dword [esp + 0x14]
push 0x3f
push eax
call fcn.005f9b50
add esp, 8
test eax, eax
jne 0x49be01
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.00402550
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402550
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.00402550
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402550
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 0x49be40
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x62d348
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x70f5d4], 0
je 0x49bf70
cmp dword [0x70ff10], 0
jne 0x49be96
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 [0x70ff04], 0
jne 0x49beb3
call fcn.0049ac10
mov dword [0x70fdfc], eax
mov dword [0x70ff04], 1
cmp dword [0x70fdfc], 0
je 0x49bed9
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.0049b5f0
add esp, 4
test eax, eax
jne 0x49bf32
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49bf1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x49bf32
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 0x49bf55
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.0049b350
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 0x49bfca
cmp dword [0x704d14], eax
jne 0x49bfca
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a50
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.005f9b50
add esp, 0x14
test eax, eax
jne 0x49bfb9
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.00402550
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 0x49bfe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x62d348
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x70f5d4], 0
je 0x49c13d
cmp dword [0x70ff10], 0
jne 0x49c040
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 [0x70ff04], 0
jne 0x49c05d
call fcn.0049ac10
mov dword [0x70fdfc], eax
mov dword [0x70ff04], 1
cmp dword [0x70fdfc], 0
je 0x49c06d
mov edx, dword [esp + 0x20]
push edx
jmp 0x49c01e
mov esi, dword [esp + 0x20]
push esi
call fcn.0049b5f0
add esp, 4
test eax, eax
jne 0x49c0c7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49c0b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x49c0ff
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 [0x70ff14]
test eax, eax
jne 0x49c0d5
mov eax, 0x70ff18
push eax
push esi
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x49c0b0
mov eax, dword [0x70ff20]
test eax, eax
jne 0x49c0f1
mov eax, 0x70ff24
push eax
push esi
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x49c0b0
cmp dword [esp + 0x24], 0
jne 0x49c122
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.0049b430
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 0x49c1a7
cmp dword [0x704d14], edx
jne 0x49c1a7
push edx
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00402a50
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x18]
push 0x3f
push ecx
call fcn.005f9b50
add esp, 0x14
test eax, eax
jne 0x49c196
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.00402550
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 0x49c1c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x62d348
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
cmp dword [0x70f5d4], 0
je 0x49c2f5
cmp dword [0x70ff10], 0
jne 0x49c218
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 [0x70ff04], 0
jne 0x49c235
call fcn.0049ac10
mov dword [0x70fdfc], eax
mov dword [0x70ff04], 1
cmp dword [0x70fdfc], 0
je 0x49c25d
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.0049b5f0
add esp, 4
test eax, eax
jne 0x49c2b7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49c2a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x49c2b7
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 0x49c2da
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.0049b510
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 0x49c352
cmp dword [0x704d14], eax
jne 0x49c352
push eax
lea edx, [esp + 0x10]
push edi
push edx
call fcn.00402a50
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.005f9b50
add esp, 0x14
test eax, eax
jne 0x49c341
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.00402550
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 0x49ce50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627070
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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 0x49ce94
push eax
call fcn.005cfa9b
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 0x49cea0
sub eax, edx
inc eax
push eax
call fcn.005cfaa6
add esp, 4
mov dword [edi + 4], eax
test eax, eax
je 0x49cf55
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x49cec2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49ced1
sub eax, edx
mov ecx, dword [edi + 8]
inc eax
push eax
push esi
push 1
push 0
push ecx
mov eax, dword [0x70f604]
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 0x64f8bc
push 0
push str.SoftwareDownloadManagerConfigTime
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x49cf4e
lea edx, [ebp + 8]
push edx
call fcn.005fbc53
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 0x64f8bc
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 0x49d610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627168
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
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.00449a50
mov ecx, dword [0x70f604]
test ecx, ecx
je 0x49d7e2
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 0x49d782
mov eax, dword [ebx + 4]
test eax, eax
je 0x49d68b
push eax
call fcn.005cfa9b
add esp, 4
mov dword [ebx + 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49d7e2
inc eax
push eax
call fcn.005cfaa6
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x49d7e2
mov esi, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
push 0
push esi
mov edx, dword [0x70f604]
push edx
call edi
test eax, eax
mov eax, dword [ebx + 4]
je 0x49d6e3
push eax
call fcn.005cfa9b
add esp, 4
mov dword [ebx + 4], 0
jmp 0x49d7e2
push 0x64ef50
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
jne 0x49d723
mov eax, dword [ebx + 4]
push 0x64ef30
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
jne 0x49d723
mov eax, dword [ebx + 4]
push 0x64f370
push eax
call fcn.005f9c10
add esp, 8
test eax, eax
je 0x49d7e2
mov eax, dword [ebx + 4]
push eax
lea ecx, [ebp - 0x14]
call fcn.004030e0
mov byte [ebp - 4], 1
push 0x64f8bc
push 0x64ef50
lea ecx, [ebp - 0x14]
call fcn.00402bf0
push 0x64f8bc
push 0x64f370
lea ecx, [ebp - 0x14]
call fcn.00402bf0
push 0x64f8bc
push 0x64ef30
lea ecx, [ebp - 0x14]
call fcn.00402bf0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, ebx
call fcn.0049ce50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402550
jmp 0x49d7e2
push str.ExceptionServers
push esi
call fcn.004216f0
add esp, 8
test al, al
je 0x49d7e2
push 0x84
call fcn.005cfaa6
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x49d7e2
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 0x49d7c0
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 [0x70f604]
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 0x4a05c0
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 0x4a05dd
cmp al, 0x27
jne 0x4a05ee
mov ebx, dword [esp + 0x20]
inc esi
mov cl, al
mov ebp, 1
sub ebx, 2
jmp 0x4a05f2
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
movsx eax, cl
push edi
push eax
mov dword [esp + 0x1c], eax
call fcn.005fe648
mov eax, dword [esp + 0x30]
push edi
push eax
call fcn.005fe539
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.004a0570
test eax, eax
je 0x4a0642
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edi
sub ecx, eax
push ecx
push 1
push eax
call fcn.005fb175
add esp, 0x10
add esi, ebx
test ebp, ebp
je 0x4a0649
inc esi
mov edx, dword [esp + 0x14]
push edi
push edx
call fcn.005fe648
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x10

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

Disassembly:
push 0xffffffffffffffff
push 0x627578
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 8
call fcn.005cfa6c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4a0ec8
cmp dword [0x704d14], 0
push 0
je 0x4a0dc1
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 0x4a0e08
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00402a50
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.00402550
cmp edi, 0xffffffff
je 0x4a0e31
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a0e3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4a0e3f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.005cfa9b
add esp, 4
jmp 0x4a0ec8
cmp dword [esp + 0x10], 0
ja 0x4a0e2a
test esi, esi
je 0x4a0e2a
push esi
call fcn.005cfaa6
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4a0e6b
push ebx
call fcn.005cfa9b
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a0ec8
push esi
push 0
push eax
call fcn.005f8cb0
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 0x4a0eb7
cmp dword [esp + 0x14], 0
jbe 0x4a0eb7
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.005cfa9b
push ebx
call fcn.005cfa9b
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
Function at 0x4a1280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61a638
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.004024e0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea edx, [esp + 0x10]
push str._d__URL_s
push edx
call fcn.00402f60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add esp, 0x10
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004a05c0
mov esi, eax
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 8]
call fcn.00402550
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x14
Function at 0x4a3880
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
mov eax, dword [0x70f604]
lea ecx, [esp + 8]
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 + 4]
je 0x4a38b5
mov eax, dword [esp + 0x10]
add esp, 8
ret

Function at 0x4a38c0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a38d0
mov ecx, dword [0x70f604]
sub eax, esi
inc eax
push eax
mov eax, dword [esp + 0xc]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x4a3900
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
mov dword [esp + 0x18], eax
mov eax, dword [0x70f604]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4a4510
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x70ff40], 0
jne 0x4a456b
lea eax, [esp]
push eax
push 0
push 0
push 0x4a43c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x70ff40], eax
test eax, eax
je 0x4a4562
mov eax, dword [0x70ff44]
test eax, eax
jne 0x4a4570
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SleepEx]
lea ebx, [ebx]
push 1
push 0
call esi
mov eax, dword [0x70ff44]
test eax, eax
je 0x4a4550
pop esi
pop ecx
ret
xor eax, eax
mov dword [0x70ff44], eax
pop ecx
ret
mov eax, dword [0x70ff44]
pop ecx
ret
Function at 0x4a80f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x627e61
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor ebx, ebx
lea eax, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [0x70f604]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push ecx
call edi
test eax, eax
jne 0x4a81b8
lea ecx, [esp + 0x10]
call fcn.004024e0
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
call fcn.00402830
mov edx, dword [0x70f604]
lea ecx, [esp + 0x14]
push ecx
push eax
push ebx
push ebx
push esi
push edx
call edi
test eax, eax
jne 0x4a81ab
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004027d0
mov dword [esp + 0x18], 1
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
call fcn.00402550
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov byte [esp + 0x24], bl
lea ecx, [esp + 0x10]
call fcn.00402550
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x4a81c5
mov eax, 0x64f8bc
mov esi, dword [esp + 0x2c]
push eax
mov ecx, esi
call fcn.004030e0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], 1
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x4a98b0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x214
push 0xffffffffffffffff
push 0x628068
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x210], 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 - 4], 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf003f
push 0
push 0x64f8bc
push 0
push str.SoftwareDownloadManagerGetAllDlgLS
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4a996d
lea ecx, [ebp]
call fcn.004b1950
mov byte [ebp - 4], 1
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp]
call fcn.004b1ac0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.004b1ab0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x214
mov esp, ebp
pop ebp
ret
xor bl, bl
mov byte [ebp - 0x24], bl
mov edi, 0x60
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x24]
call fcn.004343e0
cmp eax, edi
je 0x4a998b
mov bl, 1
xor edi, edi
mov dword [ebp - 0x18], edi
cmp edi, 6
jge 0x4a99b8
push edi
lea ecx, [esi + 0x1dc]
call fcn.00436430
test bl, bl
je 0x4a99ae
push eax
lea ecx, [ebp - 0x24]
call fcn.00496ef0
mov dword [esi + edi*4 + 0x310], eax
inc edi
jmp 0x4a998d
push 4
lea edx, [esi + 0x310]
push edx
push 4
push 0
push str.FileName
mov eax, dword [ebp - 0x14]
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
push 4
lea ecx, [esi + 0x314]
push ecx
push 4
push 0
push str.FileType
mov edx, dword [ebp - 0x14]
push edx
call edi
push 4
lea eax, [esi + 0x318]
push eax
push 4
push 0
push str.Size
mov ecx, dword [ebp - 0x14]
push ecx
call edi
push 4
lea edx, [esi + 0x31c]
push edx
push 4
push 0
push 0x6604d4
mov eax, dword [ebp - 0x14]
push eax
call edi
push 4
lea ecx, [esi + 0x320]
push ecx
push 4
push 0
push str.SaveTo
mov edx, dword [ebp - 0x14]
push edx
call edi
push 4
add esi, 0x324
push esi
push 4
push 0
push 0x6604c0
mov eax, dword [ebp - 0x14]
push eax
call edi
mov dword [ebp - 4], 0xffffffff
jmp 0x4a9948