joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x6096c0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6095e0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4936db
push 0x4c
push 1
call fcn.004a8155
mov esi, eax
add esp, 8
test esi, esi
jne 0x4936a3
push 0x6096c0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x6095e0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x5faf30]
inc eax
lea edx, [esi + 0xc]
mov dword [0x5faf30], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004971d0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x6096c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x493b60
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004a7d2d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004b1c2c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x493c5a
call fcn.004a7d2d
cmp dword [eax], 0
je 0x493ba7
call fcn.004a7d2d
mov ebp, dword [eax]
jmp 0x493baa
or ebp, 0xffffffff
call fcn.004936f0
test esi, esi
mov dword [eax], ebp
jne 0x493bbf
call fcn.004a7d2d
cmp dword [eax], 4
je 0x493c0f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x493bf2
cmp esi, 0xffffffff
je 0x493c34
test al, 6
je 0x493bf2
call fcn.004936f0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00497200
add esp, 4
push eax
push 0x24
push 9
call fcn.00493f40
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x493c52
test al, 6
je 0x493c00
test ah, 2
je 0x493c52
test esi, esi
jbe 0x493c5e
test ah, 2
je 0x493c5e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004a7d2d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004b1c2c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x493c5a
jmp 0x493b94
call fcn.004936f0
mov eax, dword [eax]
push eax
push ebx
call fcn.00497200
add esp, 4
push eax
push 0x24
push 2
call fcn.00493f40
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x493c6b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x493c74
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x4aa3fa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4aa41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a7cba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4aa43d
test byte [esp + 8], 2
je 0x4aa43d
call fcn.004a7d2d
mov dword [eax], 0xd
call fcn.004a7d36
mov dword [eax], 5
jmp 0x4aa416
xor eax, eax
ret
Function at 0x4bc566
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bc59e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ba61d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ba5f5
jmp 0x4bc5aa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bdc58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bdc9a
call fcn.004c38a0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bdc9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bdc91
xor eax, eax
jmp 0x4bdca2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bdca8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c3dd0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c3dfe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c3e1c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c3d36
jmp 0x4c3e1c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c3e1c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c3d36
test edi, edi
mov eax, edi
jne 0x4c3e06
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x77b1c2
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
neg ebx
jb 0x77b1df
jae 0x77b1e8
leave
dec ebx
fstp xword [esi - 0x139e01b3]
bound eax, qword [0x587942f4]
xchg dx, ax
xchg ebx, eax
pop ax
lea esp, [esp + 2]
jmp 0x77b200
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.005f8250
sub esp, 4
test eax, eax
je 0x44ef67
mov dword [esp], str.CommonName
mov ecx, esi
call fcn.005f8250
sub esp, 4
test eax, eax
jne 0x44ef90
lea eax, [ebx + 8]
mov ecx, ebx
mov dword [ebx], eax
mov dword [esp + 4], 0x6d74cd
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.005f8250
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.005f8250
sub esp, 4
test eax, eax
je 0x44f000
mov dword [esp], str.Organization
mov ecx, esi
call fcn.005f8250
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.005f8250
sub esp, 4
test eax, eax
je 0x44f04a
mov dword [esp], str.OrgUnit
mov ecx, esi
call fcn.005f8250
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.005f8250
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.005f8250
sub esp, 4
test eax, eax
je 0x44f0b3
mov dword [esp], str.Province
mov ecx, esi
call fcn.005f8250
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.005f8250
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 [0x6fbd40]
mov esi, 0x6fbd40
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6fbd84]
and edi, 0xfffffffc
mov dword [ecx + 0x44], eax
sub ecx, edi
mov eax, dword [0x6fad40]
sub esi, ecx
add ecx, 0x48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov esi, 0x6fad40
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6fbd3c]
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.00682880
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.005c53c0
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
push esi
push esi
cmp eax, edx
je 0x686df4
mov dword [esp], eax
call fcn.00682600
jmp 0x686df4
mov dword [esp], 8
call fcn.00682880
mov dword [esp], str.Requested_Bcrypt_work_factor_too_large
mov ecx, eax
mov ebx, eax
call fcn.0064af10
push eax
mov dword [esp + 8], fcn.0064afc0
mov dword [esp + 4], 0x713e54
mov dword [esp], ebx
call fcn.00682f70
mov dword [esp], 8
call fcn.00682880
mov dword [esp], str.Bcrypt_work_factor_must_be_at_least_1
mov ecx, eax
mov ebx, eax
call fcn.0064af10
push edx
mov dword [esp + 8], fcn.0064afc0
mov dword [esp + 4], 0x713e54
mov dword [esp], ebx
call fcn.00682f70
mov ebx, eax
jmp 0x686e0c
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.005c6100
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.005bd040
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4f4ea0
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 0x4f4f25
cmp edx, 0xffffffff
je 0x4f4eeb
lock sub dword [eax], 1
mov eax, dword [ebp - 0x818]
je 0x4f4f25
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 0x4f4f40
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 0x4f4eeb
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 0x4f4f86
cmp edx, 0xffffffff
je 0x4f4f1b
lock sub dword [eax], 1
mov eax, dword [ebp - 0x81c]
jne 0x4f4f1b
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 0x504e80
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 0x504f45
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 0x504f20
cmp edx, 0xffffffff
je 0x504f10
lock sub dword [eax], 1
je 0x504f20
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], 0x6feea0
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 0x504f80
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 0x505050
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 0x505020
cmp edx, 0xffffffff
je 0x505015
lock sub dword [eax], 1
je 0x505020
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], 0x6feea0
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 0x505110
Capabilities:
Get session information

Disassembly:
push ebx
sub esp, 0x48
cmp byte [esp + 0x50], 0
je 0x505125
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 0x505190
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 0x5051b0
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 0x505230
mov edx, dword [esp + 0x28]
xor ebx, ebx
test edx, edx
je 0x505216
cmp dword [eax], 1
je 0x505244
call fcn.00555d80
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.00555d80
test al, al
jne 0x505260
test ebx, ebx
mov eax, dword [esp + 0x2c]
sete bl
jmp 0x505216
cmp ebx, 1
mov eax, dword [esp + 0x2c]
sete bl
jmp 0x505216
Function at 0x5054e0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0x6feea0
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 5
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x505595
lea eax, [ebp - 0xc]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebx], edx
mov edx, dword [eax]
test edx, edx
je 0x505576
cmp edx, 0xffffffff
je 0x505592
lock sub dword [eax], 1
jne 0x505592
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_]
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x510080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov eax, 0x100
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x40]
mov ecx, ebx
sub esp, 0x60
mov esi, dword [ebp + 8]
mov word [ebp - 0xc], ax
mov dword [ebp - 0x3c], 0xff80
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x414b4320
mov dword [ebp - 0x2c], 0x41414141
mov dword [ebp - 0x28], 0x41414141
mov dword [ebp - 0x24], 0x41414141
mov dword [ebp - 0x20], 0x41414141
mov dword [ebp - 0x1c], 0x41414141
mov dword [ebp - 0x18], 0x41414141
mov dword [ebp - 0x14], 0x41414141
mov dword [ebp - 0x10], 0x21000041
mov dword [esp], esi
call dword [method.QHostAddress.QHostAddress_QString_const_]
lea eax, [ebp - 0x3c]
mov ecx, 0x7af36c
sub esp, 4
mov dword [esp + 0x10], 0x89
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x32
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [method.QUdpSocket.writeDatagram_char_const__long_long__QHostAddress_const__unsigned_short_]
sub esp, 0x14
mov ecx, ebx
call dword [method.QHostAddress.QHostAddress__]
mov eax, dword [0x7af378]
mov dword [esp], esi
mov dword [esp + 8], 0x6ff6dd
mov dword [esp + 4], eax
call dword [method.QHostInfo.lookupHost_QString_const__QObject__char_const_]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x555d20
Capabilities:
Check os version

Disassembly:
sub esp, 0x13c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 4
cmp dword [esp + 0x20], 5
seta al
add esp, 0x13c
ret

Function at 0x555d50
Capabilities:
Check os version

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edx, 1
movzx ecx, al
cmp ecx, 6
ja 0x555d75
shr ax, 8
setne dl
cmp ecx, 6
sete al
and edx, eax
mov eax, edx
add esp, 0xc
ret
Function at 0x555d80
Capabilities:
Check os version

Disassembly:
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
sete dl
shr ax, 8
cmp al, 1
sete al
add esp, 0xc
and eax, edx
ret
Function at 0x55a050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x220]
push ebx
sub esp, 0x24c
mov eax, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], 0x104
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [ebp - 0x23c], eax
call eax
sub esp, 8
mov ebx, eax
cmp eax, 0x104
jbe 0x55a0df
cmp dword [ebp - 0x230], eax
mov edx, eax
mov dword [esp], ebx
lea ecx, [ebp - 0x230]
cmovge edx, dword [ebp - 0x230]
mov dword [esp + 4], edx
call fcn.0059aac0
mov eax, dword [ebp - 0x228]
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [ebp - 0x23c]
call eax
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x228]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x55a108
mov dword [esp], eax
call fcn.00590fd0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret