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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push 0x2001f
push dword [0x48a418]
lea ecx, [ebp - 8]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00402e79
test eax, eax
jne 0x43eb3f
and dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, str.Cancels
push esi
lea ecx, [ebp - 8]
call fcn.0041ed51
test eax, eax
mov ebx, 0x47122c
je 0x43ea82
mov eax, dword [0x488018]
mov edi, 0x488018
cmp eax, edi
je 0x43eab0
test byte [eax + 0x1c], 1
je 0x43eab0
cmp byte [eax + 0x19], 4
jb 0x43eab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x488018]
push ebx
push 0x7e
jmp 0x43eaa2
mov eax, dword [0x488018]
mov edi, 0x488018
cmp eax, edi
je 0x43eab0
test byte [eax + 0x1c], 1
je 0x43eab0
cmp byte [eax + 0x19], 4
jb 0x43eab0
push dword [ebp - 4]
push ebx
push 0x7f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
cmp byte [ebp + 8], 0
je 0x43eabc
and dword [ebp - 4], 0
jmp 0x43eabf
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x43eb06
mov eax, dword [0x488018]
cmp eax, edi
je 0x43eb32
test byte [eax + 0x1c], 1
je 0x43eb32
cmp byte [eax + 0x19], 4
jb 0x43eb32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x488018]
push ebx
push 0x80
jmp 0x43eb24
mov eax, dword [0x488018]
cmp eax, edi
je 0x43eb32
test byte [eax + 0x1c], 1
je 0x43eb32
cmp byte [eax + 0x19], 4
jb 0x43eb32
push dword [ebp - 4]
push ebx
push 0x81
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
lea ecx, [ebp - 8]
call fcn.00402e14
pop edi
pop esi
pop ebx
jmp 0x43eb6f
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x43eb6f
test byte [eax + 0x1c], 1
je 0x43eb6f
cmp byte [eax + 0x19], 2
jb 0x43eb6f
push 0x47122c
push 0x82
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.00402e14
leave
ret 4
Function at 0x44689b
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push 4
mov eax, 0x45ffab
call fcn.0045cea5
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
push eax
push 0x46e6b0
push 1
push esi
push 0x475a98
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x4469ae
mov ecx, dword [ebp - 0x10]
cmp ecx, esi
je 0x4469ae
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov edx, dword [ecx]
push ebx
mov esi, 0x475ab8
push esi
push eax
push ecx
call dword [edx + 0x18]
test eax, eax
mov dword [ebp + 8], eax
jl 0x446901
cmp dword [ebx], 0
jne 0x446998
cmp byte [ebp + 0x10], 0
je 0x446998
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44693b
test byte [eax + 0x1c], 1
je 0x44693b
cmp byte [eax + 0x19], 4
jb 0x44693b
push dword [ebp + 8]
push 0x471788
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
mov edi, dword [edi]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ebx
push esi
push 0x475aa8
push edi
push eax
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp + 8], eax
jl 0x44695a
cmp dword [ebx], 0
jne 0x446998
push 0x3ea
call fcn.0042ab82
mov ecx, eax
call fcn.0042d551
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x446998
test byte [eax + 0x1c], 1
je 0x446998
cmp byte [eax + 0x19], 2
jb 0x446998
push 0x471788
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4469a9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
jmp 0x4469fb
mov ecx, dword [0x488018]
cmp ecx, 0x488018
je 0x4469de
test byte [ecx + 0x1c], 1
je 0x4469de
cmp byte [ecx + 0x19], 2
jb 0x4469de
push eax
push 0x471788
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.004213e2
add esp, 0x14
mov ecx, edi
call fcn.0044644e
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, esi
je 0x4469f6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
call fcn.0045cf7d
ret 0xc
Function at 0x446cb4
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x790], eax
mov eax, dword [ebp + 0x7a0]
and word [ebp - 0x70], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x79c]
push 0x7fe
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x6e]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x78], ebx
call sub.MSVCR80.dll_memset
mov esi, 0x400
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x7c], esi
call fcn.004465c5
test eax, eax
jne 0x446d71
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x446d3e
test byte [eax + 0x1c], 1
je 0x446d3e
cmp byte [eax + 0x19], 2
jb 0x446d3e
push 0x471788
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
push 0x3ea
call fcn.0042ab82
mov ecx, eax
call fcn.0042d551
mov byte [ebx], 1
mov eax, 0x80004005
mov ecx, dword [ebp + 0x790]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ce96
add ebp, 0x794
leave
ret 8
push 0x461
call fcn.0041a10a
push eax
mov ecx, edi
call fcn.0040444c
test eax, eax
jne 0x446dbd
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x446db4
test byte [eax + 0x1c], 1
je 0x446db4
cmp byte [eax + 0x19], 2
jb 0x446db4
push 0x471788
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov ecx, ebx
call fcn.0044644e
jmp 0x446d52
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x446e0a
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x446db4
test byte [eax + 0x1c], 1
je 0x446db4
cmp byte [eax + 0x19], 2
jb 0x446db4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x488018]
push 0x471788
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
jmp 0x446db4
mov eax, dword [0x488018]
mov ebx, 0x488018
cmp eax, ebx
je 0x446e3d
test byte [eax + 0x1c], 1
je 0x446e3d
cmp byte [eax + 0x19], 4
jb 0x446e3d
lea ecx, [ebp - 0x70]
push ecx
push 0x471788
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004070b8
add esp, 0x14
push 0x47179c
mov ecx, edi
call fcn.0040811d
lea eax, [ebp - 0x70]
push eax
mov ecx, edi
call fcn.0040811d
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x80], esi
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x446eb3
mov eax, dword [0x488018]
cmp eax, ebx
je 0x446e9f
test byte [eax + 0x1c], 1
je 0x446e9f
cmp byte [eax + 0x19], 2
jb 0x446e9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x488018]
push 0x471788
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
mov esi, 0x80004005
mov ecx, dword [ebp - 0x78]
call fcn.0044644e
mov eax, esi
jmp 0x446d57
xor esi, esi
jmp 0x446ea4

Function at 0x4485dc
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4485ed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi]
sub ecx, 0x10
pop esi
jmp fcn.00402703
Function at 0x449894
Capabilities:
Accept command line arguments
Create process on windows
Set current directory

Disassembly:
push 0x4c
mov eax, 0x45edee
call fcn.0045cea5
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x14]
call fcn.004081a9
and dword [ebp - 4], 0
push str.__skipproductupdates
lea ecx, [ebp - 0x14]
call fcn.0041c304
lea eax, [ebp - 0x1c]
push eax
call fcn.0041e8fe
pop ecx
mov edi, 0x48c1ac
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00405f70
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x18]
push str.pi__ld__run__s_
push eax
call fcn.00411b91
add esp, 0x10
call fcn.0041e94d
test al, al
mov esi, dword [ebp - 0x18]
je 0x41eb00
push edi
lea ecx, [ebp - 0x10]
call fcn.00405f70
lea eax, [ebp - 0x10]
push eax
call fcn.00453206
test al, al
pop ecx
je 0x41eac1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x50], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x4c], str.open
mov dword [ebp - 0x44], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402703
lea ecx, [esi - 0x10]
call fcn.00402703
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402703
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402703
call fcn.0045cf7d
ret
cmp byte [ecx + 0x1a5], 0
je 0x4498a2
jmp 0x41ea2e
ret

Function at 0x449afb
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push str.UpdateManager::IsProxyEnabled
lea ecx, [ebp - 8]
call fcn.00407111
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x449b65
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x449b4f
test byte [eax + 0x1c], 1
je 0x449b4f
cmp byte [eax + 0x19], 4
jb 0x449b4f
push 0x472ce8
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov ebx, dword [ebp - 4]
shr ebx, 2
and bl, 1
lea ecx, [ebp - 8]
call fcn.00407157
mov al, bl
pop ebx
leave
ret
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x449b92
test byte [eax + 0x1c], 1
je 0x449b92
cmp byte [eax + 0x19], 4
jb 0x449b92
push 0x472ce8
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov bl, 1
jmp 0x449b58
Function at 0x449b96
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push str.UpdateManager::CheckIfOnline
lea ecx, [ebp - 0x198]
call fcn.00407111
lea eax, [ebp - 0x194]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
mov edi, 0x472ce8
mov esi, 0x488018
jne 0x449c2b
push str.liveupdate.symantec.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
neg eax
sbb al, al
inc al
mov byte [ebx + 0x1a8], al
call dword [sym.imp.WS2_32.dll_WSACleanup]
test eax, eax
je 0x449c53
mov eax, dword [0x488018]
cmp eax, esi
je 0x449c53
test byte [eax + 0x1c], 1
je 0x449c53
cmp byte [eax + 0x19], 2
jb 0x449c53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [0x488018]
push edi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
jmp 0x449c4b
mov ecx, dword [0x488018]
cmp ecx, esi
je 0x449c53
test byte [ecx + 0x1c], 1
je 0x449c53
cmp byte [ecx + 0x19], 2
jb 0x449c53
push eax
push edi
push 0x1d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.004213e2
add esp, 0x14
cmp byte [ebx + 0x1a8], 0
jne 0x449cd1
mov ecx, ebx
call fcn.00449afb
test al, al
jne 0x449cab
mov eax, dword [0x488018]
cmp eax, esi
je 0x449c8d
test byte [eax + 0x1c], 1
je 0x449c8d
cmp byte [eax + 0x19], 4
jb 0x449c8d
push edi
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
mov bl, 1
lea ecx, [ebp - 0x198]
call fcn.00407157
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0045ce96
leave
ret
mov eax, dword [0x488018]
cmp eax, esi
je 0x449cd1
test byte [eax + 0x1c], 1
je 0x449cd1
cmp byte [eax + 0x19], 4
jb 0x449cd1
push edi
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
xor bl, bl
jmp 0x449c8f

Function at 0x44f1f2
Capabilities:
Initialize winhttp library

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.0044eab0
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push str.NSS_2.0
xor edi, edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x44f240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f28e
test byte [eax + 0x1c], 1
je 0x44f28e
cmp byte [eax + 0x19], 2
jb 0x44f28e
push edi
push str.K_j
push 0xc
jmp 0x44f280
movzx edx, word [esi + 0x1c]
mov ecx, dword [esi + 0x10]
push ebx
push edx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp eax, ebx
mov dword [esi + 8], eax
jne 0x44f2a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x44f28e
test byte [eax + 0x1c], 1
je 0x44f28e
cmp byte [eax + 0x19], 2
jb 0x44f28e
push edi
push str.K_j
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
cmp edi, ebx
jle 0x44f2a0
and edi, 0xffff
or edi, 0x80070000
cmp edi, ebx
jge 0x44f2a9
mov ecx, esi
call fcn.0044eab0
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4529f6
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 4]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
test eax, eax
mov edi, 0x474dd8
je 0x452a97
lea eax, [ebp - 0xc]
push eax
push 0x474df0
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x452a97
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push ebx
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x452a97
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x452a97
test byte [eax + 0x1c], 1
je 0x452a97
cmp byte [eax + 0x19], 2
jb 0x452a97
call esi
push eax
mov eax, dword [0x488018]
push edi
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x452ad5
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x452ad5
test byte [eax + 0x1c], 1
je 0x452ad5
cmp byte [eax + 0x19], 2
jb 0x452ad5
call esi
push eax
mov eax, dword [0x488018]
push edi
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004213e2
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x452d0b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
xor ebx, ebx
push ebx
push ebx
call esi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 4], eax
call fcn.00452c31
cmp eax, ebx
pop ecx
pop ecx
je 0x452d5f
push eax
push dword [ebp - 4]
call esi
push 0xffffffffffffffff
mov ecx, edi
call fcn.00409137
cmp byte [ebp + 0xc], bl
je 0x452d5b
push dword [edi]
call fcn.00452996
test al, al
pop ecx
jne 0x452d5b
push ebx
push dword [edi]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov al, 1
jmp 0x452d8e
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x452d8c
test byte [eax + 0x1c], 1
je 0x452d8c
cmp byte [eax + 0x19], 2
jb 0x452d8c
push 0x474dd8
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452f62
Capabilities:
Delete directory

Disassembly:
push ebp
lea ebp, [esp - 0x1e4]
sub esp, 0x264
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x1e0], eax
push ebx
mov ebx, dword [ebp + 0x1ec]
test ebx, ebx
je 0x4530da
push ebx
call fcn.00452996
test al, al
pop ecx
je 0x4530da
cmp byte [ebp + 0x1f0], 0
jne 0x452fb1
cmp byte [ebp + 0x1f4], 0
je 0x4530cc
push esi
mov esi, 0x48c1ac
push esi
lea ecx, [ebp - 0x74]
call fcn.00405f70
push 0x474ecc
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.00452ef9
add esp, 0xc
test al, al
je 0x4530c0
and dword [ebp - 0x70], 0
push 0x24c
lea eax, [ebp - 0x6c]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x4530c0
push edi
lea eax, [ebp - 0x70]
push eax
call fcn.004529b7
test al, al
pop ecx
jne 0x4530a1
mov eax, dword [ebp - 0x70]
shr eax, 4
test al, 1
je 0x453068
cmp byte [ebp + 0x1f0], 0
je 0x4530a1
push esi
lea ecx, [ebp - 0x80]
call fcn.00405f70
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00452ef9
mov edi, dword [ebp - 0x80]
add esp, 0xc
test al, al
je 0x453099
push dword [ebp + 0x1f4]
push dword [ebp + 0x1f0]
push edi
call fcn.00452f62
add esp, 0xc
jmp 0x453099
cmp byte [ebp + 0x1f4], 0
je 0x4530a1
push esi
lea ecx, [ebp - 0x78]
call fcn.00405f70
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.00452ef9
mov edi, dword [ebp - 0x78]
add esp, 0xc
test al, al
je 0x453099
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [edi - 0x10]
call fcn.00402703
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45300b
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
call fcn.00402703
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x4530dc
xor al, al
mov ecx, dword [ebp + 0x1e0]
xor ecx, ebp
pop ebx
call fcn.0045ce96
add ebp, 0x1e4
leave
ret
Function at 0x4540e2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
jne 0x454142
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x45413b
test byte [eax + 0x1c], 1
je 0x45413b
cmp byte [eax + 0x19], 2
jb 0x45413b
push 0x474f3c
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00406feb
add esp, 0x10
xor al, al
jmp 0x4541f4
push 0x48c1ac
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x11], 0
call fcn.00405f70
push dword [0x48b4c0]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
call fcn.00452ef9
add esp, 0xc
test al, al
je 0x4541e6
push 0x20
push 0x474f88
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCR80.dll__wfsopen]
add esp, 0xc
test eax, eax
mov dword [ebp - 0x18], eax
je 0x4541e6
push eax
push 1
lea eax, [ebp - 0x10]
push 0xc
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x4541dc
push 4
lea eax, [ebp - 0x10]
push str.SYMC
push eax
call sub.MSVCR80.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4541dc
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
movzx ax, byte [ebp - 8]
mov word [edi], ax
movzx ax, byte [ebp - 7]
mov word [ebx], ax
movzx ax, byte [ebp - 6]
add ax, 0x76c
mov word [esi], ax
mov byte [ebp - 0x11], 1
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00402703
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045ce96
leave
ret
Function at 0x454597
Capabilities:
Copy file
Enumerate files on windows
Move file

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x48b990]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x18
mov eax, 0x462db7
call fcn.0045cea5
mov eax, dword [ebp + 0x260]
mov edi, dword [ebp + 0x25c]
push 0x48c1ac
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov bl, 1
call fcn.00405f70
push 0x474ecc
lea eax, [ebp - 0x18]
push edi
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00452ef9
add esp, 0xc
test al, al
je 0x454768
push 0x24c
lea eax, [ebp + 4]
push esi
push eax
mov dword [ebp], esi
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x454768
lea eax, [ebp]
push eax
call fcn.004529aa
test al, al
pop ecx
jne 0x45474a
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004081a9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00446b7d
push esi
push str..dis
lea ecx, [ebp - 0x10]
call fcn.00421978
cmp eax, 0xffffffff
jne 0x45473b
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
call fcn.00452ef9
add esp, 0xc
test al, al
je 0x45473b
push 0x48c1ac
lea ecx, [ebp - 0x14]
call fcn.00405f70
lea eax, [ebp + 0x2c]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
call fcn.00452ef9
add esp, 0xc
test al, al
je 0x454730
cmp byte [ebp + 0x264], 0
je 0x4546c6
push 2
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x4546d3
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, esi
jne 0x454730
cmp byte [ebp + 0x264], 0
mov ebx, str.move
jne 0x4546ea
mov ebx, str.copy
mov eax, dword [0x488018]
cmp eax, 0x488018
je 0x45472e
test byte [eax + 0x1c], 1
je 0x45472e
cmp byte [eax + 0x19], 2
jb 0x45472e
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x488018]
push esi
push edi
push ebx
push 0x474f3c
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00453c11
add esp, 0x20
xor esi, esi
xor bl, bl
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402703
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00402703
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x454629
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00402703
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.0045ce96
add ebp, 0x254
leave
ret
Function at 0x4549ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x454a48
cmp dword [ebp + 8], ebx
jne 0x4549cb
mov dword [esi + 4], 3
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x454a40
push dword [esi + 8]
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
push edi
mov dword [esi + 8], ebx
call fcn.0045ca6f
cmp eax, ebx
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x454a02
mov dword [esi + 4], 1
cmp dword [esi + 4], ebx
jne 0x454a47
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x454a1f
mov dword [esi + 4], 4
cmp dword [esi + 4], ebx
jne 0x454a47
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0xc]
push eax
push 0x46beb4
push dword [esi + 8]
mov dword [ebp + 8], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x454a47
mov dword [esi + 4], 4
pop edi
pop esi
pop ebx
leave
ret 4