joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c3e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x50c42d
jmp 0x50c4b8
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0049bd17
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x50c464
jmp 0x50c4b8
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x540154
mov eax, dword [ebp - 4]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x50c497
cmp dword [ebp - 8], 0
jne 0x50c49b
jmp 0x50c4b8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0x18], 1
cmp dword [ebp - 4], 0
je 0x50c4d0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0049c2e2
add esp, 4
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

Function at 0x50c6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525204
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x218]
call fcn.004070d0
mov dword [ebp - 4], 0
mov word [ebp - 0x214], 0
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.0049e730
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x218]
call fcn.00407020
lea eax, [ebp - 0x218]
push eax
call fcn.0050c4e0
add esp, 4
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406750
mov edx, dword [ebp - 0x21c]
or edx, 1
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50c920
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0049e730
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x50c993
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x50c9a6
jmp 0x50cb17
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 1
je 0x50cae7
cmp dword [ebp - 0x130], 2
je 0x50c9cd
jmp 0x50cb10
cmp dword [ebp - 0x124], 6
jne 0x50c9f7
cmp dword [ebp - 0x120], 1
jne 0x50c9f7
movzx ecx, byte [ebp - 0xe]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 8
mov dword [ebp - 4], ecx
jmp 0x50cae5
cmp dword [ebp - 0x124], 6
jne 0x50ca22
cmp dword [ebp - 0x120], 0
jne 0x50ca22
movzx edx, byte [ebp - 0xe]
sub edx, 1
neg edx
sbb edx, edx
and edx, 2
add edx, 7
mov dword [ebp - 4], edx
jmp 0x50cae5
cmp dword [ebp - 0x124], 5
jne 0x50ca40
cmp dword [ebp - 0x120], 2
jne 0x50ca40
mov dword [ebp - 4], 5
jmp 0x50cae5
cmp dword [ebp - 0x124], 5
jne 0x50ca5e
cmp dword [ebp - 0x120], 1
jne 0x50ca5e
mov dword [ebp - 4], 6
jmp 0x50cae5
cmp dword [ebp - 0x124], 5
jne 0x50ca79
cmp dword [ebp - 0x120], 0
jne 0x50ca79
mov dword [ebp - 4], 3
jmp 0x50cae5
cmp dword [ebp - 0x124], 4
ja 0x50ca8b
mov dword [ebp - 4], 4
jmp 0x50cae5
cmp dword [ebp - 0x124], 6
jb 0x50ca9d
cmp dword [ebp - 0x120], 2
jae 0x50caa6
cmp dword [ebp - 0x124], 6
jbe 0x50cab9
movzx eax, byte [ebp - 0xe]
cmp eax, 1
jne 0x50cab9
call fcn.0050c7a0
mov dword [ebp - 4], eax
jmp 0x50cae5
cmp dword [ebp - 0x124], 6
jb 0x50cacb
cmp dword [ebp - 0x120], 2
jae 0x50cad4
cmp dword [ebp - 0x124], 6
jbe 0x50cae5
movzx ecx, byte [ebp - 0xe]
cmp ecx, 3
jne 0x50cae5
call fcn.0050c7a0
mov dword [ebp - 4], eax
jmp 0x50cb17
mov edx, dword [ebp - 0x11c]
shr edx, 0x10
and edx, 0xffff
cmp edx, 0x45a
jae 0x50cb07
mov dword [ebp - 4], 1
jmp 0x50cb0e
mov dword [ebp - 4], 2
jmp 0x50cb17
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x50d49a
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x50d49a
mov dword [ebp - 8], 1
jmp 0x50d4a1
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x50d540
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524bb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b50
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x50d5a2
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x18]
jmp 0x50d690
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50d677
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50d677
lea eax, [ebp - 0x14]
push eax
call fcn.0050d4b0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040b3b0
movzx ecx, al
test ecx, ecx
je 0x50d605
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x1c]
jmp 0x50d690
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call fcn.0050d540
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50d63a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x20]
jmp 0x50d690
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x50d677
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x50d677
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x24]
jmp 0x50d690
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5129f0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523e10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x14], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [ebp - 0x1c]
call fcn.00498d80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00498d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0045a3c0
push eax
push 0x52b90c
push 1
push 0
push 0x52b92c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x512a60
jmp 0x512b87
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00477060
push eax
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
mov ecx, dword [eax + 0x24]
call ecx
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
add ecx, 0x10
call fcn.00477060
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
call edx
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00477060
push eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.00477060
push eax
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x10]
call fcn.0045a3c0
push eax
push 0x52b9cc
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
mov ecx, dword [eax]
call ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x512b51
jmp 0x512b87
lea ecx, [ebp - 0x10]
call fcn.00477060
mov dword [ebp - 0x3c], eax
push 1
mov ecx, dword [ebp + 0xc]
call fcn.00477060
push eax
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x512b80
jmp 0x512b87
mov dword [ebp - 0x14], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00476fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00476fc0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x512bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524723
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x220]
call fcn.004070d0
mov dword [ebp - 4], 0
mov word [ebp - 0x21c], 0
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.0049e730
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x512c61
lea edx, [ebp - 0x21c]
push edx
call fcn.0049f3cb
add esp, 4
test eax, eax
je 0x512c61
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x220]
call fcn.00407020
lea edx, [ebp - 0x220]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406750
mov eax, dword [ebp - 0x224]
or eax, 1
mov dword [ebp - 0x224], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x220]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x512cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x10]
call fcn.004070d0
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.0049e730
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [ebp - 0x21c]
push edx
call fcn.0049f3cb
add esp, 4
test eax, eax
je 0x512d6e
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00407020
push 0
lea ecx, [ebp - 0x220]
call fcn.00476fe0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.0045a3c0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x512dc1
lea ecx, [ebp - 0x220]
call fcn.00477060
mov dword [ebp - 0x22c], eax
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x22c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406750
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00476fc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x514160
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5269de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
call fcn.0050cb20
cmp eax, 0xc
je 0x514191
jmp 0x5142f2
push 0x1a
lea eax, [ebp - 0x24]
push eax
call fcn.00512cb0
add esp, 8
mov dword [ebp - 4], 0
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp - 0x24]
call fcn.004087b0
lea ecx, [ebp - 0x14]
call fcn.004070d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x24]
push eax
push str._s_s.lnk
lea ecx, [ebp - 0x14]
push ecx
call fcn.00407e40
add esp, 0x10
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x1c
call fcn.00404380
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x514227
cmp dword [ebp + 0xc], 0
jne 0x514227
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004070b0
jmp 0x5142f2
lea eax, [ebp - 0x1c]
push eax
call fcn.00512bc0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005129f0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x514279
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004070b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004070b0
jmp 0x5142f2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str._s.lnk
lea edx, [ebp - 0x1c]
push edx
call fcn.0040d910
add esp, 0xc
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
push 0x150a
call fcn.005140e0
add esp, 0xc
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004070b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004070b0
xor ecx, ecx
jne 0x514182
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x517bd0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0xffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040a390
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x517c25
jmp 0x517cc9
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x200000
jbe 0x517c47
jmp 0x517cc9
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040a400
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x517c93
cmp dword [ebp - 8], 0
jne 0x517c97
jmp 0x517cc9
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x20], 0
jne 0x517c6c
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.0040b3d0
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x1c], 0
je 0x517cd9
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x51abf0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.00402b20
cmp eax, 0x104
jb 0x51ac16
xor al, al
jmp 0x51adae
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x51accc
lea ecx, [ebp - 0x260]
call fcn.0050a330
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0051ab10
add esp, 8
movzx eax, al
test eax, eax
je 0x51ac8a
movzx ecx, byte [ebp - 0x258]
test ecx, ecx
je 0x51ac8a
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x261], al
lea ecx, [ebp - 0x260]
call fcn.0050a320
mov al, byte [ebp - 0x261]
jmp 0x51adae
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x51acc1
mov byte [ebp - 0x262], 1
lea ecx, [ebp - 0x260]
call fcn.0050a320
mov al, byte [ebp - 0x262]
jmp 0x51adae
lea ecx, [ebp - 0x260]
call fcn.0050a320
mov word [ebp - 0x230], 0
push 0x208
push 0
lea edx, [ebp - 0x22e]
push edx
call fcn.0049e730
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.0045a3c0
mov ecx, eax
call fcn.004077a0
push eax
push 0x105
lea eax, [ebp - 0x230]
push eax
call fcn.004a0ffe
add esp, 0xc
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov word [ebp - 4], cx
mov dword [ebp - 0x1c], 3
lea edx, [ebp - 0x230]
mov dword [ebp - 0x18], edx
mov word [ebp - 0x10], 0x414
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x51ad5a
movzx ecx, word [ebp - 0x10]
or ecx, 0x1080
mov word [ebp - 0x10], cx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0xe], 0
je 0x51ad74
xor al, al
jmp 0x51adae
cmp dword [ebp - 0x234], 0
je 0x51ad9e
cmp dword [ebp - 0x234], 2
je 0x51ad9e
cmp dword [ebp - 0x234], 0x402
je 0x51ad9e
mov dword [ebp - 0x268], 0
jmp 0x51ada8
mov dword [ebp - 0x268], 1
mov al, byte [ebp - 0x268]
mov esp, ebp
pop ebp
ret
Function at 0x51c190
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0040b3b0
movzx eax, al
test eax, eax
je 0x51c1b3
mov eax, 0x13a
jmp 0x51c269
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51c1d3
mov eax, 0x13b
jmp 0x51c269
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call fcn.004dbc70
add esp, 0xc
test eax, eax
je 0x51c202
xor eax, eax
jmp 0x51c269
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call fcn.004dbf90
add esp, 0xc
test eax, eax
je 0x51c231
xor eax, eax
jmp 0x51c269
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
push 0
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00477060
push eax
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00477060
push eax
call fcn.004dc220
add esp, 0x14
test eax, eax
je 0x51c264
xor eax, eax
jmp 0x51c269
mov eax, 0x139
mov esp, ebp
pop ebp
ret 4
Function at 0x51c310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525d12
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov dword [ebp - 0x78], ecx
call fcn.004d2b40
mov ecx, eax
call fcn.004d1da0
test eax, eax
jne 0x51c345
xor eax, eax
jmp 0x51c512
mov dword [ebp - 0x28], 0
call fcn.004086f0
mov dword [ebp - 0x48], eax
push 0x535a74
mov ecx, dword [ebp + 8]
call fcn.00511160
push eax
lea ecx, [ebp - 0x68]
call fcn.00402890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.00402b20
push eax
lea ecx, [ebp - 0x68]
call fcn.00402b00
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x78]
call fcn.004dd2e0
mov byte [ebp - 4], 1
push 0x535a78
mov ecx, dword [ebp + 8]
call fcn.00511160
push eax
lea ecx, [ebp - 0x44]
call fcn.00402890
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00402b20
push eax
lea ecx, [ebp - 0x44]
call fcn.00402b00
push eax
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.004dd2e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.004070d0
mov byte [ebp - 4], 4
push 0x535a80
mov ecx, dword [ebp + 8]
call fcn.00511160
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x51c433
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0049c9c0
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.004dd2e0
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x80]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00404380
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004070b0
lea ecx, [ebp - 0x10]
call fcn.004070d0
mov byte [ebp - 4], 6
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00406830
push eax
push 1
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d520
lea ecx, [ebp - 0x10]
push ecx
call fcn.004dc5d0
add esp, 4
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040a960
lea eax, [ebp - 0x10]
push eax
call fcn.004dc5d0
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040a960
lea ecx, [ebp - 0x10]
call fcn.0040ed60
push eax
lea ecx, [ebp - 0x4c]
call fcn.00477060
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 4
call fcn.00477060
push eax
call fcn.004dc800
add esp, 0xc
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4c]
call fcn.004070b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004070b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00402910
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00402910
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4