joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474420
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1e78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [0x558fa4]
push str.Try_allow_to_receive_the__u_windows_message
push dword [esi]
mov dword [ebp - 0x10], ebx
call fcn.00405ec0
add esp, 8
cmp dword [0x558e38], 0
jne 0x47448a
push 0x558e38
mov dword [0x558e38], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
neg eax
sbb eax, eax
and dword [0x558e38], eax
cmp dword [0x558e3c], 6
jb 0x474585
push str.user32.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.DynamicLibrary.0
mov dword [ebp - 0x18], 0
call fcn.00420700
mov dword [ebp - 4], 0
push str.user32.dll_successfully_loaded.
push dword [esi]
call fcn.00405ec0
mov edi, dword [ebp - 0x18]
add esp, 8
push str.ChangeWindowMessageFilterEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x47451a
push str.ChangeWindowMessageFilter
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4745a8
push str.The_ChangeWindowMessageFilter___function_successfully_found.
push dword [esi]
call fcn.00405ec0
add esp, 8
push 1
push dword [ebp - 0x10]
call ebx
cmp eax, 1
jne 0x4745c7
push str.The_ChangeWindowMessageFilter___function_successfully_executed.
jmp 0x47455c
push str.The_ChangeWindowMessageFilterEx___function_successfully_found.
push dword [esi]
call fcn.00405ec0
add esp, 8
push 0
push 1
push ebx
push dword [ebp + 0xc]
call dword [ebp - 0x14]
cmp eax, 1
je 0x474557
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402fa0
mov byte [ebp - 4], 2
push str.Cant_allow_to_receive_the__d_windows_message_by_the_ChangeWindowMessageFilterEx___function.
jmp 0x4745e0
push str.The_ChangeWindowMessageFilterEx___function_successfully_executed.
push dword [esi]
call fcn.00405ec0
add esp, 8
test edi, edi
je 0x474594
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.The_allowMessage___function_call_is_ignored.
push dword [esi]
call fcn.00405ec0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x30]
push str.Cant_load_the_ChangeWindowMessageFilterEx___or_ChangeWindowMessageFilter___functions.
push eax
call fcn.00403f20
add esp, 8
lea eax, [ebp - 0x30]
push 0x552038
push eax
call fcn.0049c518
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402fa0
mov byte [ebp - 4], 1
push str.Cant_allow_to_receive_the__d_windows_message_by_the_ChangeWindowMessageFilter___function.
lea eax, [ebp - 0x2c]
push eax
call fcn.004038c0
add esp, 8
lea ecx, [ebp - 0x2c]
push esi
call fcn.00403150
push eax
lea ecx, [ebp - 0x58]
call fcn.0041d050
push 0x552164
lea eax, [ebp - 0x58]
push eax
call fcn.0049c518
int3
Function at 0x47b1a0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c24a7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 4]
mov dword [ecx], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 4], vtable.Rect.0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x1c]
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
mov dword [edi], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403af0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi]
push dword [esi + 0x20]
call dword [eax + 4]
movzx eax, byte [esi + 0x2c]
mov byte [ebx + 0x2c], al
movzx eax, byte [esi + 0x2d]
mov byte [ebx + 0x2d], al
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x38], vtable.Rect.0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov eax, dword [0x558f7c]
mov dword [ebx + 0x4c], vtable.Region.0
mov dword [ebx + 0x50], eax
mov eax, dword [0x558f80]
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x60]
mov dword [ebx + 0x58], 0x558f84
push eax
mov dword [ebx + 0x5c], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x469770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x46000]
push edi
jmp 0x46978a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x469791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x469780
mov eax, 1
add ebx, ebx
jne 0x4697a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4697b4
jne 0x4697d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4697d3
dec eax
add ebx, ebx
jne 0x4697c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x469798
add ebx, ebx
jne 0x4697cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x469825
xor ecx, ecx
sub eax, 3
jb 0x4697eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46985a
sar eax, 1
mov ebp, eax
jmp 0x4697f6
add ebx, ebx
jne 0x4697f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4697c4
inc ecx
add ebx, ebx
jne 0x469804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4697c4
add ebx, ebx
jne 0x469811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x469806
jne 0x469822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x469806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x469844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x469836
jmp 0x469786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x469844
add edi, ecx
jmp 0x469786
pop esi
mov edi, esi
mov ecx, 0x901
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x469862
cmp byte [edi], 9
jne 0x469862
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x469867
lea edi, [esi + 0x67000]
mov eax, dword [edi]
or eax, eax
je 0x4698df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x70408]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x704d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x469894
mov ecx, edi
jns 0x4698c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x704d4]
or eax, eax
je 0x4698d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4698b1
call dword [esi + 0x704e4]
mov ebp, dword [esi + 0x704d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x469913
sub esp, 0xffffff80
jmp 0x412dcf
Function at 0x44ef30
Capabilities:
Get geographical location

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov dword [esp], str.Name
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
je 0x44ef67
mov dword [esp], str.CommonName
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
jne 0x44ef90
lea eax, [ebx + 8]
mov ecx, ebx
mov dword [ebx], eax
mov dword [esp + 4], 0x6c74cd
mov dword [esp], str.X520.CommonName
call fcn.00433380
sub esp, 8
add esp, 0x14
mov eax, ebx
pop ebx
pop esi
ret
mov dword [esp], str.SerialNumber
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
jne 0x44efc0
mov dword [esp], str.X520.SerialNumber
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.Country
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
je 0x44f000
mov dword [esp], str.Organization
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
jne 0x44f020
mov dword [esp], str.X520.Organization
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.X520.Country
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.Organizational_Unit
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
je 0x44f04a
mov dword [esp], str.OrgUnit
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
jne 0x44f060
mov dword [esp], str.X520.OrganizationalUnit
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.Locality
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
jne 0x44f08b
mov dword [esp], str.X520.Locality
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.State
mov ecx, esi
call fcn.005e9e90
sub esp, 4
test eax, eax
je 0x44f0b3
mov dword [esp], str.Province
mov ecx, esi
call fcn.005e9e90
push edx
test eax, eax
jne 0x44f0c9
mov dword [esp], str.X520.State
mov ecx, ebx
call fcn.00433440
sub esp, 4
jmp 0x44ef85
mov dword [esp], str.Email
mov ecx, esi
call fcn.005e9e90
push ecx
test eax, eax
jne 0x44f0f0
mov dword [esp], str.RFC822
mov ecx, ebx
call fcn.00433440
push edx
jmp 0x44ef85
lea eax, [ebx + 8]
mov ecx, ebx
mov dword [ebx], eax
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp], eax
add edx, eax
mov dword [esp + 4], edx
call fcn.0042d440
push eax
push eax
jmp 0x44ef85
Function at 0x468530
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
sub eax, 1
cmp eax, 0x36
ja 0x468667
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4686ea
cmp dword [ebp + 0x14], 0x12
ja 0x4686b5
mov eax, dword [ecx]
mov ebx, ecx
mov eax, dword [eax]
cmp eax, 0x40f8e0
jne 0x468660
mov ecx, dword [ecx + 0x14]
mov eax, dword [0x6ebd40]
mov esi, 0x6ebd40
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6ebd84]
and edi, 0xfffffffc
mov dword [ecx + 0x44], eax
sub ecx, edi
mov eax, dword [0x6ead40]
sub esi, ecx
add ecx, 0x48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov esi, 0x6ead40
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6ebd3c]
and edi, 0xfffffffc
mov dword [ecx + 0xffc], eax
sub ecx, edi
sub esi, ecx
add ecx, 0x1000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x30], 0
lea esi, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov edi, 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [esp], eax
call fcn.0044f290
movzx ecx, byte [ebp + 0x14]
sub esp, 0xc
shl edi, cl
mov dword [ebp - 0x3c], edi
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov ecx, ebx
add edi, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044f290
mov eax, dword [ebp + 0x10]
mov ecx, ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.0044f290
sub esp, 0xc
cmp dword [ebp - 0x3c], edi
jne 0x468613
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call eax
jmp 0x4685c6
mov dword [esp], 8
lea esi, [ebp - 0x30]
call fcn.006744c0
mov dword [esp], str.EKSBlowfish
mov ecx, esi
mov edi, eax
call fcn.00433440
push eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005b76b0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
push esi
push esi
cmp eax, edx
je 0x678a34
mov dword [esp], eax
call fcn.00674240
jmp 0x678a34
mov dword [esp], 8
call fcn.006744c0
mov dword [esp], str.Requested_Bcrypt_work_factor_too_large
mov ecx, eax
mov ebx, eax
call fcn.0063cb50
push eax
mov dword [esp + 8], fcn.0063cc00
mov dword [esp + 4], 0x70398c
mov dword [esp], ebx
call fcn.00674bb0
mov dword [esp], 8
call fcn.006744c0
mov dword [esp], str.Bcrypt_work_factor_must_be_at_least_1
mov ecx, eax
mov ebx, eax
call fcn.0063cb50
push edx
mov dword [esp + 8], fcn.0063cc00
mov dword [esp + 4], 0x70398c
mov dword [esp], ebx
call fcn.00674bb0
mov ebx, eax
jmp 0x678a4c
Function at 0x47f6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov edx, dword [ecx + 0x44]
test edx, edx
je 0x47f6e2
mov edx, dword [ecx + 0x40]
add byte [edx], 1
jne 0x47f6e2
xor edx, edx
jmp 0x47f6da
mov ecx, dword [ebx + 0x40]
add ecx, edx
add byte [ecx], 1
jne 0x47f6e2
add edx, 1
cmp edx, dword [ebx + 0x44]
jne 0x47f6d0
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0x18], 2
lea esi, [ebp - 0x18]
mov eax, dword [ecx]
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x44]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x40]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, esi
sub esp, 8
mov dword [esp], eax
call fcn.005b83f0
mov eax, dword [ebp - 0x14]
xor ecx, ecx
sub esp, 4
test eax, eax
je 0x47f74b
mov eax, ecx
xor edx, edx
div dword [ebx + 0x34]
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx]
add ecx, 1
add edx, dword [ebx + 0x30]
xor byte [edx], al
cmp ecx, dword [ebp - 0x14]
jne 0x47f730
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x30]
mov edx, dword [ecx]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [edx + 0x20]
mov eax, dword [ebx + 0x40]
xor edx, edx
sub esp, 0xc
movzx eax, byte [eax]
div dword [ebx + 4]
test edx, edx
jne 0x47f77e
mov ecx, ebx
call fcn.0047f3a0
mov ecx, esi
call fcn.005af330
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4f4d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x818]
push ebx
sub esp, 0x83c
mov ebx, dword [ebp + 8]
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [esp], esi
mov dword [ebp - 0x818], eax
mov ecx, ebx
call dword [method.QDir.QDir_QString_const_]
mov eax, dword [ebp - 0x818]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x4f4e05
cmp edx, 0xffffffff
je 0x4f4dcb
lock sub dword [eax], 1
mov eax, dword [ebp - 0x818]
je 0x4f4e05
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
je 0x4f4e20
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x4f4dcb
lea edi, [ebp - 0x81c]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov dword [esp], edi
mov ecx, ebx
call dword [method.QDir.operator_QString_const_]
mov eax, dword [ebp - 0x81c]
sub esp, 4
mov edx, dword [eax]
test edx, edx
je 0x4f4e66
cmp edx, 0xffffffff
je 0x4f4dfb
lock sub dword [eax], 1
mov eax, dword [ebp - 0x81c]
jne 0x4f4dfb
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x504d60
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x10], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
je 0x504e25
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0xc]
mov dword [esp + 8], 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0xc]
sub esp, 4
mov dword [ebx], eax
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [ebp - 0xc], eax
mov edx, dword [eax]
test edx, edx
je 0x504e00
cmp edx, 0xffffffff
je 0x504df0
lock sub dword [eax], 1
je 0x504e00
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0x6eeea0
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x504e60
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x14]
mov ebx, ecx
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [eax]
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
je 0x504f30
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0xc]
mov dword [esp + 8], 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0xc]
sub esp, 4
mov dword [ebx], eax
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [ebp - 0xc], eax
mov edx, dword [eax]
test edx, edx
je 0x504f00
cmp edx, 0xffffffff
je 0x504ef5
lock sub dword [eax], 1
je 0x504f00
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0x6eeea0
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x504ff0
Capabilities:
Get session information

Disassembly:
push ebx
sub esp, 0x48
cmp byte [esp + 0x50], 0
je 0x505005
mov eax, dword [ecx + 8]
add esp, 0x48
pop ebx
ret 4
lea eax, [esp + 0x38]
mov dword [esp + 8], 8
mov ebx, ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
je 0x505070
mov eax, dword [esp + 0x3c]
movzx edx, word [eax]
mov dword [ebx + 8], edx
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebx + 8]
sub esp, 4
add esp, 0x48
pop ebx
ret 4
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov dword [esp], edx
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
mov eax, dword [esp + 0x2c]
add esp, 0x48
pop ebx
ret 4
Function at 0x505090
Capabilities:
Get session information

Disassembly:
push ebx
sub esp, 0x38
lea eax, [esp + 0x28]
mov dword [esp + 8], 0x19
mov dword [esp + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ecx]
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
mov eax, dword [esp + 0x2c]
je 0x505110
mov edx, dword [esp + 0x28]
xor ebx, ebx
test edx, edx
je 0x5050f6
cmp dword [eax], 1
je 0x505124
call fcn.00555990
xor eax, 1
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
sub esp, 4
add esp, 0x38
pop ebx
ret
mov dword [esp], eax
xor ebx, ebx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
sub esp, 4
add esp, 0x38
pop ebx
ret
mov ebx, dword [eax + 0x10]
call fcn.00555990
test al, al
jne 0x505140
test ebx, ebx
mov eax, dword [esp + 0x2c]
sete bl
jmp 0x5050f6
cmp ebx, 1
mov eax, dword [esp + 0x2c]
sete bl
jmp 0x5050f6