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

Disassembly:
push edi
push dword [0x49540c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x413f36
push esi
push dword [0x495414]
push 8
push dword [0x494a6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x49540c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x495410]
jmp 0x413f26
mov eax, dword [esi + 0xc]
test eax, eax
je 0x413f24
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x413f14
push edi
push 0x413e9a
call fcn.0043dc4d
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x413f40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 3
push esi
push edi
je 0x413f55
push 4
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [0x495414], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x413f87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push 8
push dword [0x494a6c]
mov dword [0x49540c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x49540c]
call esi
mov edi, dword [0x495414]
add dword [0x495414], ebx
push dword [0x495414]
push dword [0x49540c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x494a6c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x49540c]
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x413fcd
cmp dword [esp + 0x18], esi
je 0x413ff1
push 0x14
push 0x495410
call fcn.00414380
test esi, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
je 0x413ff1
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x414460
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4846a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4144a6
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x49588c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4144c7
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x49588c]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004149d0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8
Function at 0x414550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4846a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x414610
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x4846a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x414720
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4846a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x414850
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4846a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x41488e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x41488e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x414890
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4148a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4846a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x4148d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4846a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4148f4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x414941
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x49588c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x42dc40
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x42dce1
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov esi, dword [ecx + 4]
xor eax, eax
cmp esi, edx
push edi
jle 0x42dc8f
mov edi, dword [ecx]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x448598]
add edx, 1
cmp edx, esi
jl 0x42dc71
xor edx, edx
mov esi, dword [ecx + 0xc]
cmp esi, edx
jle 0x42dcbc
mov edi, dword [ecx + 8]
lea esp, [esp]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x448598]
add edx, 1
cmp edx, esi
jl 0x42dca0
mov edx, dword [ecx]
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
pop edi
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
pop esi
shr eax, 0x18
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x43dc4d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x495460], ebx
mov esi, eax
mov dword [ebp - 0xc], esi
jne 0x43dc83
push 0x495444
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x495460], 1
push 0x495444
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x49545c]
cmp eax, ebx
mov edi, eax
je 0x43dce7
cmp dword [ebp - 4], ebx
jne 0x43de27
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x43dcba
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x43dcab
jmp 0x43dcd8
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0043da9f
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x43dc99
cmp dword [ebp - 4], ebx
jne 0x43de27
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x43de27
mov edi, dword [0x49545c]
jmp 0x43dd27
cmp dword [edi + 0xc], 0x3f
jl 0x43ddc1
mov edi, dword [edi]
cmp edi, ebx
jne 0x43dd1b
push 0x310
push 8
push dword [0x494a6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x43de1e
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
cmp eax, ebx
mov dword [edi + 8], eax
je 0x43de10
push ebx
push ebx
push edi
push 0x43daf0
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x43de07
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043da9f
mov eax, dword [0x49545c]
cmp eax, ebx
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
je 0x43ddb9
mov dword [eax + 4], edi
mov dword [0x49545c], edi
jmp 0x43de27
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0043da9f
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x43de27
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x494a6c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x495444
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43f14c
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x154
push 8
push dword [0x494a6c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x495804]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x495808], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.00444501
mov dword [esi + 0x58], 0x43f0cb
mov dword [esi + 0x5c], 0x43f10a
mov dword [esi + 0x10], fcn.0043e299
mov dword [esi + 0x30], 0x43e418
mov dword [esi + 0x64], 0x43e521
mov dword [esi + 0x60], 0x43e56c
mov dword [esi + 0x34], 0x43ec6a
mov dword [esi + 0x24], 0x43eb09
mov dword [esi + 0x28], 0x43eb32
mov dword [esi + 0x2c], 0x43eb5d
mov dword [esi + 0x44], 0x43ef5b
mov eax, esi
pop esi
ret 4

Function at 0x43fe3b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x20], 0
push esi
mov esi, dword [ecx + 0xb4]
mov dword [ebp - 4], esi
je 0x43feae
mov eax, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
mov edi, edx
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x43fe9d
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x10]
jne 0x43fe82
dec dword [ebp + 0x20]
inc dword [ebp + 0x14]
add edx, dword [ebp + 0xc]
cmp dword [ebp + 0x20], 0
jne 0x43fe62
pop edi
pop ebx
pop esi
leave
ret 0x1c

Function at 0x440c3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [ecx + 0xb4]
je 0x440cb6
push ebx
imul eax, eax, 3
push esi
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
mov esi, edx
imul esi, dword [ebp + 0x10]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [ecx + 0xac]
imul eax, dword [ebp + 0x14]
add eax, dword [ecx + 0xa8]
add eax, esi
cmp dword [ebp + 0x1c], 0
jle 0x440c9e
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x10]
jne 0x440c84
mov edi, dword [ebp + 0x18]
dec dword [ebp + 0x20]
add edi, dword [ebp + 0xc]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x440c66
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x440d12
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x440da2
mov eax, dword [ebp + 0x10]
imul ecx, ecx, 3
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x440d8a
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x440d69
mov edi, dword [ebp + 0xc]
dec dword [ebp + 0x1c]
add edi, dword [ebp + 0x10]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x440d3f
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x76fc3650
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call sym.IMM32.dll_ImmLockClientImc
mov esi, eax
test esi, esi
je 0x76fc67e5
push edi
lea edi, [esi + 0x10]
push edi
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x76fc3687
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x100
or eax, 0
je 0x76fc36b9
cmp dword [esi], 0
je 0x76fc3702
mov ecx, ebx
call fcn.76fc3930
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalLock]
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 1
push ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
jne 0x76fc36fd
mov ecx, dword [0x76fdac28]
mov eax, ecx
or eax, dword [0x76fdac2c]
je 0x76fc36fd
test byte [ecx], 4
je 0x76fc36fd
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, ax
mov eax, ecx
shl eax, 0x10
push 1
or eax, ecx
push eax
call sym.IMM32.dll_CtfImmTIMActivate
lea edi, [esi + 0x10]
jmp 0x76fc3697
push 2
push ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
test eax, eax
je 0x76fc67fa
push 0x164
push 0x42
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi], eax
test eax, eax
je 0x76fc67fa
push 1
push ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
push esi
push 1
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edx, eax
mov ecx, ebx
call fcn.76fc27a0
test eax, eax
jne 0x76fc369c
jmp 0x76fc67ec
xor eax, eax
jmp 0x76fc36b3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi], 0
push edi
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
push esi
call sym.IMM32.dll_ImmUnlockClientImc
xor eax, eax
jmp 0x76fc36b2
Function at 0x76fc3f00
Capabilities:
Access peb ldr_data
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x76fda01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 4
push 1
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x76fc6c67
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x10]
push edi
call dword [sym.imp.api_ms_win_security_base_l1_2_0.dll_CheckTokenMembershipEx]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x76fc3f63
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
test esi, esi
je 0x76fc6c67
cmp dword [ebp - 0x14], edi
je 0x76fc6c67
call dword [sym.imp.ntdll.dll_RtlIsThreadWithinLoaderCallout]
test al, al
jne 0x76fc3fcb
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
cmp eax, dword [ecx + 0xc]
je 0x76fc3fcb
mov eax, dword [0x76fda034]
cmp eax, 0xffffffff
jne 0x76fc3fdf
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x76fc3fef
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x76fc3fbb
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x100
or eax, 0
jne 0x76fc3fef
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.76fc5210
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x76fc3fa2
jmp 0x76fc6c89
mov ecx, dword [0x76fdac28]
mov eax, ecx
or eax, dword [0x76fdac2c]
je 0x76fc4049
test byte [ecx], 4
je 0x76fc4049
call fcn.76fc4220
test eax, eax
je 0x76fc4049
push esi
call sym.IMM32.dll_CtfImmGetTMAEFlags
push eax
call dword [sym.imp.MSCTF.dll_CtfImeCreateThreadMgr]
mov edi, eax
test edi, edi
js 0x76fc405d
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0xfdc]
test eax, eax
jns 0x76fc4033
add ecx, eax
mov eax, dword [ecx + 0x804]
or dword [ecx + 0x800], 0x100
mov dword [ecx + 0x804], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.76fc5210
mov esp, ebp
pop ebp
ret 8
call sym.IMM32.dll_CtfImmCoUninitialize
jmp 0x76fc4049
push 0xd
call dword [sym.imp.win32u.dll_NtUserGetThreadState]
test eax, eax
jne 0x76fc3f74
call fcn.76fd7faa
test eax, eax
je 0x76fc3fcb
jmp 0x76fc3f74
cmp dword [eax + 0x18], edi
jne 0x76fc3fcb
jmp 0x76fc3fa2
Function at 0x76fc4070
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x76fda01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call dword [sym.imp.MSCTF.dll_TF_GetAppCompatFlags]
test al, 4
jne 0x76fc6c97
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x76fc40a5
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x2000
or eax, 0
jne 0x76fc6c97
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x76fc40cb
add eax, ecx
test byte [eax + 0x81c], 2
jne 0x76fc6ca1
push 0xd
call dword [sym.imp.win32u.dll_NtUserGetThreadState]
test eax, eax
jne 0x76fc4170
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AllocateAndInitializeSid]
test eax, eax
je 0x76fc4143
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 0
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
mov edi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x76fc4138
push eax
call dword [sym.imp.api_ms_win_security_base_l1_1_0.dll_FreeSid]
test edi, edi
pop edi
je 0x76fc4143
cmp dword [ebp - 0x14], 0
jne 0x76fc4170
mov eax, dword [0x76fdac28]
test dword [eax], 0x400
je 0x76fc4156
or esi, 0x80000000
call fcn.76fc4180
test eax, eax
jne 0x76fc4175
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.76fc5210
mov esp, ebp
pop ebp
ret
or esi, 2
jmp 0x76fc4143
or esi, 0x40000000
jmp 0x76fc415f
mov esi, 8
jmp 0x76fc40b9
mov esi, 0x18
jmp 0x76fc40d8

Function at 0x76fc4360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x76fda034]
push esi
cmp eax, 0xffffffff
je 0x76fc43af
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x76fc43ab
mov eax, dword [0x76fda9dc]
test eax, eax
je 0x76fc6d55
push 0x20
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x76fc43af
push esi
push dword [0x76fda034]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x76fc6d70
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x18]
mov dword [0x76fda9dc], eax
test eax, eax
je 0x76fc43af
jmp 0x76fc4385
push esi
push 0
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x76fc43af
Function at 0x76fc46f0
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call dword [sym.imp.ntdll.dll_RtlDllShutdownInProgress]
test al, al
jne 0x76fc4720
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
cmp eax, dword [ecx + 0xc]
je 0x76fc4720
pop ebp
jmp dword [sym.imp.MSCTF.dll_CtfImeDispatchDefImeMessage]
xor eax, eax
pop ebp
ret 0x10

Function at 0x76fc5580
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, 0xfffffffe
je 0x76fc55a1
mov ecx, dword [esi + 4]
add ecx, edi
xor ecx, dword [eax + edi]
call fcn.76fc5210
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
add ecx, edi
xor ecx, dword [eax + edi]
pop edi
pop esi
pop ebp
jmp fcn.76fc5210
Function at 0x76fcb010
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
mov byte [ebp - 1], 1
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, eax
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x76fcb03f
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x40
or eax, 0
je 0x76fcb051
xor al, al
jmp 0x76fcb054
mov al, byte [ebp - 1]
mov edi, dword [ebp + 8]
cmp ebx, edi
jne 0x76fcb063
test al, al
jne 0x76fcb178
push edi
call sym.IMM32.dll_ImmLoadIME
cmp ebx, edi
je 0x76fcb0cb
push ebx
call sym.IMM32.dll_ImmLockImeDpi
test eax, eax
je 0x76fcb09d
mov esi, dword [eax + 0x10]
push eax
call sym.IMM32.dll_ImmUnlockImeDpi
and esi, 0x100000
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 4
push esi
push 0x76fcbf00
push 0
call sym.IMM32.dll_ImmEnumInputContext
push 0
call sym.IMM32.dll_ImmGetDefaultIMEWnd
mov esi, eax
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x76fcb0c3
push ebx
push 0
push 0x285
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push edi
call dword [sym.imp.win32u.dll_NtUserSetThreadLayoutHandles]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 0x76fcbf20
push 0
mov dword [ebp - 0xc], ebx
call sym.IMM32.dll_ImmEnumInputContext
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x76fcb178
push edi
push 1
push 0x285
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, edi
call fcn.76fcdb74
test eax, eax
je 0x76fcb178
test byte [eax + 0x50], 4
je 0x76fcb178
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0xfdc]
test ecx, ecx
jns 0x76fcb122
add eax, ecx
mov eax, dword [eax + 0x800]
and eax, 0x100
or eax, 0
je 0x76fcb178
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
jne 0x76fcb142
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call sym.IMM32.dll_ImmGetContext
mov esi, eax
test esi, esi
je 0x76fcb178
xor edx, edx
mov ecx, esi
inc edx
call fcn.76fc2e80
test eax, eax
je 0x76fcb178
push dword [eax + 0x15c]
push 1
push 0x281
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call sym.IMM32.dll_ImmUnlockIMC
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4