joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b5d0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cfdf8
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4ffeb0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
push 1
lea ecx, [esp + 0xb8]
push ecx
mov byte [esp + 0xbc], bl
mov byte [esp + 0xbd], bl
mov byte [esp + 0xbe], bl
mov byte [esp + 0xbf], bl
mov byte [esp + 0xc0], bl
mov byte [esp + 0xc1], 1
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
push 1
mov dword [esp + 0x2c], 0x1fffff
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 5
mov dword [esp + 0x48], edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov edx, dword [esp + 0x14]
push ebx
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [esi + 0x1c], 8
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ebx
jb 0x46b700
mov ecx, dword [esi + 8]
jmp 0x46b703
lea ecx, [esi + 8]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x3c]
push edx
push ebx
push eax
push eax
mov eax, dword [esi + 0x28]
push eax
push 6
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp eax, 0xffffffff
jne 0x46b775
mov dword [esi + 0x24], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push 0x19
push str.TCreateNamedPipe___failed
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00405f80
mov dword [esp + 0xa8], ebx
call esi
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edi, [esp + 0x6c]
call fcn.0046af00
push 0x4f178c
mov edx, edi
push edx
call fcn.004a0e45
mov dword [esi + 0x24], eax
mov al, 1
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.004a0e91
mov esp, ebp
pop ebp
ret

Function at 0x46cd70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c91d8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [esp + 0xc]
call fcn.0046e180
mov edi, eax
lea esi, [esp + 0x30]
mov dword [esp + 0x60], 0
call fcn.0046e1d0
push 0x4f1d30
mov eax, esi
push eax
call fcn.004a0e45
int3
Function at 0x46d320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c9d48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00407310
mov dword [esp + 0x18], 0
test edi, edi
je 0x46d364
add edi, 0x28
jmp 0x46d366
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x46d37e
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_class_std::runtime_error_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x46d3f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cae48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00407690
mov dword [esi], vtable.boost::gregorian::bad_day_of_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x46d43a
add edi, 0x28
jmp 0x46d43c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x46d454
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_day_of_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x46d5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cae48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00407690
mov dword [esi], vtable.boost::gregorian::bad_year.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x46d62a
add edi, 0x28
jmp 0x46d62c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x46d644
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_year_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x46d6d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cae48
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.00407690
mov dword [esi], vtable.boost::gregorian::bad_month.0
mov dword [esp + 0x18], 0
test edi, edi
je 0x46d71a
add edi, 0x28
jmp 0x46d71c
xor edi, edi
mov dword [esi + 0x28], vtable.boost::exception.0
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c], ecx
test ecx, ecx
je 0x46d734
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov eax, dword [edi + 8]
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x34], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x38], edx
mov dword [esi], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.1.0
mov dword [esi + 0x28], vtable.boost::exception_detail::error_info_injector_struct_boost::gregorian::bad_month_.0
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x46f230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d05e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov eax, esi
or eax, ebx
jne 0x46f280
mov ebx, edi
call fcn.0046f330
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8
mov ecx, dword [edi + 0x30]
mov edx, dword [ecx + 4]
mov dword [esp + 0x40], edx
mov byte [esp + 0x44], 1
lea eax, [esp + 0x14]
push 0x46bbf0
push eax
mov dword [esp + 0x40], 0
call fcn.0046c780
add esp, 8
push ebx
push esi
lea esi, [esp + 0x24]
call fcn.0046c400
mov edx, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
lea eax, [esp + 0x1c]
lea esi, [esp + 0x2c]
call fcn.0046c5e0
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
sub esp, 0x18
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
xor eax, eax
lea ecx, [esp + 0x60]
push ecx
mov edx, edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], al
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
call fcn.0046fdf0
xor edx, edx
test al, al
setne dl
dec edx
and edx, 0x274c
mov eax, edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 8

Function at 0x46f470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cfd9b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4ffeb0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x34
mov dword [edi], vtable.apache::thrift::concurrency::Monitor.0
call fcn.0049c800
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x46f4e0
push esi
call fcn.0046ec30
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], eax
mov dword [edi + 4], esi
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
xor eax, eax
mov dword [edi + 4], eax
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x470c18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0x60
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x10], ebx
je 0x470c6c
call fcn.00403db0
cmp byte [eax + 0xc], bl
je 0x470c6c
push ecx
movzx ecx, word [ebp + 0x10]
mov eax, esp
mov dword [eax], ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x10]
mov dword [eax], esi
call fcn.004703cd
cmp al, 1
jne 0x470c68
mov dword [ebp - 8], 0xf0
cmp al, bl
jne 0x470c82
push ecx
movzx ecx, word [ebp + 0xc]
mov eax, esp
mov dword [eax], ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x10]
mov dword [eax], esi
call fcn.004703cd
cmp al, 1
jne 0x470d9c
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [0x507354]
call esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x470d9c
push dword [ebp - 0xc]
push dword [0x507354]
call esi
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.004a0ea0
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x470d7d
push ebx
push dword [ebp + 8]
call fcn.004061b0
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x470d7d
mov ecx, esi
call fcn.00404e20
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.00404e50
push ebx
mov dword [ebp - 0x14], eax
movzx eax, word [edi + 0x18]
push ebx
push ebx
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
call fcn.00403db0
mov ecx, eax
call fcn.00404e80
test al, al
je 0x470d58
push ebx
push 1
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call fcn.00403de0
mov edi, eax
add esp, 0x18
cmp edi, ebx
je 0x470d58
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov esi, edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
mov dword [ebp + 0xc], ebx
call fcn.00470426
test eax, eax
je 0x470d71
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x470d7d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x470d9c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0047040d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x474395
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xc4]
sub esp, 0x144
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0xc0], eax
mov eax, dword [0x4fe1c8]
test eax, eax
jl 0x4743c7
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
jmp 0x474450
and dword [0x4fe1c8], 0
push esi
push 0x24
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004a0bd0
mov esi, 0x11c
push esi
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004a0bd0
add esp, 0x18
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x474414
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x114
call esi
test eax, eax
je 0x47444d
push str.GetNativeSystemInfo
push 0x4e0d00
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47444d
lea ecx, [ebp - 0x80]
push ecx
call eax
cmp word [ebp - 0x80], 9
je 0x474443
cmp word [ebp - 0x80], 6
jne 0x47444d
xor eax, eax
inc eax
mov dword [0x4fe1c8], eax
jmp 0x47444f
xor eax, eax
pop esi
mov ecx, dword [ebp + 0xc0]
xor ecx, ebp
call fcn.004a0e91
add ebp, 0xc4
leave
ret

Function at 0x474507
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call fcn.00474465
mov esi, eax
mov dword [ebp - 0x50], esi
cmp dword [0x501a70], esi
je 0x474531
xor ebx, ebx
cmp esi, ebx
jne 0x474549
lea ecx, [ebp - 0x50]
call fcn.0042a280
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
leave
ret
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x1a
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x474571
lea ecx, [ebp - 0x50]
call fcn.0042a280
mov al, bl
jmp 0x47453b
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x4c], 1
sete bl
jmp 0x474565
Function at 0x47461f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
push str._elevated
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x474681
push 0x40
push dword [0x5058f8]
push dword [0x505900]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop esi
call fcn.004a0e91
add ebp, 0x1a0
leave
ret
push ebx
call esi
push eax
lea ecx, [ebp - 0x70]
call fcn.00404030
push str.__elevated
lea ecx, [ebp - 0x70]
call fcn.004053a0
call fcn.00474395
mov esi, dword [ebp - 0x70]
xor ebx, ebx
test eax, eax
je 0x4746e8
mov ecx, dword [ebp + 0x1a8]
cmp ecx, 0xffffffff
je 0x4746e8
push edi
xor eax, eax
lea edi, [ebp - 0x7c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3e8
lea eax, [ebp - 0x80]
push eax
push ebx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], esi
call fcn.004741be
add esp, 0xc
pop edi
test eax, eax
je 0x4746e8
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.00404d60
mov al, bl
pop ebx
jmp 0x47466b
xor eax, eax
push 0x206
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push ebx
push eax
call fcn.004a0bd0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4746db
call fcn.00474507
test al, al
je 0x474735
push 1
push ebx
push esi
lea eax, [ebp - 0x6c]
push eax
push str.runas
push ebx
call fcn.00475fd1
add esp, 0x18
jmp 0x4746d9
call fcn.004745c1
test al, al
jne 0x47471d
cmp byte [ebp + 0x1b0], 1
jne 0x4746db
push 0x40
push dword [0x5058f8]
push dword [0x505900]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4746db

Function at 0x4748ae
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0x90]
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x474910
test byte [ebp - 0x6a], 0x80
jne 0x474910
push ebx
inc edi
push edi
push ebx
push 0x12
call esi
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x80], eax
cmp edi, ebx
je 0x474928
push ebx
push 3
push ebx
push 0x12
call esi
mov ecx, dword [ebp + 0x84]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x88
leave
ret
push dword [esp + 4]
call fcn.004747e2
pop ecx
test eax, eax
jne 0x474956
jmp 0x4748ae
ret
Function at 0x474943
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x84], eax
mov eax, dword [ebp + 0x90]
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x474910
test byte [ebp - 0x6a], 0x80
jne 0x474910
push ebx
inc edi
push edi
push ebx
push 0x12
call esi
push dword [ebp - 0x80]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0x80], eax
cmp edi, ebx
je 0x474928
push ebx
push 3
push ebx
push 0x12
call esi
mov ecx, dword [ebp + 0x84]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x88
leave
ret
push dword [esp + 4]
call fcn.004747e2
pop ecx
test eax, eax
jne 0x474956
jmp 0x4748ae
ret

Function at 0x4749a1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 5
jne 0x4749f1
cmp dword [ebp - 0x78], 2
jne 0x4749f1
xor eax, eax
inc eax
jmp 0x4749f3
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.004a0e91
add ebp, 0x98
leave
ret

Function at 0x474a08
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1f98]
mov eax, 0x2018
call fcn.004a1b30
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp + 0x1f94], eax
mov eax, dword [ebp + 0x1fa4]
push ebx
push edi
mov edi, dword [ebp + 0x1fa0]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1fa8]
xor ebx, ebx
mov dword [ebp - 0x78], eax
cmp edi, ebx
jne 0x474a4b
xor al, al
jmp 0x474ac3
push esi
mov esi, 0x1fff
push esi
lea eax, [ebp - 0x6b]
push ebx
push eax
mov byte [ebp - 0x6c], bl
call fcn.004a0bd0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push edi
mov dword [ebp - 0x80], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x474ac0
cmp eax, esi
ja 0x474ac0
lea ecx, [ebp - 0x6c]
push ecx
push eax
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x474abc
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push 0x4e0c60
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x474abc
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x7c]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
mov bl, 1
mov al, bl
jmp 0x474ac2
xor al, al
pop esi
mov ecx, dword [ebp + 0x1f94]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a0e91
add ebp, 0x1f98
leave
ret
Function at 0x474afd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.004a1b30
mov eax, dword [0x4ffeb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x200c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x474b81
cmp eax, 0x1fff
ja 0x474b81
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x474b81
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x4e0c60
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x474b81
mov eax, dword [ebp - 0x2008]
mov ecx, dword [eax + 0xc]
mov dword [esi], ecx
mov eax, dword [eax + 8]
mov dword [esi + 4], eax
xor eax, eax
inc eax
jmp 0x474b83
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a0e91
leave
ret

Function at 0x474bb0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x474bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x474bdd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret

Function at 0x474f1a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00474ed4
pop ecx
test eax, eax
jne 0x474f39
cmp dword [ebp + 0x20], eax
je 0x474f35
push dword [ebp + 0x10]
call dword [ebp + 0x20]
xor eax, eax
pop ebp
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret

Function at 0x474f95
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x474faa
push 0x32
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
ret
push dword [ebp + 8]
call fcn.00474ed4
pop ecx
test eax, eax
je 0x474fa6
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret