joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4939fa
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x6c
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push 0x1c
mov eax, 0x50974f
call fcn.004cc273
mov eax, edx
mov dword [ebp - 0x20], eax
xor edx, edx
push edx
push 0x80
push 3
push edx
push 3
push 0x80000000
push ecx
mov byte [eax], dl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
and dword [ebp - 0x24], 0
mov ebx, eax
mov dword [ebp - 0x28], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x493b11
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x493b11
cmp edi, dword [ebp + 0x78]
jbe 0x493b11
sub edi, dword [ebp + 0x78]
and dword [ebp - 0x1c], 0
push 0x10000
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00489bf4
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
test esi, esi
je 0x493b00
and dword [ebp - 0x18], 0
lea ecx, [ebp]
and dword [ebp - 0x14], 0
call fcn.004c70f0
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493aea
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x493aea
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x493ad1
mov ecx, edi
mov byte [ebp - 0xd], 1
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.004c6ef0
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x18], eax
je 0x493a9e
lea ecx, [ebp]
call fcn.004c6fc0
push dword [ebp - 0x20]
lea ecx, [ebp]
call fcn.004c7090
mov byte [ebp - 0xd], al
push esi
mov byte [ebp - 4], 0
call fcn.004cbcfc
and dword [ebp - 0x1c], 0
pop ecx
jmp 0x493b15
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x493b28
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x28], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x493bb3
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x50977f
call fcn.004cc2a7
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
push ecx
push ecx
call fcn.0046db10
pop ecx
mov ecx, eax
call fcn.0046deb0
test al, al
je 0x493c9c
push edi
call fcn.00493cfd
test al, al
je 0x493c9c
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.004cd4d0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004cd4d0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push ebx
push 0x531b44
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.00493d7f
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], ebx
call fcn.0049417d
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
dec eax
neg eax
sbb al, al
add al, 1
mov byte [esi + 4], al
jne 0x493c8b
push edi
mov ecx, esi
call fcn.00493d7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.0049412d
jmp 0x493ca8
push edi
mov ecx, esi
call fcn.00493d7f
mov byte [esi + 4], 0
mov eax, esi
call fcn.004cc251
ret 4

Function at 0x493cfd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push esi
push 0x24
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x20c]
call fcn.0046e610
mov ecx, edi
mov edx, eax
call fcn.0046e610
cmp eax, edx
jae 0x493d45
xor al, al
jmp 0x493d6d
test edx, edx
je 0x493d6b
lea eax, [ebp - 0x20c]
sub edi, eax
lea eax, [edi + esi*2]
mov ax, word [ebp + eax - 0x20c]
cmp ax, word [ebp + esi*2 - 0x20c]
jne 0x493d41
inc esi
cmp esi, edx
jb 0x493d51
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cb6da
mov esp, ebp
pop ebp
ret 4
Function at 0x493e59
Capabilities:
Delete file
Get file version info

Disassembly:
push 0x20
mov eax, 0x5097bd
call fcn.004cc273
mov dword [ebp - 0x24], edx
xor edi, edi
mov esi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00493bb3
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x493efa
push eax
lea ecx, [ebp - 0x10]
call fcn.00489bf4
mov esi, dword [ebp - 0x10]
test al, al
jne 0x493eab
push 8
pop edi
jmp 0x493f02
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x493efa
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x52686c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x493f02
cmp dword [ebp - 0x20], 0
je 0x493f02
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x493eec
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x493f02
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x493f02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 3
cmp byte [ebp - 0x28], 0
je 0x493f15
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x2c]
call fcn.004cbcfc
pop ecx
push esi
call fcn.004cbcfc
pop ecx
mov eax, edi
call fcn.004cc23c
ret
Function at 0x493f2d
Capabilities:
Get file version info

Disassembly:
push 0x24
mov eax, 0x5097f0
call fcn.004cc273
mov eax, ecx
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x18], esi
and dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
push eax
call fcn.00407175
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ebx
jle 0x493f6b
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406701
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x494070
push edi
lea ecx, [ebp - 0x18]
call fcn.00489bf4
test al, al
jne 0x493f95
mov esi, dword [ebp - 0x18]
jmp 0x494070
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], ebx
jle 0x493fab
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00406701
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push esi
push edi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x494070
lea ecx, [ebp - 0x10]
call fcn.00406bcb
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x24]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x494001
cmp dword [ebp - 0x20], 0
je 0x494001
mov ecx, dword [ebp - 0x24]
push 0x524fcc
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
jmp 0x494010
push 0x524fcc
push 0x4e2
push 0x409
lea eax, [ebp - 0x10]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00407a35
mov eax, dword [ebp - 0x10]
add esp, 0x14
cmp dword [eax - 4], ebx
jle 0x494037
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00406701
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x494065
cmp dword [ebp - 0x28], 0
je 0x494065
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.00409a14
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004068bc
jmp 0x494072
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004068bc
xor bl, bl
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004cbcfc
and dword [ebp - 0x18], 0
mov al, bl
pop ecx
call fcn.004cc23c
ret

Function at 0x4941fd
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x507256
call fcn.004cc273
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.00406bcb
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
xor esi, esi
mov ecx, edi
push ebx
mov dword [ebp - 4], esi
call fcn.00494385
test eax, eax
jne 0x494230
push 3
pop esi
jmp 0x494259
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push 1
push esi
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
mov eax, esi
call fcn.004cc23c
ret 8
Function at 0x494385
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x509846
call fcn.004cc273
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x494447
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov esi, 0x104
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x10], esi
call fcn.004cbc0c
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], esi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x49443e
lea ecx, [ebp - 0x20]
call fcn.0047b000
mov esi, dword [ebp - 0x10]
push esi
call fcn.004cbc0c
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], esi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00475fd0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.0047b000
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x49444a
test eax, eax
je 0x49441e
xor edi, edi
inc edi
jmp 0x494427
xor eax, eax
inc eax
call fcn.004cc23c
ret 8
Function at 0x495045
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x569078]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x20
mov eax, 0x509a7b
call fcn.004cc273
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 0x41c]
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4951f2
lea eax, [ebp + 0x208]
push eax
push 0
push 0x531490
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4951f2
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x10]
call fcn.00409a3c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push str..url
call fcn.0040706a
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
and dword [ebp - 0x28], 0
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x4951d3
lea ecx, [ebp - 0x14]
call fcn.00406bcb
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
push dword [ebx]
call fcn.004541c7
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push dword [ebp - 0x18]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.004544c9
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
add esp, 0xc
push 0
push ecx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test esi, esi
je 0x49515d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x2c], esi
test ebx, ebx
je 0x495177
push 5
push 0
push 0
push dword [ebp - 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push dword [ebp - 0x10]
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
jne 0x49518c
or eax, 0xffffffff
jmp 0x495191
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00447ac6
mov edx, dword [ebp - 0x20]
mov ecx, eax
add edx, 0x1c
mov byte [ebp - 4], 4
call fcn.00474350
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.004068bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004068bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004068bc
mov byte [ebp - 4], 0
test esi, esi
je 0x4951e6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x2c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004cb6da
lea esp, [ebp + 0x414]
pop ebp
ret 4
Function at 0x495d54
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x509b9d
call fcn.004cc273
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
push 0x400
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.00489bf4
test al, al
jne 0x495d93
push 3
pop esi
mov edi, esi
push dword [ebp - 0x10]
call fcn.004cbcfc
pop ecx
mov eax, edi
call fcn.004cc23c
ret 4
push 2
mov ecx, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov eax, edi
mov edx, edi
pop esi
add eax, 0xa
sub edx, 0x400
mov dword [ebp - 0x18], eax
inc ecx
mov eax, edx
mov dword [ebp - 0x24], edx
cdq
mov dword [ebp - 0x1c], ecx
mov ecx, eax
cmp dword [ebp - 0x1c], 1
mov eax, edx
mov dword [ebp - 0x20], eax
jle 0x495dd0
mov eax, dword [ebp - 0x18]
cdq
add ecx, eax
mov eax, dword [ebp - 0x20]
adc eax, edx
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x495df4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x495d7e
push edi
lea eax, [ebp - 0x14]
push eax
push 0x400
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x495d7e
mov eax, 0x400
cmp dword [ebp - 0x14], eax
jne 0x495d7e
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.00471520
pop ecx
pop ecx
test eax, eax
jns 0x495e40
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
jmp 0x495da2
mov ecx, dword [ebp - 0x28]
add ecx, 0xffffffc0
mov dword [ebp - 0x2c], edi
add eax, ecx
lea ecx, [ebp - 0x2c]
push edi
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x495d7e
push edi
lea eax, [ebp - 0x14]
push eax
push 0x4a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x495d7e
cmp dword [ebp - 0x14], 0
je 0x495d7e
push 0xa
lea eax, [ebx + 0x40]
push str.ADVINSTSFX
push eax
call fcn.004cd664
add esp, 0xc
test eax, eax
jne 0x495ea6
cmp dword [ebx + 0xc], 0x64
je 0x495ead
push 5
jmp 0x495d7d
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x2c]
sbb eax, edi
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
jmp 0x495d80
Function at 0x495f98
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x504dd8
call fcn.004cc273
mov ebx, ecx
cmp dword [ebx + 4], 0
mov edi, dword [ebp + 8]
mov dword [ebx + 0x10], edi
jne 0x495fb9
xor eax, eax
jmp 0x49603b
xor ecx, ecx
test edi, edi
je 0x495fde
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [ebx + 0x14]
call fcn.00425081
mov eax, dword [edi]
mov ecx, edi
push dword [ebx + 0x14]
call dword [eax + 0x20]
xor ecx, ecx
lea eax, [ebp + 8]
push eax
push ecx
push ebx
push 0x496043
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
and dword [ebp - 0x10], 0
mov ebx, eax
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
test edi, edi
je 0x496009
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x496039
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x14], 0
mov eax, esi
call fcn.004cc23c
ret 4
Function at 0x49655b
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x509cef
call fcn.004cc273
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x2e
push dword [esi]
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
je 0x4966f3
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x4966f3
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00447ac6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00406bcb
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push dword [esi]
push dword [ebx]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.00407a35
mov ecx, dword [edi + 0x10]
add esp, 0x14
test ecx, ecx
je 0x4965cf
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
push 0
lea eax, [ebp - 0x24]
push 0x8000008
push eax
lea ecx, [edi + 0xc]
lea edx, [ebp - 0x18]
call fcn.0048f85b
add esp, 0xc
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x10]
call fcn.004749c0
test al, al
je 0x496605
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4966c1
lea ecx, [ebp - 0x14]
call fcn.00406bcb
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.0049016c
lea ecx, [ebp + 0xc]
call fcn.00406bcb
mov edx, 0xca
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.0048e9a8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
push 0x5c
push eax
mov ecx, dword [eax - 0xc]
mov dword [ebp + 8], ecx
call fcn.004cf115
pop ecx
pop ecx
test eax, eax
jne 0x496654
or eax, 0xffffffff
jmp 0x496659
sub eax, dword [ebp - 0x10]
sar eax, 1
mov ecx, dword [ebp + 8]
sub ecx, eax
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00447b17
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp + 0xc]
push dword [ebp - 0x1c]
push eax
call fcn.00407a35
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.004068bc
xor dl, dl
lea ecx, [ebp + 0xc]
call fcn.0047f8f7
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 3
call fcn.004068bc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004068bc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004068bc
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4966d6
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004068bc
mov al, byte [ebp + 0xb]
jmp 0x4966f5
mov al, 1
call fcn.004cc23c
ret 8
Function at 0x4967f7
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x508e58
call fcn.004cc273
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x10], eax
cmp dword [eax], edi
je 0x496836
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
lea ecx, [esi + 0x14]
call fcn.00425081
push dword [esi + 0x14]
mov ecx, esi
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x496a62
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x10]
cmp dword [ecx], edi
je 0x496891
mov ecx, esi
call fcn.004968ca
push dword [esi + 4]
mov ecx, dword [esi]
mov ebx, eax
mov edi, edx
call fcn.004881ec
mov ecx, dword [esi + 0x10]
add ebx, eax
adc edi, edx
push edi
mov ecx, dword [ecx]
push ebx
mov esi, dword [ecx]
call dword [esi]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
xor edi, edi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4968c0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], edi
mov eax, esi
call fcn.004cc23c
ret 4

Function at 0x496af4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push esi
push 0x496bbf
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
test eax, eax
jne 0x496b2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x496b4d
cmp byte [ebp + 0x10], 0
je 0x496b4b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp + 0x10]
jmp 0x496b4d
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x498338
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xc
mov eax, 0x50a174
call fcn.004cc273
mov eax, dword [ebp + 8]
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
cmp ebx, 0xffffffff
je 0x498381
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49838e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4984a7
and dword [ebp - 0x10], 0
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00489bf4
mov esi, dword [ebp - 0x10]
test al, al
jne 0x4983b1
push 8
pop edi
jmp 0x498498
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4983d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x498498
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00409920
mov eax, dword [ebp + 8]
test eax, eax
je 0x498496
mov ecx, dword [ebp + 0xc]
push str.utf_8
mov byte [eax + esi], 0
call fcn.00452c13
test eax, eax
jne 0x498409
push 0xfde9
jmp 0x49848c
mov ecx, dword [ebp + 0xc]
push str.utf_16
call fcn.00452c13
test eax, eax
jne 0x49843b
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.00406ab4
push eax
push edi
push esi
lea ecx, [ebp + 0xc]
call fcn.00447e12
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov byte [ebp - 4], 3
jmp 0x498476
mov ecx, dword [ebp + 0xc]
push str.ISO_8859_1
call fcn.00452c13
test eax, eax
jne 0x498453
push 0x6faf
jmp 0x49848c
mov ecx, dword [ebp + 0xc]
push str.US_ASCII
call fcn.00452c13
test eax, eax
jne 0x49848a
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push esi
call fcn.00499f47
mov byte [ebp - 4], 4
mov ecx, edi
push eax
call fcn.00446083
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004068bc
jmp 0x498496
push 0
mov edx, edi
mov ecx, esi
call fcn.004710b0
pop ecx
xor edi, edi
push esi
mov byte [ebp - 4], 0
call fcn.004cbcfc
and dword [ebp - 0x10], 0
pop ecx
or dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4984ba
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004cc23c
ret 0xc