joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450788
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x45078f
call fcn.004ac8b0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
and eax, eax
je 0x450849
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
mov eax, 0x53e488
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and eax, eax
je 0x450840
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
push ebp
pop ebp
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x450854
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x452db4
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x452e4c
push edi
push 0x22c341c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x2249d94]
test edi, edi
je 0x452e20
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x452e19
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x2249d94
call fcn.004ac631
pop ecx
pop ecx
jmp 0x452e1b
mov edi, dword [edi]
test edi, edi
jne 0x452df0
pop ebx
mov eax, dword [0x2245eac]
mov esi, eax
inc eax
push 0x10
push 0x2249d94
mov dword [0x2245eac], eax
call fcn.004ac671
pop ecx
pop ecx
push 0x22c341c
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x452e54
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00452c58
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x22c341c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x2249d94]
jmp 0x452e85
cmp dword [esi + 0xc], edi
je 0x452e8b
mov esi, dword [esi]
test esi, esi
jne 0x452e7e
jmp 0x452ea3
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x2249d94
call fcn.004ac631
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x4531a3
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4531f8
push dword [esp + 0x10]
push 0x453122
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x2249da0]
test esi, esi
je 0x453251
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4531f0
cmp byte [esi + 0x10], 0
je 0x4531f0
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4531cc
jmp 0x453251
mov esi, dword [0x2249da0]
test esi, esi
je 0x453251
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x45324a
cmp byte [esi + 0x11], 0
je 0x453226
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x45323d
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x2249da0
call fcn.004ac631
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x453205
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x46db8a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x22c344c]
call fcn.004abcf4
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x46dc8a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x46dbe0
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x46dbd8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x46dc20
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x46dc62
push 0x22
pop edx
cmp cx, dx
je 0x46dc12
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46dc02
xor ecx, ecx
cmp word [eax], cx
je 0x46dc62
mov ecx, eax
add eax, 2
jmp 0x46dc64
test dx, dx
je 0x46dc6a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x46dc12
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x46dc58
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x46dc62
cmp cx, dx
je 0x46dc55
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46dc45
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x46dc2a
jmp 0x46dc12
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x46dc6c
xor edx, edx
cmp dword [ebp], ebx
jne 0x46dc75
test edi, edi
jne 0x46dc92
test edx, edx
je 0x46dc7a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x46dbce
test edi, edi
jne 0x46dca3
mov eax, ebx
jmp 0x46dca7
test esi, esi
je 0x46dca3
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x46dca7
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x46de0c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x46de60
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46de4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x46de5a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x46de1f
jmp 0x46de5e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x46de66
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x46df25
cmp dword [esp + 0x24], 2
je 0x46df25
push 0x2000
push ebp
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x46def4
cmp dword [esp + 0x18], 2
jne 0x46df10
cmp dword [esp + 0x28], 0xffffffff
je 0x46deb8
cmp ebp, dword [esp + 0x28]
jae 0x46df10
add ebp, 2
test ebx, ebx
jne 0x46dedd
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x46df10
cmp ax, 0xd
je 0x46def4
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46dea4
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004f9980
jmp 0x46dfb7
push eax
push 0
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x46df43
cmp ebp, dword [esp + 0x28]
jae 0x46df9b
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46df9b
cmp dword [esp + 0x18], 1
jne 0x46df9b
inc ebp
test ebx, ebx
jne 0x46df88
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x46df9b
cmp al, 0xd
je 0x46df36
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x46df36
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x46dfb2
call fcn.004f99d0
jmp 0x46dfb7
call fcn.004f9920
push esi
push 0
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x46e226
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x46e3c5
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x46e3c4
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46e3c3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x2249918]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x46e3bc
call fcn.004bead0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x46e3a9
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004befa0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004bf120
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x46e2f5
cmp dword [eax + 8], 3
je 0x46e2f5
push dword [esp + 0x50]
push edi
call fcn.004be870
pop ecx
pop ecx
jmp 0x46e313
push dword [esp + 0x50]
call fcn.004f9890
mov esi, eax
push esi
push edi
call fcn.004bef90
pop ecx
pop ecx
push esi
call fcn.004f9880
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004beff0
push 0x8000
push edi
call fcn.004bee40
push edi
push dword [esi]
call fcn.004bf290
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x46e390
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004bf250
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x46e388
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x46e356
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x46e3a2
mov dword [esp + 0x18], 1
push edi
call fcn.004bea00
pop ecx
push ebp
push 0
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x46e47f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x46e4e1
cmp word [esi], di
je 0x46e4e1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004bfca0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004bfeb0
add esp, 0x10
test eax, eax
jne 0x46e4e0
push 0x24
push 8
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x46eaf4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push edi
xor edi, edi
mov ebx, edi
cmp dword [esp + 0x10], ebx
je 0x46eb74
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x46eb73
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
push edi
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x46eb6b
push ebx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push edi
push dword [esp + 0x1c]
call fcn.0046ef92
push edi
push 0
push dword [0x2249918]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
ret 8

Function at 0x46eb7b
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x22c34a4]
mov ebx, ebp
call fcn.004abf30
mov edi, eax
test edi, edi
je 0x46ec3a
push esi
push dword [esp + 0x1c]
call fcn.0046ed1b
mov esi, dword [edi + 8]
lea eax, [esp + 0x14]
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x20]
mov dword [edi + 4], 1
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
push esi
call dword [ecx + 0x2c]
pop esi
test eax, eax
jne 0x46ebfd
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.0046ef10
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [eax]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [ecx + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push 0x46ec44
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x46ec23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [edi + 8]
push 1
push ebp
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x30]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x48e340
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x22c20d8], 0
jne 0x48e34e
call fcn.0048e2c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x22c20dc]
call esi
test eax, eax
jne 0x48e371
call fcn.0048e2c0
push dword [0x22c20dc]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x48e380
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x48e3e0
mov ebx, 0x10
test edi, edi
jns 0x48e3e9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x48e3b2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x48e400
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x22c20d8], 0
jne 0x48e40e
call fcn.0048e2c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x22c20dc]
call esi
mov edx, eax
test edx, edx
jne 0x48e435
call fcn.0048e2c0
push dword [0x22c20dc]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x48e468
mov ebx, 0x10
test esi, esi
jns 0x48e471
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x48e480
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x490ce4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x22c3414]
call fcn.004abf30
mov ebx, eax
test ebx, ebx
je 0x490d48
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x490d0d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x490d48
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004aca70
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004acb50
pop edi
pop esi
pop ebx
ret 8
Function at 0x491810
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x22c37e8]
call fcn.004abcf4
xor ebp, ebp
mov esi, eax
cmp dword [0x22c2480], ebp
jne 0x4918ec
xor ebx, ebx
inc ebx
mov dword [0x22c2480], ebx
call fcn.004966b2
mov edi, 0xa4
push edi
push ebp
push 0x22c2488
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x22c2488], 0x13
lea eax, [esp + 0x10]
mov dword [0x22c248c], edi
mov dword [0x22c2498], 0x49175b
mov dword [0x22c249c], 0x491a86
push eax
mov dword [0x22c24f0], 0x491736
mov dword [0x22c24f4], 0x4919d1
mov dword [0x22c2494], 0x491711
mov dword [0x22c2518], 0x491776
mov dword [0x22c252c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4918ec
cmp dword [esp + 0x20], ebx
je 0x4918d4
cmp dword [esp + 0x20], 2
jne 0x4918ec
cmp dword [esp + 0x14], 5
jae 0x4918dc
mov dword [0x22c252c], ebp
jmp 0x4918ec
jne 0x4918ec
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x22c252c], eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.0049bc99
mov eax, dword [esp + 0x140]
push ebp
push dword [0x224991c]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4919c2
push dword [esp + 0x128]
push dword [0x22c3414]
call fcn.004abf6f
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x491991
push edi
call fcn.004a6e4f
test eax, eax
je 0x491991
push ebp
push ebp
push edi
call fcn.004a69c4
mov dword [esi + 0x18], eax
jmp 0x491994
mov dword [esi + 0x18], ebp
push 0x491460
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x22c2488
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x22c2484], eax
call fcn.00495d3f
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c

Function at 0x4936cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push 0
push 0
push 0x1304
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x49373e
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp ebx, 0xffffffff
jne 0x4936f5
mov ebx, eax
push dword [ebp]
call fcn.00492e4e
push ebx
push dword [ebp]
mov edi, eax
call fcn.00492e25
add esp, 0xc
mov esi, eax
push 0
push ebx
push 0x130c
push dword [ebp]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
push dword [ebp]
call fcn.0049375e
pop ecx
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4955fd
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x22c37e8]
call fcn.004abcf4
xor ebx, ebx
mov ebp, eax
cmp dword [0x22c2a30], ebx
jne 0x495691
mov esi, 0xa4
push esi
push ebx
push 0x22c2a38
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x22c2a3c], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x22c2a38], 0xa
mov dword [0x22c2a40], 0x495192
push 0x7f89
push ebx
mov dword [0x22c2ab0], 0x495e78
mov dword [0x22c2ab4], 0x495e52
mov dword [0x22c2a44], 0x4951b1
mov dword [0x22c2ac8], 0x4951d1
call esi
mov dword [0x22c2a30], eax
test eax, eax
jne 0x495691
push 0x7f00
push ebx
call esi
mov dword [0x22c2a30], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0049bc99
push ebx
push dword [0x224991c]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x49575d
push edi
push dword [esp + 0x14]
push dword [0x22c3414]
call fcn.004abf6f
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x2249918]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x22c2a38
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00495d3f
push 0x4952b7
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20
Function at 0x496dd2
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x496f48
mov eax, dword [esp + 0x24]
dec eax
je 0x496f2b
dec eax
jne 0x496f48
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00496d8b
pop ecx
test eax, eax
je 0x496e89
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x496e4c
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x496f27
dec ebx
je 0x496f23
dec ebx
je 0x496f02
dec ebx
je 0x496ebc
sub ebx, 4
jne 0x496f48
test edi, edi
jne 0x496f48
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x496f48
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x496e4c
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x496e47
sub edi, 0
je 0x496ef4
dec edi
je 0x496ee6
dec edi
je 0x496ed8
dec edi
jne 0x496f48
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x496f48
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x496f48
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x496f48
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x496f48
sub edi, 0
je 0x496f1f
dec edi
je 0x496f1b
dec edi
jne 0x496f48
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x496f48
push 0x3c
jmp 0x496f47
push 0x32
jmp 0x496f47
push 0x14
jmp 0x496f47
push 5
jmp 0x496f47
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x496f45
cmp eax, 0xa
je 0x496f41
cmp eax, 0x5a
jne 0x496f48
push 0x28
jmp 0x496f47
push 0x1e
jmp 0x496f47
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret