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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c77a0
push eax
mov eax, dword [0x691b68]
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x473ff5
mov eax, dword [0x691ef8]
test eax, eax
jne 0x473f27
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [0x691eec]
test eax, eax
jne 0x473f44
call fcn.00473790
mov dword [0x691ee8], eax
mov dword [0x691eec], 1
mov eax, dword [0x691ee8]
test eax, eax
jne 0x473eff
mov esi, dword [esp + 0x24]
push esi
call fcn.00473850
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x473fb2
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x473f9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x473fb2
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x473fd7
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
push ebx
call fcn.004734b0
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebp, eax
test ebp, ebp
jne 0x4740c5
mov eax, dword [0x6697fc]
test eax, eax
jne 0x4740c5
push edi
lea ecx, [esp + 0x28]
call fcn.005add0d
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], ebp
call fcn.005add0d
mov eax, dword [esp + 0x24]
push 0x3f
push eax
call fcn.00591740
add esp, 8
test eax, eax
jne 0x4740a6
mov ecx, dword [esp + 0x28]
push 0x3f
push ecx
call fcn.00591740
add esp, 8
test eax, eax
jne 0x4740a6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.005adc4d
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.005adc4d
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea ecx, [esp + 0x28]
mov byte [esp + 0x18], 0
call fcn.005adc4d
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call fcn.005adc4d
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4740e0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c77b8
push eax
mov eax, dword [0x691b68]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4741ff
mov eax, dword [0x691ef8]
test eax, eax
jne 0x474129
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 [0x691eec]
test eax, eax
jne 0x474146
call fcn.00473790
mov dword [0x691ee8], eax
mov dword [0x691eec], 1
mov eax, dword [0x691ee8]
test eax, eax
je 0x47416b
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.00473850
add esp, 4
test eax, eax
jne 0x4741c2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4741ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4741c2
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 0x4741e5
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.00473580
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 0x474254
mov eax, dword [0x6697fc]
test eax, eax
jne 0x474254
push edi
lea ecx, [esp + 0x1c]
call fcn.005add0d
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.00591740
add esp, 8
test eax, eax
jne 0x474243
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.005adc4d
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x474270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c77d8
push eax
mov eax, dword [0x691b68]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4743d3
mov eax, dword [0x691ef8]
test eax, eax
jne 0x4742c3
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 [0x691eec]
test eax, eax
jne 0x4742e0
call fcn.00473790
mov dword [0x691ee8], eax
mov dword [0x691eec], 1
mov eax, dword [0x691ee8]
test eax, eax
je 0x4742f0
mov edx, dword [esp + 0x18]
push edx
jmp 0x4742a2
mov esi, dword [esp + 0x18]
push esi
call fcn.00473850
add esp, 4
test eax, eax
jne 0x474332
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47434e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x474396
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 [0x691dd8]
test eax, eax
jne 0x474340
mov eax, 0x691ddc
push eax
push esi
call fcn.00593cdc
add esp, 8
test eax, eax
jne 0x474364
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x691cc8]
test eax, eax
jne 0x474372
mov eax, 0x691ccc
push eax
push esi
call fcn.00593cdc
add esp, 8
test eax, eax
jne 0x474396
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 0x4743b9
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.00473630
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 0x474438
mov eax, dword [0x6697fc]
test eax, eax
jne 0x474438
push edi
lea ecx, [esp + 0x1c]
call fcn.005add0d
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.00591740
add esp, 8
test eax, eax
jne 0x474427
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.005adc4d
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x474450
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5c77f8
push eax
mov eax, dword [0x691b68]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x474574
mov eax, dword [0x691ef8]
test eax, eax
jne 0x47449b
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 [0x691eec]
test eax, eax
jne 0x4744b8
call fcn.00473790
mov dword [0x691ee8], eax
mov dword [0x691eec], 1
mov eax, dword [0x691ee8]
test eax, eax
je 0x4744df
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.00473850
add esp, 4
test eax, eax
jne 0x474537
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474521
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x474537
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 0x47455a
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.004736e0
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 0x4745cc
mov eax, dword [0x6697fc]
test eax, eax
jne 0x4745cc
push edi
lea ecx, [esp + 0x1c]
call fcn.005add0d
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.00591740
add esp, 8
test eax, eax
jne 0x4745bb
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.005adc4d
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x474e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c78f0
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 0x474e7d
push eax
call fcn.005aa012
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.005a9fe9
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x474f3a
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 [0x691b84]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x691568
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x474f3a
lea edx, [ebp + 8]
push edx
call fcn.00592e63
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x691568
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 0x4750a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7920
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.00437180
mov ecx, dword [0x691b84]
cmp ecx, esi
je 0x475140
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 0x475151
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x4750ff
push eax
call fcn.005aa012
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x475140
inc eax
push eax
call fcn.005a9fe9
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x475140
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x691b84]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x475140
mov eax, dword [ebx + 4]
push eax
call fcn.005aa012
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.00592db4
add esp, 8
test eax, eax
jne 0x475140
mov edi, str..update.microsoft.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.005a9fe9
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x475140
mov edi, str..update.microsoft.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 [0x691b84]
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 0x479900
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.005a9fe9
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x479a48
mov eax, dword [0x6697fc]
test eax, eax
je 0x479942
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
jmp 0x479975
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call fcn.005add0d
mov edx, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push accept
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.005adc4d
cmp ebx, 0xffffffff
je 0x4799aa
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x479997
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4799a3
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x4799a3
test esi, esi
jne 0x4799bf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.005aa012
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.005a9fe9
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x4799ed
push ebp
call fcn.005aa012
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 0x479a36
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x479a36
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.005aa012
push ebp
call fcn.005aa012
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x479e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5c7ba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x68d01c]
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.005a6a18
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.00479d50
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.005adc4d
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x47a690
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 [0x691b84]
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 0x47a6c4
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x47a6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5c7c68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x691b84]
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 0x47a78c
mov edx, dword [0x68d01c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.005ae01a
mov edx, dword [0x691b84]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x47a77b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.005ad9c2
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005adc4d
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.005adc4d
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x47a799
mov eax, 0x691568
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.005adcbb
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x484920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c86bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x14]
xor edi, edi
push eax
push ecx
push edi
push 0xf003f
push edi
push 0x691568
push edi
push str.SoftwareDownloadManagerGetAllDlgLS
push reloc.WSOCK32.dll_accept
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4849bb
lea ecx, [ebp - 0x228]
call fcn.00486d60
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00486e80
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 0
call fcn.00486e70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp edi, 6
jge 0x4849e1
mov edx, dword [esi + 0x42c]
push 0
push edi
push 0x101d
push edx
call ebx
mov dword [esi + edi*4 + 0x45c], eax
inc edi
jmp 0x4849c1
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x45c]
push 4
push eax
push 4
push 0
push str.FileName
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x460]
push 4
push edx
push 4
push 0
push str.FileType
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x464]
push 4
push ecx
push 4
push 0
push str.Size
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x468]
push 4
push eax
push 4
push 0
push 0x669090
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x46c]
push 4
push edx
push 4
push 0
push str.SaveTo
push eax
call edi
mov ecx, dword [ebp - 0x14]
add esi, 0x470
push 4
push esi
push 4
push 0
push 0x66d050
push ecx
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 0x488870
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 0x4888e9
mov ebx, dword [esi + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x48889e
inc eax
add ecx, 4
cmp eax, edx
jl 0x488888
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 0x4888c5
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.00592770
add esp, 0xc
mov edx, dword [esi + 0x1c]
dec edx
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x4888d6
lea eax, [edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x4888e9
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4888f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5c8c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov word [esp + 0x10], bx
mov esi, dword [ecx + 8]
mov dword [esp + 0x84], ebx
cmp esi, ebx
jne 0x48892b
lea esi, [ecx + 0xc]
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x3c]
push 0xa
push eax
push ecx
call fcn.00592d82
mov edx, str._sproject_s.gsd
add esp, 0xc
test edx, edx
mov edi, eax
je 0x488a8b
cmp esi, ebx
je 0x488a8b
cmp edi, ebx
je 0x488a8b
push ebp
push ebx
push edx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
mov word [esp + 0x40], bx
call fcn.00402800
push esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 1
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], bx
call fcn.00401ee0
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0x8c], 2
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x24], bx
call fcn.00401ee0
lea ecx, [esp + 0x10]
mov byte [esp + 0x88], 3
call fcn.00401070
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00401ed0
push eax
call fcn.00591712
add esp, 4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00401ed0
push eax
call fcn.00591712
add esi, edi
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005a9fe9
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x488a58
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x1c]
call fcn.00401ed0
push eax
lea ecx, [esp + 0x2c]
call fcn.00401ed0
push eax
lea ecx, [esp + 0x3c]
call fcn.00401ed0
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005916a2
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00591712
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 2
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 1
call fcn.00401070
lea ecx, [esp + 0x34]
mov byte [esp + 0x88], bl
call fcn.00401070
pop ebp
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, ebx
pop ebx
jne 0x488a9a
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp]
mov dword [esp + 0x78], 0xffffffff
call fcn.00401070
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4