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

Disassembly:
mov eax, dword [0x63e508]
push esi
test eax, eax
je 0x45d53f
mov eax, dword [0x63e870]
test eax, eax
jne 0x45d4b4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
mov eax, dword [0x63e864]
test eax, eax
jne 0x45d4d1
call fcn.0045cdc0
mov dword [0x63e860], eax
mov dword [0x63e864], 1
mov eax, dword [0x63e860]
test eax, eax
je 0x45d4e7
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
mov esi, dword [esp + 8]
push esi
call fcn.0045ce80
add esp, 4
test eax, eax
jne 0x45d520
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45d519
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x45d520
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x45d534
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push esi
call fcn.0045cbb0
add esp, 4
pop esi
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret

Function at 0x45d550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x63e508]
push esi
test eax, eax
je 0x45d640
mov eax, dword [0x63e870]
test eax, eax
jne 0x45d57e
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
ret
mov eax, dword [0x63e864]
test eax, eax
jne 0x45d59b
call fcn.0045cdc0
mov dword [0x63e860], eax
mov dword [0x63e864], 1
mov eax, dword [0x63e860]
test eax, eax
jne 0x45d640
mov esi, dword [esp + 8]
push esi
call fcn.0045ce80
add esp, 4
test eax, eax
jne 0x45d5db
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45d5f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x45d621
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
mov eax, dword [0x63e750]
test eax, eax
jne 0x45d5e9
mov eax, 0x63e754
push eax
push esi
call fcn.0055054c
add esp, 8
test eax, eax
jne 0x45d5fe
mov eax, 1
pop esi
ret
mov eax, dword [0x63e640]
test eax, eax
jne 0x45d60c
mov eax, 0x63e644
push eax
push esi
call fcn.0055054c
add esp, 8
test eax, eax
jne 0x45d621
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x45d635
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push esi
call fcn.0045cc60
add esp, 4
pop esi
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
ret
Function at 0x45d660
Capabilities:
Create directory

Disassembly:
mov eax, dword [0x63e508]
push esi
test eax, eax
je 0x45d714
mov eax, dword [0x63e870]
test eax, eax
jne 0x45d686
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
mov eax, dword [0x63e864]
test eax, eax
jne 0x45d6a3
call fcn.0045cdc0
mov dword [0x63e860], eax
mov dword [0x63e864], 1
mov eax, dword [0x63e860]
test eax, eax
je 0x45d6bb
mov ecx, dword [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
mov esi, dword [esp + 8]
push esi
call fcn.0045ce80
add esp, 4
test eax, eax
jne 0x45d6f5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x45d6ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x45d6f5
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x45d709
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push esi
call fcn.0045cd10
add esp, 4
pop esi
ret
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
Function at 0x45e6d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582ad0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x45e70d
push eax
call fcn.005664c5
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.0056649c
mov edx, eax
add esp, 4
test edx, edx
mov dword [esi + 4], edx
je 0x45e76f
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
push ecx
mov ecx, dword [ebp - 0x14]
push ebx
push 1
mov edx, dword [ecx + 8]
push eax
mov eax, dword [0x63e518]
push edx
push eax
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 4
Function at 0x45e8d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582b00
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.0042bbd0
mov ecx, dword [0x63e518]
cmp ecx, esi
je 0x45e970
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 0x45e981
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x45e92f
push eax
call fcn.005664c5
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], esi
cmp eax, esi
je 0x45e970
inc eax
push eax
call fcn.0056649c
add esp, 4
cmp eax, esi
mov dword [ebx + 4], eax
je 0x45e970
mov ecx, dword [ebx + 8]
lea edx, [ebp - 0x14]
push edx
push eax
mov eax, dword [0x63e518]
push esi
push esi
push ecx
push eax
call edi
test eax, eax
je 0x45e970
mov eax, dword [ebx + 4]
push eax
call fcn.005664c5
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.0054f4a2
add esp, 8
test eax, eax
jne 0x45e970
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.0056649c
mov edx, eax
add esp, 4
cmp edx, esi
mov dword [ebx + 4], edx
je 0x45e970
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 [0x63e518]
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 0x463070
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 8
call fcn.0056649c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x46317a
mov eax, dword [esp + 0x1c]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4630dc
lea ecx, [esp + 0x10]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4630c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4630d5
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x4630d5
test esi, esi
jne 0x4630f1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.005664c5
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.0056649c
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp], edi
jne 0x46311f
push ebp
call fcn.005664c5
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 0x463168
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x463168
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov edx, dword [ebp]
push edx
call fcn.005664c5
push ebp
call fcn.005664c5
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x463530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x582d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x639ad4]
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.00562ecb
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.00463480
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
call fcn.0056a100
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x4640a0
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 [0x63e518]
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 0x4640d4
mov eax, dword [esp + 0xc]
pop ecx
ret
Function at 0x4640e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x582e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x63e518]
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 0x46419c
mov edx, dword [0x639ad4]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x24]
call fcn.0056a541
mov edx, dword [0x63e518]
lea ecx, [esp + 8]
push ecx
push eax
push 0
push 0
push esi
push edx
call edi
test eax, eax
jne 0x46418b
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.00569e75
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.0056a100
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.0056a100
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4641a9
mov eax, 0x63e040
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call fcn.0056a16e
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x464930
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x639ad4]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x63e500]
push str.temp.htm
push ecx
lea edx, [ebp - 0x14]
push 0x615f14
push edx
mov byte [ebp - 4], 1
call fcn.00562ecb
mov eax, dword [ebp - 0x14]
add esp, 0x10
push 0x61c394
push eax
call fcn.0054f48f
mov esi, eax
add esp, 8
test esi, esi
je 0x4649b3
push esi
push 0xd
push 1
push str._HTML__HTML_
call fcn.0054f325
push esi
call fcn.0054f2a8
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 0x464a04
lea edi, [ebp - 0x118]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x464a04
mov edx, dword [ebp + 8]
push 1
push eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x118]
push eax
push ecx
push 0x615e54
push edx
jmp 0x464a17
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 1
push 0
push 0
push eax
push 0x615e54
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.0056a100
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 0x46bf90
Capabilities:
Get geographical location

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
push 0
push 0x400
push esi
push edi
call fcn.0054fde0
mov dword [esp + 0x10], eax
mov ecx, esi
cdq
mov ebp, eax
mov eax, edi
sub eax, ebp
push 0
sbb ecx, edx
push 0x400
push ecx
push eax
mov dword [esp + 0x30], edx
call fcn.0054fd30
mov ebx, eax
and ebx, 0x800003ff
jns 0x46bfe0
dec ebx
or ebx, 0xfffffc00
inc ebx
mov eax, ebx
mov ecx, edi
shl eax, 0xa
cdq
sub ecx, eax
mov eax, esi
sbb eax, edx
sub ecx, ebp
mov ebp, dword [esp + 0x20]
push 0
sbb eax, ebp
push 0x100000
push eax
push ecx
call fcn.0054fd30
mov ebp, eax
and ebp, 0x800003ff
jns 0x46c016
dec ebp
or ebp, 0xfffffc00
inc ebp
push 0
push 0x40000000
push esi
push edi
call fcn.0054fd30
lea ecx, [esp + 0x1c]
push 3
push ecx
mov esi, eax
push 0xe
push 0x400
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x46c06a
mov edi, 0x618b20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x46c14b
cmp ebp, 0x3e7
jg 0x46c14b
test ebp, ebp
jne 0x46c0f7
cmp ebx, 0x3e7
jg 0x46c0f7
test ebx, ebx
je 0x46c0d0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x63ed78]
push ecx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x20]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push ebx
jmp 0x46c186
mov eax, dword [0x63ed74]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push eax
push ecx
push str._d___s
push edx
call fcn.0054ea2a
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [0x63ed7c]
push eax
lea eax, [ebx + ebx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov ecx, edx
mov eax, dword [esp + 0x28]
shr ecx, 0x1f
add edx, ecx
push edx
lea edx, [esp + 0x24]
push edx
push ebp
push str._d_s_02d___s
push eax
call fcn.0054ea2a
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
lea ebp, [ebp + ebp*4]
mov ecx, dword [0x63ed80]
push ecx
lea eax, [ebp + ebp*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
mov eax, 0x66666667
sar ecx, 0xa
imul ecx
sar edx, 2
mov eax, edx
lea ecx, [esp + 0x20]
shr eax, 0x1f
add edx, eax
push edx
push ecx
push esi
mov edx, dword [esp + 0x34]
push str._d_s_02d___s
push edx
call fcn.0054ea2a
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x46d5d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58379b
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 0x63e040
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 0x46d66b
lea ecx, [ebp - 0x120]
call fcn.0046f750
push 1
push str.Cannot_open__create__registry_GetAllDlgLS_subkey._n
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 1
call fcn.0046f830
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 0
call fcn.0046f820
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 0x46d691
mov edx, dword [esi + 0x42c]
push 0
push edi
push 0x101d
push edx
call ebx
mov dword [esi + edi*4 + 0x454], eax
inc edi
jmp 0x46d671
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0x454]
push 4
push eax
push 4
push 0
push str.FileName
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x458]
push 4
push edx
push 4
push 0
push str.FileType
push eax
call edi
mov edx, dword [ebp - 0x14]
lea ecx, [esi + 0x45c]
push 4
push ecx
push 4
push 0
push str.Size
push edx
call edi
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x460]
push 4
push eax
push 4
push 0
push 0x618868
push ecx
call edi
mov eax, dword [ebp - 0x14]
lea edx, [esi + 0x464]
push 4
push edx
push 4
push 0
push str.SaveTo
push eax
call edi
mov ecx, dword [ebp - 0x14]
add esi, 0x468
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 0x470aa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x639ad4]
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 [0x63e500]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabberProjects_
push edx
mov byte [ebp - 4], 1
call fcn.00562ecb
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x470c07
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.0056a56f
mov esi, eax
cmp esi, 0xffffffff
je 0x470c07
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.00562acd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.0056a100
test bl, bl
je 0x470b0d
lea edx, [ebp - 0x1c]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.00562acd
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x1c]
sete bl
call fcn.0056a100
test bl, bl
je 0x470b0d
mov al, byte [ebp + 8]
test al, al
je 0x470be3
mov eax, dword [0x639ad4]
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 [0x63f14c]
push edx
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.00562ecb
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.0056a100
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
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 0x615e9c
push eax
call fcn.00562ecb
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
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 0x470f80
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 0x470ff2
mov ebx, dword [esi + 0x10]
mov ebp, dword [esp + 0x14]
mov ecx, ebx
mov edi, dword [ecx]
cmp dword [edi + 0x2c], ebp
je 0x470fae
inc eax
add ecx, 4
cmp eax, edx
jl 0x470f98
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 0x470fd5
shl ecx, 2
lea edx, [edx + eax*4 + 4]
push ecx
push edx
push ebx
call fcn.0054ee90
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 0x470ff2
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x471000
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x583c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x639ad4]
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.00562ecb
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.0056a100
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4