joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c8bfe
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.OrayUI::CBaseSkin.0
call fcn.004142b0
xor edi, edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.OrayUI::COrayMenuSkin.0
mov dword [esi + 0x10], vtable.OrayUI::CBaseSkin.0
call fcn.004142b0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x10], vtable.OrayUI::CMenuFrame.0
lea eax, [esi + 0x30]
push eax
mov byte [esp + 0x18], 1
call fcn.00479fc0
mov byte [esp + 0x14], 2
call fcn.0047a590
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0xa4], 7
mov dword [esi + 0xa0], edi
mov word [esi + 0x90], di
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x47dea0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
je 0x47deee
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x18]
push 0x407
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 8]
cmp eax, 0x113
ja 0x47dfa9
je 0x47df2b
mov ecx, eax
sub ecx, 0xae
je 0x47df9e
sub ecx, 0x63
jne 0x47dfc6
cmp byte [esi + 0x60], cl
je 0x47dfc6
push edi
push ebx
push esi
call fcn.0047dfe0
jmp 0x47dfc3
cmp ebx, 0x32
je 0x47df47
push edi
push ebx
push 0x113
mov ecx, esi
call fcn.0047c920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esi + 4]
push 0x32
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
mov ebx, dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [esp + 0xc]
push edx
call ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x284]
test ecx, ecx
je 0x47df9e
push str.syswinicon
call fcn.004640c0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_LockWindowUpdate]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.0047f5f0
push 0
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x313
jne 0x47dfc6
mov edx, edi
shr edx, 0x10
movsx ecx, dx
movsx eax, di
push ecx
push eax
push esi
call fcn.0047f5f0
mov eax, dword [ebp + 8]
push edi
push ebx
push eax
mov ecx, esi
call fcn.0047c920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4800e0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
push edi
je 0x48027c
mov ecx, dword [eax + 0x284]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x48027c
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
test al, al
je 0x48027c
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push eax
call edi
mov ecx, dword [esi + 4]
push 0xffffffffffffffec
push ecx
call edi
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
je 0x480267
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ClientToScreen]
lea ecx, [esp + 0x30]
push ecx
push edx
call edi
mov ecx, dword [esi + 4]
lea eax, [esp + 0x38]
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x38]
push ecx
call edi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
neg edx
push edx
neg eax
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x18]
sub ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 0x284]
mov edx, dword [ecx]
mov edx, dword [edx + 0x98]
lea eax, [esp + 0x20]
push eax
push edi
call edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.GDI32.dll_ExcludeClipRect]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0xcc0020
push eax
push ecx
push edi
sub edx, eax
push edx
mov edx, dword [esp + 0x3c]
sub edx, ecx
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 4]
push ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi]
mov eax, dword [edx + 0xd0]
mov ecx, esi
call eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4866b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8a6e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
mov dword [esp + 0x14], edi
call fcn.00405660
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov byte [esp + 0x14], 1
call fcn.00405660
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov byte [esp + 0x14], 2
call fcn.00405660
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], edi
mov word [esi + 0x44], di
mov dword [esi + 0x74], 7
mov dword [esi + 0x70], edi
mov word [esi + 0x60], di
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x48d950
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x48d989
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048d913
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040df00
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x48f56a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x48f5ad
call fcn.0049402d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48f5ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48f5c8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0048f124
test ebx, ebx
mov esi, eax
je 0x48f5c6
test edi, edi
je 0x48f5c6
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4903b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4c4edc
call fcn.004ac5c7
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0049402d
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4903ff
call fcn.0049402d
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x490410
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x49041d
or eax, 0xffffffff
jmp 0x490579
mov ecx, esi
call fcn.0048ff06
mov dword [ebp - 0x14], eax
call fcn.0048c97e
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x49049b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x49049b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x49049b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00402490
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x49049b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x49049b
mov ecx, ebx
call fcn.0049086c
test eax, eax
je 0x49049b
push 0
mov ecx, ebx
call fcn.00490887
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0048e34d
push dword [ebp - 0x14]
call fcn.0048c8d6
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004901bc
xor edi, edi
cmp eax, edi
je 0x4904f8
test byte [esi + 0x3c], 0x10
je 0x4904e2
push 4
pop edi
mov ecx, esi
call fcn.00490706
test ax, 0x100
je 0x4904d8
push 5
pop edi
push edi
mov ecx, esi
call fcn.0048c49e
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4904f8
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00490a5a
or dword [ebp - 4], 0xffffffff
jmp 0x490523
cmp dword [ebp - 0x28], edi
je 0x490531
push 1
mov ecx, ebx
call fcn.00490887
cmp dword [ebp - 0x2c], edi
je 0x490541
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x49055a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x49055a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0048ff40
cmp dword [esi + 0x58], edi
je 0x490576
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004ac66c
ret
Function at 0x490d69
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4c552d
call fcn.004ac594
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x490d8e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x490dda
call fcn.00491248
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fc0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0048f622
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401e80
mov eax, esi
call fcn.004ac66c
ret 8

Function at 0x491a22
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x500770]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x491a5f
push 0x4d3668
push 4
push eax
call fcn.004ae251
push eax
call fcn.00402200
add esp, 0x10
jmp 0x491a71
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x491adc
push edi
call fcn.004ae20d
mov edi, dword [eax]
call fcn.004ae20d
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004a78b5
add esp, 0x18
mov ebx, eax
call fcn.004ae20d
cmp dword [eax], 0
je 0x491abc
call fcn.004ae20d
push dword [eax]
call fcn.004772c0
pop ecx
jmp 0x491ac3
call fcn.004ae20d
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x491adc
cmp ebx, esi
jae 0x491adc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x491ade
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a74b2
leave
ret
Function at 0x492de5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x492e2b
call fcn.0049402d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x492e2b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x492e6e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x492e57
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x492e57
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x492e6b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4a74b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x500770]
jne 0x4a74bc
repz ret
jmp fcn.004b039b
Function at 0x4aee67
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x500900]
je 0x4aee82
inc edi
cmp edi, 0x17
jb 0x4aee73
cmp edi, 0x17
jae 0x4af002
push ebp
push 3
call fcn.004bd121
cmp eax, 1
pop ecx
je 0x4aefce
push 3
call fcn.004bd121
test eax, eax
pop ecx
jne 0x4aeeb6
cmp dword [0x50062c], 1
je 0x4aefce
cmp ebx, 0xfc
je 0x4af001
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x506040
push ebp
call fcn.004b3879
add esp, 0xc
test eax, eax
je 0x4aeeec
push esi
push esi
push esi
push esi
push esi
call fcn.004a78de
add esp, 0x14
push 0x104
mov esi, 0x506059
push esi
push 0
mov byte [0x50615d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4aef30
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b3879
add esp, 0xc
test eax, eax
je 0x4aef30
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004a78de
add esp, 0x14
push esi
call fcn.004b38e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4aef75
push esi
call fcn.004b38e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x506354
push 0x4d6884
sub ecx, eax
push ecx
push eax
call fcn.004bd06e
add esp, 0x14
test eax, eax
je 0x4aef75
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004a78de
add esp, 0x14
jmp 0x4aef77
xor esi, esi
push 0x4d6880
push ebx
push ebp
call fcn.004bcffd
add esp, 0xc
test eax, eax
je 0x4aef97
push esi
push esi
push esi
push esi
push esi
call fcn.004a78de
add esp, 0x14
push dword [edi*8 + 0x500904]
push ebx
push ebp
call fcn.004bcffd
add esp, 0xc
test eax, eax
je 0x4aefb9
push esi
push esi
push esi
push esi
push esi
call fcn.004a78de
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004bce40
add esp, 0xc
jmp 0x4af001
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4af001
cmp ebp, 0xffffffff
je 0x4af001
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x500904]
push dword [esi]
call fcn.004b38e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4bce40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004afa17
xor ebx, ebx
cmp dword [0x506b48], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4bcf16
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bcff6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4bcff6
push eax
call fcn.004af9a9
mov dword [esp], 0x4d6d10
push edi
mov dword [0x506b48], eax
call esi
push eax
call fcn.004af9a9
mov dword [esp], 0x4d6cfc
push edi
mov dword [0x506b4c], eax
call esi
push eax
call fcn.004af9a9
mov dword [0x506b50], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004aa3e8
test eax, eax
pop ecx
pop ecx
je 0x4bcee4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a78de
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4bcf16
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004af9a9
cmp eax, ebx
pop ecx
mov dword [0x506b58], eax
je 0x4bcf16
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004af9a9
pop ecx
mov dword [0x506b54], eax
mov eax, dword [0x506b54]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4bcf9b
cmp dword [0x506b58], ecx
je 0x4bcf9b
push eax
call fcn.004afa20
push dword [0x506b58]
mov esi, eax
call fcn.004afa20
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4bcf9b
cmp edi, ebx
je 0x4bcf9b
call esi
cmp eax, ebx
je 0x4bcf68
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bcf68
test byte [ebp - 0x18], 1
jne 0x4bcf9b
lea eax, [ebp - 0x10]
push eax
call fcn.004aa41f
test eax, eax
pop ecx
je 0x4bcf83
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004a78de
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4bcf92
or dword [ebp + 0x10], 0x200000
jmp 0x4bcfd6
or dword [ebp + 0x10], 0x40000
jmp 0x4bcfd6
mov eax, dword [0x506b4c]
cmp eax, dword [ebp - 8]
je 0x4bcfd6
push eax
call fcn.004afa20
cmp eax, ebx
pop ecx
je 0x4bcfd6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4bcfd6
mov eax, dword [0x506b50]
cmp eax, dword [ebp - 8]
je 0x4bcfd6
push eax
call fcn.004afa20
cmp eax, ebx
pop ecx
je 0x4bcfd6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x506b48]
call fcn.004afa20
cmp eax, ebx
pop ecx
je 0x4bcff6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bcff8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c4792
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x500770]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004c4727
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ac850
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4c47e1
cmp dword [ebp - 0x1c], 5
jb 0x4c47f9
jmp 0x4c47f5
cmp dword [ebp - 0x10], 1
jne 0x4c47f9
cmp dword [ebp - 0x1c], 4
ja 0x4c47f5
jne 0x4c47f9
cmp dword [ebp - 0x18], 0
jbe 0x4c47f9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4d8d98
call fcn.004c45fb
test eax, eax
jge 0x4c481a
mov byte [0x507278], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a74b2
add ebp, 0x78
leave
ret

Function at 0x41ae70
Capabilities:
Persist via run registry key

Disassembly:
call fcn.0041a0e0
call fcn.0041a1f0
call fcn.0041a300
call fcn.0041a410
call fcn.0041a550
call fcn.0041a950
call fcn.0041a7b0
call fcn.0041abe0
call fcn.0041aaf0
call fcn.0041ad40
jmp fcn.0041ec10

Function at 0x41ec10
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401b26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401608
xor eax, eax
push 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x28]
push 0x417814
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x416094
call esi
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4160ac
add ecx, 4
call esi
push 0x417a9c
push 0x4160c8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [fcn.00401214]
mov edx, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 8]
call esi
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4160e4
add ecx, 0xc
call esi
mov edx, 0x417b40
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x417ae0
lea ecx, [ebp - 0x30]
call esi
mov edx, dword [ebp - 0x1c]
push 1
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
push eax
push ecx
push 0x80000002
call fcn.0041d590
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
push edx
push eax
push 2
call edi
add esp, 0xc
mov edx, 0x417b5c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x417ae0
lea ecx, [ebp - 0x30]
call esi
mov ecx, dword [ebp - 0x1c]
push 1
add ecx, 4
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
push eax
push 0x80000002
call fcn.0041d590
lea ecx, [ebp - 0x34]
lea edx, [ebp - 0x30]
push ecx
push edx
push 2
call edi
add esp, 0xc
push 0x41ed5a
jmp 0x41ed47
lea eax, [ebp - 0x38]
lea edx, [ebp - 0x28]
push eax
push 0
mov dword [ebp - 0x38], edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret