joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c6f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004d29c0
add esp, 0xc
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x208]
xor edi, edi
call fcn.004010b0
mov edx, 0xff
lea eax, [ebp - 0x208]
cmp byte [eax], 0
je 0x47c74d
inc eax
dec edx
jne 0x47c742
jmp 0x47c775
test edx, edx
je 0x47c775
mov ecx, 0xff
sub ecx, edx
mov eax, 0xff
sub eax, ecx
push str.Shell_Folders
lea ecx, [ebp + ecx - 0x208]
mov edx, 0x7fffffff
call fcn.004010b0
push 0x104
lea ecx, [ebp - 0x208]
push str.AppData
push ecx
lea ecx, [ebp - 0x108]
mov edx, 0x80000001
call fcn.004bff10
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47c82b
mov edx, 0x104
lea eax, [ebp - 0x108]
mov edi, edi
cmp byte [eax], 0
je 0x47c7bb
inc eax
dec edx
jne 0x47c7b0
jmp 0x47c7e3
test edx, edx
je 0x47c7e3
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4ec25c
lea ecx, [ebp + ecx - 0x108]
mov edx, 0x7fffffff
call fcn.004010b0
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x47c808
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov edi, ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x47c827
test al, 0x10
je 0x47c827
lea eax, [ebp - 0x108]
push eax
jmp 0x47c849
test edi, edi
jne 0x47c842
lea edi, [ebp - 0x108]
call fcn.0047c070
mov esi, eax
test esi, esi
jne 0x47c842
mov byte [ebp - 0x108], al
lea ecx, [ebp - 0x108]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x104
mov ecx, ebx
call fcn.004010b0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x47d330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
push 0x400
mov esi, edx
push edi
push 0x506340
mov dword [ebp - 0x414], esi
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], ecx
mov dword [ebp - 0x408], edi
call fcn.004d29c0
push 0x400
lea edx, [ebp - 0x404]
push edi
push edx
call fcn.004d29c0
add esp, 0x18
mov edx, str.SYSTEMROOT
mov ecx, esi
call fcn.0047bb80
test eax, eax
je 0x47d3e4
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, 0x104
lea eax, [ebp - 0x404]
cmp byte [eax], 0
je 0x47d3c1
inc eax
dec edx
jne 0x47d3b6
jmp 0x47d3fa
cmp edx, edi
je 0x47d3fa
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
add esi, 0xc
sub eax, ecx
lea ecx, [ebp + ecx - 0x404]
mov edx, 0x7fffffff
jmp 0x47d3f4
mov edx, 0x7ffffffe
mov eax, 0x104
lea ecx, [ebp - 0x404]
push esi
call fcn.004010b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x404]
push ecx
xor esi, esi
call ebx
test eax, eax
jle 0x47d4ea
cmp byte [ebp + esi - 0x404], 0x2e
jne 0x47d478
movsx edx, byte [ebp + esi - 0x402]
push edx
call fcn.004d1039
add esp, 4
cmp eax, 0x58
je 0x47d4c6
cmp byte [ebp + esi - 0x404], 0x2e
jne 0x47d478
movsx eax, byte [ebp + esi - 0x402]
push eax
call fcn.004d1039
add esp, 4
cmp eax, 0x4c
je 0x47d4c6
cmp byte [ebp + esi - 0x404], 0x2e
jne 0x47d478
movsx ecx, byte [ebp + esi - 0x402]
push ecx
call fcn.004d1039
add esp, 4
cmp eax, 0x50
je 0x47d4c6
movsx edx, byte [ebp + esi - 0x404]
push edx
call fcn.004d1039
mov byte [edi + 0x506340], al
add esp, 4
inc edi
cmp byte [ebp + esi - 0x404], 0x3a
jne 0x47d4b2
lea eax, [esi - 1]
mov dword [ebp - 0x408], eax
cmp esi, 1
jge 0x47d4b2
mov dword [ebp - 0x408], 0
lea ecx, [ebp - 0x404]
push ecx
inc esi
call ebx
cmp esi, eax
jl 0x47d414
jmp 0x47d4ea
xor ebx, ebx
lea esi, [ebp + esi - 0x404]
nop
movsx edx, byte [esi + ebx]
push edx
call fcn.004d1039
mov byte [edi + 0x506340], al
inc ebx
add esp, 4
inc edi
cmp ebx, 4
jl 0x47d4d0
mov eax, dword [ebp - 0x410]
mov ebx, dword [ebp - 0x408]
lea ebx, [ebx + 0x506340]
push eax
mov byte [edi + 0x506340], 0
call fcn.0047dcc0
mov esi, dword [ebp - 0x414]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, edi
mov eax, dword [ebp - 0x40c]
pop ebx
mov edx, 0x104
jle 0x47d549
sub esi, eax
add esi, edi
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x47d569
mov cl, byte [esi + eax]
test cl, cl
je 0x47d569
mov byte [eax], cl
inc eax
dec edx
jne 0x47d530
jmp 0x47d56d
mov esi, 0x4e27f8
sub esi, eax
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x47d569
mov cl, byte [esi + eax]
test cl, cl
je 0x47d569
mov byte [eax], cl
inc eax
dec edx
jne 0x47d550
jmp 0x47d56d
test edx, edx
jne 0x47d56e
dec eax
mov ecx, dword [ebp - 4]
mov byte [eax], 0
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x47d6e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4f72bc]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov esi, ecx
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47d785
cmp dword [0x4f8b70], 0x270f
jge 0x47d76e
lea edi, [esp + 0x20]
call fcn.004834a0
push str.GetLastError:__
mov esi, edi
call fcn.0047da70
mov esi, dword [esp + 0x1c]
add esp, 4
push str.ReadtheFile_CreateFile_OPEN_EXISTING____
call fcn.0047da70
add esp, 4
push 0x4e8d38
mov esi, 0x4e8d38
call fcn.0047da70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
add eax, 0x20
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x47d800
cmp dword [0x4f8b70], 0x270f
jge 0x47d7e2
lea edi, [esp + 0x20]
call fcn.004834a0
push str.GetLastError:__
mov esi, edi
call fcn.0047da70
mov esi, dword [esp + 0x1c]
add esp, 4
push str.ReadtheFile_CreateFile_OPEN_EXISTING____
call fcn.0047da70
add esp, 4
push 0x4e8d38
mov esi, 0x4e8d38
call fcn.0047da70
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call edi
mov edx, dword [esp + 0x14]
push 0
mov esi, eax
mov eax, dword [edx]
lea ecx, [esp + 0x14]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 0
jne 0x47d858
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov byte [ecx + esi], 0
mov eax, dword [edx]
add eax, 0x20
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call edi
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jle 0x47d8a9
mov dl, byte [esi]
cmp dl, 0xa
jne 0x47d89e
cmp dword [ebp + 0xc], 0
je 0x47d898
mov byte [ecx + eax], 0xd
inc ecx
mov byte [ecx + eax], 0xa
jmp 0x47d8a1
mov byte [ecx + eax], dl
inc ecx
inc esi
cmp ecx, dword [esp + 0x10]
jl 0x47d886
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ecx + eax], 0
dec ecx
push edi
mov dword [edx], ecx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x47d8f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3818
call fcn.004d9280
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
mov dword [ebp - 0x3814], eax
mov edi, ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x47d95d
mov esi, dword [ebp - 0x3814]
push str.fileAppendHistory___hFile_FAIL
call fcn.0047da70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 4
push 0
push 1
push 4
push edi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x47d99c
mov esi, dword [ebp - 0x3814]
push str.fileAppendHistory___hAppend_FAIL
call fcn.0047da70
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x3810]
push eax
push 0x3800
lea ecx, [ebp - 0x380c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47da38
cmp dword [ebp - 0x3810], 0
jbe 0x47da38
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x3810]
push 0
push edx
push 0
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov ecx, dword [ebp - 0x3810]
push 0
lea eax, [ebp - 0x3818]
push eax
push ecx
lea edx, [ebp - 0x380c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x3810]
push 0
push eax
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push 0
lea ecx, [ebp - 0x3810]
push ecx
push 0x3800
lea edx, [ebp - 0x380c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47d9bc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov esi, dword [ebp - 0x3814]
push str.fileAppendHistory___SUCCESS
call fcn.0047da70
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x47dd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x19c]
push eax
mov dword [ebp - 0x19c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18c], 2
push 0xfe
jne 0x47de1b
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, 0x104
lea eax, [ebp - 0x108]
cmp byte [eax], 0
je 0x47dddb
inc eax
dec edx
jne 0x47ddd0
jmp 0x47de03
test edx, edx
je 0x47de03
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str.driversetc
lea ecx, [ebp + ecx - 0x108]
mov edx, 0x7fffffff
call fcn.004010b0
mov edx, 0x104
lea eax, [ebp - 0x108]
mov edi, edi
cmp byte [eax], 0
je 0x47de3e
inc eax
dec edx
jne 0x47de10
jmp 0x47de66
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, 0x104
lea eax, [ebp - 0x108]
cmp byte [eax], 0
je 0x47de3e
inc eax
dec edx
jne 0x47de33
jmp 0x47de66
test edx, edx
je 0x47de66
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4ec560
mov edx, 0x7fffffff
lea ecx, [ebp + ecx - 0x108]
call fcn.004010b0
lea eax, [ebp - 0x108]
push eax
mov edx, 0x7ffffffe
mov eax, 0x104
mov ecx, esi
call fcn.004010b0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret

Function at 0x47e0d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [ebp - 0x120], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47e132
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x13c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x47e144
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x124]
push edx
push esi
mov dword [ebp - 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x4e8d64
lea eax, [ebp - 0x10c]
push 0x100
push eax
call fcn.00402ee0
add esp, 0x10
lea ecx, [ebp - 0x10c]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x100
mov ecx, edi
call fcn.004010b0
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x47e132
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x11c]
call fcn.0047fb70
add esp, 4
lea ecx, [ebp - 0x10c]
push ecx
mov ecx, dword [ebp - 0x120]
mov edx, 0x7ffffffe
mov eax, 0x100
call fcn.004010b0
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x47e650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.FileExists___test
mov esi, str.ViewHOSTSFile
call fcn.0047da70
add esp, 4
lea esi, [ebp - 0x218]
call fcn.0047dd80
test eax, eax
je 0x47e778
mov ecx, esi
call fcn.0047af20
test eax, eax
je 0x47e73f
mov eax, esi
push eax
mov edx, 0x7ffffffe
mov eax, 0x104
lea ecx, [ebp - 0x110]
call fcn.004010b0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x110]
push 1
mov byte [eax + edx - 6], 0
mov eax, edx
push eax
mov ecx, esi
push ecx
push 0x4ec620
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
jae 0x47e778
cmp dword [0x4f8b70], 0x270f
jge 0x47e778
lea edx, [ebp - 0x218]
push edx
push str.Open_Temp.URL
push str._s__s
lea eax, [ebp - 0x418]
push 0x200
push eax
call fcn.00402ee0
add esp, 0x14
push 0
lea edx, [ebp - 0x418]
mov ecx, esi
call fcn.00482b70
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
push 0x104
lea edx, [ebp - 0x110]
mov ecx, 0x2e0
call fcn.004ca1e0
movzx ecx, word [0x5062f0]
add esp, 4
push ecx
push 0x40040
push 0x5016f0
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x47e790
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x398
mov eax, dword [0x4f72bc]
xor eax, esp
mov dword [esp + 0x394], eax
push esi
push edi
push 0x200
mov edx, 0x4fb7b0
mov ecx, 0x1e
call fcn.004ca1e0
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 4
push 0x104
lea eax, [esp + 0x94]
push eax
call edi
mov edx, 0x104
lea eax, [esp + 0x90]
cmp byte [eax], 0
je 0x47e7ef
inc eax
dec edx
jne 0x47e7e4
jmp 0x47e817
test edx, edx
je 0x47e817
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4e28bc
lea ecx, [esp + ecx + 0x94]
mov edx, 0x7fffffff
call fcn.004010b0
mov edx, 0x104
lea eax, [esp + 0x90]
cmp byte [eax], 0
je 0x47e82e
inc eax
dec edx
jne 0x47e823
jmp 0x47e856
test edx, edx
je 0x47e856
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str.wininit.exe
lea ecx, [esp + ecx + 0x94]
mov edx, 0x7fffffff
call fcn.004010b0
push str.FileExists___test
mov esi, str.RestartFile
call fcn.0047da70
add esp, 4
lea ecx, [esp + 0x90]
call fcn.0047af20
test eax, eax
je 0x47e9ce
push 0x104
lea ecx, [esp + 0x94]
push ecx
call edi
mov eax, 0x104
lea ecx, [esp + 0x90]
cmp byte [ecx], 0
je 0x47e8a2
inc ecx
dec eax
jne 0x47e897
jmp 0x47e8ca
test eax, eax
je 0x47e8ca
mov ecx, 0x104
sub ecx, eax
mov eax, 0x104
sub eax, ecx
push 0x4e28bc
lea ecx, [esp + ecx + 0x94]
mov edx, 0x7fffffff
call fcn.004010b0
mov edx, 0x104
lea eax, [esp + 0x90]
cmp byte [eax], 0
je 0x47e8e1
inc eax
dec edx
jne 0x47e8d6
jmp 0x47e909
test edx, edx
je 0x47e909
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4ec65c
lea ecx, [esp + ecx + 0x94]
mov edx, 0x7fffffff
call fcn.004010b0
push 0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x47e98f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
test edi, edi
je 0x47e98f
lea ecx, [esp + 0x90]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x104
mov ecx, 0x500850
call fcn.004010b0
mov edx, dword [0x4fbdcc]
mov eax, dword [0x50032c]
push 0
push 0x47e9f0
push edx
push 0x82
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x394]
xor ecx, esp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
push 0x200
lea edx, [esp + 0x19c]
mov ecx, 0x3b
call fcn.004ca1e0
movzx ecx, word [0x5062f0]
mov eax, dword [0x4fbdcc]
add esp, 4
push ecx
push 0x40040
push 0x5016f0
lea edx, [esp + 0x1a4]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
mov ecx, dword [esp + 0x39c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x47f220
Capabilities:
Delete file
Get common file path
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x2b0]
push eax
mov dword [ebp - 0x2b0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x2a0], 2
jne 0x47f290
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 7
mov edx, esi
mov ecx, 0x4e27f8
call fcn.0048ca30
add esp, 4
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edx, 0x104
lea eax, [ebp - 0x110]
lea ecx, [ecx]
cmp byte [eax], 0
je 0x47f2bb
inc eax
dec edx
jne 0x47f2b0
jmp 0x47f2e3
test edx, edx
je 0x47f2e3
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str.wininit.ini
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.004010b0
push 0
push 0x20
push 4
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x47f403
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x47f3e8
push str.NUL
mov edx, 0x7ffffffe
mov eax, 0x104
lea ecx, [ebp - 0x110]
call fcn.004010b0
mov edx, 0x104
lea eax, [ebp - 0x110]
lea esp, [esp]
cmp byte [eax], 0
je 0x47f35b
inc eax
dec edx
jne 0x47f350
jmp 0x47f385
test edx, edx
je 0x47f385
mov ecx, 0x104
sub ecx, edx
lea edx, [ebp - 0x218]
mov eax, 0x104
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.004010b0
mov edx, 0x104
lea eax, [ebp - 0x110]
cmp byte [eax], 0
je 0x47f39b
inc eax
dec edx
jne 0x47f390
jmp 0x47f3c3
test edx, edx
je 0x47f3c3
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4ebdd4
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.004010b0
push 0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x110]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret
Function at 0x480070
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x506e0c], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x220], edi
mov esi, edx
mov dword [ebp - 0x224], 0
je 0x4800e0
lea eax, [ebp - 0x224]
push str.KERNEL32.DLL
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4800e0
push str.Wow64DisableWow64FsRedirection
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4800d9
lea ecx, [ebp - 0x21c]
push ecx
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
mov ecx, edi
call fcn.00487570
add esp, 4
lea ebx, [ebp - 0x110]
call fcn.0047c6f0
mov edx, 0x104
mov eax, ebx
mov edi, edi
cmp byte [eax], 0
je 0x48010b
inc eax
dec edx
jne 0x480100
jmp 0x480133
test edx, edx
je 0x480133
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str._vault_
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.004010b0
push esi
call fcn.0047ce20
movzx ebx, ax
add esp, 4
mov eax, 0x104
lea ecx, [ebp - 0x110]
lea ebx, [ebx]
cmp byte [ecx], 0
je 0x48015b
inc ecx
dec eax
jne 0x480150
jmp 0x480182
test eax, eax
je 0x480182
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + ebx]
mov eax, 0x104
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.004010b0
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str.Restore_
mov edx, 0x7ffffffe
mov eax, 0x104
lea ecx, [ebp - 0x218]
call fcn.004010b0
mov eax, 0x104
lea ecx, [ebp - 0x218]
cmp byte [ecx], 0
je 0x4801ce
inc ecx
dec eax
jne 0x4801c3
jmp 0x4801f5
test eax, eax
je 0x4801f5
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + ebx]
mov eax, 0x104
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x218]
mov edx, 0x7fffffff
call fcn.004010b0
push esi
lea ecx, [ebp - 0x110]
lea edx, [ebp - 0x218]
call fcn.004838a0
add esp, 4
mov ebx, esi
call fcn.0047b860
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x480234
push 0x4e27f8
push esi
push edi
mov ecx, 0x1c
mov edx, 0x172
call fcn.0048cb90
add esp, 0xc
mov eax, esi
mov edi, str.SoftwareBillP_StudiosWinPatrolHidden
mov ebx, 0x80000001
call fcn.004c00f0
mov ecx, dword [ebp - 0x220]
push 7
mov edx, esi
call fcn.0048ca30
add esp, 4
cmp dword [0x506e0c], 0
je 0x48029d
lea eax, [ebp - 0x224]
push str.KERNEL32.DLL
mov dword [ebp - 0x220], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48029d
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x480296
lea ecx, [ebp - 0x220]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret