joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47fe70
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a176b
push eax
mov dword fs:[0], esp
sub esp, 0x110
lea eax, [esp + 4]
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
push eax
xor edi, edi
push ecx
push edi
push 0xf003f
push edi
push 0x660ff8
push edi
push str.SoftwareDownloadManagerListSettings
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x47ff07
lea ecx, [esp + 0x10]
call fcn.00477f00
push 1
push str.Cannot_open__create__registry_listsettings_subkey._n
lea ecx, [esp + 0x18]
mov dword [esp + 0x128], edi
call fcn.00478010
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.00478000
pop edi
pop esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea ebx, [esi + 0xe0]
mov eax, dword [ebx + 4]
test eax, eax
je 0x47ff2c
mov edx, dword [esi + 0x1c]
push 0
push edi
push 0x101d
push edx
call ebp
mov dword [ebx], eax
inc edi
add ebx, 8
cmp edi, 0xb
jl 0x47ff15
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esi + 0xe0]
push 8
push eax
mov eax, dword [esp + 0x18]
push 0
push 0
push str.FileName
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0xe8]
push 8
push ecx
push 0
push 0
push str.DateAdded
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0xf0]
push 8
push eax
push 0
push 0
push str.Queue
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esi + 0xf8]
push 8
push edx
push 0
push 0
push str.Size
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x100]
push 8
push ecx
push 0
push 0
push 0x63e31c
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x108]
push 8
push eax
push 0
push 0
push str.Timeleft
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esi + 0x110]
push 8
push edx
push 0
push 0
push str.TransferRate
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x118]
push 8
push ecx
push 0
push 0
push str.LastTry
push edx
call edi
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x120]
push 8
push eax
push 0
push 0
push 0x63dc74
push ecx
call edi
mov eax, dword [esp + 0x10]
lea edx, [esi + 0x128]
push 8
push edx
push 0
push 0
push str.SaveTo
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x130]
push 8
push ecx
push 0
push 0
push str.Referer
push edx
call edi
lea ebx, [esi + 0x138]
push 0xb
push ebx
mov ecx, esi
call fcn.00581485
test eax, eax
je 0x480075
mov eax, dword [esp + 0x10]
push 0x2c
push ebx
push 0
push 0
push str.Order
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x480e50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5a17e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x65ca8c]
push ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ebp
xor eax, eax
push esi
push edi
mov esi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x24], ax
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x3c], eax
call fcn.00586cbc
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x20]
push eax
call fcn.00402e20
mov ecx, dword [esp + 0x48]
push ecx
lea ecx, [esp + 0x20]
call fcn.00586cbc
mov dl, byte [esp + 0x4c]
mov ecx, dword [esi + 0x5c]
mov byte [esp + 0x2c], dl
call fcn.0047be50
mov ebx, dword [esi + 0x5c]
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
mov ecx, ebx
mov ebp, dword [ebx + 8]
lea eax, [ebp + 1]
push eax
call fcn.0042cce0
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
mov ebp, dword [ebx + 4]
shl ecx, 5
add ecx, ebp
call fcn.0042ce60
mov eax, dword [esi + 0x40]
push 0xffff0003
push eax
push 0
push 0
push 0
push 5
push 4
push edi
push 0x23
mov ecx, esi
call fcn.00581156
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
call fcn.00581108
mov eax, dword [esi + 0x44]
push 0xffff0003
push eax
push 0
push 0
push 0
push 9
push 8
push edi
push 0x23
mov ecx, esi
call fcn.00581156
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
mov ecx, esi
call fcn.00581108
mov eax, dword [esi + 0x3c]
push 0xffff0003
push eax
push 0
push 0
push 0
push 1
push 0
push edi
push 0x23
mov ecx, esi
call fcn.00581156
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0
push 0
push 0
push 0
push 0
push 4
push eax
call fcn.00581108
mov ecx, dword [esi + 0x5c]
call fcn.0047b710
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 3
call fcn.00401070
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 2
call fcn.00586b33
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 1
call fcn.00586b33
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0x10
Function at 0x481500
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a1880
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SleepEx]
mov eax, dword [esi + 0x53c]
test eax, eax
jne 0x4815cc
lea eax, [esp + 0x14]
push eax
push 0
push esi
push 0x481690
push 0
push 0
call ebp
test eax, eax
mov dword [esi + 0x53c], eax
je 0x481570
mov eax, dword [esi + 0x544]
test eax, eax
jne 0x4815cc
push 1
push 0
call edi
mov eax, dword [esi + 0x544]
test eax, eax
je 0x48155e
jmp 0x4815cc
mov ecx, dword [0x65ca8c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x10]
push str.Gr_GetWW:CrTh_failed__err__ld_n
push edx
call fcn.0057f8fb
mov ecx, dword [0x6615e0]
add esp, 0xc
test ecx, ecx
je 0x4815b1
mov eax, dword [esp + 0xc]
push 1
push eax
call fcn.00478010
lea ecx, [esp + 0xc]
mov dword [esi + 0x544], 0
mov dword [esp + 0x24], 0xffffffff
call fcn.00586b33
mov eax, dword [esi + 0x540]
test eax, eax
jne 0x48166f
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
push 0x4818a0
push 0
push 0
call ebp
test eax, eax
mov dword [esi + 0x540], eax
je 0x481613
mov eax, dword [esi + 0x548]
test eax, eax
jne 0x48166f
push 1
push 0
call edi
mov eax, dword [esi + 0x548]
test eax, eax
je 0x481601
jmp 0x48166f
mov edx, dword [0x65ca8c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str.Gr_GetWW:CrTh2_failed__err__ld_n
push eax
call fcn.0057f8fb
mov ecx, dword [0x6615e0]
add esp, 0xc
test ecx, ecx
je 0x481654
mov edx, dword [esp + 0x10]
push 1
push edx
call fcn.00478010
lea ecx, [esp + 0x10]
mov dword [esi + 0x548], 0
mov dword [esp + 0x24], 0xffffffff
call fcn.00586b33
mov eax, dword [esi + 0x544]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4827f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x65ca8c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6614c8]
lea edx, [ebp - 0x14]
push ecx
push str._sempty.html
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4828e0
mov ecx, dword [ebp - 0x14]
push 0x63da44
push ecx
call fcn.0056bf3f
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x48289a
mov ecx, 7
mov esi, str._HTML__BODY____BODY___HTML_
lea edi, [ebp - 0x34]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x34]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea edx, [ebp - 0x34]
push 1
push edx
call fcn.0056bdd5
push ebx
call fcn.0056bd58
add esp, 0x14
jmp 0x4828e0
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.0056d327
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push ecx
push str.Gr_CreateEHTML:fopen_failed__errno_ld_n
push edx
call fcn.0057f8fb
mov ecx, dword [0x6615e0]
add esp, 0xc
test ecx, ecx
je 0x4828d4
mov eax, dword [ebp - 0x18]
push 1
push eax
call fcn.00478010
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00586b33
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push ecx
push 0x636fa0
push edx
call fcn.0057f8fb
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c730
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a23b0
push eax
mov dword fs:[0], esp
sub esp, 0x18
lea eax, [esp + 0x14]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareDownloadManagerGrabberSts
push reloc.WSOCK32.dll_accept
mov dword [esi + 0x4b0], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x48c7e5
mov edx, dword [0x65ca8c]
mov dword [esp + 4], edx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 8]
push str.Gr_SetPID:RegCrKey_failed__err_ld_n
push eax
call fcn.0057f8fb
mov ecx, dword [0x6615e0]
add esp, 0xc
test ecx, ecx
je 0x48c7c4
mov edx, dword [esp + 4]
push 1
push edx
call fcn.00478010
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.00586b33
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.maxProjectID
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48c81c
mov eax, dword [esp + 0x14]
inc eax
mov dword [esi + 0x4b0], eax
jmp 0x48c86d
cmp eax, 2
je 0x48c86d
mov ecx, dword [0x65ca8c]
mov dword [esp + 8], ecx
push eax
lea edx, [esp + 0xc]
push str.Gr_SetPID:RegQVE_failed__err_ld_n
push edx
mov dword [esp + 0x30], 1
call fcn.0057f8fb
mov ecx, dword [0x6615e0]
add esp, 0xc
test ecx, ecx
je 0x48c85c
mov eax, dword [esp + 8]
push 1
push eax
call fcn.00478010
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.00586b33
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x63e538]
mov ecx, dword [esi + 0x4b0]
cmp eax, ecx
jl 0x48c88e
inc eax
mov dword [esi + 0x4b0], eax
mov edx, dword [esi + 0x4b0]
mov dword [0x63e538], edx
mov eax, dword [esi + 0x4b0]
push eax
call fcn.00491110
mov ecx, dword [0x6615f8]
add esp, 4
test ecx, ecx
je 0x48c8bf
mov edx, dword [esi + 0x4b0]
push edx
call fcn.004797e0
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x48c8d0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a23c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 0x10]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareDownloadManagerGrabberSts
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x48c97b
mov edx, dword [0x65ca8c]
mov dword [esp + 8], edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.Gr_SetPID:RegCrKey_failed__err_ld_n
push eax
call fcn.0057f8fb
mov ecx, dword [0x6615e0]
add esp, 0xc
test ecx, ecx
je 0x48c95a
mov edx, dword [esp + 8]
push 1
push edx
call fcn.00478010
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00586b33
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0
push str.maxProjectID
push edx
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esi + 0x4b0]
jne 0x48c9b1
cmp eax, dword [esp + 4]
jle 0x48c9b5
mov dword [esp + 4], eax
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push 0
push str.maxProjectID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x48f050
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a266b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor edx, edx
mov ecx, dword [ebp + 8]
push edi
cmp ecx, edx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], edx
jl 0x48f188
cmp ecx, dword [esi + 0xb0]
jge 0x48f188
xor ebx, ebx
cmp edx, dword [esi + 0x528]
jge 0x48f105
mov eax, dword [esi + 0x524]
lea edi, [edx*8]
add eax, edi
cmp ecx, dword [eax]
jne 0x48f166
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x528]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x524]
sub eax, edx
mov ebx, 1
dec eax
add ecx, edi
mov edi, ebx
dec ebx
test edi, edi
je 0x48f0d6
add ecx, 8
jmp 0x48f0ca
test eax, eax
je 0x48f0f5
mov ecx, dword [esi + 0x524]
shl eax, 3
push eax
lea eax, [ecx + edx*8 + 8]
lea ecx, [ecx + edx*8]
push eax
push ecx
call fcn.0056b940
add esp, 0xc
mov eax, dword [esi + 0x528]
mov ebx, dword [ebp + 8]
dec eax
mov dword [esi + 0x528], eax
test ebx, ebx
je 0x48f188
mov edx, dword [ebx]
push 0
push 0x1442
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 8], ebx
mov al, byte [ebx + 0x1e]
mov byte [ebp - 4], 1
test al, al
je 0x48f136
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebx + 0x10]
call fcn.00586b33
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0
call fcn.00586b33
push ebx
call fcn.00582ef5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edx
jmp 0x48f08f
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 0x48f1a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2696
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x528]
mov dword [ebp - 0x14], edi
cmp edi, eax
jge 0x48f261
mov eax, dword [ebx + 0x524]
push 0
push 0x1442
push 0x111
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x524]
mov esi, dword [eax + edi*8 + 4]
test esi, esi
mov dword [ebp - 0x1c], esi
je 0x48f254
mov al, byte [esi + 0x1e]
mov byte [ebp - 4], 2
test al, al
je 0x48f221
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x10]
call fcn.00586b33
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call fcn.00586b33
push esi
call fcn.00582ef5
add esp, 4
mov dword [ebp - 4], 0
inc edi
jmp 0x48f1cb
mov dword [ebp - 4], 0
inc edi
jmp 0x48f1cb
push 0xffffffffffffffff
push 0
lea ecx, [ebx + 0x520]
call fcn.004963f0
mov ecx, ebx
call fcn.00493a60
mov esi, dword [ebx + 0x534]
test esi, esi
je 0x48f2c0
mov dword [ebp - 0x1c], esi
mov al, byte [esi + 0x1e]
mov byte [ebp - 4], 4
test al, al
je 0x48f299
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x10]
call fcn.00586b33
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call fcn.00586b33
push esi
call fcn.00582ef5
add esp, 4
mov dword [ebx + 0x534], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x490ff0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a272b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], ebx
xor esi, esi
cmp esi, dword [edi + 0xb0]
jge 0x4910d9
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x68], bx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x5c], bx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0xc8], 0x5bb0e4
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0xc8]
push ebx
push eax
push esi
lea ecx, [edi + 8]
mov byte [ebp - 4], 1
call fcn.0055c420
cmp al, bl
je 0x4910a9
cmp byte [ebp - 0x80], bl
je 0x4910a9
mov eax, dword [ebp - 0x38]
cmp dword [eax - 8], ebx
jle 0x4910a9
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], bl
call fcn.004511f0
inc esi
jmp 0x49101d
mov edx, dword [edi + 0x424]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4910f6
push edx
call fcn.0056d0ab
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4917c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a27c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x65ca8c]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x6614c8]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabberProjects_
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push eax
call ebx
cmp eax, 0xffffffff
jne 0x49192b
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00586fa2
mov esi, eax
cmp esi, 0xffffffff
je 0x491922
lea ecx, [ebp - 0x18]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0057f4fd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x18]
sete bl
call fcn.00586b33
test bl, bl
je 0x491831
lea edx, [ebp - 0x20]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0057f4fd
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x20]
sete bl
call fcn.00586b33
test bl, bl
je 0x491831
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x1c]
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 - 0x1c]
mov eax, dword [0x662224]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0057f8fb
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
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
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 0x4b0]
mov eax, dword [ebp - 0x14]
push edx
lea esi, [edi + 0x4c0]
push eax
push str._sproject_ld.igp
push esi
call fcn.0057f8fb
add esp, 0x10
mov edi, 1
mov eax, dword [esi]
push eax
call ebx
cmp eax, 0xffffffff
je 0x491979
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
inc edi
mov edx, dword [ecx + 0x4b0]
push edi
push edx
push eax
push str._sproject_ld__d.igp
push esi
call fcn.0057f8fb
add esp, 0x14
jmp 0x49194f
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00586b33
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
Function at 0x4938f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], ebx
xor esi, esi
cmp esi, dword [edi + 0xb0]
jge 0x493a4f
mov eax, dword [0x65ca8c]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x68], ebx
mov word [ebp - 0x6c], bx
call fcn.0047fa50
mov eax, dword [0x65ca8c]
mov dword [ebp - 0xcc], 0x5bb0e4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0xcc]
push ebx
push eax
push esi
lea ecx, [edi + 8]
mov byte [ebp - 4], 1
call fcn.0055c420
cmp al, bl
je 0x493a1f
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 8], ebx
jle 0x4939ab
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x58]
cmp dword [eax - 8], ebx
jle 0x493a10
cmp dword [ebp - 0xb4], ebx
jne 0x493a10
mov ecx, dword [0x65ca8c]
mov dword [ebp - 0x14], ecx
push eax
lea edx, [ebp - 0x14]
push 0x636fa0
push edx
mov byte [ebp - 4], 2
call fcn.0057f8fb
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x14]
push 0x5c
push ecx
call fcn.0056aa30
add esp, 8
cmp eax, ebx
je 0x493a04
mov byte [eax], bl
mov edx, dword [ebp - 0x14]
push edx
call fcn.0056d0ab
add esp, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00586b33
lea eax, [ebp - 0xcc]
mov ecx, edi
push eax
push esi
call fcn.004932b0
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], bl
call fcn.004511f0
inc esi
jmp 0x49391d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret