joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e40b1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x24], ebx
jne 0x4e41f2
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov eax, ebx
test eax, eax
jne 0x4e4146
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x120], 0x11c
push ebx
push eax
mov dword [ebp - 0x11c], 6
mov dword [ebp - 0x118], 1
call fcn.004f5a90
add esp, 0xc
push 3
push 1
push 3
push 2
push ebx
push ebx
call esi
push edx
push eax
call esi
push edx
push eax
lea eax, [ebp - 0x120]
push 3
push eax
call fcn.004e3daa
add esp, 0x10
test al, al
jne 0x4e413f
xor eax, eax
inc eax
jmp 0x4e40dc
push str.KernelBase.dll
jmp 0x4e414b
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x24], eax
test eax, eax
je 0x4e41ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddAccessAllowedAce
push eax
call esi
push str.AddAccessDeniedAce
push dword [edi + 0x24]
mov dword [edi + 0x28], eax
call esi
push 0x567c58
push dword [edi + 0x24]
mov dword [edi + 0x2c], eax
call esi
push str.GetLengthSid
push dword [edi + 0x24]
mov dword [edi + 0x30], eax
call esi
push str.InitializeAcl
push dword [edi + 0x24]
mov dword [edi + 0x34], eax
call esi
push str.InitializeSecurityDescriptor
push dword [edi + 0x24]
mov dword [edi + 0x38], eax
call esi
push str.SetSecurityDescriptorDacl
push dword [edi + 0x24]
mov dword [edi + 0x3c], eax
call esi
mov dword [edi + 0x40], eax
cmp dword [edi + 0x28], ebx
je 0x4e41dd
cmp dword [edi + 0x2c], ebx
je 0x4e41dd
cmp dword [edi + 0x30], ebx
je 0x4e41dd
cmp dword [edi + 0x34], ebx
je 0x4e41dd
test eax, eax
je 0x4e41dd
cmp dword [edi + 0x38], ebx
je 0x4e41dd
cmp dword [edi + 0x3c], ebx
jne 0x4e41f2
cmp dword [edi + 0x24], ebx
je 0x4e41ee
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x24], ebx
xor eax, eax
jmp 0x4e41f5
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4e5b10
Capabilities:
Read file on windows
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x680], ebx
and dword [ebp - 0x670], esi
mov word [ebp - 0x66c], si
push edi
mov edi, dword [ebp + 0x20]
test ebx, ebx
je 0x4e5cb9
test eax, eax
je 0x4e5cb9
mov esi, dword [ebp + 0x18]
push edi
xor edi, edi
mov dword [ebx + 8], esi
push edi
push edi
push ecx
push edx
push edi
lea ecx, [ebp - 0x66c]
push ecx
push eax
call fcn.004e5e97
mov edi, eax
add esp, 0x20
test edi, edi
je 0x4e5cb9
cmp edi, 0xffffffff
je 0x4e5cb9
lea eax, [ebp - 0x670]
push 0
push eax
test esi, esi
je 0x4e5ba7
push dword [ebx]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4e5cb9
push 0x258
lea eax, [ebp - 0x25c]
push eax
push dword [ebx]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
mov dword [ebp - 0x674], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x4e5be2
cmp eax, 0xea
je 0x4e5be2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e5cb9
cmp dword [ebp - 0x670], 0x30
jb 0x4e5bd6
mov ebx, dword [ebp - 0x25c]
cmp ebx, dword [ebp - 0x670]
jb 0x4e5bd6
cmp dword [ebp - 0x258], 0xa6
jne 0x4e5bd6
push ebx
call fcn.004e1c0a
mov esi, eax
mov dword [ebp - 0x67c], esi
pop ecx
test esi, esi
jne 0x4e5c24
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e5cbb
push dword [ebp - 0x670]
lea eax, [ebp - 0x25c]
push eax
push esi
call fcn.004f5d30
mov eax, dword [ebp - 0x670]
add esp, 0xc
sub ebx, eax
lea ecx, [eax + esi]
test ebx, ebx
jle 0x4e5c99
mov eax, dword [ebp - 0x674]
mov esi, ecx
test eax, eax
jne 0x4e5c93
push eax
lea eax, [ebp - 0x670]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x674], eax
test eax, eax
jne 0x4e5c83
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4e5c93
mov eax, dword [ebp - 0x674]
sub ebx, dword [ebp - 0x670]
add esi, dword [ebp - 0x670]
test ebx, ebx
jg 0x4e5c51
mov esi, dword [ebp - 0x67c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x680]
mov ecx, dword [esi + 0xc]
cmp ecx, dword [eax + 0xc]
je 0x4e5cbb
test ecx, ecx
jne 0x4e5cbb
push esi
call fcn.004e1bea
pop ecx
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4e5e97
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0x64
test esi, esi
je 0x4e5ec7
mov eax, 0x7530
cmp esi, eax
cmova esi, eax
jmp 0x4e5ecc
mov esi, 0x7530
mov eax, 0xfa
cmp esi, eax
cmovb eax, esi
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
neg eax
sbb eax, eax
and eax, 0x40000000
mov dword [ebp + 0x1c], eax
push 0
push eax
push 3
call fcn.004e4204
push eax
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x4e5f16
cmp ebx, 0xffffffff
jne 0x4e5f7f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 0xc]
cmp dword [ebp + 0x20], 0
je 0x4e5f3a
push 0
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4e5fca
mov eax, dword [ebp - 4]
cmp edi, 0xe7
jne 0x4e5f64
test eax, eax
jle 0x4e5fc3
cmp ebx, esi
jae 0x4e5f64
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x1c]
jmp 0x4e5ee8
test eax, eax
jle 0x4e5fc3
cmp ebx, esi
ja 0x4e5fc3
dec eax
mov dword [ebp - 4], eax
cmp edi, 2
jne 0x4e5f99
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4e5f5f
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov eax, ebx
jmp 0x4e5fcc
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x10]
call fcn.004e62cc
pop ecx
push eax
push str._s._u:_CreateFile__s__failed__code_u
push 0x208
push dword [ebp + 0xc]
call fcn.004e1e5a
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e6611
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x38
call fcn.004e1bc1
mov esi, eax
pop ecx
test esi, esi
je 0x4e6642
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 8]
and dword [esi + 8], 0
mov dword [esi], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], 0
jmp 0x4e6644
xor esi, esi
test esi, esi
jne 0x4e664f
xor eax, eax
jmp 0x4e6706
push ebx
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4e66c2
cmp byte [edi], 0
je 0x4e66c2
push 0x25
push edi
call fcn.004f8d00
pop ecx
pop ecx
test eax, eax
je 0x4e66b0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e6670
sub ecx, edx
lea eax, [ecx + 0x40]
push eax
mov dword [ebp - 4], eax
call fcn.004e1c0a
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4e66b0
push dword [ebp + 0x18]
push edi
push dword [ebp - 4]
push ebx
call fcn.004e2271
add esp, 0x10
lea eax, [esi + 0x10]
push 0x28
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
call fcn.004e1bea
pop ecx
lea eax, [esi + 0x10]
cmp byte [eax], 0
jne 0x4e66c2
push 0x28
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0x10]
push 4
push esi
push 0x4e67dd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x4e66f1
push edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x4e66fb
push 0x38
push esi
call fcn.004ef54a
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4e6709
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x2c], eax
mov esi, 0x5b29fc
mov eax, 0xff
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
cmp dword [esi - 0x20], 0
je 0x4e675f
cmp dword [esi - 0x18], ebx
jne 0x4e675f
mov eax, dword [ebp + 0xc]
lea edi, [esi - 0x24]
mov dword [esi - 4], eax
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi - 8], eax
mov eax, dword [ebp - 0x28]
mov dword [0x5836ac], eax
dec eax
sub esi, 0x78
mov dword [ebp - 0x28], eax
cmp esi, 0x5ab274
jge 0x4e6734
mov eax, dword [0x5ab24c]
test edi, edi
push dword [ebp + 0xc]
cmove eax, ebx
push ebx
mov dword [0x5ab24c], eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, eax
test edi, edi
je 0x4e67cc
mov esi, dword [ebp - 0x2c]
push 0x5c
push esi
call fcn.004f8f20
pop ecx
pop ecx
test eax, eax
je 0x4e67a1
inc eax
jmp 0x4e67a3
mov eax, esi
push 0x1e
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x50]
push str._s:_i
push eax
call fcn.004e65a2
add esp, 0x10
and dword [edi + 4], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret
Function at 0x4e6e05
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov ecx, esi
mov dword [ebp - 8], edi
call fcn.004e7856
test al, al
jne 0x4e6ee0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4e6ed1
cmp dword [esi + 0x40], ebx
je 0x4e6eb6
mov edi, dword [esi + 0x44]
test edi, edi
je 0x4e6eb3
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4e6eb0
lea ecx, [esi + 0x20]
call fcn.004e7783
mov eax, dword [esi + 0x44]
cmp edi, eax
jne 0x4e6ea4
test eax, eax
je 0x4e6e85
cmp eax, 0xffffffff
je 0x4e6e85
and dword [esi + 0x44], ebx
cmp eax, 0xffffffff
je 0x4e6e85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.004e780f
and dword [esi + 0x54], 0
movzx ebx, al
mov eax, dword [esi + 0x7c]
test eax, eax
jle 0x4e6e9e
dec eax
mov dword [esi + 0x7c], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x40], eax
lea ecx, [esi + 0x20]
call fcn.004e77a1
test ebx, ebx
jne 0x4e6ee0
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp + 8], 0xffffffff
je 0x4e6ed1
sub eax, edi
cmp eax, dword [ebp + 8]
ja 0x4e6ee9
mov ecx, esi
call fcn.004e7856
test al, al
je 0x4e6e41
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
xor al, al
jmp 0x4e6ee2

Function at 0x4e6fee
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x58]
xor edi, edi
inc edx
cmp dword [ecx], eax
je 0x4e7019
inc edx
add ecx, 4
cmp edx, 0xa
jb 0x4e700a
jmp 0x4e703e
mov edi, dword [esi + edx*4 + 0x7c]
jmp 0x4e703e
push 0xa
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp dword [ebp + 0xc], 0xffffffff
je 0x4e703e
cmp eax, dword [ebp + 0xc]
ja 0x4e7043
cmp dword [esi + 0x48], edi
jg 0x4e701f
pop edi
pop esi
leave
ret 8
Function at 0x4e72f6
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 8
push edi
push 0x10
pop edi
test si, si
jne 0x4e737c
test ebx, ebx
jne 0x4e737c
mov eax, dword [ebp + 0x10]
test ax, ax
je 0x4e737c
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
mov dword [ebp + 0xc], eax
test ax, ax
je 0x4e737c
mov ecx, 0xffff
cmp ax, cx
je 0x4e737c
movzx esi, al
shr ax, 8
mov word [ebp + 0xc], ax
mov dl, al
and al, 7
cmp al, 6
jne 0x4e7353
mov ebx, edi
jmp 0x4e737c
test dl, 1
mov ecx, edi
mov al, dl
cmove ecx, ebx
mov ebx, ecx
or ebx, 8
and al, 2
cmove ebx, ecx
mov eax, ebx
test dl, 4
je 0x4e737c
and dl, 6
xor ebx, ebx
cmp dl, 6
setne bl
inc ebx
or ebx, eax
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xffffffff
jne 0x4e7392
push 0
movzx eax, si
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ecx, eax
xor edx, edx
lea edi, [ebp - 0x14]
inc edx
xor eax, eax
mov word [ebp - 0x18], dx
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov word [ebp - 0x10], dx
pop edx
mov word [ebp - 0xe], si
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], ax
cmp si, dx
je 0x4e73d2
mov eax, 0xa0
cmp si, ax
je 0x4e73d2
inc eax
cmp si, ax
je 0x4e73d2
xor edx, edx
cmp si, 0x11
je 0x4e73e6
mov eax, 0xa2
cmp si, ax
je 0x4e73e6
and dword [ebp - 4], 0
xor ecx, ecx
mov edi, 0xa3
cmp si, di
push 4
pop eax
cmove ecx, eax
add edi, 2
xor eax, eax
cmp si, di
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x18]
sete al
or ecx, eax
or ecx, dword [ebp - 4]
or ecx, edx
or ecx, ebx
push 5
mov dword [ebp - 8], ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x1c]
lea esi, [ebp - 0x18]
and dword [ebp - 0x14], 0
push 5
pop ecx
mov dword [ebp - 8], ebx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e77a9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 4], 0
je 0x4e77c2
cmp dword [esi], edi
je 0x4e77c2
call fcn.004e7875
mov dword [esi], edi
test edi, edi
jne 0x4e77cc
xor eax, eax
jmp 0x4e7809
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
jmp 0x4e77f7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0xffffffff
je 0x4e77ef
xor eax, eax
cmp ecx, dword [ebp + 0xc]
jae 0x4e7809
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004e7856
test al, al
je 0x4e77d7
xor eax, eax
mov byte [esi + 4], 1
inc eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x4e84b6
Capabilities:
Enumerate processes

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0xc], 0
jne 0x4e84ca
call fcn.004e8452
test al, al
je 0x4e852d
cmp byte [esi + 0xd], 0
je 0x4e852d
cmp byte [esi + 0xe], 0
jne 0x4e852d
lea edi, [esi + 0x14]
mov ebx, 0x22c
cmp byte [esi + 0xf], 0
jne 0x4e8501
push ebx
push 0
push edi
mov byte [esi + 0xf], 1
call fcn.004f5a90
add esp, 0xc
mov dword [edi], ebx
push edi
push dword [esi + 0x10]
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4e850a
push edi
push dword [esi + 0x10]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4e8529
mov edx, dword [esi]
mov ecx, esi
push edi
call dword [edx]
test al, al
je 0x4e84de
push edi
lea ecx, [esi + 0x240]
call fcn.00497f1f
mov al, 1
jmp 0x4e852f
mov byte [esi + 0xe], 1
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x4ea09e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x114
xor ebx, ebx
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 6
push ebx
push eax
call fcn.004f5a90
add esp, 0xc
push 3
push 1
push 3
push 2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
lea eax, [ebp - 0x128]
push 3
push eax
call fcn.004e3daa
add esp, 0x10
test al, al
je 0x4ea174
lea eax, [ebp - 0x130]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x4ea171
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x130]
neg eax
sbb eax, eax
and dword [ebp - 0x12c], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x12c]
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret

Function at 0x4ea181
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4ea22a
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4ea229
xor eax, eax
cmp word [ebx], ax
je 0x4ea229
cmp word [esi], ax
je 0x4ea229
push edi
push 0x208
call fcn.004e1c0a
push 0x25
push esi
mov edi, eax
call fcn.004f5617
add esp, 0xc
test eax, eax
je 0x4ea215
mov eax, 0x104
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
mov eax, 0x104
cmp ecx, eax
jbe 0x4ea20c
lea eax, [ecx + 1]
push edi
mov dword [ebp + 8], eax
call fcn.004e1bea
mov eax, dword [ebp + 8]
add eax, eax
push eax
call fcn.004e1c0a
pop ecx
pop ecx
push dword [ebp + 8]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, eax
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4ea215
cmp ecx, eax
cmovbe esi, edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test edi, edi
je 0x4ea228
push edi
call fcn.004e1bea
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4ea22d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4ea43d
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x4ea291
cmp dword [esi], 1
je 0x4ea291
mov eax, dword [esi + 4]
sub eax, ebx
je 0x4ea265
sub eax, 1
je 0x4ea25d
sub eax, 1
jne 0x4ea291
lea ecx, [esi + 0x21c]
jmp 0x4ea27b
call fcn.004e3cd3
test al, al
mov ecx, 0x21c
mov edx, 0x424
cmovne ecx, edx
add ecx, esi
test ecx, ecx
je 0x4ea291
cmp word [ecx], bx
je 0x4ea291
push ecx
push str.ComSpec
call fcn.004ea181
pop ecx
pop ecx
cmp byte [ebp + 0xc], bl
jne 0x4ea43c
cmp dword [esi + 0xc], ebx
je 0x4ea43c
cmp word [esi + 0x62c], bx
je 0x4ea43c
cmp word [esi + 0x834], bx
je 0x4ea43c
push edi
push 0x52aa44
call fcn.004e34b2
mov edi, eax
pop ecx
test edi, edi
jne 0x4ea2de
push ebx
push 0x514870
call fcn.004e230a
pop ecx
pop ecx
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push edi
mov dword [ebp - 0x10], eax
call fcn.004e230a
push 0x208
mov dword [ebp - 8], eax
call fcn.004e1c0a
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x4ea425
test ebx, ebx
je 0x4ea41e
push dword [ebp - 0x10]
and dword [ebp - 4], 0
xor cl, cl
push eax
mov byte [ebp + 0xb], cl
call dword [sym.imp.USER32.dll_CharUpperBuffW]
xor eax, eax
mov dword [ebp - 0x10], eax
sub eax, 0
je 0x4ea34b
sub eax, 1
jne 0x4ea379
test byte [esi + 0xc], 2
je 0x4ea3f9
lea eax, [esi + 0x834]
mov dword [ebp - 4], eax
jmp 0x4ea37c
test byte [esi + 0xc], 1
je 0x4ea3f9
lea eax, [esi + 0x62c]
push eax
lea eax, [esi + 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4ea3f9
lea eax, [esi + 0x62c]
jmp 0x4ea346
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x104
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push ebx
push dword [ebp - 8]
jmp 0x4ea3ba
mov ecx, dword [ebp - 0xc]
lea ecx, [eax + ecx*2]
movzx eax, word [ecx]
cmp eax, 0x3b
je 0x4ea3f9
test ax, ax
je 0x4ea3f9
push ebx
push ecx
call fcn.004f68e6
pop ecx
pop ecx
test eax, eax
jne 0x4ea3a5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push edi
push 0x547318
push dword [ebp - 4]
call fcn.004e23a5
add esp, 0x24
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4ea409
test edi, edi
je 0x4ea3f3
push edi
call fcn.004e1bea
mov eax, dword [ebp - 0xc]
pop ecx
mov edi, eax
mov byte [ebp + 0xb], 1
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, 1
jle 0x4ea32c
cmp byte [ebp + 0xb], 0
je 0x4ea41b
push edi
push 0x52aa44
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [ebp - 8]
push eax
call fcn.004e1bea
pop ecx
test ebx, ebx
je 0x4ea430
push ebx
call fcn.004e1bea
pop ecx
test edi, edi
je 0x4ea43b
push edi
call fcn.004e1bea
pop ecx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4ea469
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov eax, dword [0x5836e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x924], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test esi, esi
jne 0x4ea4a8
push str._NULL_
push 0x400
push ebx
call fcn.00401a0b
jmp 0x4ea5d2
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4ea4cc
push esi
push str.0x_08X:_Invalid_window_handle
push 0x400
push ebx
call fcn.004e1e5a
add esp, 0x10
jmp 0x4ea5d2
push 0xf0
lea eax, [ebp - 0xf4]
push 0
push eax
call fcn.004f5a90
add esp, 0xc
lea eax, [ebp - 0x2f4]
push 0x100
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jne 0x4ea50f
push str._GetClassName_failed_
push 0x100
lea eax, [ebp - 0x2f4]
push eax
call fcn.00401a0b
push 0x200
lea eax, [ebp - 0x6f4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4ea52d
mov word [ebp - 0x6f4], ax
cmp byte [ebp + 0x10], 0
jne 0x4ea537
test edi, edi
je 0x4ea5a9
lea eax, [ebp - 0x924]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4ea5a9
push 0x22c
lea eax, [ebp - 0x920]
push 0
push eax
call fcn.004f5a90
add esp, 0xc
cmp byte [ebp + 0x10], 0
je 0x4ea5a9
lea eax, [ebp - 0x920]
push eax
push dword [ebp - 0x924]
call fcn.004e8345
pop ecx
pop ecx
test al, al
je 0x4ea5a9
push dword [ebp - 0x924]
xor eax, eax
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x8fc]
push eax
push str.____s___u_
lea eax, [ebp - 0xf4]
push 0x78
push eax
call fcn.004e1e5a
add esp, 0x14
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x6f4]
push eax
lea eax, [ebp - 0x2f4]
push eax
push esi
push str.0x_08X:__s____s_s
push 0x400
push ebx
call fcn.004e1e5a
add esp, 0x1c
test edi, edi
je 0x4ea5de
mov eax, dword [ebp - 0x924]
mov dword [edi], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4166
leave
ret

Function at 0x4eaa70
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea edx, [ecx + 0x54]
push esi
push 2
pop eax
xor esi, esi
cmp dword [ecx + 0x25c], eax
push 9
cmove edx, esi
cmp dword [ecx + 0x48], eax
pop esi
cmove eax, esi
lea esi, [ebp - 4]
push esi
push 0
push eax
push edx
push dword [ecx + 0x50]
push dword [ecx + 0x4c]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
pop esi
test eax, eax
je 0x4eaab3
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4eaab5
xor eax, eax
leave
ret