joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c52d0
Capabilities:
Encrypt data using curve25519

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x1a8]
push 0x20
push eax
lea ecx, [esp + 0x188]
push ecx
call fcn.004f4830
mov dl, byte [esp + 0x1ab]
and byte [esp + 0x18c], 0xf8
and dl, 0x3f
or dl, 0x40
add esp, 0xc
mov byte [esp + 0x19f], dl
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + edi]
mov dword [esp + eax*4], ecx
inc eax
cmp eax, 0x20
jb 0x4c5320
lea edx, [esp + 0x180]
push edx
lea eax, [esp + 4]
push eax
call fcn.004c4b60
lea ecx, [esp + 0x88]
push ecx
mov eax, ecx
call fcn.004c4ee0
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x110]
push eax
lea edx, [esp + 0x14]
call fcn.004c4770
lea ecx, [esp + 0x114]
push ecx
call fcn.004c46c0
add esp, 0x18
xor eax, eax
lea esp, [esp]
mov dl, byte [esp + eax*4 + 0x100]
mov byte [esi + eax], dl
inc eax
cmp eax, 0x20
jb 0x4c5380
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
xor eax, eax
call fcn.004f189b
add esp, 0x1a4
ret

Function at 0x4c53b0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0x2c]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x34]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x40]
mov dword [esp + 0x48], edx
xor edx, edx
mov esi, 0x53f568
mov dword [esp + 0x4c], ecx
mov ecx, eax
sub esi, eax
lea edi, [edx + 0x11]
lea ebx, [ebx]
mov ebx, dword [esi + ecx]
add ebx, dword [ecx]
add ecx, 4
add edx, ebx
movzx ebx, dl
mov dword [ecx - 4], ebx
shr edx, 8
sub edi, 1
jne 0x4c5440
mov edx, dword [eax + 0x40]
shr edx, 7
lea esi, [esp + 0xc]
neg edx
sub esi, eax
mov edi, 0x11
jmp 0x4c5470
mov ecx, dword [eax]
mov ebx, dword [esi + eax]
xor ebx, ecx
and ebx, edx
xor ebx, ecx
mov dword [eax], ebx
add eax, 4
sub edi, 1
jne 0x4c5470
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x4c5e20
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x4c5fbe
test eax, eax
je 0x4c5fbe
mov dword [eax + 0xf0], 0xa
mov ecx, dword [esi]
push edi
mov edx, ecx
ror edx, 8
and edx, 0xff00ff00
rol ecx, 8
and ecx, 0xff00ff
or edx, ecx
mov dword [eax], edx
mov edx, dword [esi + 4]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 4], edi
mov edx, dword [esi + 8]
mov edi, edx
ror edi, 8
and edi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or edi, edx
mov dword [eax + 8], edi
mov edx, dword [esi + 0xc]
lea ecx, [eax + 4]
mov esi, edx
ror esi, 8
and esi, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or esi, edx
mov dword [eax + 0xc], esi
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x53dc40]
xor edx, 0x1000000
mov edi, esi
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x53e040]
and edi, 0xff0000
and edx, 0xff000000
xor edx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x53d840]
xor edx, edi
mov edi, esi
and edi, 0xff
mov edi, dword [edi*4 + 0x53d440]
and edi, 0xff00
xor edx, edi
xor edx, dword [eax]
mov edi, dword [ecx]
xor edi, edx
mov dword [eax + 0x10], edx
mov edx, dword [eax + 8]
xor edx, edi
mov dword [eax + 0x18], edx
xor edx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], edx
mov esi, 0x53f544
jmp 0x4c5f30
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov eax, edx
shr eax, 8
mov edi, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x53e040]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x53dc40]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x53d440]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x53d840]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
mov dword [ecx + 0x18], edx
cmp esi, 0x53f568
jne 0x4c5f30
pop edi
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x4c5fd0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
call fcn.004c5e20
test eax, eax
jl 0x4c6208
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x4c603d
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
mov edi, edi
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x4c6000
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x4c6204
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x53d840]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x53d840]
and esi, 0xff
mov esi, dword [esi*4 + 0x53e440]
and edi, 0xff
xor esi, dword [edi*4 + 0x53ec40]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53d840]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x53f040]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x53d840]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x53e840]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x53d840]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x53d840]
and esi, 0xff
mov esi, dword [esi*4 + 0x53e440]
and edi, 0xff
xor esi, dword [edi*4 + 0x53ec40]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x53d840]
and edi, 0xff
xor esi, dword [edi*4 + 0x53e840]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53d840]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x53f040]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x53d840]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x53d840]
and esi, 0xff
mov esi, dword [esi*4 + 0x53e440]
and edi, 0xff
xor esi, dword [edi*4 + 0x53ec40]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x53d840]
and edi, 0xff
xor esi, dword [edi*4 + 0x53e840]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53d840]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x53f040]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x53d840]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x53d840]
and esi, 0xff
mov esi, dword [esi*4 + 0x53e440]
and edi, 0xff
xor esi, dword [edi*4 + 0x53ec40]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x53d840]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x53d840]
and edi, 0xff
xor esi, dword [edi*4 + 0x53e840]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x53f040]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x4c6051
pop edi
xor eax, eax
pop esi
pop ebx
ret
Function at 0x4c7460
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x522a70
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
xor ebx, ebx
push str.TimedOutException
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.004f1a20
add esp, 4
push eax
push str.TimedOutException
lea ecx, [esp + 0x14]
call fcn.0040528b
mov ecx, esi
mov dword [esp + 0x30], ebx
call fcn.004f1b10
mov byte [esp + 0x30], 1
push 0xffffffffffffffff
lea ecx, [esi + 0xc]
mov dword [esi], vtable.apache::thrift::TException.0
push ebx
lea eax, [esp + 0x14]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.00404f8d
xor ecx, ecx
mov dword [esi + 0x40], 7
mov dword [esi + 0x3c], ebx
mov word [esi + 0x2c], cx
cmp dword [esp + 0x24], 0x10
jb 0x4c750e
mov edx, dword [esp + 0x10]
push edx
call fcn.004f1890
add esp, 4
mov eax, esi
mov dword [esi], vtable.apache::thrift::concurrency::TimedOutException.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 4

Function at 0x4c7750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x526daf
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx], vtable.apache::thrift::concurrency::ThreadManager::Impl.0
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x38], edi
push 4
mov byte [esp + 0x20], 2
lea esi, [ebx + 0x3c]
call fcn.004f1aab
add esp, 4
cmp eax, edi
je 0x4c77b9
mov dword [eax], esi
jmp 0x4c77bb
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov byte [esp + 0x1c], 3
lea esi, [ebx + 0x5c]
push 8
mov dword [esi], vtable.apache::thrift::concurrency::Mutex.0
call fcn.004f1aab
add esp, 4
cmp eax, edi
je 0x4c77ec
mov dword [eax], edi
mov dword [eax + 4], edi
mov edi, eax
lea ebp, [esi + 4]
push edi
lea ecx, [ebp + 4]
mov dword [ebp], edi
call fcn.004d0b20
push edi
push edi
push ebp
call fcn.004840d5
add esp, 0xc
push esi
lea edi, [ebx + 0x68]
mov byte [esp + 0x20], 4
call fcn.004d19c0
push esi
lea edi, [ebx + 0x70]
mov byte [esp + 0x20], 5
call fcn.004d19c0
lea esi, [ebx + 0x78]
mov byte [esp + 0x1c], 6
call fcn.004d1900
lea eax, [ebx + 0x80]
push eax
mov byte [esp + 0x20], 7
call fcn.004c9d70
lea eax, [ebx + 0xa0]
push eax
mov byte [esp + 0x20], 8
call fcn.004c9d70
lea eax, [ebx + 0xc0]
push eax
mov byte [esp + 0x20], 9
call fcn.004ca190
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x4c7880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x52578c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.apache::thrift::concurrency::ThreadManager::Impl.0
push 0
mov dword [esp + 0x18], 0xa
call fcn.004c8890
lea eax, [esi + 0xc0]
push eax
mov byte [esp + 0x18], 9
call fcn.004c9a20
lea eax, [esi + 0xa0]
push eax
mov byte [esp + 0x18], 8
call fcn.004c98c0
lea eax, [esi + 0x80]
push eax
mov byte [esp + 0x18], 7
call fcn.004c98c0
mov byte [esp + 0x14], 6
mov edi, dword [esi + 0x7c]
mov dword [esi + 0x78], vtable.apache::thrift::concurrency::Monitor.0
test edi, edi
je 0x4c7910
push edi
call fcn.004d1a70
push edi
call fcn.004f1890
add esp, 4
mov byte [esp + 0x14], 5
mov edi, dword [esi + 0x74]
mov dword [esi + 0x70], vtable.apache::thrift::concurrency::Monitor.0
test edi, edi
je 0x4c7932
push edi
call fcn.004d1a70
push edi
call fcn.004f1890
add esp, 4
mov byte [esp + 0x14], 4
mov edi, dword [esi + 0x6c]
mov dword [esi + 0x68], vtable.apache::thrift::concurrency::Monitor.0
test edi, edi
je 0x4c7954
push edi
call fcn.004d1a70
push edi
call fcn.004f1890
add esp, 4
mov byte [esp + 0x14], 3
mov dword [esi + 0x5c], vtable.apache::thrift::concurrency::Mutex.0
mov edi, dword [esi + 0x64]
test edi, edi
je 0x4c7991
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c7991
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c7991
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
lea eax, [esi + 0x3c]
push eax
mov byte [esp + 0x18], 2
call fcn.004c9860
mov byte [esp + 0x14], 1
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4c79d5
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4c79d5
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4c79d5
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
lea edi, [esi + 0x18]
mov byte [esp + 0x14], 0
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x4c79fb
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
cmp ecx, edi
setne dl
movzx edx, dl
push edx
call eax
mov dword [edi + 0x10], 0
mov dword [esi], vtable.apache::thrift::concurrency::ThreadManager.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4ccc20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x51feb3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
xor edi, edi
mov dword [esi], vtable.boost::detail::thread_data_base.0
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
push edi
push edi
push 1
push edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
jne 0x4ccc92
lea ecx, [esp + 0xc]
call fcn.004f1b10
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], vtable.boost::thread_resource_error.0
lea eax, [esp + 0xc]
push eax
mov byte [esp + 0x28], 1
call fcn.0042ee12
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov byte [esi + 0x18], 1
mov dword [esi + 0x1c], edi
mov dword [esi], vtable.boost::detail::thread_data_class_boost::_bi::bind_t_void___void_____cdecl___void____class_boost::_bi::list1_class_boost::_bi::value_void_____.0
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 0xc
Function at 0x4cfc30
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x526c78
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x585698]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0x14]
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 + 0xd0]
push ecx
mov byte [esp + 0xd4], bl
mov byte [esp + 0xd5], bl
mov byte [esp + 0xd6], bl
mov byte [esp + 0xd7], bl
mov byte [esp + 0xd8], bl
mov byte [esp + 0xd9], 1
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push 1
mov dword [esp + 0x28], 0x1fffff
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], edx
mov dword [esp + 0x20], 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 + 0x10]
push ebx
push edx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [esi + 0x1c], 8
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
jb 0x4cfd60
mov ecx, dword [esi + 8]
jmp 0x4cfd63
lea ecx, [esi + 8]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x38]
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 0x4cfde4
mov dword [esi + 0x24], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push str.TCreateNamedPipe___failed
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
call fcn.004f1a20
add esp, 4
push eax
push str.TCreateNamedPipe___failed
lea ecx, [esp + 0x4c]
call fcn.0040528b
mov dword [esp + 0xc0], ebx
call esi
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.004cf3e0
push 0x5661e8
lea eax, [esp + 0x64]
push eax
call fcn.004fc29c
mov dword [esi + 0x24], eax
mov al, 1
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004f189b
mov esp, ebp
pop ebp
ret
Function at 0x4d05c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51e8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [esp + 0xc]
call fcn.004d0ab0
mov edi, eax
lea esi, [esp + 0x30]
mov dword [esp + 0x60], 0
call fcn.004d0b00
push 0x56642c
mov eax, esi
push eax
call fcn.004fc29c
int3

Function at 0x4d1610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x526143
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x585698]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.004d1180
push 0xc
mov dword [esp + 0x18], 0
call fcn.004f1aab
add esp, 4
mov dword [esp + 8], eax
mov byte [esp + 0x14], 1
test eax, eax
je 0x4d1663
push eax
call fcn.004d0240
jmp 0x4d1665
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x4d19c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x526c1b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x585698]
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.004f1aab
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x4d1a30
push esi
call fcn.004d1180
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 0x4d2bf0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0xc
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 8], 0x400
cmp dword [esp + 0x1c], ebx
jne 0x4d2c11
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push ebx
push 0x410
call edi
mov esi, eax
cmp esi, ebx
jne 0x4d2c41
push ebp
push ebx
push 0x1000
call edi
mov esi, eax
cmp esi, ebx
jne 0x4d2c41
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push 0x53bc74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4d2c72
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4d2c72
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push ecx
push edx
push ebx
push esi
call eax
test eax, eax
jne 0x4d2ca9
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4d2cab
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x4d2cab
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x4d2cc0
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor eax, eax
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea ebp, [esi + 1]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x30]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
push ecx
add ebx, 0x4e20
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4d2dbb
cmp dword [esp + 0x14], 4
je 0x4d2da3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp ebx, eax
jb 0x4d2db0
test ebp, ebp
je 0x4d2d3b
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
xor ebp, ebp
jmp 0x4d2d55
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x4d2d4b
mov esi, dword [esp + 0x24]
mov edi, eax
jmp 0x4d2d55
mov eax, dword [esp + 0x24]
cmp eax, esi
jb 0x4d2dbb
mov esi, eax
mov eax, 0xcccccccd
mul dword [esp + 0x28]
shr edx, 3
cmp edx, 0x3e8
jae 0x4d2d70
mov edx, 0x3e8
jmp 0x4d2d7d
cmp edx, 0x2710
jbe 0x4d2d7d
mov edx, 0x2710
push edx
call sub.KERNEL32.dll_Sleep
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4d2d12
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x4d2dd0
Capabilities:
Start service

Disassembly:
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4d2e36
push ebx
push ebp
push esi
push 0x14
push str.QHActiveDefense
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4d2e2c
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call fcn.004d2cc0
add esp, 4
cmp eax, 1
jne 0x4d2e2c
xor ebp, ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x4d2e22
push esi
call ebx
push edi
call ebx
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x4d2e15
pop edi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x4d31b0
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x593710]
push esi
mov esi, dword [0x59370c]
push 0x104
push eax
lea ecx, [esi + 0x14]
push 0x105
push ecx
call fcn.004f74db
add esp, 0x10
cmp dword [esi], 0xffffffff
mov dword [esi + 0x224], 0x4884ca
mov dword [esi + 0x220], 0x488070
je 0x4d31fc
mov dword [esi + 0x10], 0
mov eax, 1
pop esi
pop ecx
ret
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x4d32a0
push 0
push 0
mov dword [esp + 0x1c], 0
call fcn.004f5629
add esp, 0x18
mov dword [esi], eax
mov eax, 1
pop esi
pop ecx
ret

Function at 0x4d3230
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x224]
test eax, eax
je 0x4d3247
mov ecx, dword [esi + 0x228]
push ecx
push esi
call eax
add esp, 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4d328a
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d3281
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov eax, 1
ret
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
mov eax, 1
ret