joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7a3910
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push 0
push eax
lea ecx, [edi + 0x234]
push ecx
mov dword [ebp - 4], 0
call fcn.4c7c85e0
test eax, eax
je 0x4c7a3967
push 0
push 0x100
push 2
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c7a3972
push 0x36b1
push edi
call fcn.4c7a38a0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x14], 0
je 0x4c7a39c7
push 0
lea edx, [ebp - 4]
push edx
push 0x10
push 0x4c78260c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c7a39c7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7a39b9
push 0xd38
push 0x4c7825d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push 0x36b1
push edi
or esi, 0xffffffff
call fcn.4c7a38a0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4c7a39e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
xor eax, eax
push edi
push ebx
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
xor esi, esi
push edx
mov dword [ebp - 4], esi
mov byte [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea ebx, [ebx]
cmp edi, 0xffffffff
jne 0x4c7a3a6b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
push ebx
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
add esi, 1
cmp esi, 5
mov edi, eax
jb 0x4c7a3a30
cmp edi, 0xffffffff
je 0x4c7a3ab7
push 0
lea eax, [ebp - 4]
push eax
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c7a3ab7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4c7a3aab
push 0xd81
push 0x4c782620
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4c7a3ad0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test byte [ecx + 8], 2
mov eax, 1
jne 0x4c7a3aed
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
ret 8
Function at 0x4c7a4c10
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
push esi
test eax, eax
mov esi, dword [ebp + 8]
je 0x4c7a4c2f
cmp eax, 1
jne 0x4c7a4c21
jmp 0x4c7a4c35
test byte [esi + 8], 0x20
jne 0x4c7a4c6e
mov eax, dword [esi + 0x3ad0]
cmp eax, 0xffffffff
je 0x4c7a4c92
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c7a4c92
mov edx, dword [ebp - 4]
add dword [esi + 0x3cdc], edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x3ce0]
cmp eax, 0xffffffff
je 0x4c7a4c92
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c7a4ca6
push 0x36b1
push esi
call fcn.4c7a38a0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 4]
add dword [esi + 0x3eec], edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c7a72d0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x4c7a72e5
xor eax, eax
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [ecx + 0x88e0]
test edi, edi
jne 0x4c7a72f9
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 4]
push ebx
push esi
mov esi, dword [eax]
cmp esi, eax
mov ebx, 1
mov dword [ebp - 4], esi
je 0x4c7a73ac
jmp 0x4c7a7315
mov ecx, dword [ebp + 8]
cmp dword [esi + 0x28], 8
jb 0x4c7a7320
mov eax, dword [esi + 0x14]
jmp 0x4c7a7323
lea eax, [esi + 0x14]
test byte [ecx + 8], 2
jne 0x4c7a7372
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c7a7372
push 0xefe
push 0x4c78296c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
cmp dword [esi + 0x28], 8
jb 0x4c7a735d
mov esi, dword [esi + 0x14]
jmp 0x4c7a7360
add esi, 0x14
push esi
push 0x4c782788
call fcn.4c7c02b0
add esp, 8
xor ebx, ebx
jmp 0x4c7a7398
cmp dword [esi + 0x28], 8
jb 0x4c7a737d
mov esi, dword [esi + 0x14]
jmp 0x4c7a7380
add esi, 0x14
push 0xf06
push 0x4c78296c
push esi
push 0x4c782760
call fcn.4c7c02b0
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.4c7a5500
mov esi, dword [ebp - 4]
cmp esi, dword [edi + 4]
jne 0x4c7a7312
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, edi
call fcn.4c7a6b50
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [edi + 8], 0
mov dword [eax], eax
mov eax, dword [edi + 4]
pop esi
mov dword [eax + 8], eax
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4c7ab330
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x24e]
push ebx
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
mov word [ebp - 0x250], bx
call sub.msvcrt.dll_memset
push 0x3e
lea ecx, [ebp - 0x46]
push ebx
push ecx
mov word [ebp - 0x48], bx
call sub.msvcrt.dll_memset
mov edi, dword [ebp + 8]
add esp, 0x18
push 1
push 0x4c782800
lea edx, [ebp - 0x250]
push edx
push edi
call fcn.4c7a3910
mov esi, eax
cmp esi, 0xffffffff
je 0x4c7ab3da
push 0x177
push 0x4c782ba4
lea eax, [ebp - 0x250]
push eax
push 0x4c7827d8
call fcn.4c7c02b0
add esp, 0x10
push ebx
lea ecx, [ebp - 8]
push ecx
push 0x2fd4
lea edx, [edi + 0x464]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c7ab3cf
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4c7ab3f0
push 0x36b1
push edi
call fcn.4c7a38a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 1
lea eax, [ebp - 1]
push eax
push edi
mov byte [ebp - 1], 0xfc
call fcn.4c7a4c10
test eax, eax
je 0x4c7ab3e5
push 0
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.4c7a3750
push 1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x48]
push edx
push edi
call fcn.4c7a4c10
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c7ab450
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x20c], di
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, edi
je 0x4c7ab5a0
mov ebx, dword [ebp + 0xc]
cmp ebx, edi
je 0x4c7ab5a0
cmp dword [esi + 0x448], edi
je 0x4c7ab5a0
cmp dword [esi + 0x444], edi
je 0x4c7ab5a0
mov edi, dword [ebp + 0x10]
push edi
lea ecx, [ebx + 0x3250]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
lea edx, [esi + 0x234]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.4c7a3800
push 0
push 0x100
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x20c]
push ecx
call fcn.4c7a39e0
mov edi, eax
cmp edi, 0xffffffff
je 0x4c7ab5a0
push 0
lea edx, [ebp - 4]
push edx
push 0x2fd4
add ebx, 0x27c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [esi + 8], 0x10
je 0x4c7ab52d
mov eax, dword [ebp + 0xc]
mov word [eax + 0x2c8], 1
cmp dword [ebp + 0x14], 0
mov eax, dword [esi + 0x440]
jne 0x4c7ab568
test eax, eax
je 0x4c7ab550
mov ecx, dword [esi + 0x448]
push eax
call ecx
mov dword [esi + 0x440], 0
mov edx, dword [esi + 0x45c]
mov eax, dword [esi + 0x444]
push 0
push 0
push edx
push 0
push ebx
call eax
jmp 0x4c7ab586
mov edx, dword [esi + 0x45c]
lea ecx, [esi + 0x80b4]
push ecx
mov ecx, dword [esi + 0x454]
push 0
push 0
push edx
push 0
push ebx
push eax
call ecx
mov dword [esi + 0x440], eax
xor eax, eax
cmp dword [esi + 0x440], eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4c7ab5b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
test dword [ebx + 8], 0x4000000
mov dword [ebp - 4], edi
jne 0x4c7ab5cd
mov dword [ebx + 0x10], edi
mov esi, dword [ebp + 0xc]
lea eax, [esi + 4]
push 0x2fd4
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebx + 0x464]
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, edi
je 0x4c7ab625
movsx edx, word [esi + 0x50]
mov dword [ebx + 0xc], edx
test byte [esi + 0x1c18], 2
je 0x4c7ab608
or dword [ebx + 8], 0x20
jmp 0x4c7ab60c
and dword [ebx + 8], 0xffffffdf
test byte [esi + 0x26ff], 1
je 0x4c7ab61e
or dword [ebx + 8], 0x8000
jmp 0x4c7ab625
and dword [ebx + 8], 0xffff7fff
mov eax, dword [ebx + 8]
test eax, 0x4000000
je 0x4c7ab638
or dword [ebx + 0x36a0], 1
jmp 0x4c7ab63f
and dword [ebx + 0x36a0], 0xfffffffe
cmp ecx, edi
je 0x4c7ab655
cmp word [esi + 0x54], 1
jne 0x4c7ab64f
or eax, 0x10
jmp 0x4c7ab652
and eax, 0xffffffef
mov dword [ebx + 8], eax
add esi, 0x26ff
lea edi, [ebx + 0x3440]
mov ecx, 0x84
rep movsd dword es:[edi], dword [esi]
push 1
movsw word es:[edi], word [esi]
push 0x4c782800
lea edi, [ebx + 0x36b8]
push edi
push ebx
call fcn.4c7a3910
mov esi, eax
cmp esi, 0xffffffff
je 0x4c7ab6fd
push 0x10d
push 0x4c782bc4
push edi
push 0x4c7827d8
call fcn.4c7c02b0
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push 0
lea eax, [ebp - 4]
push eax
push 0x2fd4
push ecx
push esi
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c7ab6c1
mov dword [ebp + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x4c7ab6ec
push 0x11a
push 0x4c782bc4
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
cmp dword [ebp + 8], 0
jne 0x4c7ab708
push 0x36b1
push ebx
call fcn.4c7a38a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0
push edi
add ebx, 0x3652
push ebx
call fcn.4c7a3750
test eax, eax
jne 0x4c7ab735
push 0x134
push 0x4c782bc4
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c7abdb0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4c7de440]
push esi
mov esi, dword [sym.imp.msvcrt.dll_getc]
push edi
push eax
call esi
mov ecx, dword [0x4c7de440]
push ecx
mov edi, eax
call esi
add esp, 8
cmp edi, 0xff
pop edi
pop esi
jne 0x4c7abde0
cmp eax, 0xd8
jne 0x4c7abde0
ret
mov edx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782c48
add edx, 0x40
push 0x4c782c44
push edx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x4c7abe10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4c7de440]
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_getc]
push eax
call edi
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x4c7abe4f
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782c58
add ecx, 0x40
push 0x4c782c44
push ecx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edx, dword [0x4c7de440]
push edx
call edi
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x4c7abe86
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782c58
add eax, 0x40
push 0x4c782c44
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov eax, esi
shl eax, 8
pop edi
add eax, ecx
pop esi
ret

Function at 0x4c7abee0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4c7de440]
push ebx
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_getc]
push eax
xor ebx, ebx
call edi
add esp, 4
cmp eax, 0xffffffff
jne 0x4c7abf20
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782c58
add ecx, 0x40
push 0x4c782c44
push ecx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
cmp eax, 0xff
je 0x4c7abf50
jmp 0x4c7abf30
mov edx, dword [0x4c7de440]
push edx
add ebx, 1
call edi
add esp, 4
cmp eax, 0xffffffff
je 0x4c7abf8c
cmp eax, 0xff
jne 0x4c7abf30
jmp 0x4c7abf50
mov ecx, dword [0x4c7de440]
push ecx
call edi
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x4c7abfb0
cmp esi, 0xff
je 0x4c7abf50
test ebx, ebx
je 0x4c7abf86
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x4c782c74
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782c58
add eax, 0x40
push 0x4c782c44
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782c58
add edx, 0x40
push 0x4c782c44
push edx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x4c7ac070
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebx
push esi
call fcn.4c7abe10
mov esi, dword [sym.imp.msvcrt.dll_putc]
mov ebx, eax
mov eax, dword [0x4c7de444]
movzx ecx, bh
push eax
push ecx
call esi
mov edx, dword [0x4c7de444]
mov eax, ebx
push edx
and eax, 0xff
push eax
call esi
add esp, 0x10
cmp ebx, 2
jae 0x4c7ac0cb
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782ca0
add ecx, 0x40
push 0x4c782c44
push ecx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
sub ebx, 2
je 0x4c7ac0fb
push edi
mov edi, dword [sym.imp.msvcrt.dll_getc]
mov edx, dword [0x4c7de440]
push edx
call edi
add esp, 4
cmp eax, 0xffffffff
je 0x4c7ac0fe
mov ecx, dword [0x4c7de444]
push ecx
push eax
call esi
add esp, 8
sub ebx, 1
jne 0x4c7ac0d7
pop edi
pop esi
pop ebx
ret
mov edx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782c58
add edx, 0x40
push 0x4c782c44
push edx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x4c7ac1c0
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.msvcrt.dll_getc]
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
jne 0x4c7ac1fb
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782cd4
add eax, 0x40
push 0x4c782c44
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
push edi
push esi
call sub.msvcrt.dll_ungetc
add esp, 8
cmp eax, 0xffffffff
jne 0x4c7ac22f
mov ecx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782cd4
add ecx, 0x40
push 0x4c782c44
push ecx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
cmp esi, 0x42
pop esi
je 0x4c7ac25a
mov edx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782cc0
add edx, 0x40
push 0x4c782c44
push edx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
pop ebp
jmp fcn.4c7ad700
Function at 0x4c7ac3d0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa18
push esi
xor esi, esi
push 0x206
lea eax, [ebp - 0x816]
push esi
push eax
mov word [ebp - 0x818], si
call sub.msvcrt.dll_memset
push 0x206
lea ecx, [ebp - 0x60e]
push esi
push ecx
mov word [ebp - 0x610], si
call sub.msvcrt.dll_memset
add esp, 0x18
push esi
push 0x23
lea edx, [ebp - 0x818]
push edx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4c7ac4e6
push 0x1fe
lea eax, [ebp - 0xa16]
push esi
push eax
mov word [ebp - 8], si
mov dword [ebp - 6], esi
mov word [ebp - 0xa18], si
call sub.msvcrt.dll_memset
push 0x1fe
lea ecx, [ebp - 0x206]
push esi
push ecx
mov word [ebp - 0x208], si
call sub.msvcrt.dll_memset
push 0x1fe
lea edx, [ebp - 0x406]
push esi
push edx
mov word [ebp - 0x408], si
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xa18]
push edx
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.msvcrt.dll__wsplitpath]
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x610]
push 0x4c782cf8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 0xc]
add esp, 0x4c
lea eax, [ebp - 0x610]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esi + 1]
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4c7ac500
Capabilities:
Check if file exists
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__wfopen]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4c782ce8
push edi
call ebx
add esp, 8
test eax, eax
jne 0x4c7ac552
mov esi, dword [ebp + 0xc]
push esi
push edi
call fcn.4c7ac3d0
test eax, eax
je 0x4c7ac53d
push 0x4c782ce8
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4c7ac546
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push eax
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
jmp 0x4c7ac567
push eax
call dword [sym.imp.msvcrt.dll_fclose]
mov esi, dword [ebp + 0xc]
add esp, 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4c7ac599
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x4c7ac599
push 0x2c3
push 0x4c782d08
call esi
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
Function at 0x4c7ac5b0
Capabilities:
Get disk size
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
push ebx
mov word [ebp - 8], si
mov dword [ebp - 6], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c7ac616
push 0x2d8
push 0x4c782d38
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c78142c
call fcn.4c7c02b0
add esp, 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.msvcrt.dll__wsplitpath]
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push edi
call esi
add esp, 0x14
lea edx, [ebp - 0x18]
push edx
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp - 0x14], 0
jne 0x4c7ac6e7
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x18]
jbe 0x4c7ac6e7
push ebx
push edi
call fcn.4c7ac3d0
test eax, eax
je 0x4c7ac6dc
xor edi, edi
push edi
push edi
push edi
lea edx, [ebp - 0x10]
push edx
push ebx
mov word [ebp - 0x10], di
mov dword [ebp - 0xe], edi
call esi
add esp, 0x14
lea ecx, [ebp - 0x10]
lea eax, [ebp - 8]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c7ac6b6
cmp dx, di
je 0x4c7ac6b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c7ac6b6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x4c7ac690
xor eax, eax
jmp 0x4c7ac6bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x4c7ac6dc
lea eax, [ebp - 0x18]
push eax
push edi
push edi
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp dword [ebp - 0x14], edi
jne 0x4c7ac6e7
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0x18]
jbe 0x4c7ac6e7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c7ac750
Capabilities:
Terminate process

Disassembly:
call fcn.4c7abdb0
cmp eax, 0xd8
je 0x4c7ac780
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782d78
add eax, 0x40
push 0x4c782c44
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [0x4c7de444]
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_putc]
push ecx
push 0xff
call edi
mov edx, dword [0x4c7de444]
push edx
push 0xd8
call edi
add esp, 0x10
call fcn.4c7abee0
mov esi, eax
lea eax, [esi - 0xc0]
cmp eax, 0x3e
ja case.0x4c7ac7c0.196
movzx eax, byte [eax + 0x4c7ac850]
jmp dword [eax*4 + 0x4c7ac840]
test ebx, ebx
je 0x4c7ac7ed
mov ecx, dword [0x4c7de444]
push ecx
push 0xff
call edi
mov edx, dword [0x4c7de444]
push edx
push esi
call edi
add esp, 0x10
call fcn.4c7ac070
jmp 0x4c7ac7a7
call fcn.4c7ac130
jmp 0x4c7ac7a7
mov eax, dword [0x4c7de444]
push eax
push 0xff
call edi
mov ecx, dword [0x4c7de444]
push ecx
push esi
call edi
add esp, 0x10
call fcn.4c7ac070
jmp 0x4c7ac7a7
mov edx, dword [sym.imp.msvcrt.dll__iob]
push 0x4c782d60
add edx, 0x40
push 0x4c782c44
push edx
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
pop edi
mov eax, esi
pop esi
ret