joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4821f0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x482202
add esp, 0xfffffff0
call fcn.004042b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042f978
mov eax, dword [0x5461f8]
mov dword [eax + 4], ebx
mov dword [eax], 0x482604
mov eax, dword [0x54620c]
mov dword [eax + 4], ebx
mov dword [eax], 0x482610
mov eax, ebx
call fcn.0048261c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0x74], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x47d550
push eax
push 0
push 0
mov eax, dword [0x5465d8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x436a24]
call fcn.00438824
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x436a24]
call fcn.00438824
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x436a24]
call fcn.00438824
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x436a24]
call fcn.00438824
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.00482bb0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x482a38
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x482a38
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x482a38
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x482a38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x482355
call fcn.00404308
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4827d8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x482985
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x482966
mov dl, 1
mov eax, dword [0x421b98]
call fcn.00427920
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00405ec8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x482955
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00472354
test al, al
je 0x482948
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x482994
lea eax, [ebp - 0x394]
call fcn.0040e354
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x482948
xor eax, eax
push ebp
push 0x482941
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x482a04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x48292a
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004060c8
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x48292a
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004060c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482948
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48284b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.0042770c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48298c
lea eax, [ebp - 0x3a0]
call fcn.00405eb8
ret

Function at 0x4833c4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x54c1a8]
cmp byte [eax + 0xa9], 0
jne 0x483436
cmp dword [0x54c1c0], 0
jne 0x4833f6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5413e8]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x54c1c0], eax
cmp dword [0x54c1bc], 0
jne 0x483411
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x54c1bc], eax
cmp dword [0x54c1c4], 0
jne 0x483436
push esp
push 0
push 0
mov eax, dword [0x5413e4]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x54c1c4], eax
pop edx
ret
Function at 0x483678
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x48368f
add esp, 0xfffffff0
call fcn.004042b0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042f978
mov eax, dword [0x545f80]
cmp byte [eax], 0
jne 0x4836bc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5465ac]
cmp word [eax + 2], 0
jne 0x4836d6
mov eax, dword [0x5465ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00485634
mov eax, dword [0x5467bc]
cmp word [eax + 2], 0
jne 0x4836f0
mov eax, dword [0x5467bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00485844
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x436a24]
call fcn.00438824
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x485cc8
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4375d8]
call fcn.00440214
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x4838cc
mov eax, dword [0x546324]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00440618
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x485f78
mov dl, 1
mov eax, dword [0x421494]
call fcn.00403d9c
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x546324]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040e104
test eax, eax
je 0x4837fe
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040deb0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040e0ec
test eax, eax
je 0x483816
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004060c8
push ebx
push 0x485004
call fcn.00479d18
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x545f80]
cmp byte [eax], 0
jne 0x483867
mov eax, ebx
call fcn.00483a40
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004861a0
mov eax, ebx
call fcn.00486d64
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4838c4
call fcn.00404308
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483d14
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x483db6
cmp dword [ebx + 0x90], 0
jne 0x483db0
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x483c60
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x483db0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x483d76
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x483db0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00424490
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x483d85
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x483fd4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x54c1a8]
cmp dword [eax + 0x170], 0
je 0x484139
test bl, bl
jne 0x484087
cmp dword [esi + 0x98], 0
jne 0x48407c
mov eax, esi
call fcn.00486bb4
push eax
push 0x483ee0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x48404d
mov eax, dword [0x54c1a8]
cmp byte [eax + 0xcf], 0
je 0x48404d
mov eax, dword [esi + 0xd4]
call fcn.004076c8
mov edi, eax
cmp edi, 0
jl 0x48404d
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x484036
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x48407c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00424490
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x48405c
inc dword [esi + 0x98]
jmp 0x484139
cmp dword [esi + 0x98], 0
jle 0x484139
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x484139
cmp dword [esi + 0x40], 0
je 0x4840e4
mov eax, dword [0x54c1a8]
cmp byte [eax + 0xcf], 0
je 0x4840e4
mov eax, dword [esi + 0xd4]
call fcn.004076c8
mov edi, eax
cmp edi, 0
jl 0x4840e4
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4840cd
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x484113
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00424490
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4840f3
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x479720]
call fcn.00407888
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x484cf4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x484d5f
cmp byte [ebx + 0xcf], 0
jne 0x484d5f
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406004
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x484d4c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x484d6c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405ec8
jmp 0x484d6c
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405ec8
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x486374
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4863e2
mov eax, esi
call fcn.0046cc50
test al, al
je 0x4863e2
mov eax, dword [ebx + 0x80]
call fcn.0046c8a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4863e2
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4863d6
push 0
mov eax, dword [ebx + 0x80]
call fcn.0046c8a4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00463df0
jmp 0x4863e2
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004861c0
pop esi
pop ebx
ret

Function at 0x4871d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405eb0
xor eax, eax
push ebp
push 0x4872b4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x487296
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004082d8
mov eax, dword [ebp - 8]
test eax, eax
je 0x487235
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x487235
lea eax, [ebp - 8]
mov cx, 0xfde9
mov edx, dword [ebp - 8]
call fcn.0040566c
test eax, eax
je 0x48723e
sub eax, 4
mov eax, dword [eax]
mov esi, eax
lea eax, [esi + 4]
mov dword [edi], eax
mov eax, dword [edi]
push eax
call fcn.0040819c
pop ecx
mov dword [ebx], eax
mov ebx, dword [ebx]
mov eax, edi
mov edx, ebx
mov ecx, 4
call fcn.00403244
add ebx, 4
lea eax, [ebp - 8]
call fcn.00405934
mov ecx, esi
mov edx, ebx
call fcn.00403244
mov ecx, esi
dec ecx
test ecx, ecx
jl 0x487296
inc ecx
xor esi, esi
mov eax, esi
mov edi, 0x16
cdq
idiv edi
movzx eax, byte [edx + 0x541430]
xor byte [ebx], al
inc ebx
inc esi
dec ecx
jne 0x48727e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4872bb
lea eax, [ebp - 8]
call fcn.0040548c
lea eax, [ebp - 4]
call fcn.00405eb8
ret
Function at 0x488600
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x488789
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.004884c0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x48876b
xor eax, eax
push ebp
push 0x488764
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.0040368c
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004884e0
mov ebx, eax
jmp 0x488745
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.004060c8
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040dc74
mov edx, dword [ebp - 0x244]
mov eax, 0x4887a4
call fcn.0040c514
test al, al
je 0x488735
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x488735
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x541448]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x488735
xor eax, eax
push ebp
push 0x48872e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x488717
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404d58
call fcn.00404d58
jmp 0x48876b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488735
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.00488500
mov ebx, eax
test ebx, ebx
jne 0x488683
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48876b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488790
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405ec0
ret
Function at 0x488735
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x488789
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.004884c0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x48876b
xor eax, eax
push ebp
push 0x488764
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.0040368c
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004884e0
mov ebx, eax
jmp 0x488745
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.004060c8
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040dc74
mov edx, dword [ebp - 0x244]
mov eax, 0x4887a4
call fcn.0040c514
test al, al
je 0x488735
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x488735
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x541448]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x488735
xor eax, eax
push ebp
push 0x48872e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x488717
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404d58
call fcn.00404d58
jmp 0x48876b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488735
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.00488500
mov ebx, eax
test ebx, ebx
jne 0x488683
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48876b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488790
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405ec0
ret

Function at 0x4887c0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x54144c], 0
je 0x4887da
call dword [0x54144c]
mov dword [ebp - 4], eax
jmp 0x4887df
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48884d
cmp dword [ebp - 4], 0xffffffff
je 0x48884d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x541448]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x488848
xor eax, eax
push ebp
push 0x488841
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x488825
call fcn.00404d58
jmp 0x488861
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48884d
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x488859
cmp dword [ebp - 4], 0xffffffff
jne 0x488861
call fcn.00488600
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x488cdd
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7dc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405eb0
xor eax, eax
push ebp
push 0x488de5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405ec8
mov edx, dword [ebp - 4]
mov eax, 0x488e00
call fcn.004889f0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x488cdd
xor eax, eax
push ebp
push 0x488cd6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.00488e1c
test al, al
je 0x488cb5
call fcn.00404d58
jmp 0x488dcf
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405ec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488cdd
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov dword [ebp - 0x10], 0x802
lea eax, [ebp - 0x822]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.0040368c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405f54
mov ebx, eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameW
cmp dword [ebp - 0x14], 0
jbe 0x488dcf
mov eax, dword [ebp - 0x14]
call fcn.0040308c
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x488dc8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.0040368c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x822]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
push ebx
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x488d8a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.004030a8
xor eax, eax
mov dword [ebp - 0x1c], eax
call fcn.00404d58
jmp 0x488dcf
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_ConvertSidToStringSidW
test eax, eax
je 0x488daf
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00406074
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488dcf
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call fcn.004030a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488dec
lea eax, [ebp - 4]
call fcn.00405eb8
ret
Function at 0x48910c
Capabilities:
Get session information
Get session user name

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00405ec8
cmp byte [0x54c22c], 0
je 0x489143
xor eax, eax
call fcn.00488bd0
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x4891b2
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.004891d4
jmp 0x4891b2
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 5
call fcn.004887c0
push eax
mov eax, dword [0x541448]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x489190
mov eax, ebx
mov edx, dword [esp]
call fcn.00406074
mov eax, dword [ebx]
mov edx, 0x4891c4
call fcn.0040c514
test al, al
je 0x489187
mov eax, ebx
xor edx, edx
call fcn.00405ec8
mov eax, dword [esp]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
cmp dword [ebx], 0
jne 0x4891b2
xor eax, eax
call fcn.00488bd0
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x4891b2
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.004891d4
pop ecx
pop edx
pop ebx
ret