joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4793f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0xfffffffffffffff0
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x20
cmp eax, ecx
je 0x47941d
push ecx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0xc]
mov edi, dword [0x5fd7c0]
push 0xf1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
jne 0x479444
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x479439
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, ebx
je 0x479439
call fcn.004736e0
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x10], ebx
je 0x479496
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi + 0x1ed8]
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], pe_nt_image_headers32
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0xffffffff
call fcn.00477930
xor edx, edx
xor esi, esi
mov dword [ebp + 8], ebx
cmp dx, word [edi + 6]
jae 0x47950b
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movzx eax, word [eax + ecx*2]
mov dword [ebp - 0x10], ebx
cmp ax, bx
je 0x4794d3
mov dword [ebp - 0x1c], esi
inc esi
mov edx, eax
lea eax, [esi - 1]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], edx
mov word [ebp - 0x14], 4
mov dword [ebp - 0xc], eax
push ecx
jmp 0x4794ee
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x14], pe_nt_image_headers32
mov dword [ebp - 0xc], 0xffffffff
push edx
lea ecx, [edi + 0x1ed8]
call fcn.00477930
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
movzx edx, word [ecx + 6]
inc eax
mov dword [ebp + 8], eax
cmp eax, edx
jl 0x4794a6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x479a70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58b470
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0
lea ecx, [esi + 0x3e4]
call fcn.004fbd70
mov eax, dword [esi + 0x294]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
test eax, eax
je 0x479b9e
mov ecx, dword [esi + 0x5e0]
push ecx
call edi
test eax, eax
je 0x479b9e
mov eax, dword [esi + 0x1ef8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x479b91
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x5e0]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push edx
push pe_nt_image_headers32
push 0x40b
push eax
call edi
movzx ecx, word [ebp + 0xc]
mov edx, dword [esi + 0x294]
shl ecx, 0x10
push ecx
push 0
push 0x401
push edx
call edi
mov eax, dword [ebp + 0x10]
mov ecx, dword [esi + 0x294]
push 0
push eax
push 0x404
push ecx
call edi
mov edx, dword [esi + 0x294]
push 0
push 0
push 0x402
push edx
call edi
mov eax, dword [esi + 0x294]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x3e4]
call fcn.004fbc70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479b7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esi + 0x3e4]
call fcn.004fbc70
jmp 0x479ba9
lea ecx, [esi + 0x3e4]
call fcn.004fbc70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x479bcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47d790
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
mov eax, 0x57cf0000
test edi, edi
je 0x47d7a6
mov eax, edi
and eax, 0x1000000
xor ecx, ecx
cmp eax, 0x1000000
sete cl
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x47d7da
lea edx, [ebp + 0x14]
push edx
push 0
push 0x229
push esi
call ebx
mov eax, dword [ebp + 0x14]
cmp eax, 1
jne 0x47d7f7
push 0
push 0
push 0xb
push esi
call ebx
test edi, edi
jne 0x47d7f1
mov edi, 0x57cf0000
and edi, 0xfeffffff
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push edi
push eax
push ecx
mov ecx, dword [ebp - 4]
push esi
call fcn.0047bc20
cmp dword [ebp + 0x14], 1
mov edi, eax
jne 0x47d83f
push 3
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0xb
push esi
call ebx
push 0x81
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_RedrawWindow]
pop esi
pop ebx
test edi, edi
je 0x47d86f
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47d86f
call dword [sym.imp.USER32.dll_GetFocus]
push eax
push edi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
jne 0x47d86f
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x484820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c50a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push esi
push edi
xor esi, esi
push 0x38
lea eax, [ebp - 0x10c]
push esi
mov dword [ebp - 0x10], esi
push eax
mov ebx, ecx
mov dword [ebp - 0x110], esi
call fcn.00555020
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebx]
push eax
call edx
test al, al
je 0x4849be
lea eax, [ebp - 0x74]
mov dword [ebp - 0xd4], 0x5a6af0
mov dword [ebp - 0xc4], 0x5a29fc
mov dword [ebp + 8], eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
mov dword [ebp - 4], esi
mov dword [ebp - 0x74], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, 1
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x10], eax
call fcn.0047f560
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0xbc]
mov dword [ebp + eax - 0xd4], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp + 8], ecx
call fcn.00476c00
mov byte [ebp - 4], 3
mov dword [ebp - 0xbc], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0xd4]
mov eax, dword [edx + 4]
lea eax, [ebp + eax - 0xd4]
mov dword [eax + 0x14], 0x808
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0047d5e0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xd4]
call fcn.004834f0
mov byte [ebp - 4], 7
mov edi, 8
cmp dword [eax + 0x14], edi
jb 0x484950
mov eax, dword [eax]
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
push 0x3c
lea edx, [ebp - 0x110]
push edx
push 3
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x18], edi
jb 0x48497e
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00553d26
add esp, 4
mov dword [ebp - 0x1c], esi
xor ecx, ecx
or esi, 0xffffffff
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x74]
call fcn.00477d10
lea edx, [ebp - 0x74]
mov dword [ebp + 8], edx
mov dword [ebp - 0x74], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], esi
mov eax, edx
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.0053fee3
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x485ad0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [ebp + 8]
and eax, 0x3fffffff
or eax, 0x40000000
push eax
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0x86
push ecx
call ebx
movzx edx, byte [esi]
mov eax, dword [ebp + 8]
push edi
shl edx, 0x10
or edx, 1
push edx
push 0x400
push eax
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48a0e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov ebx, ecx
call fcn.00489630
mov byte [ebp + 0xf], al
test al, al
jne 0x48a116
push 0x2d2
push str.d:_work_current_staffcop_standart_sdkcontrolswtldockingwindowsWndFrmPkg.h
push str.bRes
call fcn.0055640a
add esp, 0xc
mov esi, dword [edi]
mov ecx, dword [edi + 4]
push 0
push esi
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x3fffffff
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push esi
call dword [sym.imp.USER32.dll_SetParent]
mov edx, dword [ebp + 8]
push edx
push 0
push 0x400
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
cmp dword [ebx + 0x14], 0
jne 0x48a1c1
mov edi, dword [edi + 4]
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x48a199
push 0x2d9
push str.d:_work_current_staffcop_standart_sdkcontrolswtldockingwindowsWndFrmPkg.h
push 0x5a2bdc
call fcn.0055640a
add esp, 0xc
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x401
push ecx
mov dword [ebp - 4], 3
call esi
mov edx, dword [ebp - 0xc]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov al, byte [ebp + 0xf]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x48a1d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi]
mov eax, dword [edi + 4]
push 0
push esi
mov ebx, ecx
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0x3fffffff
or eax, 0x80000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push esi
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x400
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi + 4]
push edx
push ecx
mov ecx, dword [edi + 0xc]
mov eax, esp
mov dword [eax], ecx
mov ecx, ebx
call fcn.00485ad0
mov edx, dword [ebp + 0xc]
push edx
push edi
mov ecx, ebx
call fcn.00489780
mov bl, al
test bl, bl
jne 0x48a260
push 0x2e6
push str.d:_work_current_staffcop_standart_sdkcontrolswtldockingwindowsWndFrmPkg.h
push str.bRes
call fcn.0055640a
add esp, 0xc
mov eax, dword [edi + 0xc]
push 0x67
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8
Function at 0x48e500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ce61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 4], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], edi
mov dword [ebp - 4], 1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 3
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov byte [ebp - 4], 4
push 0x34
lea ebx, [esi + 0x24]
push edi
push ebx
call fcn.00555020
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebx], 0x34
mov dword [esi + 0x28], pe_nt_image_headers32
mov ecx, dword [0x5fd7c0]
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0x44], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edx
mov dword [esi + 0x40], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x48], 0x48e4b0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x490e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58afb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x5fd7c0]
push 0xf1
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x490f09
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x490f09
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x490f09
movzx ecx, word [edi + 4]
movzx edx, word [edi + 2]
push ecx
push edx
mov ecx, esi
call fcn.00490d10
movzx eax, word [edi + 6]
push eax
mov ecx, esi
call fcn.00490cc0
test al, al
je 0x490f09
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
test byte [esi + 0x85], 0x20
je 0x490ee2
mov ecx, dword [ebp + 8]
mov edx, dword [0x5fd7c0]
push 0x2040
push ebx
push ebx
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004317d0
mov eax, dword [ebp - 0x10]
jmp 0x490ef6
mov eax, dword [ebp + 8]
mov ecx, dword [0x5fd7c0]
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x490f1e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00419b10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [esi + 0xa0]
push edx
push eax
mov eax, dword [esi + 0x12c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x490f5a
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.00419b10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi + 0x12c]
mov edi, dword [esi + 0x50]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
cmp eax, edi
jne 0x490f3a
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.00419b10
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x491180
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
lea ecx, [ebx + 0x2f8]
call fcn.00518030
test al, al
je 0x491230
push edi
lea ecx, [ebx + 0x2f8]
call fcn.00517fd0
lea ecx, [ebx + 0x2f8]
mov edi, eax
call fcn.00517fc0
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebx + 4]
push esi
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp - 4]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push edi
lea ecx, [ebx + 0x2f8]
call fcn.00517310
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x492980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
fld1
xor eax, eax
push esi
mov esi, ecx
mov ecx, 3
fstp dword [esi + 0x58]
fld dword [0x5a34f0]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], ecx
fst dword [esi + 0x5c]
mov dword [esi + 0x3c], ecx
fstp dword [esi + 0x60]
movzx ecx, cl
and ecx, 1
lea edx, [esi + 0x68]
or ecx, 6
push edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x38], ecx
mov dword [esi + 0x64], eax
mov byte [esi + 0x78], al
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov eax, esi
pop esi
ret
Function at 0x492e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
mov eax, dword [ebp + 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x492e99
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [ebp + 0x14], ebx
xor edi, edi
mov dword [ebp - 4], edi
push ebx
call dword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x492fe9
push esi
push 0x30
lea edx, [ebp - 0x40]
push 0
push edx
call fcn.00555020
push 0x110
lea eax, [ebp - 0x150]
push 0
push eax
mov dword [ebp - 0x40], 0x30
call fcn.00555020
add esp, 0x18
lea ecx, [ebp - 0x154]
push ecx
mov dword [ebp - 0x154], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x492f14
mov eax, dword [ebp - 0x150]
cmp eax, 5
jae 0x492f1b
cmp eax, 4
jne 0x492f14
cmp dword [ebp - 0x14c], 0x5a
jae 0x492f1b
mov dword [ebp - 0x40], 0x2c
lea eax, [ebp - 0x40]
push eax
push 1
push edi
lea edx, [ebp - 0x21c]
push ebx
mov dword [ebp - 0x18], 0x64
mov dword [ebp - 0x3c], 0x3f
mov dword [ebp - 0x1c], edx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test dword [ebp - 0x38], 0x100
jne 0x492fd8
push 0x10
call fcn.0055549a
mov esi, eax
add esp, 4
test esi, esi
je 0x492fd8
mov eax, dword [ebp - 0x38]
or eax, 0x100
mov dword [ebp - 0x38], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x34]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x492f80
add ecx, 0xfffffd44
jmp 0x492f82
xor ecx, ecx
push esi
lea edx, [ebp - 0x40]
push edx
call fcn.00491090
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053f875
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x492fc7
lea ecx, [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x40]
push edx
push 1
push edi
push ebx
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
push ebx
inc edi
call dword [sym.imp.USER32.dll_GetMenuItemCount]
cmp edi, eax
jl 0x492eb6
pop esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
add ecx, 0x20
mov dword [ebp + 0x10], ebx
call fcn.00425c60
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x494710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetDC]
lea edx, [ebp - 0x58]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esi + 0x30]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, 0x13
sub edx, 4
push 1
lea ecx, [eax - 0xa]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
add edx, 0xfffffffd
push edx
sub eax, ecx
push eax
mov eax, dword [esi + 0x24]
push 3
push ecx
push eax
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x1c], ecx
call ebx
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f5774
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [esi + 0x30]
call fcn.00424e80
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov edx, dword [edx - 0xc]
imul edx, dword [ebp - 0x44]
sub eax, edx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x18]
push 1
push edx
mov edx, dword [esi + 0x30]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x18]
push ecx
push eax
push edx
mov dword [ebp - 0x1c], eax
call ebx
mov eax, dword [ebp - 0x1c]
mov ecx, eax
sub eax, 0xa
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
push 1
sub edi, edx
push edi
sub ecx, eax
push ecx
push edx
push eax
mov eax, dword [esi + 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
pop ebx
test edx, edx
jg 0x494844
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10