joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008e710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102ea2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0xbc], 0
je 0x1008e77a
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xbc]
push edx
call fcn.101968d0
add esp, 4
test eax, eax
jne 0x1008e79e
mov dword [ebp - 0x90], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10055650
mov eax, dword [ebp - 0x90]
jmp 0x1008e96f
mov byte [ebp - 0x40], 0x4d
mov byte [ebp - 0x3f], 0x51
mov byte [ebp - 0x3e], 0x54
mov byte [ebp - 0x3d], 0x4d
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x84], 0x4d
mov byte [ebp - 0x83], 0x51
mov byte [ebp - 0x82], 0x54
mov byte [ebp - 0x81], 0x52
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov byte [ebp - 0x54], 0x4d
mov byte [ebp - 0x53], 0x51
mov byte [ebp - 0x52], 0x53
mov byte [ebp - 0x51], 0x4f
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x4c], 0
mov byte [ebp - 0x4b], 0
mov byte [ebp - 0x4a], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0x28]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2c], eax
push 0
push str._dev_debug
lea ecx, [ebp + 8]
call fcn.10055240
cmp eax, dword [0x1040feb4]
jne 0x1008e8f7
push 0
push str._dev_log
lea ecx, [ebp + 8]
call fcn.10055240
cmp eax, dword [0x1040feb4]
jne 0x1008e8f7
mov ecx, dword [ebp + 0x20]
push ecx
lea ecx, [ebp + 8]
call fcn.10055330
push eax
push str.PubMsg_topic__s__msg:__s
push 8
call fcn.10072f60
add esp, 0x10
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.10055330
push eax
mov ecx, dword [ebp - 0x88]
mov edx, dword [ecx + 0xbc]
push edx
call fcn.10196c00
add esp, 0x10
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x1008e950
mov dword [ebp - 0x94], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10055650
mov eax, dword [ebp - 0x94]
jmp 0x1008e96f
mov dword [ebp - 0x98], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10055650
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret 0x28
Function at 0x10091550
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102ea4da
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
push 0x102f6b6b
lea ecx, [ebp - 0x28]
call fcn.100557f0
mov dword [ebp - 4], 0
push 0x24
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.101fd960
add esp, 0xc
mov dword [ebp - 0x2c], 0
push 0x102f747c
push 0x102f7490
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x100915d3
lea ecx, [ebp - 0x5c]
push ecx
call dword [ebp - 0x2c]
jmp 0x100915dd
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x5c]
cmp eax, 9
jne 0x1009160a
cmp dword [ebp + 0xc], 0
je 0x100915f5
mov dword [ebp - 0x30], str._64_
jmp 0x100915fc
mov dword [ebp - 0x30], str._64_bit
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10055630
jmp 0x10091634
movzx edx, word [ebp - 0x5c]
test edx, edx
jne 0x10091634
cmp dword [ebp + 0xc], 0
je 0x10091621
mov dword [ebp - 0x34], str._32_
jmp 0x10091628
mov dword [ebp - 0x34], str._32_bit
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
call fcn.10055630
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10055780
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10055650
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x100919e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x10], 0
jne 0x10091a74
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
push edx
push 0x102f7c40
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x64]
push ecx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x10091a37
mov eax, 1
jmp 0x10091ace
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x10], 0
jne 0x10091a6b
mov eax, dword [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x10091ace
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x6c]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x68]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, 0x3e8
sbb edx, 0
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0x70]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x74]
jb 0x10091acc
ja 0x10091aa8
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x78]
jbe 0x10091acc
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x10]
movzx ecx, word [edx + 0xc]
lea edx, [eax + ecx*2 + 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.10058030
mov eax, 4
jmp 0x10091ace
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret 4
Function at 0x1009a450
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x198], ecx
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1009a48c
push 0x102f8424
call fcn.1009cdc0
add esp, 4
mov eax, dword [ebp - 0x198]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x1009a4c0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102eaba3
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x28]
call fcn.10055100
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
push 0x288
call fcn.101fff31
add esp, 4
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0x288
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1009a549
mov edx, dword [ebp - 0x60]
push edx
call fcn.101ff0c2
add esp, 4
mov eax, dword [ebp - 0x64]
push eax
call fcn.101fff31
add esp, 4
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x1009a670
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x1009a670
push 0x102f7db5
mov ecx, dword [ebp - 0x5c]
add ecx, 0x1b0
push ecx
call fcn.101fefe0
add esp, 8
test eax, eax
je 0x1009a663
push 0x102f855c
mov edx, dword [ebp - 0x5c]
add edx, 0x1b0
push edx
call fcn.101fefe0
add esp, 8
test eax, eax
je 0x1009a663
push 0x102f8564
mov eax, dword [ebp - 0x5c]
add eax, 0x1b0
push eax
call fcn.101fefe0
add esp, 8
test eax, eax
je 0x1009a663
push 0x102f8570
mov ecx, dword [ebp - 0x5c]
add ecx, 0x10c
push ecx
call fcn.1004bfc0
add esp, 8
test eax, eax
jne 0x1009a600
push 0x102f8578
mov edx, dword [ebp - 0x5c]
add edx, 0x10c
push edx
call fcn.1004bfc0
add esp, 8
test eax, eax
je 0x1009a60f
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
jmp 0x1009a564
mov edx, dword [ebp - 0x5c]
add edx, 0x1b0
push edx
lea ecx, [ebp - 0x58]
call fcn.100557f0
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x70]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.100a00c0
add esp, 8
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x28]
call fcn.10094060
lea ecx, [ebp - 0x40]
call fcn.10054ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.10055650
jmp 0x1009a670
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
mov dword [ebp - 0x5c], edx
jmp 0x1009a564
cmp dword [ebp - 0x60], 0
je 0x1009a682
mov eax, dword [ebp - 0x60]
push eax
call fcn.101ff0c2
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10055030
mov edx, dword [ebp - 0x68]
or edx, 1
mov dword [ebp - 0x68], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10054ff0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x1009a720
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x1009a730
cmp dword [ebp + 8], 0xffffffff
jne 0x1009a732
jmp 0x1009a776
mov eax, dword [ebp + 8]
push eax
push 0
push 0x42b
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1009a74e
jmp 0x1009a776
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1009a776
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x1009a9f0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x1009aaf3
cmp dword [ebp - 0x4c], 0
je 0x1009aaf3
mov dword [ebp - 0x48], 0
jmp 0x1009aa4c
mov edx, dword [ebp - 0x48]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x54]
jae 0x1009aaea
lea ecx, [ebp - 0x58]
push ecx
imul edx, dword [ebp - 0x48], 0xc
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + edx]
push ecx
call fcn.1009f8e0
add esp, 8
cmp eax, 1
jne 0x1009aae5
push 0x40
push 0
lea edx, [ebp - 0x44]
push edx
call fcn.101fd960
add esp, 0xc
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push 1
mov edx, dword [ebp - 0x58]
push edx
call fcn.1009f040
add esp, 0x14
test eax, eax
je 0x1009aadb
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x1009aadb
imul edx, dword [ebp - 0x48], 0xc
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.1009c660
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1009aa43
mov edx, dword [ebp - 0x4c]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret

Function at 0x1009ced0
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x40000001
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x1009cf08
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1009eb60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 0x10
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x124], ebx
push eax
mov dword [ebp - 0x128], ecx
mov byte [ebp - 0x18], 0
movups xmmword [ebp - 0x17], xmm0
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x2b], xmm0
call fcn.10203940
push 0x10
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.10203940
mov esi, ebx
add esp, 0x18
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1009ebc1
sub esi, ecx
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x1009ebd8
dec eax
or eax, 0xfffffff0
inc eax
jne 0x1009ebde
mov edi, esi
jmp 0x1009ebee
mov eax, esi
cdq
and edx, 0xf
lea edi, [edx + eax]
sar edi, 4
inc edi
shl edi, 4
lea eax, [edi + 1]
push 1
push eax
call fcn.102036c9
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1009ec2b
push str.Unable_to_allocate_memory_for_InputData_n
push 2
call fcn.102037fe
add esp, 4
push eax
call fcn.1009cd80
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 0x124]
push ebx
call fcn.101fcde0
lea eax, [edi + 1]
push 1
push eax
call fcn.102036c9
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1009ecc4
push 0xf4
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.101fd960
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x18]
push 0x80
push eax
call fcn.10004450
add esp, 0x18
test eax, eax
jns 0x1009ec82
push str.Unable_to_set_encryption_key_in_AES..._n
jmp 0x1009ec07
push 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x120]
push eax
push edi
push esi
push ebx
call fcn.10003af0
push dword [ebp - 0x128]
push edi
push esi
call fcn.100a01e0
push ebx
call fcn.101ff0c2
push esi
call fcn.101ff0c2
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
push str.Unable_to_allocate_memory_for_EncryptData_n
push 2
call fcn.102037fe
add esp, 4
push eax
call fcn.1009cd80
add esp, 8
push 0xffffffffffffffff
call fcn.10204f87
int3
Function at 0x1009f0d0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 8], 0
call sub.WTSAPI32.dll_WTSOpenServerW
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x1009f0fd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push edi
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x1009f172
push ebx
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1009f169
mov edi, dword [ebp - 4]
add edi, 4
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1009f147
test dl, dl
je 0x1009f143
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1009f147
add ecx, 2
add eax, 2
test dl, dl
jne 0x1009f127
xor eax, eax
jmp 0x1009f14c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1009f15e
cmp esi, dword [ebp + 0x10]
jge 0x1009f15e
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ecx + esi*4], eax
inc esi
add edi, 0x10
sub ebx, 1
jne 0x1009f121
mov edi, dword [ebp - 0xc]
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
pop ebx
push edi
call sub.WTSAPI32.dll_WTSCloseServer
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1009f230
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102eadb9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [esi + 0x10], 0
jb 0x1009f2a3
mov eax, dword [esi]
jmp 0x1009f2a5
mov eax, esi
push 0
push 0x1040fb1c
mov ecx, esi
mov byte [eax], 0
call fcn.10058600
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
call sub.WTSAPI32.dll_WTSOpenServerW
mov edi, eax
test edi, edi
je 0x1009f387
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 7
push dword [ebp + 0xc]
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1009f381
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x1009f381
cmp byte [edx], 0
jne 0x1009f304
xor ecx, ecx
jmp 0x1009f319
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f310
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.10058600
push dword [ebp - 0x2c]
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.100a0310
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 0x10
jb 0x1009f381
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x1009f378
test cl, 0x1f
je 0x1009f354
call fcn.101feed2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1009f360
call fcn.101feed2
sub ecx, eax
cmp ecx, 4
jae 0x1009f36c
call fcn.101feed2
cmp ecx, 0x23
jbe 0x1009f376
call fcn.101feed2
mov ecx, eax
push ecx
call fcn.100a96aa
add esp, 4
push edi
call sub.WTSAPI32.dll_WTSCloseServer
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x1009f4e0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 8], 0
call sub.WTSAPI32.dll_WTSOpenServerW
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x1009f50d
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push edi
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x1009f57d
mov ebx, dword [ebp - 8]
push esi
xor esi, esi
test ebx, ebx
je 0x1009f571
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 8]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1009f556
test dl, dl
je 0x1009f552
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1009f556
add ecx, 2
add eax, 2
test dl, dl
jne 0x1009f536
xor eax, eax
jmp 0x1009f55b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1009f566
mov eax, dword [ebp + 0xc]
cmp dword [edi], eax
je 0x1009f58b
inc esi
add edi, 0x10
cmp esi, ebx
jb 0x1009f530
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ebx, ebx
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
pop esi
push edi
call sub.WTSAPI32.dll_WTSCloseServer
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
add esi, esi
mov edi, dword [ebp - 0xc]
mov ebx, dword [ecx + esi*8 + 4]
jmp 0x1009f576
Function at 0x1009f5a0
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102ead6c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x74]
push 0x64
mov dword [ebp - 0x7c], 0
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x78], 0
call fcn.101fd960
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1009f625
mov eax, dword [esi]
jmp 0x1009f627
mov eax, esi
push 0
push 0x1040fb1c
mov ecx, esi
mov byte [eax], 0
call fcn.10058600
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 1
call sub.WTSAPI32.dll_WTSOpenServerW
mov edi, eax
test edi, edi
je 0x1009f6e5
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0xe
push dword [ebp + 0xc]
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1009f6df
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1009f6df
cmp dword [ecx], 2
jne 0x1009f6a1
movzx eax, byte [ecx + 9]
push eax
movzx eax, byte [ecx + 8]
push eax
movzx eax, byte [ecx + 7]
push eax
movzx eax, byte [ecx + 6]
push eax
lea eax, [ebp - 0x74]
push str._d._d._d._d
push eax
call fcn.1006d360
add esp, 0x18
jmp 0x1009f6b2
lea eax, [ebp - 0x74]
push str.localhost
push eax
call fcn.1006d360
add esp, 8
cmp byte [ebp - 0x74], 0
jne 0x1009f6bc
xor ecx, ecx
jmp 0x1009f6cb
lea ecx, [ebp - 0x74]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f6c2
sub ecx, edx
push ecx
lea eax, [ebp - 0x74]
mov ecx, esi
push eax
call fcn.10058600
push dword [ebp - 0x78]
call sub.WTSAPI32.dll_WTSFreeMemory
push edi
call sub.WTSAPI32.dll_WTSCloseServer
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret
Function at 0x1009f760
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102eadb9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [esi + 0x10], 0
jb 0x1009f7d3
mov eax, dword [esi]
jmp 0x1009f7d5
mov eax, esi
push 0
push 0x1040fb1c
mov ecx, esi
mov byte [eax], 0
call fcn.10058600
push 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
call sub.WTSAPI32.dll_WTSOpenServerW
mov edi, eax
test edi, edi
je 0x1009f8b7
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2c]
push eax
push 5
push dword [ebp + 0xc]
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x1009f8b1
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x1009f8b1
cmp byte [edx], 0
jne 0x1009f834
xor ecx, ecx
jmp 0x1009f849
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1009f840
sub ecx, ebx
push ecx
push edx
mov ecx, esi
call fcn.10058600
push dword [ebp - 0x2c]
call sub.WTSAPI32.dll_WTSFreeMemory
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.100a0310
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, 0x10
jb 0x1009f8b1
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x1009f8a8
test cl, 0x1f
je 0x1009f884
call fcn.101feed2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1009f890
call fcn.101feed2
sub ecx, eax
cmp ecx, 4
jae 0x1009f89c
call fcn.101feed2
cmp ecx, 0x23
jbe 0x1009f8a6
call fcn.101feed2
mov ecx, eax
push ecx
call fcn.100a96aa
add esp, 4
push edi
call sub.WTSAPI32.dll_WTSCloseServer
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100a9f90
mov esp, ebp
pop ebp
ret