joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4917f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6852c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 4]
mov dword [edi], vtable.std::exception.0
xorps xmm0, xmm0
push eax
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call fcn.0064c04c
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
call fcn.004518d0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x491f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x685418
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
lea eax, [edi + 4]
push eax
mov dword [edi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call fcn.0064c04c
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
call fcn.004518d0
mov dword [edi + 0x2c], vtable.boost::exception.0
mov eax, edi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x493fd0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x15c], ebx
xor esi, esi
lea edx, [ebx + 0x15]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jb 0x493ff3
lea edx, [ebp - 0x13c]
mov esi, 0x40
nop dword [eax]
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
mov ecx, eax
add eax, eax
shr ecx, 0x1f
xor ecx, eax
mov dword [edx + 0x34], ecx
sub esi, 1
jne 0x494030
mov eax, dword [ebx]
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], eax
jmp 0x494086
mov edi, dword [ebp - 0x14c]
cmp ebx, 0x14
jae 0x4940a3
mov eax, edx
mov dword [ebp - 0x148], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4940e1
cmp ebx, 0x28
jae 0x4940b4
mov dword [ebp - 0x148], 0x6ed9eba1
jmp 0x4940db
cmp ebx, 0x3c
jae 0x4940d1
mov eax, esi
mov dword [ebp - 0x148], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4940e1
mov dword [ebp - 0x148], 0xca62c1d6
mov eax, ecx
xor eax, esi
xor eax, edx
mov ecx, dword [ebp - 0x14c]
shr edi, 0x1b
shl ecx, 5
xor edi, ecx
mov ecx, esi
add edi, dword [ebp + ebx*4 - 0x144]
inc ebx
add edi, dword [ebp - 0x148]
add edi, eax
mov eax, dword [ebp - 0x154]
add edi, dword [ebp - 0x150]
mov dword [ebp - 0x154], esi
mov esi, edx
shr edx, 2
shl esi, 0x1e
xor esi, edx
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], edi
cmp ebx, 0x50
jb 0x494080
mov eax, dword [ebp - 0x158]
add eax, edi
mov edi, dword [ebp - 0x15c]
add dword [edi + 0xc], ecx
add dword [edi + 8], esi
add dword [edi + 4], edx
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov eax, dword [ebp - 0x150]
add dword [edi + 0x10], eax
pop edi
pop esi
pop ebx
call fcn.00611399
mov esp, ebp
pop ebp
ret
Function at 0x494380
Capabilities:
Generate random numbers via winapi
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x70], 0xc3d2e1f0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
test eax, eax
je 0x4943f0
lea ecx, [ebp - 0x20]
push ecx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0x14
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x80]
call fcn.00493f10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x80]
push 4
lea eax, [ebp - 0x84]
push eax
call fcn.00493f10
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x80]
push 4
lea eax, [ebp - 0x84]
push eax
call fcn.00493f10
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x80]
call fcn.00493f10
push 0
call fcn.0065da7c
add esp, 4
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0x80]
push 8
push eax
call fcn.00493f10
push 0x14
push 0x7aaab0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x84], 0x7aaab0
call fcn.00493f10
push 4
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
call fcn.00493f10
call fcn.00660245
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x80]
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.00493f10
call fcn.0065ea3b
mov dword [ebp - 0x18], eax
call fcn.0065ea3b
mov dword [ebp - 0x14], eax
call fcn.0065ea3b
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x80]
push 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.00493f10
push 4
call fcn.006113aa
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x80]
push 4
push eax
call fcn.00493f10
push 4
push dword [ebp - 0x10]
call fcn.006113da
add esp, 8
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x80]
push 4
push eax
call fcn.00493f10
push 4
push fcn.0065ea3b
lea ecx, [ebp - 0x80]
call fcn.00493f10
push 0x14
push esi
lea ecx, [ebp - 0x80]
call fcn.00493f10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x80]
call fcn.00494170
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x20]
xor dword [ecx], eax
xor dword [esi], eax
mov eax, dword [ebp - 0x1c]
xor dword [ecx + 4], eax
xor dword [esi + 4], eax
mov eax, dword [ebp - 0x18]
xor dword [ecx + 8], eax
xor dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
xor dword [ecx + 0xc], eax
xor dword [esi + 0xc], eax
mov eax, dword [ebp - 0x10]
xor dword [ecx + 0x10], eax
mov ecx, dword [ebp - 4]
xor dword [esi + 0x10], eax
xor ecx, ebp
pop esi
call fcn.00611399
mov esp, ebp
pop ebp
ret
Function at 0x4962c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
sub edi, ebx
jne 0x4962d8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
cmp edi, 0xffffffff
jne 0x4962e9
call fcn.00496390
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
lea ecx, [edi + 1]
or eax, 0xffffffff
xor edx, edx
div ecx
cmp edx, edi
lea ecx, [eax + 1]
cmovne ecx, eax
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x9c0]
cmp ecx, 0x270
jne 0x496319
mov ecx, esi
call fcn.004967d0
mov ecx, dword [esi + 0x9c0]
mov edx, dword [esi + ecx*4]
mov eax, edx
shr eax, 0xb
inc ecx
xor edx, eax
mov dword [esi + 0x9c0], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
xor edx, edx
div dword [ebp + 8]
cmp eax, edi
ja 0x496304
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
Function at 0x4967d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
cmp dword [0x7a9784], 2
jl 0x496850
movaps xmm3, xmmword [0x775f00]
mov eax, 1
movaps xmm4, xmmword [0x775f20]
movaps xmm6, xmmword [0x775f30]
movaps xmm7, xmmword [0x775ea0]
movd xmm5, eax
movups xmm1, xmmword [ecx + esi*4 + 4]
movups xmm2, xmmword [ecx + esi*4]
movaps xmm0, xmm3
pand xmm0, xmm1
pand xmm2, xmm4
por xmm2, xmm0
movaps xmm0, xmm7
pand xmm0, xmm1
psrld xmm2, xmm5
pmulld xmm0, xmm6
pxor xmm2, xmm0
movups xmm0, xmmword [ecx + esi*4 + 0x634]
pxor xmm2, xmm0
movups xmmword [ecx + esi*4], xmm2
add esi, 4
cmp esi, 0xdc
jb 0x496801
cmp esi, 0xde
jae 0x496882
mov edx, dword [ecx + esi*4]
mov eax, dword [ecx + esi*4 + 4]
xor edx, eax
and edx, 0x7ffffffe
and eax, 1
xor edx, dword [ecx + esi*4]
imul eax, eax, 0x9908b0df
shr edx, 1
xor edx, eax
xor edx, dword [ecx + esi*4 + 0x634]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, 0xde
jb 0x496850
mov edx, dword [ecx + 0x378]
mov esi, dword [ecx + 0x380]
push edi
mov edi, dword [ecx + 0x37c]
xor edx, edi
and edx, 0x7ffffffe
mov eax, edi
xor edx, dword [ecx + 0x378]
and eax, 1
shr edx, 1
imul eax, eax, 0x9908b0df
xor edx, eax
mov eax, esi
xor edx, dword [ecx + 0x9ac]
and eax, 1
mov dword [ecx + 0x378], edx
mov edx, edi
xor edx, esi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, edi
mov edi, dword [ecx + 0x384]
shr edx, 1
xor edx, eax
mov eax, edi
xor edx, dword [ecx + 0x9b0]
and eax, 1
mov dword [ecx + 0x37c], edx
mov edx, edi
xor edx, esi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, esi
mov esi, dword [ecx + 0x388]
shr edx, 1
xor edx, eax
mov eax, esi
xor edx, dword [ecx + 0x9b4]
and eax, 1
mov dword [ecx + 0x380], edx
mov edx, esi
xor edx, edi
imul eax, eax, 0x9908b0df
and edx, 0x7ffffffe
xor edx, edi
shr edx, 1
pop edi
xor edx, eax
mov eax, dword [ecx + 0x38c]
xor edx, dword [ecx + 0x9b8]
mov dword [ecx + 0x384], edx
mov edx, eax
xor edx, esi
and eax, 1
and edx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor edx, esi
mov esi, 0xe3
shr edx, 1
xor edx, eax
xor edx, dword [ecx + 0x9bc]
mov dword [ecx + 0x388], edx
mov edx, dword [ecx + esi*4]
mov eax, dword [ecx + esi*4 + 4]
xor edx, eax
and edx, 0x7ffffffe
and eax, 1
xor edx, dword [ecx + esi*4]
imul eax, eax, 0x9908b0df
shr edx, 1
xor edx, eax
xor edx, dword [ecx + esi*4 - 0x38c]
mov dword [ecx + esi*4], edx
inc esi
cmp esi, 0x26f
jb 0x496970
mov edx, dword [ecx + 0x9bc]
mov eax, dword [ecx]
xor edx, eax
and edx, 0x7ffffffe
mov dword [ecx + 0x9c0], 0
xor edx, dword [ecx + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr edx, 1
pop esi
xor edx, eax
xor edx, dword [ecx + 0x630]
mov dword [ecx + 0x9bc], edx
ret
Function at 0x499860
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x4998dd
mov esi, dword [ebp + 8]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x499897
push edi
mov ecx, esi
call fcn.00499800
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x4998be
mov ecx, dword [esi]
test ecx, ecx
je 0x4998c2
push dword [ecx - 8]
push ecx
call fcn.006603ce
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x4998dd
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4998dd
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.0046abb0
int3
Function at 0x49f680
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6866f8
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x140], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x49f6de
cmp dword [ebp - 0x130], 2
jne 0x49f6de
cmp dword [ebp - 0x13c], 6
jb 0x49f6de
xor ebx, ebx
jmp 0x49f6e3
mov ebx, 1
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push reloc.OLEAUT32.dll_SysReAllocString
sub esp, 0x18
mov dword [ebp - 4], eax
mov ecx, esp
call fcn.0046ce70
lea edx, [ebp - 0x28]
mov ecx, str.InstallationType
call fcn.0046d320
add esp, 0x1c
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae esi, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0xa
jne 0x49f749
mov ecx, str.PerMachine
mov edx, 0xa
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x49f749
add ecx, 2
sub edx, 1
jne 0x49f736
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00453390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret
Function at 0x4a1b70
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp dword [ebx + 0x11c], 0
push esi
lea esi, [ebx + 0xf8]
mov eax, dword [ebx + 4]
push edi
mov dword [ebp - 0x134], eax
jne 0x4a1c1b
push 0x110
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x130], 0x114
push 0
push eax
call fcn.0064cc00
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a1bde
cmp dword [ebp - 0x12c], 6
jb 0x4a1bde
mov cl, 1
jmp 0x4a1be0
xor cl, cl
push 0
push 0
sub esp, 0x10
movzx eax, cl
add ax, 8
mov edx, str.Segoe_UI
movzx eax, ax
test cl, cl
push eax
mov eax, str.MS_Shell_Dlg
cmovne eax, edx
push eax
push 0
push 0x40000040
push 0
push 0
sub esp, 8
push 0
push ecx
lea ecx, [esi + 0x20]
call fcn.004a2940
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4a1c38
call fcn.006202a1
mov dword [esi + 0x14], eax
test eax, eax
jne 0x4a1c38
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x4a1c98
push 0
push 0
push eax
call fcn.006203a3
lea edi, [esi + 8]
test edi, edi
je 0x4a1d25
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x79dd0c
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x79dd24]
mov dword [edi + 8], eax
push 0x79dd0c
mov dword [0x79dd24], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x4a3dc0
push dword [ebp - 0x134]
push dword [esi + 0x24]
push dword [0x7a98c8]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xfc]
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [ebx + 4]
sub eax, dword [ebp - 0x14]
push eax
call fcn.0049cdc0
push 0xfffffffffffffff0
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
and ecx, 0xfffffff7
cmp eax, ecx
je 0x4a1ce6
push ecx
push 0xfffffffffffffff0
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffff0000
push 0
push 0x401
push dword [esi + 0x7c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
mov byte [esi + 0x78], 0
call fcn.0049bdc0
push 5
push dword [ebx + 0xfc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00611399
mov esp, ebp
pop ebp
ret
push 1
push 0xc0000005
call fcn.0046b2c0
int3

Function at 0x4a2190
Capabilities:
Check if file exists
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add ecx, 0xffffffcc
pop ebp
jmp fcn.004a11c0
Function at 0x4a6070
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6866f8
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, 0x6a7
lea ecx, [ebp - 0x28]
call fcn.00478590
mov dword [ebp - 4], 0
lea eax, [ebp - 0x13c]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ebx, dword [esi + 0x26c]
cmovae edi, dword [ebp - 0x28]
push 0x110
push 0
push eax
mov dword [ebp - 0x140], 0x114
call fcn.0064cc00
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a6103
cmp dword [ebp - 0x13c], 6
jb 0x4a6103
mov cl, 1
jmp 0x4a6105
xor cl, cl
push 0
push 0
sub esp, 0x10
movzx eax, cl
add ax, 8
add esi, 0x20
movzx eax, ax
test cl, cl
mov edx, str.Segoe_UI
push eax
mov eax, str.MS_Shell_Dlg
cmovne eax, edx
push eax
push ebx
push 0x80c80040
push 0x5a
push 0x10a
sub esp, 8
push edi
push ecx
mov ecx, esi
call fcn.004a2940
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00453390
sub esp, 0xc
push 0x7697d8
push ecx
push 0x20000
sub esp, 0x10
push 0x64
push ecx
mov eax, esp
mov ecx, esi
mov dword [eax], 0x82
call fcn.004a61e0
sub esp, 0xc
push 0x7697d8
push ecx
push 0x20000
sub esp, 0x10
push 0x65
push ecx
mov eax, esp
mov ecx, esi
mov dword [eax], 0x82
call fcn.004a61e0
sub esp, 0xc
push 0x7697d8
push ecx
push 0x10003
sub esp, 0x10
push 0x66
push ecx
mov eax, esp
mov ecx, esi
mov dword [eax], 0x80
call fcn.004a61e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret

Function at 0x4a6c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x683f80
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 4], 0
mov edx, ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], 0x22
call fcn.004a6890
mov byte [ebp - 4], 1
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4a6c5d
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00459fe0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00453390
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x4a6c98
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x22
jmp 0x4a6caa
push 0x22
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0046acb0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0
push 0
push eax
push 0x76b26c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x28]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret
Function at 0x4a7c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4a7d07
cmp dword [ebp - 0x108], 2
jne 0x4a7d07
cmp dword [ebp - 0x114], 6
jb 0x4a7d07
push ebx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 8
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4a7cf5
lea eax, [ebp - 0x124]
mov dword [ebp - 0x120], 0
push eax
push 4
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0
push eax
push 0x14
push dword [ebp - 0x11c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4a7ce9
mov ecx, dword [ebp - 0x120]
xor ebx, ebx
test ecx, ecx
sete bl
test esi, esi
je 0x4a7ce9
xor edx, edx
test ecx, ecx
setne dl
mov dword [esi], edx
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [esi], 1
xor ecx, ebp
pop esi
call fcn.00611399
mov esp, ebp
pop ebp
ret
Function at 0x4aae30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push ecx
push 0
lea ecx, [ebp - 0x138]
call fcn.00489640
lea eax, [ebp - 0x130]
push eax
push 0
lea eax, [ebp - 0x138]
push eax
push 0x474300
push 0
push 0
call fcn.0065f176
add esp, 0x18
mov dword [ebp - 0x134], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x134]
xor esi, esi
mov dword [ebp - 0x13c], esi
test eax, eax
je 0x4aaeac
lea ecx, [ebp - 0x13c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov esi, dword [ebp - 0x13c]
lea ecx, [ebp - 0x138]
call fcn.004899c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00611399
mov esp, ebp
pop ebp
ret