joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c4c0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x684e78
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x80
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x48c524
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x2c]
push eax
call fcn.00459fe0
cmp dword [esi + 0x10], 0
lea edi, [esi + 0x10]
je 0x48c581
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
cmp ecx, edx
jae 0x48c55c
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
mov dword [eax + ecx*2], 0x20
jmp 0x48c56e
push 0x20
mov byte [ebp - 0x31], 0
push dword [ebp - 0x31]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0046acb0
cmp dword [esi + 0x14], 8
jb 0x48c576
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00459fe0
mov edx, dword [0x7aa7c8]
test edx, edx
je 0x48c5a5
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push str.ACTION_Start___s_
push edx
call dword [eax + 4]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x90], 0x44
push 0
push eax
call fcn.0064cf50
add esp, 0xc
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne byte [ebp - 0x2d]
test eax, eax
je 0x48c641
cmp dword [ebx + 8], 2
jne 0x48c619
push 0xbb8
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
setne byte [ebp - 0x2d]
mov eax, dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x48c630
push eax
call esi
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x48c641
push ecx
call esi
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x2c]
call fcn.00453390
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006116c3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x48e5c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48e5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.00618d60
mov dword [esp + 0xc], eax
test esi, esi
jne 0x48e5f9
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x773694
lea ecx, [esp + 8]
call fcn.0048e490
int3
Function at 0x490b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x685630
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call fcn.0064c39b
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x14]
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.004518d0
mov dword [esi], vtable.boost::thread_resource_error.0
lea edi, [esi + 0x2c]
mov dword [ebp - 4], 1
mov dword [edi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], edi
mov dword [edi + 4], ecx
test ecx, ecx
je 0x490bc8
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.0
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_error_.1.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x490ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x685690
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
lea eax, [edi + 4]
xorps xmm0, xmm0
mov dword [edi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call fcn.0064c39b
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x14]
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.004518d0
lea esi, [edi + 0x2c]
mov dword [ebp - 4], 1
mov dword [esi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], esi
mov dword [esi + 4], ecx
test ecx, ecx
je 0x490f82
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [esi + 0x10], eax
mov eax, edi
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi], 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
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x491100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x685630
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
lea eax, [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.std::exception.0
push eax
movq qword [eax], xmm0
lea eax, [ebx + 4]
push eax
call fcn.0064c39b
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [esi + 0x14]
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
lea eax, [ebx + 0x14]
push eax
call fcn.004518d0
mov dword [esi], vtable.boost::lock_error.0
lea edi, [esi + 0x2c]
mov dword [ebp - 4], 1
mov dword [edi], vtable.boost::exception.0
mov ecx, dword [ebx + 0x30]
mov dword [ebp + 8], edi
mov dword [edi + 4], ecx
test ecx, ecx
je 0x491198
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [ebx + 0x34]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::lock_error_.0
mov dword [edi], 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
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x491940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6857a8
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.0064c39b
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::thread_resource_error_.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::thread_resource_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 0x491aa0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x685658
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.0064c39b
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 0x492220
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6857a8
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.0064c39b
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 0x494290
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 0x4942b3
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 0x4942f0
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 0x494346
mov edi, dword [ebp - 0x14c]
cmp ebx, 0x14
jae 0x494363
mov eax, edx
mov dword [ebp - 0x148], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4943a1
cmp ebx, 0x28
jae 0x494374
mov dword [ebp - 0x148], 0x6ed9eba1
jmp 0x49439b
cmp ebx, 0x3c
jae 0x494391
mov eax, esi
mov dword [ebp - 0x148], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x4943a1
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 0x494340
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.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x494640
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 0x4946b0
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.004941d0
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.004941d0
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.004941d0
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.004941d0
push 0
call fcn.0065ddcc
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.004941d0
push 0x14
push 0x7aaad0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x84], 0x7aaad0
call fcn.004941d0
push 4
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x80]
call fcn.004941d0
call fcn.00660595
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x80]
push 4
lea eax, [ebp - 0x10]
push eax
call fcn.004941d0
call fcn.0065ed8b
mov dword [ebp - 0x18], eax
call fcn.0065ed8b
mov dword [ebp - 0x14], eax
call fcn.0065ed8b
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x80]
push 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.004941d0
push 4
call fcn.006116d4
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x80]
push 4
push eax
call fcn.004941d0
push 4
push dword [ebp - 0x10]
call fcn.00611704
add esp, 8
mov dword [ebp - 0x10], esi
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x80]
push 4
push eax
call fcn.004941d0
push 4
push fcn.0065ed8b
lea ecx, [ebp - 0x80]
call fcn.004941d0
push 0x14
push esi
lea ecx, [ebp - 0x80]
call fcn.004941d0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x80]
call fcn.00494430
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.006116c3
mov esp, ebp
pop ebp
ret
Function at 0x496590
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 0x4965a8
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
cmp edi, 0xffffffff
jne 0x4965b9
call fcn.00496660
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 0x4965e9
mov ecx, esi
call fcn.00496aa0
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 0x4965d4
pop edi
pop esi
add eax, ebx
pop ebx
pop ebp
ret
Function at 0x496aa0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
cmp dword [0x7a97a4], 2
jl 0x496b20
movaps xmm3, xmmword [0x775e50]
mov eax, 1
movaps xmm4, xmmword [0x775e70]
movaps xmm6, xmmword [0x775e80]
movaps xmm7, xmmword [0x775df0]
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 0x496ad1
cmp esi, 0xde
jae 0x496b52
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 0x496b20
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 0x496c40
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 0x497c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x497c5f
push ebx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x497c5b
push 0x58
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push ebx
mov dword [edi + 4], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push ebx
push 0
mov dword [edi + 8], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [edi], 1
pop ebx
cmp dword [edi + 4], 0x78
pop edi
jg 0x497c6d
mov eax, dword [ebp + 8]
pop ebp
ret 4
push 0x60
push 0x78
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop ebp
ret 4
Function at 0x499b30
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 0x499bad
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 0x499b67
push edi
mov ecx, esi
call fcn.00499ad0
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 0x499b8e
mov ecx, dword [esi]
test ecx, ecx
je 0x499b92
push dword [ecx - 8]
push ecx
call fcn.0066071e
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x499bad
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x499bad
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 0x49f950
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x686a88
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 0x49f9ae
cmp dword [ebp - 0x130], 2
jne 0x49f9ae
cmp dword [ebp - 0x13c], 6
jb 0x49f9ae
xor ebx, ebx
jmp 0x49f9b3
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 0x49fa19
mov ecx, str.PerMachine
mov edx, 0xa
sub esi, ecx
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x49fa19
add ecx, 2
sub edx, 1
jne 0x49fa06
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.006116c3
mov esp, ebp
pop ebp
ret