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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x6db131
push esi
call fcn.006de145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.006cd080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x6db131
push 0
push ebp
call fcn.006cd3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.006cd260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x6db08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006cd2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x6db121
push 0x6f3918
push edi
call fcn.006dc3f0
push eax
push ebx
push esi
call fcn.006daf60
push 0x6f38f8
push edi
call fcn.006dc3f0
push eax
push ebx
push esi
call fcn.006daf60
push 0x6f38d8
push edi
call fcn.006dc3f0
push eax
push ebx
push esi
call fcn.006daf60
push 0x6f38c0
push edi
call fcn.006dc3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.006daf60
push 0x6f38a0
push edi
call fcn.006dc3f0
push eax
push ebx
push esi
call fcn.006daf60
push 0x6f3888
push edi
call fcn.006dc3f0
push eax
push ebx
push esi
call fcn.006daf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x6dc1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.006dc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.006dc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.006dc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.006dc140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x6dcbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6dcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x6ee87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6dcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x6dcc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40323e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403269
mov ecx, dword [0x42a2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ed4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403346
cmp eax, esi
jl 0x403340
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405fd3
test eax, eax
je 0x403330
push dword [ebp + 8]
add dword [0x420ed4], 4
call fcn.00403346
mov ebx, eax
cmp ebx, esi
jl 0x40333e
cmp dword [ebp + 0x10], esi
jne 0x40330c
cmp dword [ebp + 8], esi
jle 0x40333e
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4032ce
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405fd3
test eax, eax
je 0x403330
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406002
test eax, eax
je 0x403308
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4032bd
jmp 0x40333e
push 0xfffffffffffffffe
jmp 0x403332
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403317
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403335
push 0xfffffffffffffffd
pop eax
jmp 0x403340
mov ebx, dword [ebp - 4]
add dword [0x420ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405991
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4059e2
xor eax, eax
jmp 0x405a09
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405a09
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4059de
call esi
pop esi
leave
ret 4

Function at 0x405a43
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a82
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a86
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405b24
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f2b
mov edi, eax
cmp edi, 0xffffffff
je 0x405b65
test byte [esp + 0x10], 1
push esi
je 0x405b47
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405b4d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405b56
xor eax, eax
inc eax
jmp 0x405b67
test byte [esp + 0x10], 4
jne 0x405b65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b6c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e37
test bl, 8
mov dword [ebp - 8], eax
je 0x405bab
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2e8], eax
jmp 0x405d28
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bc5
test eax, eax
je 0x405cd6
test bl, 2
je 0x405cd6
mov esi, 0x425730
push edi
push esi
call fcn.0040645a
cmp dword [ebp + 8], 0
je 0x405be4
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405bea
push edi
call fcn.00405d7b
cmp word [edi], 0
jne 0x405bfa
cmp word [0x425730], 0x5c
jne 0x405c05
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ccb
cmp word [ebp - 0x22c], 0x2e
jne 0x405c4f
cmp word [ebp - 0x22a], 0
je 0x405cae
cmp word [ebp - 0x22a], 0x2e
jne 0x405c4f
cmp word [ebp - 0x228], 0
je 0x405cae
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040645a
test byte [ebp - 0x258], 0x10
je 0x405c7a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cae
push dword [ebp + 0xc]
push edi
call fcn.00405b6c
jmp 0x405cae
push dword [ebp - 4]
push edi
call fcn.00405b24
test eax, eax
jne 0x405ca6
cmp dword [ebp - 4], eax
je 0x405c9e
push edi
push 0xfffffffffffffff1
call fcn.004054c2
push 0
push edi
call fcn.00406220
jmp 0x405cae
inc dword [0x42a2e8]
jmp 0x405cae
push edi
push 0xfffffffffffffff2
call fcn.004054c2
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405c27
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cd6
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d28
cmp dword [ebp - 8], esi
jne 0x405cea
inc dword [0x42a2e8]
jmp 0x405d28
push edi
call fcn.0040679d
test eax, eax
je 0x405d28
push edi
call fcn.00405d2f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b24
test eax, eax
jne 0x405d20
cmp dword [ebp - 4], esi
je 0x405ce2
push edi
push 0xfffffffffffffff1
call fcn.004054c2
push esi
push edi
call fcn.00406220
jmp 0x405d28
push edi
push 0xffffffffffffffe5
call fcn.004054c2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.0040645a
push esi
call fcn.00405dda
mov edi, eax
test edi, edi
jne 0x405e58
xor eax, eax
jmp 0x405eb0
push edi
call fcn.004066ee
test byte [0x42a25c], 0x80
je 0x405e75
mov ax, word [edi]
test ax, ax
je 0x405e54
cmp ax, 0x5c
je 0x405e54
sub edi, esi
sar edi, 1
jmp 0x405e8f
call fcn.0040679d
test eax, eax
je 0x405e89
test byte [eax], 0x10
je 0x405e54
push esi
call fcn.00405d7b
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e7b
call fcn.00405d2f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405f2b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f4a
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405f50
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405f7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405fcf
test edi, edi
jne 0x405f8c
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405fc9
Function at 0x4060a6
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x426dc8], 0x55004e
mov dword [0x426dcc], 0x4c
mov edi, 0x400
mov ebp, 0x426dc8
je 0x4060fc
push 1
push 0
push esi
call fcn.00405f50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40621b
cmp eax, edi
jg 0x40621b
mov esi, 0x4275c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40621b
cmp eax, edi
jg 0x40621b
push esi
push ebp
push str._ls_ls_r_n
push 0x4269c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42a254]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040647c
push 4
push 0xc0000000
push esi
call fcn.00405f50
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40621b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406214
push edi
push esi
push ebp
call fcn.00405fd3
test eax, eax
je 0x406214
push str._Rename__r_n
push esi
call fcn.00405eb5
test eax, eax
jne 0x4061b2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4061e7
add eax, 0xa
push 0x40a590
push eax
call fcn.00405eb5
mov ebp, eax
test ebp, ebp
je 0x4061e3
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4061d4
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4061ce
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061e9
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4269c8
push eax
call fcn.00405f0b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406002
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406220
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406243
push dword [esp + 8]
push dword [esp + 8]
call fcn.004060a6
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8
Function at 0x406328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c7
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406398
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406398
cmp dword [ebp + 0xc], 1
je 0x40639c
cmp dword [ebp + 0xc], 2
je 0x40639c
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406927
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x40695e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406938
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401590
push 0x41b1aa
push 0
call fcn.00407ec5
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x34]
call fcn.00401e00
push str.The_existing_version_will_be_uninstalled_before_proceeding_with_installation._Are_you_sure_you_want_to_continue_
lea ecx, [ebp - 0x1c]
call fcn.00401c70
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4010d8
cmp dword [ebp - 0x40], 2
jl 0x4010d8
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + ecx]
push eax
lea ecx, [ebp - 0x34]
call fcn.004020b0
push str.__uninstall
lea ecx, [ebp - 0x34]
push ecx
call fcn.004016c0
add esp, 8
movzx edx, al
test edx, edx
je 0x4010bc
mov byte [ebp - 0x35], 1
cmp dword [ebp - 0x40], 3
jl 0x4010ba
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + eax]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004020b0
jmp 0x4010d8
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
lea ecx, [ebp - 0x34]
call fcn.00401fc0
mov eax, dword [ebp - 0x48]
jmp 0x40110f
mov dword [ebp - 0x44], 0
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x4010f6
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004012c0
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
lea ecx, [ebp - 0x34]
call fcn.00401fc0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ba8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
push 0x3c
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00404450
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x41b1a0
mov dword [ebp - 0x34], str.MsiExec.exe
mov ecx, dword [ebp + 8]
call fcn.00402790
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x927c0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4011be
mov edx, dword [ebp - 4]
push edx
push str.Return_value_of_MsiExec.exe:__d_n
call fcn.00402a30
add esp, 8
jmp 0x4011c5
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x4011de
mov dword [ebp - 8], 0xffffffff
jmp 0x4011e5
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4011f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
push 0x3c
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00404450
add esp, 0xc
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], str.open
mov ecx, dword [ebp + 8]
call fcn.00402790
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0xc]
call fcn.00402790
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x927c0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401292
mov edx, dword [ebp - 4]
push edx
push str.Return_value_of_nsis:__d_n
call fcn.00402a30
add esp, 8
jmp 0x401299
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x4012b2
mov dword [ebp - 8], 0xffffffff
jmp 0x4012b9
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x401590
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x424004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x18]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4015d8
xor eax, eax
jmp 0x401655
lea eax, [ebp - 0x20]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4015fb
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401655
mov dword [ebp - 0x14], 1
mov edx, 0xc
imul eax, edx, 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp + eax - 0x10], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp + eax - 0xc], edx
mov eax, 0xc
imul ecx, eax, 0
mov dword [ebp + ecx - 8], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x401650
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401655
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ba8
mov esp, ebp
pop ebp
ret