joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e0c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x80
lea edx, [ebp - 0x8c]
mov ecx, 5
mov dword [ebp - 0x494], eax
call fcn.00499890
add esp, 4
lea ecx, [ebp - 0x490]
push ecx
lea edx, [ebp - 0x8c]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47e14b
mov edx, dword [ebp - 0x490]
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0x28c]
push ecx
push 0
push edx
mov dword [ebp - 0x498], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x47e15d
mov eax, dword [ebp - 0x490]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x490]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x28c]
push edx
call edi
xor esi, esi
xor edx, edx
test eax, eax
jle 0x47e1b7
mov cl, byte [ebp + edx - 0x28c]
cmp cl, 0x22
je 0x47e195
mov byte [ebp + esi - 0x48c], cl
inc esi
cmp cl, 0x2d
je 0x47e1a1
inc edx
cmp edx, eax
jl 0x47e181
jmp 0x47e1a9
mov byte [ebp + esi - 0x48e], 0
test esi, esi
jle 0x47e1b7
mov byte [ebp + esi - 0x48d], 0
jmp 0x47e1be
mov byte [ebp - 0x48c], 0
lea eax, [ebp - 0x48c]
push eax
call edi
test eax, eax
je 0x47e1dd
mov ecx, dword [ebp - 0x494]
push ecx
lea ecx, [ebp - 0x48c]
jmp 0x47e280
push 0x80
lea edx, [ebp - 0x8c]
mov ecx, 0xc
call fcn.00499890
push 0x200
lea edx, [ebp - 0x8c]
push str.Path
push edx
lea ecx, [ebp - 0x28c]
mov edx, 0x80000002
call fcn.0048e050
add esp, 0x10
lea eax, [ebp - 0x28c]
push eax
call edi
cmp byte [ebp + eax - 0x28d], 0x3b
lea eax, [ebp + eax - 0x28d]
jne 0x47e233
mov byte [eax], 0
mov edx, 0x104
lea eax, [ebp - 0x28c]
mov edi, edi
cmp byte [eax], 0
je 0x47e24b
inc eax
dec edx
jne 0x47e240
jmp 0x47e273
test edx, edx
je 0x47e273
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str.IExplore.exe
lea ecx, [ebp + ecx - 0x28c]
mov edx, 0x7fffffff
call fcn.00401000
mov ecx, dword [ebp - 0x494]
push ecx
lea ecx, [ebp - 0x28c]
call fcn.0047f1b0
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x47ea60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004a3190
add esp, 0xc
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x208]
xor edi, edi
call fcn.00401000
mov edx, 0xff
lea eax, [ebp - 0x208]
cmp byte [eax], 0
je 0x47eabd
inc eax
dec edx
jne 0x47eab2
jmp 0x47eae5
test edx, edx
je 0x47eae5
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.00401000
push 0x104
lea ecx, [ebp - 0x208]
push str.AppData
push ecx
lea ecx, [ebp - 0x108]
mov edx, 0x80000001
call fcn.0048e050
mov esi, eax
add esp, 0xc
test esi, esi
je 0x47eb9b
mov edx, 0x104
lea eax, [ebp - 0x108]
mov edi, edi
cmp byte [eax], 0
je 0x47eb2b
inc eax
dec edx
jne 0x47eb20
jmp 0x47eb53
test edx, edx
je 0x47eb53
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4bb38c
lea ecx, [ebp + ecx - 0x108]
mov edx, 0x7fffffff
call fcn.00401000
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x47eb78
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 0x47eb97
test al, 0x10
je 0x47eb97
lea eax, [ebp - 0x108]
push eax
jmp 0x47ebb9
test edi, edi
jne 0x47ebb2
lea edi, [ebp - 0x108]
call fcn.0047e3e0
mov esi, eax
test esi, esi
jne 0x47ebb2
mov byte [ebp - 0x108], al
lea ecx, [ebp - 0x108]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x104
mov ecx, ebx
call fcn.00401000
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x47f790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x4c32cc]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x2c], eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47f831
cmp dword [0x4c643c], 0x270f
jge 0x47f81a
lea edi, [esp + 0x18]
call fcn.00483860
push str.GetLastError:__
mov esi, edi
call fcn.0047fb10
mov esi, dword [esp + 0x14]
add esp, 4
push str.ReadtheFile_CreateFile_OPEN_EXISTING____
call fcn.0047fb10
add esp, 4
push 0x4b7c68
mov esi, 0x4b7c68
call fcn.0047fb10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
add eax, 0x20
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x47f8ac
cmp dword [0x4c643c], 0x270f
jge 0x47f88e
lea edi, [esp + 0x18]
call fcn.00483860
push str.GetLastError:__
mov esi, edi
call fcn.0047fb10
mov esi, dword [esp + 0x14]
add esp, 4
push str.ReadtheFile_CreateFile_OPEN_EXISTING____
call fcn.0047fb10
add esp, 4
push 0x4b7c68
mov esi, 0x4b7c68
call fcn.0047fb10
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 + 0x210]
xor ecx, esp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [edi]
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], 0
jne 0x47f8fe
mov esi, dword [esp + 0x14]
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 + 0x210]
xor ecx, esp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
mov byte [eax + esi], 0
mov ecx, dword [edi]
add ecx, 0x20
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
xor ecx, ecx
cmp dword [esp + 0xc], ecx
jle 0x47f94d
lea esp, [esp]
mov dl, byte [esi]
cmp dl, 0xa
jne 0x47f942
mov word [ecx + eax], 0xa0d
add ecx, 2
jmp 0x47f946
mov byte [ecx + eax], dl
inc ecx
inc esi
cmp ecx, dword [esp + 0xc]
jl 0x47f930
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov byte [ecx + eax], 0
dec ecx
mov dword [edi], ecx
mov edi, dword [esp + 0x14]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x47f990
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3818
call fcn.004a9b70
mov eax, dword [0x4c32cc]
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 0x47f9fd
mov esi, dword [ebp - 0x3814]
push str.fileAppendHistory___hFile_FAIL
call fcn.0047fb10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
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 0x47fa3c
mov esi, dword [ebp - 0x3814]
push str.fileAppendHistory___hAppend_FAIL
call fcn.0047fb10
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a01d6
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 0x47fad8
cmp dword [ebp - 0x3810], 0
jbe 0x47fad8
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 0x47fa5c
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.0047fb10
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x47fd80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4c32cc]
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 0x47fe1b
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 0x47fddb
inc eax
dec edx
jne 0x47fdd0
jmp 0x47fe03
test edx, edx
je 0x47fe03
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.00401000
mov edx, 0x104
lea eax, [ebp - 0x108]
mov edi, edi
cmp byte [eax], 0
je 0x47fe3e
inc eax
dec edx
jne 0x47fe10
jmp 0x47fe66
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 0x47fe3e
inc eax
dec edx
jne 0x47fe33
jmp 0x47fe66
test edx, edx
je 0x47fe66
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4bb674
mov edx, 0x7fffffff
lea ecx, [ebp + ecx - 0x108]
call fcn.00401000
lea eax, [ebp - 0x108]
push eax
mov edx, 0x7ffffffe
mov eax, 0x104
mov ecx, esi
call fcn.00401000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret

Function at 0x4800d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
mov eax, dword [0x4c32cc]
xor eax, esp
mov dword [esp + 0x13c], 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 [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x480131
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x480147
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
lea edx, [esp + 8]
push edx
push esi
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x4b7c94
lea eax, [esp + 0x48]
push 0x100
push eax
call fcn.00402830
add esp, 0x10
lea ecx, [esp + 0x40]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x100
mov ecx, edi
call fcn.00401000
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x480131
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x34]
call fcn.004807a0
add esp, 4
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x10]
mov edx, 0x7ffffffe
mov eax, 0x100
call fcn.00401000
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x144]
pop esi
pop ebx
xor ecx, esp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x480200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x4c32cc]
xor eax, esp
mov dword [esp + 0x40c], eax
push esi
push edi
push str.FileExists___test
mov esi, str.ViewsysFile
mov edi, ecx
call fcn.0047fb10
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x4802ae
mov ecx, edi
call fcn.0047d280
test eax, eax
je 0x4802ae
push 1
push 0
push edi
push str.notepad.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jge 0x4802ae
cmp dword [0x4c643c], 0x270f
jge 0x48031f
lea edi, [esp + 0x10]
call fcn.00483860
push str.GetLastError:__
mov esi, edi
call fcn.0047fb10
add esp, 4
push str.GetMyFileTime__GetFileTime____
mov esi, str.Notepad.exe
call fcn.0047fb10
add esp, 4
push 0x4b7c68
mov esi, 0x4b7c68
call fcn.0047fb10
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
mov esi, eax
lea eax, [esp + 0x14]
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0xc]
push ecx
push esi
push str._d___s
lea edx, [esp + 0x21c]
push 0x200
push edx
call fcn.00402830
movzx eax, word [0x4d1e04]
add esp, 0x14
push eax
push 0x40040
push 0x4cd200
lea ecx, [esp + 0x21c]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
xor ecx, esp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x480340
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
mov edx, 0x4c72a0
mov ecx, 0x1e
call fcn.00499890
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
add esp, 4
push 0x104
lea eax, [ebp - 0x110]
push eax
call edi
mov edx, 0x104
lea eax, [ebp - 0x110]
jmp 0x480390
cmp byte [eax], 0
je 0x48039b
inc eax
dec edx
jne 0x480390
jmp 0x4803c3
test edx, edx
je 0x4803c3
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push 0x4b17dc
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.00401000
mov edx, 0x104
lea eax, [ebp - 0x110]
mov edi, edi
cmp byte [eax], 0
je 0x4803db
inc eax
dec edx
jne 0x4803d0
jmp 0x480403
test edx, edx
je 0x480403
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
push str.wininit.exe
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.00401000
push str.FileExists___test
mov esi, str.RestartFile
call fcn.0047fb10
add esp, 4
lea ecx, [ebp - 0x110]
call fcn.0047d280
test eax, eax
je 0x480577
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call edi
mov eax, 0x104
lea ecx, [ebp - 0x110]
cmp byte [ecx], 0
je 0x48044c
inc ecx
dec eax
jne 0x480441
jmp 0x480474
test eax, eax
je 0x480474
mov ecx, 0x104
sub ecx, eax
mov eax, 0x104
sub eax, ecx
push 0x4b17dc
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.00401000
mov edx, 0x104
lea eax, [ebp - 0x110]
nop
cmp byte [eax], 0
je 0x48048b
inc eax
dec edx
jne 0x480480
jmp 0x4804b3
test edx, edx
je 0x4804b3
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.00401000
push 0
lea edx, [ebp - 0x398]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x480538
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 0x480538
test ebx, ebx
jne 0x480523
lea ecx, [ebp - 0x110]
push ecx
mov edx, 0x7ffffffe
mov eax, 0x104
mov ecx, 0x4cc358
call fcn.00401000
mov edx, dword [0x4c78c4]
mov eax, dword [0x4cbe20]
push ebx
push 0x480590
push edx
push 0x82
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x480577
push 0x200
lea edx, [ebp - 0x310]
lea ecx, [ebx + 0x3b]
call fcn.00499890
movzx ecx, word [0x4d1e04]
mov eax, dword [0x4c78c4]
add esp, 4
push ecx
push 0x40040
push 0x4cd200
lea edx, [ebp - 0x310]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxExA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x480bb0
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4d2afc], 0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x220], 0
je 0x480c18
lea eax, [ebp - 0x220]
push str.KERNEL32.DLL
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x480c18
push str.Wow64DisableWow64FsRedirection
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x480c11
lea ecx, [ebp - 0x21c]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x4c72a0
call fcn.004877c0
add esp, 4
lea ebx, [ebp - 0x110]
call fcn.0047ea60
mov edx, 0x104
mov eax, ebx
cmp byte [eax], 0
je 0x480c42
inc eax
dec edx
jne 0x480c37
jmp 0x480c6a
test edx, edx
je 0x480c6a
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.00401000
push esi
call fcn.0047f140
movzx edi, ax
add esp, 4
mov eax, 0x104
lea ecx, [ebp - 0x110]
cmp byte [ecx], 0
je 0x480c8c
inc ecx
dec eax
jne 0x480c81
jmp 0x480cb3
test eax, eax
je 0x480cb3
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + edi]
mov eax, 0x104
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x110]
mov edx, 0x7fffffff
call fcn.00401000
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.00401000
mov eax, 0x104
lea ecx, [ebp - 0x218]
cmp byte [ecx], 0
je 0x480cff
inc ecx
dec eax
jne 0x480cf4
jmp 0x480d26
test eax, eax
je 0x480d26
mov ecx, 0x104
sub ecx, eax
lea edx, [esi + edi]
mov eax, 0x104
push edx
sub eax, ecx
lea ecx, [ebp + ecx - 0x218]
mov edx, 0x7fffffff
call fcn.00401000
push esi
lea ecx, [ebp - 0x110]
lea edx, [ebp - 0x218]
call fcn.00483d60
add esp, 4
mov ebx, esi
call fcn.0047dbc0
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x480d69
push 0x4b17de
push esi
push 0x4c72a0
mov ecx, 0x1c
mov edx, 0x172
call fcn.0048c740
add esp, 0xc
mov eax, esi
mov edi, str.SoftwareBillP_StudiosWinPatrolHidden
mov ebx, 0x80000001
call fcn.0048e230
push 7
mov edx, esi
mov ecx, 0x4c72a0
call fcn.0048c5e0
add esp, 4
cmp dword [0x4d2afc], 0
je 0x480dd1
lea eax, [ebp - 0x220]
push str.KERNEL32.DLL
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x480dd1
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x480dca
lea ecx, [ebp - 0x224]
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.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x4812b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x38
lea eax, [ebp - 0x550]
push ebx
push eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x554], ebx
call fcn.004a3190
add esp, 0xc
push 0x1f40001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x110]
push ecx
mov ecx, esi
mov dword [ebp - 0x518], eax
call fcn.0047e550
add esp, 4
test eax, eax
jne 0x481310
mov byte [ebp - 0x110], bl
lea eax, [ebp - 0x554]
lea edx, [ebp - 0x110]
push eax
mov dword [ebp - 0x554], 0x3c
mov dword [ebp - 0x550], 0xc
mov dword [ebp - 0x54c], edi
mov dword [ebp - 0x548], str.properties
mov dword [ebp - 0x544], esi
mov dword [ebp - 0x540], 0x4b17de
mov dword [ebp - 0x53c], edx
mov dword [ebp - 0x538], 5
mov dword [ebp - 0x534], ebx
mov dword [ebp - 0x530], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edi, eax
cmp edi, ebx
jne 0x481412
cmp dword [0x4c643c], 0x270f
jge 0x481412
push esi
push str.fileShellExecute
push str._s__s
lea ecx, [ebp - 0x510]
push 0x200
push ecx
call fcn.00402830
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
lea edx, [ebp - 0x514]
push edx
push 0x400
mov esi, eax
push esi
push ebx
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [ebp - 0x514]
push eax
push esi
push str._d___s
lea ecx, [ebp - 0x310]
push 0x200
push ecx
call fcn.00402830
mov edx, dword [ebp - 0x514]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x510]
push eax
lea esi, [ebp - 0x310]
call fcn.0047fb10
add esp, 4
mov ecx, dword [ebp - 0x518]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
Function at 0x481d30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4c32cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x80
lea eax, [ebp - 0x84]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [ebp - 0x84]
push ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x481d7f
mov cl, 0x5c
inc esi
cmp byte [ebp + eax - 0x84], cl
je 0x481d90
dec eax
test eax, eax
jg 0x481d70
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 1]
test ecx, ecx
jle 0x481daf
push ecx
lea eax, [ebp + eax - 0x83]
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.004a85a0
add esp, 0xc
lea esi, [ebp - 0x104]
mov edx, 0x80
mov eax, edi
sub esi, edi
mov edi, edi
lea ecx, [edx + 0x7fffff7e]
test ecx, ecx
je 0x481dec
mov cl, byte [esi + eax]
test cl, cl
je 0x481dec
mov byte [eax], cl
inc eax
dec edx
jne 0x481dc0
dec eax
mov byte [eax], dl
lea eax, [edx + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a01d6
mov esp, ebp
pop ebp
ret
test edx, edx
jne 0x481df1
dec eax
mov ecx, dword [ebp - 4]
mov byte [eax], 0
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004a01d6
mov esp, ebp
pop ebp
ret