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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506468
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5651c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
call fcn.00406d01
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x470168
push 0x80004005
call fcn.00406e83
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, 0x51e0b8
jne 0x47017d
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x47017f
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.00470280
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
test al, al
jne 0x4701a4
xor bl, bl
jmp 0x470220
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebx]
lea ecx, [esi - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x47021b
cmp dword [edi + 0xc], 0
jl 0x470210
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x470210
call fcn.0040737c
mov dword [ebp - 0x14], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x470206
mov edx, dword [edi]
push edi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x51e0b8
jne 0x470202
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x47021b
mov ecx, edx
call eax
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x47021b
push dword [esi - 0xc]
mov ecx, ebx
push esi
call fcn.0040937e
mov bl, 1
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x470267
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x470265
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call edx
mov al, bl
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 0x470280
Capabilities:
Get common file path

Disassembly:
sub esp, 0x414
mov eax, dword [0x5651c0]
xor eax, esp
mov dword [esp + 0x410], eax
push esi
push edi
lea eax, [esp + 0x210]
mov edi, edx
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4702ca
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.004d207d
add esp, 0x414
ret
lea eax, [esp + 8]
push eax
push 0
push dword [esi]
lea eax, [esp + 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4702b1
lea eax, [esp + 8]
push eax
call fcn.004d828d
add esp, 4
mov ecx, edi
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0040937e
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004d207d
add esp, 0x414
ret
Function at 0x4714e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5066d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5651c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x471550
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x471550
mov dword [edi], eax
mov bl, 1
jmp 0x471552
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47156b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov al, bl
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 0x471580
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5065a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x5651c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
lea ecx, [ebp - 0x10]
call fcn.00471630
mov dword [ebp - 4], 0
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471613
mov edx, dword [esi]
push esi
mov ecx, dword [edx]
mov eax, dword [ecx + 4]
cmp ecx, 0x51e0b8
jne 0x47160f
mov ecx, dword [edx + 4]
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471c00
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x471cb2
mov eax, dword [esi]
lea ecx, [eax - 0x10]
mov edi, dword [ecx]
cmp dword [ecx + 4], ebx
je 0x471d0c
cmp dword [ecx + 0xc], ebx
lea edx, [ecx + 0xc]
jge 0x471c55
cmp dword [eax - 8], ebx
jl 0x471d15
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax], cx
mov eax, ebx
pop ebx
ret 4
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x471c82
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebp, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x471d1f
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [edi]
cmp eax, 0x51e0b8
jne 0x471d28
lock inc dword [edi + 0x14]
lea eax, [edi + 8]
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
add eax, 0x10
pop edi
mov dword [esi], eax
mov eax, ebx
pop esi
pop ebp
pop ebx
ret 4
js 0x471d32
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x471ccf
push edi
mov ecx, esi
call fcn.004069f7
push edi
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x471ce3
xor ecx, ecx
jmp 0x471cf5
push dword [eax - 8]
push eax
call fcn.004d7fd2
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x471d15
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x471d15
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
mov word [eax + ecx*2], dx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00406e83
mov ecx, edx
call ebp
jmp 0x471c82
mov ecx, edi
call dword [eax + 0xc]
jmp 0x471ca4
push 0x80070057
call fcn.00406e83
int3
Function at 0x479fff
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0x101
push edi
inc ebx
cmp byte [esp + 0x44], 0
mov eax, ebx
cmovne eax, esi
lea esi, [esp + 0x1c]
push esi
push eax
xor edi, edi
push edi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [esp + 0x30], 0xffffffff
mov esi, eax
push 0x14
mov dword [esp + 0x1c], ebx
pop ebx
push ebx
call fcn.004d25b2
or dword [esp + 0x2c], 0xffffffff
mov ebp, eax
push ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x18], ebx
call fcn.004d25b2
pop ecx
pop ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x44], ebx
call fcn.00475d80
or dword [esp + 0x28], 0xffffffff
push ebx
call fcn.004d25b2
mov ebx, eax
mov eax, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x18], eax
pop ecx
test esi, esi
jne 0x47a166
mov esi, str.InstallLanguage
lea ecx, [esp + 0x44]
push ecx
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
lea ecx, [esp + 0x20]
push ecx
push ebp
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [esp + 0x24], eax
cmp eax, 0xea
jne 0x47a114
lea ecx, [esp + 0x30]
call fcn.00475d80
push dword [esp + 0x10]
or dword [esp + 0x34], 0xffffffff
call fcn.004d25b2
pop ecx
mov ebp, eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x34], ebp
call fcn.00475d80
push dword [esp + 0x44]
or dword [esp + 0x2c], 0xffffffff
call fcn.004d25b2
pop ecx
mov ebx, eax
lea eax, [esp + 0x44]
push eax
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x34], ebx
push eax
push edi
lea eax, [esp + 0x20]
push eax
push ebp
push dword [esp + 0x2c]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, ebp
lea eax, [esi - 1]
sub ecx, str.InstallLanguage
mov dword [esp + 0x20], ecx
inc eax
mov cl, byte [ecx + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x47a13d
jg 0x47a13d
test cl, cl
je 0x47a152
test dl, dl
je 0x47a152
mov ecx, dword [esp + 0x20]
jmp 0x47a123
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x24], edi
je 0x47a090
jmp 0x47a166
or dword [esp + 0x24], 0xffffffff
lea edx, [esp + 0x24]
push ecx
mov ecx, ebx
call fcn.00475f40
pop ecx
mov edi, eax
lea ecx, [esp + 0x28]
call fcn.00475d80
lea ecx, [esp + 0x30]
call fcn.00475d80
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x47d68d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5651c0]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x6c], 1
push ebx
push esi
push edi
je 0x47d71b
test dword [ecx + 0x6c], 0x2000
jne 0x47d71b
call fcn.0047e588
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x47d71b
xor esi, esi
mov ecx, edi
push esi
call fcn.0046ddb0
push 0x5c
pop ebx
cmp ax, bx
jne 0x47d6ec
push 1
mov ecx, edi
call fcn.0046ddb0
cmp ax, bx
jne 0x47d6ec
push 2
mov ecx, edi
call fcn.0046ddb0
cmp ax, bx
jne 0x47d71b
test esi, esi
js 0x47d72e
push esi
mov ecx, edi
call fcn.00472140
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x47d6ec
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x47d71d
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d207d
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00406e83
int3

Function at 0x47d739
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0x14
mov eax, 0x507d64
call fcn.004d2c19
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.0047e588
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0046f390
push 0x5c
push dword [ebx]
call fcn.004d5852
pop ecx
pop ecx
test eax, eax
jne 0x47d76d
or eax, 0xffffffff
jmp 0x47d771
sub eax, dword [ebx]
sar eax, 1
inc eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00444f84
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004072ec
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47d7b7
push 0x80
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47d7d2
inc edi
mov dword [esi + 0x10], edi
jmp 0x47d85a
push ebx
push 3
lea ecx, [esi + 0x18]
call fcn.00489447
call fcn.00406d01
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b29
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
push edi
push eax
lea ecx, [esi + 0x18]
call fcn.004894ec
push dword [eax]
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
push 0x52b9bc
push eax
call fcn.00457385
add esp, 0x10
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov esi, dword [ebp - 0x1c]
lea ecx, [esi + 0x178]
call fcn.004845ba
push edi
push 0x20
push edi
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004855ba
add esp, 0xc
test al, al
jne 0x47d84b
xor edi, edi
inc edi
mov dword [esi + 0x10], edi
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00406df6
mov eax, edi
call fcn.004d2be2
ret
Function at 0x47ed8d
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x5080d7
call fcn.004d2c19
mov esi, ecx
mov eax, dword [esi + 0x1cc]
test eax, eax
je 0x47eead
or ebx, 0xffffffff
cmp eax, ebx
je 0x47eead
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x20], 0x103
jne 0x47eead
lea ecx, [ebp - 0x40]
call fcn.00493e9a
push str.Advinst_Estimate_
lea ecx, [ebp - 0x1c]
call fcn.00409419
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
call fcn.0047e588
push ecx
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call fcn.00475c10
pop ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00471b30
push dword [ebp - 0x18]
lea ecx, [ebp - 0x24]
call fcn.0047f9fb
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.0047f1e3
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00493ec4
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406df6
push 0x52efd8
lea ecx, [ebp - 0x14]
call fcn.00409419
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edi
push edx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea ecx, [ebp - 0x2c]
call fcn.00475d80
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00406df6
lea ecx, [ebp - 0x40]
call fcn.00493f75
call fcn.004d2be2
ret
Function at 0x480c00
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x24
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
cmp byte [edi + 0xc0], 0
je 0x480d7c
cmp byte [edi + 0xd8], 0
jne 0x480d7c
cmp dword [edi + 0x90], 3
je 0x480c4f
call fcn.004823a2
mov eax, dword [edi + 0x90]
cmp eax, 2
je 0x480c4f
cmp eax, 1
je 0x480c4f
test byte [edi + 0x44], 0x48
je 0x480c4f
mov ecx, edi
call fcn.00481413
mov eax, dword [edi + 0xa8]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
push ebx
mov ebx, ecx
push ebp
mov ebp, ecx
mov dword [esp + 0x1c], ebp
push esi
test eax, eax
jle 0x480cc5
mov ebp, dword [esp + 0x10]
lea eax, [edi + 0xa4]
mov edi, eax
push ebx
mov ecx, edi
call fcn.00406760
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x480cb8
push ebx
mov ecx, edi
call fcn.00406760
push eax
lea ecx, [esp + 0x2c]
call fcn.0046daf0
inc ebx
cmp ebx, ebp
jl 0x480c8a
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov ebx, dword [edi + 0xb4]
sub ebx, 1
js 0x480d0d
lea ebp, [edi + 0xb0]
push ebx
mov ecx, ebp
call fcn.00406760
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x480d04
push ebx
mov ecx, ebp
call fcn.00406760
push eax
lea ecx, [esp + 0x20]
call fcn.0046daf0
sub ebx, 1
jns 0x480cd6
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
lea ecx, [edi + 0xa4]
call fcn.0048392e
lea ebx, [edi + 0xb0]
mov ecx, ebx
call fcn.00451f33
lea esi, [ebp - 1]
test esi, esi
js 0x480d48
push esi
lea ecx, [esp + 0x20]
call fcn.00406760
push eax
mov ecx, ebx
call fcn.0046daf0
sub esi, 1
jns 0x480d31
cmp dword [edi + 0xa8], 0
pop esi
pop ebp
pop ebx
jne 0x480d62
cmp dword [edi + 0xb4], 0
jne 0x480d62
xor eax, eax
inc eax
jmp 0x480d64
xor eax, eax
lea ecx, [esp + 0x10]
mov byte [edi + 0xd8], al
call fcn.00451f33
lea ecx, [esp + 0x1c]
call fcn.00451f33
pop edi
add esp, 0x24
ret
Function at 0x4823a2
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x508625
call fcn.004d2c19
mov esi, ecx
test byte [esi + 0x44], 1
je 0x4823c0
test byte [esi + 0x44], 0x40
je 0x4824fc
mov eax, dword [esi + 0x7c]
xor edi, edi
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x4824fc
lea eax, [esi + 0x78]
push edi
mov ecx, eax
call fcn.00483874
mov ebx, eax
cmp byte [ebx + 0x1c], 0
je 0x4824ef
cmp dword [ebx], 1
je 0x482419
cmp dword [ebx], 3
je 0x482419
cmp dword [ebx], 7
je 0x482419
cmp dword [ebx], 8
je 0x482419
cmp dword [ebx], 0x64
jb 0x482440
mov eax, dword [esi + 0x90]
cmp eax, 2
je 0x4824ef
cmp eax, 5
jne 0x482440
jmp 0x4824ef
mov eax, dword [esi + 0x90]
cmp eax, 4
je 0x482440
cmp eax, 2
je 0x4824ef
cmp eax, 1
je 0x4824ef
test byte [ebx + 8], 1
jne 0x4824ef
push dword [ebx + 4]
mov ecx, esi
call fcn.0048309e
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.004073cf
mov ecx, dword [ebx + 0x18]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004072ec
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x48247c
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406951
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4824bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4824bc
lea ecx, [ebp - 0x28]
call fcn.00406e18
lea ecx, [ebp - 0x24]
call fcn.00406e18
lea eax, [ebp - 0x10]
mov word [ebp - 0x20], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0047a5d5
lea ecx, [ebp - 0x28]
call fcn.00450558
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x18]
call fcn.0046f880
mov edx, dword [ebp - 0x14]
mov ecx, eax
call fcn.00470320
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00406df6
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406df6
inc edi
lea eax, [esi + 0x78]
cmp edi, dword [ebp - 0x1c]
jl 0x4823d3
call fcn.004d2be2
ret
Function at 0x482502
Capabilities:
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x508648
call fcn.004d2c19
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
cmp dword [edi + 0x10], eax
je 0x482678
mov ecx, dword [edi + 0x1c]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x28], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x482565
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048304f
push 2
pop eax
jmp 0x482678
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.00406e18
mov esi, ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ebx
cmp dword [edi + 0x10], ebx
jbe 0x48265a
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x18
lea eax, [ebp - 0x48]
push eax
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x482640
cmp dword [ebp - 0x14], ebx
je 0x482640
test esi, esi
je 0x4825c9
push esi
call fcn.004d26a2
pop ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00483990
mov esi, dword [ebp - 0x10]
test al, al
je 0x48263c
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x34]
add eax, eax
push eax
push esi
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x482640
cmp dword [ebp - 0x14], ebx
je 0x482640
mov eax, dword [ebp - 0x34]
xor ecx, ecx
mov word [esi + eax*2], cx
lea eax, [ebp - 0x48]
push eax
lea ecx, [edi + 0x78]
call fcn.0048389b
push dword [ebp - 0x18]
lea ecx, [edi + 0x78]
call fcn.00483874
push esi
lea ecx, [eax + 0x18]
call fcn.004093f1
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0x10]
jb 0x482593
jmp 0x48265a
push 3
jmp 0x482659
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048304f
push 2
pop ebx
push esi
call fcn.004d26a2
lea eax, [ebp - 0x30]
pop ecx
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00406df6
mov eax, ebx
call fcn.004d2be2
ret
Function at 0x48267e
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x508673
call fcn.004d2c19
mov edi, ecx
xor eax, eax
cmp dword [edi + 0x9c], eax
jg 0x482817
mov ecx, dword [edi + 0xc]
add ecx, dword [edi + 0x58]
mov dword [ebp - 0x38], ecx
adc eax, dword [edi + 0x5c]
xor ebx, ebx
push ebx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
push ecx
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4826e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048304f
push 2
pop eax
jmp 0x482817
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ebx
cmp dword [edi + 8], ebx
jbe 0x48280e
push ebx
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4827f4
cmp dword [ebp - 0x14], 0
je 0x4827f4
lea ecx, [ebp - 0x24]
call fcn.00406e18
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x48273d
push esi
call fcn.004d26a2
pop ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
inc eax
push eax
call fcn.00483990
mov esi, dword [ebp - 0x10]
test al, al
je 0x4827da
push ebx
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
add eax, eax
push eax
push esi
push dword [edi + 0x84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4827bf
cmp dword [ebp - 0x14], 0
je 0x4827bf
mov eax, dword [ebp - 0x28]
xor ecx, ecx
push esi
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x24]
call fcn.004093f1
lea eax, [ebp - 0x24]
push eax
lea ecx, [edi + 0x98]
call fcn.004837f5
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406df6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 8]
jb 0x4826f8
jmp 0x48280e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048304f
push 2
jmp 0x4827dc
push 3
lea eax, [ebp - 0x24]
pop ebx
mov dword [ebp - 0x1c], eax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406df6
jmp 0x48280e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
mov ecx, edi
push eax
push 0x103
call fcn.0048304f
push 2
pop ebx
push esi
call fcn.004d26a2
pop ecx
mov eax, ebx
call fcn.004d2be2
ret

Function at 0x4837bb
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xe4], edi
jle 0x4837e8
push ebx
push edi
lea ecx, [esi + 0xe0]
call fcn.00406760
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0xe4]
jl 0x4837ca
pop ebx
pop edi
lea ecx, [esi + 0xe0]
pop esi
jmp fcn.00451f33