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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a1428
push eax
mov eax, dword [0x663668]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4655ff
mov eax, dword [0x6639f0]
test eax, eax
jne 0x465529
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 [0x6639e4]
test eax, eax
jne 0x465546
call fcn.00464da0
mov dword [0x6639e0], eax
mov dword [0x6639e4], 1
mov eax, dword [0x6639e0]
test eax, eax
je 0x46556b
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.00464e60
add esp, 4
test eax, eax
jne 0x4655c2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4655ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4655c2
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 0x4655e5
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.00464b90
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 0x465654
mov eax, dword [0x63c2c4]
test eax, eax
jne 0x465654
push edi
lea ecx, [esp + 0x1c]
call fcn.00588780
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.0056c5f0
add esp, 8
test eax, eax
jne 0x465643
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.005886c0
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x465670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a1448
push eax
mov eax, dword [0x663668]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x4657d3
mov eax, dword [0x6639f0]
test eax, eax
jne 0x4656c3
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 [0x6639e4]
test eax, eax
jne 0x4656e0
call fcn.00464da0
mov dword [0x6639e0], eax
mov dword [0x6639e4], 1
mov eax, dword [0x6639e0]
test eax, eax
je 0x4656f0
mov edx, dword [esp + 0x18]
push edx
jmp 0x4656a2
mov esi, dword [esp + 0x18]
push esi
call fcn.00464e60
add esp, 4
test eax, eax
jne 0x465732
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46574e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x465796
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 [0x6638d0]
test eax, eax
jne 0x465740
mov eax, 0x6638d4
push eax
push esi
call fcn.0056eb4c
add esp, 8
test eax, eax
jne 0x465764
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret
mov eax, dword [0x6637c0]
test eax, eax
jne 0x465772
mov eax, 0x6637c4
push eax
push esi
call fcn.0056eb4c
add esp, 8
test eax, eax
jne 0x465796
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 0x4657b9
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.00464c40
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 0x465838
mov eax, dword [0x63c2c4]
test eax, eax
jne 0x465838
push edi
lea ecx, [esp + 0x1c]
call fcn.00588780
mov eax, dword [esp + 0x18]
push 0x3f
push eax
call fcn.0056c5f0
add esp, 8
test eax, eax
jne 0x465827
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.005886c0
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x465850
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a1468
push eax
mov eax, dword [0x663668]
mov dword fs:[0], esp
push esi
push edi
test eax, eax
je 0x465974
mov eax, dword [0x6639f0]
test eax, eax
jne 0x46589b
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 [0x6639e4]
test eax, eax
jne 0x4658b8
call fcn.00464da0
mov dword [0x6639e0], eax
mov dword [0x6639e4], 1
mov eax, dword [0x6639e0]
test eax, eax
je 0x4658df
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.00464e60
add esp, 4
test eax, eax
jne 0x465937
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x465921
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x465937
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 0x46595a
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.00464cf0
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 0x4659cc
mov eax, dword [0x63c2c4]
test eax, eax
jne 0x4659cc
push edi
lea ecx, [esp + 0x1c]
call fcn.00588780
mov edx, dword [esp + 0x18]
push 0x3f
push edx
call fcn.0056c5f0
add esp, 8
test eax, eax
jne 0x4659bb
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.005886c0
mov ecx, dword [esp + 8]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret
Function at 0x466e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1570
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 0x466e6d
push eax
call fcn.00584a85
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.00584a5c
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x466f2a
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 [0x663680]
push edx
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x663188
push 0
push str.SoftwareDownloadManagerConfigTime
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x466f2a
lea edx, [ebp + 8]
push edx
call fcn.0056db81
mov ecx, dword [ebp - 0x14]
add esp, 4
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push 0x663188
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 0x467090
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a15a0
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.0042eb00
mov ecx, dword [0x663680]
cmp ecx, esi
je 0x467130
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 0x467141
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x4670ef
push eax
call fcn.00584a85
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x467130
inc eax
push eax
call fcn.00584a5c
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x467130
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x663680]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x467130
mov eax, dword [ebx + 4]
push eax
call fcn.00584a85
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.0056dad2
add esp, 8
test eax, eax
jne 0x467130
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.00584a5c
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x467130
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 [0x663680]
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 0x46b8f0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.00584a5c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x46ba38
mov eax, dword [0x63c2c4]
test eax, eax
je 0x46b932
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
jmp 0x46b965
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00588780
mov edx, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.005886c0
cmp ebx, 0xffffffff
je 0x46b99a
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46b987
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46b993
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x46b993
test esi, esi
jne 0x46b9af
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00584a85
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.00584a5c
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x46b9dd
push ebp
call fcn.00584a85
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 0x46ba26
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x46ba26
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.00584a85
push ebp
call fcn.00584a85
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x46bdf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a1828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x65ec1c]
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.0058148b
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.0046bd40
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x46c960
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 [0x663680]
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 0x46c994
mov eax, dword [esp + 0xc]
pop ecx
ret

Function at 0x46c9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5a18e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x663680]
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 0x46ca5c
mov edx, dword [0x65ec1c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.00588b01
mov edx, dword [0x663680]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x46ca4b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00588435
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.005886c0
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.005886c0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x46ca69
mov eax, 0x663188
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0058872e
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46d200
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x65ec1c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x663660]
push str.temp.htm
push ecx
lea edx, [ebp - 0x14]
push 0x639028
push edx
mov byte [ebp - 4], 1
call fcn.0058148b
mov eax, dword [ebp - 0x14]
add esp, 0x10
push 0x63fa7c
push eax
call fcn.0056dabf
mov esi, eax
add esp, 8
test esi, esi
je 0x46d283
push esi
push 0xd
push 1
push str._HTML__HTML_
call fcn.0056d955
push esi
call fcn.0056d8d8
add esp, 0x14
mov edx, dword [ebp - 0x14]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x118]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x118]
push ecx
push eax
push edx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jle 0x46d2d4
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46d2d4
mov edx, dword [ebp + 8]
push 1
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
push eax
push ecx
push 0x638f44
push edx
jmp 0x46d2e7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push eax
push 0x638f44
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a22db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
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 0x663188
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 0x4767fb
lea ecx, [ebp - 0x120]
call fcn.00478b50
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.00478c60
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.00478c50
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 0x476821
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 0x476801
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 0x63bbe8
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 str.Description
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 0x479ed0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2770
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x65ec1c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x663660]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabberProjects_
push edx
mov byte [ebp - 4], 1
call fcn.0058148b
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47a037
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00588b2f
mov esi, eax
cmp esi, 0xffffffff
je 0x47a037
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0058108d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.005886c0
test bl, bl
je 0x479f3d
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0058108d
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.005886c0
test bl, bl
je 0x479f3d
mov al, byte [ebp + 8]
test al, al
je 0x47a013
mov eax, dword [0x65ec1c]
mov dword [ebp + 8], eax
push 0
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x18]
mov eax, dword [0x6643bc]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.0058148b
mov edx, dword [ebp - 0x18]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 8
push 0x638fa8
push eax
call fcn.0058148b
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47a3b0
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x47a422
mov ebx, dword [esi + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x47a3de
inc eax
add ecx, 4
cmp eax, edx
jl 0x47a3c8
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov dword [ebx + eax*4], 0
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub ecx, eax
dec ecx
lea ebx, [edx + eax*4]
je 0x47a405
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.0056d4c0
add esp, 0xc
mov edx, dword [esi + 0x14]
dec edx
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
je 0x47a422
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x47a430
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5a27b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x65ec1c]
mov dword [esp], eax
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + 8]
push edx
push eax
lea ecx, [esp + 8]
push str._sproject_ld.gsd
push ecx
mov dword [esp + 0x1c], 0
call fcn.0058148b
mov edx, dword [esp + 0x10]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.005886c0
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4