joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49bbcf
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0x10
mov eax, 0x50eb78
call fcn.004d0de3
mov dword [ebp - 0x1c], edx
mov esi, ecx
xor ebx, ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x49bc23
xor al, al
jmp 0x49bd2d
mov edi, dword [esi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x49bc36
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xc8
push eax
lea eax, [ebp]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x49bc64
cmp dword [ebp - 0x18], 0xc8
jbe 0x49bd1f
lea ecx, [ebp - 0x10]
call fcn.0040c77f
mov ebx, dword [ebp - 0x1c]
and dword [ebp - 4], 0
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x49bcc0
push 0
mov ecx, esi
call fcn.0046fde0
push 0x22
pop ecx
cmp ax, cx
je 0x49bcc0
push 0
push 0x20
mov ecx, esi
call fcn.004509f0
cmp eax, 0xffffffff
je 0x49bcc0
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00472e50
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004106c3
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00472e50
jmp 0x49bcc9
push esi
lea ecx, [ebp - 0x10]
call fcn.0044d0c3
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x49bceb
push 0
mov ecx, ebx
call fcn.0046fde0
push 0x20
pop ecx
cmp ax, cx
je 0x49bceb
push ecx
lea ecx, [ebp - 0x10]
call fcn.00472e50
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.004106c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0040ca45
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0x194]
pop ebp
ret
Function at 0x49be22
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0xf003f
xor esi, esi
mov edi, ecx
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49be50
xor al, al
jmp 0x49bea6
mov edi, dword [edi]
mov eax, dword [edi - 0xc]
cmp eax, 0x4f
jle 0x49be63
lea edi, [edi + eax*2]
add edi, 0xffffff62
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x49be8c
cmp esi, 0xea
jne 0x49be98
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49bf1a
Capabilities:
Reference sql statements

Disassembly:
push 0xc
mov eax, 0x50ec17
call fcn.004d0de3
mov edi, ecx
cmp dword [edi], 0
jne 0x49bf34
xor al, al
jmp 0x49bff1
lea ecx, [ebp - 0x18]
call fcn.0040c77f
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp - 0x18]
push str.SELECT__Value__FROM__Property__WHERE__Property____s
push eax
call fcn.00410eb2
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.msi.dll_MsiConfigureFeatureFromDescriptorA]
cmp dword [ebp - 0x10], ebx
je 0x49bf6e
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.msi.dll_MsiEnumClientsA]
test eax, eax
jne 0x49bfd4
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiViewModify]
test eax, eax
jne 0x49bfd4
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], eax
je 0x49bfa3
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.msi.dll_MsiDatabaseIsTablePersistentA]
test eax, eax
jne 0x49bfc5
push dword [ebp + 0xc]
push ecx
push dword [ebp - 0x14]
call fcn.0049c0ef
mov bl, al
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
je 0x49bfd4
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], 0
cmp dword [ebp - 0x10], 0
je 0x49bfe3
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040ca45
mov al, bl
call fcn.004d0dac
ret 8
Function at 0x49c44b
Capabilities:
Create pipe

Disassembly:
push 0
mov eax, 0x50ae2b
call fcn.004d0de3
mov esi, ecx
cmp byte [esi], 0
je 0x49c462
mov al, 1
jmp 0x49c4df
mov al, byte [ebp + 8]
lea ecx, [esi + 4]
push dword [ebp + 0xc]
mov byte [esi + 1], al
call fcn.0044d0c3
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0049c899
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [esi + 1], 0
je 0x49c4b1
push edi
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [esi + 1], 0
mov dword [esi + 8], eax
jne 0x49c4c8
push edi
push edi
push 3
push edi
push edi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
lea ecx, [ebp + 8]
setne bl
or dword [ebp - 4], 0xffffffff
mov byte [esi], bl
call fcn.0040ca45
mov al, bl
call fcn.004d0dac
ret 8

Function at 0x49c78f
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push 4
mov eax, 0x50ae94
call fcn.004d0de3
mov esi, ecx
cmp byte [ebp + 0x10], 0
jne 0x49c7c5
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x49c7c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x49c7c5
cmp byte [esi + 0x11], 0
je 0x49c817
push 0
lea eax, [ebp + 0x10]
push eax
push 0x7f90
push dword [esi + 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov edx, dword [esi + 0xc]
shr ecx, 1
mov word [edx + ecx*2], di
test eax, eax
je 0x49c817
cmp dword [ebp + 0x10], edi
je 0x49c817
push dword [esi + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040d264
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
and dword [ebp - 4], edi
push eax
call fcn.004069f3
lea ecx, [ebp - 0x10]
call fcn.0040ca45
jmp 0x49c81f
mov ecx, dword [ebp + 8]
call fcn.0040c77f
mov eax, dword [ebp + 8]
call fcn.004d0dac
ret 0xc

Function at 0x49c82a
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4f7314
call fcn.004d0de3
mov esi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xffffffff
mov dword [ebp - 0x10], ebx
jne 0x49c84d
mov ecx, dword [ebp + 8]
call fcn.0040c77f
jmp 0x49c884
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x10]
push ebx
push edx
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x49c875
mov ecx, dword [ebp + 8]
call fcn.0040c77f
jmp 0x49c884
push 1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0049c78f
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 8]
call fcn.004d0dac
ret 0xc
Function at 0x49cb66
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x6c
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push 0x1c
mov eax, 0x50edb7
call fcn.004d0de3
mov eax, edx
mov dword [ebp - 0x20], eax
xor edx, edx
push edx
push 0x80
push 3
push edx
push 3
push 0x80000000
push ecx
mov byte [eax], dl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x28], 0x527e68
mov dword [ebp - 0x24], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x49cc80
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x49cc80
cmp edi, dword [ebp + 0x78]
jbe 0x49cc80
sub edi, dword [ebp + 0x78]
and dword [ebp - 0x1c], 0
push 0x10000
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0048fb3d
mov esi, dword [ebp - 0x1c]
mov byte [ebp - 0xd], 0
test esi, esi
je 0x49cc6f
and dword [ebp - 0x18], 0
lea ecx, [ebp]
and dword [ebp - 0x14], 0
call fcn.004cb860
push 0
lea eax, [ebp - 0x14]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49cc59
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x49cc59
mov edx, dword [ebp - 0x18]
lea eax, [ecx + edx]
cmp eax, edi
jbe 0x49cc40
mov ecx, edi
mov byte [ebp - 0xd], 1
sub ecx, edx
mov dword [ebp - 0x14], ecx
push ecx
push esi
lea ecx, [ebp]
call fcn.004cb660
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x18], eax
je 0x49cc0d
lea ecx, [ebp]
call fcn.004cb730
push dword [ebp - 0x20]
lea ecx, [ebp]
call fcn.004cb800
mov byte [ebp - 0xd], al
push esi
mov byte [ebp - 4], 0
call fcn.004d0936
and dword [ebp - 0x1c], 0
pop ecx
jmp 0x49cc84
mov byte [ebp - 0xd], 0
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], 0x527e68
test ebx, ebx
je 0x49cc9e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0x70]
pop ebp
ret

Function at 0x49cea1
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x50c47f
call fcn.004d0de3
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.0040c77f
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
xor esi, esi
mov ecx, edi
push ebx
mov dword [ebp - 4], esi
call fcn.0049d026
test eax, eax
jne 0x49ced4
push 3
pop esi
jmp 0x49cefd
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
push 1
push esi
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca45
mov eax, esi
call fcn.004d0dac
ret 8
Function at 0x49d026
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x50ee11
call fcn.004d0de3
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 4]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49d0e8
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov esi, 0x104
mov dword [ebp - 4], edi
push esi
mov dword [ebp - 0x10], esi
call fcn.004d093b
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], esi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
jne 0x49d0df
lea ecx, [ebp - 0x20]
call fcn.00480610
mov esi, dword [ebp - 0x10]
push esi
call fcn.004d093b
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x20], esi
push dword [eax]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.00477630
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.00480610
or dword [ebp - 4], 0xffffffff
mov eax, edi
jmp 0x49d0eb
test eax, eax
je 0x49d0bf
xor edi, edi
inc edi
jmp 0x49d0c8
xor eax, eax
inc eax
call fcn.004d0dac
ret 8
Function at 0x49dcfc
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
sub esp, 0x494
lea ebp, [esp - 4]
mov eax, dword [0x570074]
xor eax, ebp
mov dword [ebp + 0x494], eax
push 0x20
mov eax, 0x50f040
call fcn.004d0de3
mov dword [ebp - 0x28], ecx
mov ebx, dword [ebp + 0x4a0]
lea eax, [ebp + 0x84]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x49deea
lea eax, [ebp + 0x28c]
push eax
push 0
push 0x538108
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x49deea
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x28c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d264
and dword [ebp - 4], 0
mov esi, str..url
push esi
call fcn.004d5c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004106c3
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0x527e68
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
cmp esi, 0xffffffff
je 0x49dec4
lea ecx, [ebp - 0x14]
call fcn.0040c77f
mov byte [ebp - 4], 2
lea eax, [ebp + 4]
push 3
push dword [ebx]
lea ecx, [ebp]
mov dword [ebp], eax
call fcn.0048c864
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
push dword [ebp]
call fcn.00477160
lea eax, [ebp + 4]
mov byte [ebp - 4], 5
cmp dword [ebp], eax
je 0x49de14
push dword [ebp]
call fcn.004d5c5a
pop ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push str._InternetShortcut__r_nURL_s_r_n
push eax
call fcn.0045207e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
add esp, 0xc
push 0
push ecx
push dword [eax - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test esi, esi
je 0x49de4e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x1c], esi
test ebx, ebx
je 0x49de68
push 5
push 0
push 0
push dword [ebp - 0x10]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x5c
push dword [ebp - 0x10]
call fcn.004d3e4b
pop ecx
pop ecx
test eax, eax
jne 0x49de7d
or eax, 0xffffffff
jmp 0x49de82
sub eax, dword [ebp - 0x10]
sar eax, 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040666a
mov edx, dword [ebp - 0x28]
mov ecx, eax
add edx, 0x1c
mov byte [ebp - 4], 6
call fcn.00475860
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.0040ca45
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0040ca45
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040ca45
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], 0x527e68
test esi, esi
je 0x49dede
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca45
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x494]
xor ecx, ebp
call fcn.004d0217
lea esp, [ebp + 0x498]
pop ebp
ret 4
Function at 0x49e85a
Capabilities:
Read file on windows

Disassembly:
push 0x24
mov eax, 0x50f164
call fcn.004d0de3
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
push 0x400
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], edi
call fcn.0048fb3d
test al, al
jne 0x49e899
push 3
pop esi
mov edi, esi
push dword [ebp - 0x10]
call fcn.004d0936
pop ecx
mov eax, edi
call fcn.004d0dac
ret 4
push 2
mov ecx, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov eax, edi
mov edx, edi
pop esi
add eax, 0xa
sub edx, 0x400
mov dword [ebp - 0x18], eax
inc ecx
mov eax, edx
mov dword [ebp - 0x24], edx
cdq
mov dword [ebp - 0x1c], ecx
mov ecx, eax
cmp dword [ebp - 0x1c], 1
mov eax, edx
mov dword [ebp - 0x20], eax
jle 0x49e8d6
mov eax, dword [ebp - 0x18]
cdq
add ecx, eax
mov eax, dword [ebp - 0x20]
adc eax, edx
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x49e8fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49e884
push edi
lea eax, [ebp - 0x14]
push eax
push 0x400
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e884
mov eax, 0x400
cmp dword [ebp - 0x14], eax
jne 0x49e884
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.00472b60
pop ecx
pop ecx
test eax, eax
jns 0x49e946
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
jmp 0x49e8a8
mov ecx, dword [ebp - 0x28]
add ecx, 0xffffffc0
mov dword [ebp - 0x2c], edi
add eax, ecx
lea ecx, [ebp - 0x2c]
push edi
push ecx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x49e884
push edi
lea eax, [ebp - 0x14]
push eax
push 0x4a
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e884
cmp dword [ebp - 0x14], 0
je 0x49e884
push 0xa
lea eax, [ebx + 0x40]
push str.ADVINSTSFX
push eax
call fcn.004d2434
add esp, 0xc
test eax, eax
jne 0x49e9ac
cmp dword [ebx + 0xc], 0x64
je 0x49e9b3
push 5
jmp 0x49e883
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x2c]
sbb eax, edi
mov dword [ebx + 0x50], ecx
mov dword [ebx + 0x54], eax
jmp 0x49e886
Function at 0x49ea3e
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x509f68
call fcn.004d0de3
mov edi, ecx
cmp dword [edi + 4], 0
mov esi, dword [ebp + 8]
mov dword [edi + 0x10], esi
jne 0x49ea5f
xor eax, eax
jmp 0x49eaf6
xor ebx, ebx
test esi, esi
je 0x49ea91
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x10], eax
cmp eax, dword [edi + 0x18]
je 0x49ea85
lea ecx, [edi + 0x14]
call fcn.00404fb2
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 0x18]
call dword [eax + 0x20]
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
push edi
push 0x49eafe
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [ebp - 0x14], 0x527e68
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], ebx
test esi, esi
je 0x49eabe
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x527e68
test edi, edi
je 0x49eaf4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
mov eax, esi
call fcn.004d0dac
ret 4
Function at 0x49f00e
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x50f28d
call fcn.004d0de3
mov edi, ecx
mov esi, dword [ebp + 8]
push 0x2e
push dword [esi]
call fcn.004d3e4b
pop ecx
pop ecx
test eax, eax
je 0x49f1a8
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x49f1a8
push eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.0040666a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040c77f
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [ebp - 0x10]
mov ebx, dword [ebp + 0xc]
push dword [esi]
push dword [ebx]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.00410eb2
mov ecx, dword [edi + 0x10]
add esp, 0x14
test ecx, ecx
je 0x49f082
mov eax, dword [ecx]
push esi
call dword [eax + 0x14]
push 0
lea eax, [ebp - 0x24]
push 0x8000008
push eax
lea ecx, [edi + 0xc]
lea edx, [ebp - 0x18]
call fcn.00495922
add esp, 0xc
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x10]
call fcn.00475e60
test al, al
je 0x49f0b8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x49f176
lea ecx, [ebp - 0x14]
call fcn.0040c77f
push ecx
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
mov ecx, ebx
call fcn.00496268
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0040c77f
mov edx, 0xca
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00494948
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
push 0x5c
push eax
mov ecx, dword [eax - 0xc]
mov dword [ebp + 8], ecx
call fcn.004d3e4b
pop ecx
pop ecx
test eax, eax
jne 0x49f109
or eax, 0xffffffff
jmp 0x49f10e
sub eax, dword [ebp - 0x10]
sar eax, 1
mov ecx, dword [ebp + 8]
sub ecx, eax
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.004066bb
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp + 0xc]
push dword [ebp - 0x1c]
push eax
call fcn.00410eb2
add esp, 0x10
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.0040ca45
xor dl, dl
lea ecx, [ebp + 0xc]
call fcn.00485504
lea ecx, [ebp - 0x1c]
mov byte [ebp + 0xb], 0
mov byte [ebp - 4], 3
call fcn.0040ca45
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0040ca45
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040ca45
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x49f18b
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0040ca45
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040ca45
mov al, byte [ebp + 0xb]
jmp 0x49f1aa
mov al, 1
call fcn.004d0dac
ret 8
Function at 0x49f510
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x50f2f3
call fcn.004d0de3
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esi + 0x10], eax
cmp dword [eax], edi
je 0x49f558
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp ebx, dword [esi + 0x18]
je 0x49f549
lea ecx, [esi + 0x14]
call fcn.00404fb2
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x10]
push dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor edi, edi
lea eax, [ebp + 8]
push eax
push edi
push esi
push 0x49f793
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x1c], 0x527e68
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
mov ecx, dword [esi + 0x10]
cmp dword [ecx], edi
je 0x49f5ba
mov ecx, esi
call fcn.0049f5fa
push dword [esi + 4]
mov ecx, dword [esi]
mov ebx, eax
mov edi, edx
call fcn.0048e0e1
mov ecx, dword [esi + 0x10]
add ebx, eax
adc edi, edx
push edi
mov ecx, dword [ecx]
push ebx
mov esi, dword [ecx]
call dword [esi]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x10]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [ebp - 0x14]
xor edi, edi
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x527e68
test ebx, ebx
je 0x49f5f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], edi
mov eax, esi
call fcn.004d0dac
ret 4

Function at 0x49f79f
Capabilities:
Copy file
Get common file path

Disassembly:
push 0x420
mov eax, 0x50f319
call fcn.004d0e17
mov esi, ecx
mov edi, dword [ebp + 8]
and dword [esi], 0
call fcn.00470130
test al, al
je 0x49f87e
push edi
call fcn.0049f8df
test al, al
je 0x49f87e
mov ebx, 0x208
lea eax, [ebp - 0x21c]
push ebx
push 0
push eax
call fcn.004d39c0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.004d39c0
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push ebx
push str.shim_clone
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x424]
mov ecx, esi
push eax
call fcn.0049f952
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x428], bl
lea ecx, [ebp - 0x42c]
mov dword [ebp - 4], ebx
call fcn.0049ce21
push ebx
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, eax
cmp ecx, 1
sete al
mov byte [esi + 4], al
cmp ecx, 1
je 0x49f871
push edi
mov ecx, esi
call fcn.0049f952
lea ecx, [ebp - 0x42c]
call fcn.0049cdd1
jmp 0x49f88a
push edi
mov ecx, esi
call fcn.0049f952
mov byte [esi + 4], 0
mov eax, esi
call fcn.004d0dc1
ret 4