joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1110
call fcn.004746d0
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00408e60
cmp eax, 0x104
jle 0x408efd
xor eax, eax
jmp 0x409021
mov dword [ebp - 0x110c], 0x400
push 0x800
push 0
lea eax, [ebp - 0x1104]
push eax
call fcn.005163e0
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x904]
push ecx
call fcn.005163e0
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00407f90
push eax
lea edx, [ebp - 0x1104]
push edx
call fcn.00407ad0
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x408f6c
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x408f6c
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x1110], 0xa
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x1108], 0
jmp 0x408fa7
mov edx, dword [ebp - 0x1108]
add edx, 1
mov dword [ebp - 0x1108], edx
cmp dword [ebp - 0x1108], 0xa
jge 0x40901f
push 0x80
lea eax, [ebp - 0x104]
push eax
call fcn.00409240
add esp, 8
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x1104]
push edx
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea ecx, [ebp - 0x904]
push ecx
call fcn.00407ab0
add esp, 8
lea edx, [ebp - 0x904]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40901a
lea eax, [ebp - 0x904]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00407f30
mov eax, 1
jmp 0x409021
jmp 0x408f98
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret

Function at 0x409920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409944
xor eax, eax
jmp 0x4099c4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40995b
xor eax, eax
jmp 0x4099c4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4099a7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4099a7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40997e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4099b3
xor eax, eax
jmp 0x4099c4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4099c1
xor eax, eax
jmp 0x4099c4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d530
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d5b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d58b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x40d582
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x40d5b6
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.0040f6e0
mov ecx, dword [ebp - 8]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40d720
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xffffffff
jne 0x40d76a
jmp 0x40d843
push 0x22c
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40d7b3
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d843
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x244], 0
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [ebp - 0x228]
je 0x40d81f
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.005330ac
add esp, 8
test eax, eax
jne 0x40d81f
mov ecx, dword [ebp - 0x228]
push ecx
mov ecx, dword [ebp - 0x240]
call fcn.0040d860
test eax, eax
je 0x40d81f
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x238], edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040f6c0
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d7c9
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 8
Function at 0x410110
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.004746d0
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x5def5c]
mov word [ebp - 0x4004], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x4002]
push ecx
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x4008], 0
mov dword [ebp - 0x4010], 0
cmp dword [ebp + 0xc], 0
je 0x41016a
cmp dword [ebp + 0x10], 0
jne 0x410171
xor eax, eax
jmp 0x410272
lea edx, [ebp - 0x4010]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x4008], eax
cmp dword [ebp - 0x4008], 0
je 0x41019c
cmp dword [ebp - 0x4008], 0x3fff
jbe 0x4101a3
xor eax, eax
jmp 0x410272
lea ecx, [ebp - 0x4004]
push ecx
mov edx, dword [ebp - 0x4008]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410270
lea ecx, [ebp - 0x4014]
push ecx
lea edx, [ebp - 0x400c]
push edx
push 0x5df040
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410270
mov ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.005163e0
add esp, 0xc
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x400c]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x5df044
mov eax, dword [ebp + 0x14]
sub eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004123b0
add esp, 0x1c
mov eax, 1
jmp 0x410272
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x410290
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4102c3
mov ecx, dword [ebp - 4]
and ecx, 2
jne 0x4102bc
mov edx, dword [ebp - 4]
and edx, 1
jne 0x4102bc
mov eax, dword [ebp - 4]
and eax, 4
je 0x4102c3
mov eax, 1
jmp 0x4102d1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x410710
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c69a2
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x424], 0
cmp dword [ebp + 8], 0
je 0x4107e5
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4107e5
cmp dword [ebp + 0xc], 0
je 0x410776
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x4107c4
push 0x410
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.005163e0
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x4107c2
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x424], 1
jmp 0x4107e5
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x4107e5
mov dword [ebp - 0x424], 1
lea ecx, [ebp + 0x10]
call fcn.00411430
movzx ecx, al
test ecx, ecx
je 0x410803
mov edx, dword [ebp - 0x424]
push edx
lea ecx, [ebp + 0x10]
call fcn.004114a0
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00411330
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret 0x30
Function at 0x410840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x418], ecx
mov ecx, dword [ebp - 0x418]
add ecx, 8
call fcn.004090e0
movzx eax, al
test eax, eax
je 0x4108ab
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 8
call fcn.004116d0
push eax
mov ecx, dword [ebp - 0x418]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [edx + 0x14]
call ecx
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 8
call fcn.004118c0
mov ecx, dword [ebp - 0x418]
add ecx, 0x18
call fcn.004090e0
movzx edx, al
test edx, edx
je 0x4108fd
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 0x18
call fcn.004116d0
push eax
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ecx + 0x18]
call eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 0x18
call fcn.004118c0
mov ecx, dword [ebp - 0x418]
add ecx, 4
call fcn.004090e0
movzx ecx, al
test ecx, ecx
je 0x4109a3
push 0x208
push 0
lea edx, [ebp - 0x20c]
push edx
call fcn.005163e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x5dee04
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 4
call fcn.004116d0
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x418]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x418]
push eax
mov ecx, dword [edx + 4]
call ecx
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 4
call fcn.004118c0
mov ecx, dword [ebp - 0x418]
add ecx, 0x10
call fcn.004090e0
movzx edx, al
test edx, edx
je 0x410a13
mov dword [ebp - 0x41c], 0x104
mov dword [ebp - 0x420], 1
lea eax, [ebp - 0x41c]
push eax
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 0x10
call fcn.004116d0
push eax
lea ecx, [ebp - 0x420]
push ecx
push 0x5dee28
push 0x5dee30
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 0x10
call fcn.004118c0
mov ecx, dword [ebp - 0x418]
add ecx, 0x14
call fcn.004090e0
movzx edx, al
test edx, edx
je 0x410a96
push 0x208
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.005163e0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push 0x104
mov ecx, dword [ebp - 0x418]
add ecx, 0x14
call fcn.004116d0
push eax
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ecx + 4]
call eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x418]
add ecx, 0x14
call fcn.004118c0
mov ecx, dword [ebp - 0x418]
add ecx, 0x1c
call fcn.004090e0
movzx ecx, al
test ecx, ecx
je 0x410abe
push 0x5dee60
mov ecx, dword [ebp - 0x418]
add ecx, 0x1c
call fcn.00407f30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
Function at 0x411b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00411870
test eax, eax
je 0x411b37
xor eax, eax
jmp 0x411b75
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x411b44
xor eax, eax
jmp 0x411b75
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
push 0
push 0
call fcn.005338d6
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
call fcn.00411870
mov esp, ebp
pop ebp
ret

Function at 0x415260
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6c89
mov eax, dword fs:[0]
push eax
mov eax, 0x2228
call fcn.004746d0
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.005163e0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4152d0
jmp 0x415436
push 0x2000
push 0
lea edx, [ebp - 0x2218]
push edx
call fcn.005163e0
add esp, 0xc
mov dword [ebp - 0x2228], 1
mov dword [ebp - 0x2224], 0x1000
lea eax, [ebp - 0x2224]
push eax
lea ecx, [ebp - 0x2218]
push ecx
lea edx, [ebp - 0x2228]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.SOFTWAREADBlockMaster_file_pe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x41532c
jmp 0x415436
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x2220], eax
push str..dll
mov edx, dword [ebp - 0x2220]
push edx
call fcn.005330ac
add esp, 8
test eax, eax
jne 0x415379
push 1
lea eax, [ebp - 0x2218]
push eax
push str.Uninst
lea ecx, [ebp - 0x218]
push ecx
call fcn.00415450
add esp, 0x10
jmp 0x415436
push 0x5df9d4
mov edx, dword [ebp - 0x2220]
push edx
call fcn.005330ac
add esp, 8
test eax, eax
jne 0x415436
lea eax, [ebp - 0x2218]
push eax
lea ecx, [ebp - 0x221c]
call fcn.00407bc0
mov dword [ebp - 4], 0
push str.__uninstall__productadbk
lea ecx, [ebp - 0x221c]
push ecx
lea edx, [ebp - 0x2234]
push edx
call fcn.00419860
add esp, 0xc
mov dword [ebp - 0x222c], eax
mov eax, dword [ebp - 0x222c]
mov dword [ebp - 0x2230], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2230]
push ecx
lea ecx, [ebp - 0x221c]
call fcn.00407f10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2234]
call fcn.00407db0
push 0xc350
push 1
push 1
lea ecx, [ebp - 0x221c]
call fcn.00407f90
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.004154d0
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x221c]
call fcn.00407db0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret
Function at 0x4154d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4154e4
jmp 0x41553f
mov ecx, dword [ebp + 8]
push ecx
call fcn.00447bf0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.call_exe_begin__path__s__cmd__s_
call fcn.00439410
add esp, 0xc
mov ecx, dword [ebp + 0x18]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00447df0
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
push str.call_exe_return___d___path__s___cmd__s___sync__d_
call fcn.00439410
add esp, 0x14
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x4156de
jmp 0x415734
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4156ee
jmp 0x415734
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x415724
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 8], esp
push 0
call fcn.004193c0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415740
add esp, 0x30
jmp 0x415734
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004159a0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x4159a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6cff
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6403f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x415a09
mov ecx, dword [ebp - 0x14]
and ecx, 0x10
je 0x415a09
mov dword [ebp - 0x10], 1
mov edx, dword [ebp + 8]
push edx
call fcn.00406c30
add esp, 4
test eax, eax
je 0x415a07
jmp 0x415a84
jmp 0x415a2a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x415a2a
mov ecx, dword [ebp + 8]
push ecx
push 0x5df5a4
call fcn.00439410
add esp, 8
jmp 0x415a84
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x415a7c
cmp dword [ebp - 0x10], 0
jne 0x415a64
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x415a64
mov ecx, dword [ebp + 8]
push ecx
push str.DeleteFile:_s_suceesss
call fcn.00439410
add esp, 8
jmp 0x415a84
cmp dword [ebp - 0x10], 0
je 0x415a7c
mov edx, dword [ebp + 8]
push edx
call fcn.00406c30
add esp, 4
test eax, eax
je 0x415a7c
jmp 0x415a84
xor eax, eax
jne 0x4159cc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415ac6
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
call fcn.00407bc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0041ba90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407db0
xor eax, eax
jmp 0x415acb
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4168a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6e7c
mov eax, dword fs:[0]
push eax
sub esp, 0x544
mov eax, dword [0x6403f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x531], 0
mov dword [ebp - 0x550], 0x6c
push 0xd8
push 0
lea eax, [ebp - 0xf0]
push eax
call fcn.005163e0
add esp, 0xc
lea ecx, [ebp - 0xf0]
push ecx
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x53c], eax
cmp dword [ebp - 0x53c], 0x6c
jae 0x416a6a
mov dword [ebp - 0x538], 0
mov edx, dword [ebp - 0x538]
cmp edx, dword [ebp - 0x53c]
jae 0x416a6a
push 0x410
push 0
lea eax, [ebp - 0x500]
push eax
call fcn.005163e0
add esp, 0xc
mov ecx, dword [0x5dfa14]
mov dword [ebp - 0x18], ecx
mov dx, word [0x5dfa18]
mov word [ebp - 0x14], dx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 0x538]
mov ax, word [ebp + edx*2 - 0xf0]
mov word [ebp + ecx - 0x18], ax
mov ecx, dword [ebp - 0x538]
add ecx, 4
mov dword [ebp - 0x538], ecx
push 0x207
lea edx, [ebp - 0x500]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4169a3
jmp 0x41691e
lea ecx, [ebp - 0x500]
push ecx
call fcn.005328cf
add esp, 4
mov dword [ebp - 0x540], eax
mov edx, dword [ebp - 0x540]
push edx
lea eax, [ebp - 0x500]
push eax
mov ecx, dword [ebp + 8]
call fcn.004121a0
push eax
call fcn.00536057
add esp, 0xc
test eax, eax
jne 0x416a65
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x540]
push ecx
lea edx, [ebp - 0x530]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041bdc0
mov dword [ebp - 0x544], eax
mov eax, dword [ebp - 0x544]
mov dword [ebp - 0x548], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x548]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x518]
push eax
call fcn.00417a40
add esp, 0xc
mov dword [ebp - 0x54c], eax
mov ecx, dword [ebp - 0x54c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004196b0
lea ecx, [ebp - 0x518]
call fcn.004112e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x530]
call fcn.004112e0
mov byte [ebp - 0x531], 1
jmp 0x416a6a
jmp 0x41691e
mov al, byte [ebp - 0x531]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004742a8
mov esp, ebp
pop ebp
ret