joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5c90
Capabilities:
Encode data using xor

Disassembly:
push ecx
test edx, edx
jne 0x4c5c99
xor eax, eax
pop ecx
ret
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
cmp esi, 8
jb 0x4c5d57
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
sub edi, 1
jne 0x4c5cb0
pop edi
test esi, esi
je 0x4c5d7a
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f01a8]
sub esi, 1
jne 0x4c5d60
not eax
pop esi
pop ecx
ret

Function at 0x4c5fd0
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebp, edx
mov dword [esp + 0x14], ecx
lea ebx, [edi + 1]
push ebx
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4c6015
mov eax, dword [esp + 0x14]
mov edx, ebx
add eax, ebp
mov ecx, esi
push edi
push eax
call fcn.00401000
add esp, 8
mov byte [esi + edi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x94
mov edx, 0x6200a4
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x94
push 0x6200c8
push 0x6200ec
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x4c76f0
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x78
mov ebx, ecx
call fcn.0058d200
mov edi, eax
add esp, 4
test edi, edi
je 0x4c7872
push 0x78
push 0
push edi
call fcn.005869c0
add esp, 0xc
mov dword [edi + 0x14], str.ILibWrapper_WebRTC_ConnectionFactory
mov dword [edi + 8], 0x4c6de0
mov esi, dword [ebx + 0x2f0]
mov ecx, esi
call fcn.004b2df0
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov ecx, dword [esi + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4c774e
mov dword [ecx + 8], eax
cmp dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
jne 0x4c775a
mov dword [esi + 0xc], eax
inc dword [esi + 4]
push ecx
mov ecx, ebx
mov dword [edi + 0xc], ebx
call fcn.004c3990
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x4c778f
mov ecx, dword [ebx + 0x2f0]
mov edx, edi
call fcn.004b2f20
push edi
call fcn.0058bf82
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.004c6c50
cmp dword [esp + 0x14], 1
je 0x4c77b3
mov edx, dword [edi + 0x34]
lea eax, [edi + 0x38]
mov ecx, dword [edi + 0x1c]
push eax
call fcn.004c3910
add esp, 4
mov eax, dword [edi + 0x1c]
push 0x14
mov dword [eax + 0x134], 0x4c71b0
mov dword [eax + 0x138], 0x4c7220
mov dword [eax + 0x13c], 0x4c7300
mov eax, dword [edi + 0x1c]
mov dword [eax + 0x1a8], 0x4c73d0
mov dword [eax + 0x1ac], 0x4c7350
mov dword [eax + 0x1b0], 0x4c7570
mov dword [eax + 0x1a4], fcn.00403e30
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4c78b3
push 0
push 0x40
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0x80
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x10
mov dword [esi + 8], 0x4bb2b0
call fcn.0058d200
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x10], 0
push 0x80
push 0
push eax
call fcn.005869c0
add esp, 0xc
mov dword [edi + 0x20], esi
mov dword [edi + 0xc], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x351
mov edx, 0x620484
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x351
push 0x6204a8
push 0x6204cc
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x61c4e8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4c4
push 0x61c504
push 0x61c520
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x4c7900
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0
push 0x10
push 0xbc
mov esi, ecx
call fcn.0058d200
add esp, 4
mov edx, 0x8c
mov ecx, eax
call fcn.004ae4d0
mov edi, eax
add esp, 8
mov dword [edi + 0x7c], 0x4a7560
mov dword [edi + 0x80], 0x4a76b0
mov dword [edi + 0x84], 0
mov dword [edi + 0x10], esi
mov ecx, dword [esi + 0x20]
push 0xffffffffffffffff
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 0x10]
push edi
mov eax, dword [ecx + 0x24]
mov dword [edi + 0x28], eax
inc dword [ecx + 0x24]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x28]
mov ecx, dword [ecx + 0x20]
call fcn.004b36e0
mov eax, dword [edi + 0x10]
add esp, 4
mov eax, dword [eax + 0x20]
push 0
push 1
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0x14
call fcn.0058d200
mov esi, eax
add esp, 4
test esi, esi
je 0x4c79ed
push 0
push 0x40
xorps xmm0, xmm0
push 1
movups xmmword [esi], xmm0
push 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0x80
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x10
mov dword [esi + 8], 0x4bb2b0
call fcn.0058d200
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x10], 0
push 0x80
push 0
push eax
call fcn.005869c0
add esp, 0xc
mov dword [edi + 0x74], esi
mov eax, edi
pop edi
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x61c4e8
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4c4
push 0x61c504
push 0x61c520
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x4c7e60
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov ebx, ecx
mov dword [esp + 0x10], edx
push edi
lea eax, [esp + 0x1c]
mov ecx, 0x44
push eax
mov edx, dword [ebx - 0xc]
lea eax, [esp + 0x1c]
push eax
call fcn.004ae770
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [edi + 0x10], eax
lea esi, [ebp + 1]
mov dword [edi + 0x14], str.ILibWrapper_WebRTC_DataChannel
push esi
mov dword [edi + 0x3c], ebx
call fcn.0058d200
add esp, 0xc
mov dword [edi + 0x30], eax
test eax, eax
je 0x4c7f4c
push ebp
push dword [esp + 0x18]
mov edx, esi
mov ecx, eax
call fcn.00401000
mov eax, dword [edi + 0x30]
add esp, 8
mov esi, dword [esp + 0x28]
mov byte [eax + ebp], 0
mov word [edi + 0x2c], si
mov dword [edi + 0x34], 0x4a79e0
mov eax, dword [ebx + 0x74]
push 0xffffffffffffffff
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx edx, word [edi + 0x2c]
mov ecx, dword [ebx + 0x74]
push edi
call fcn.004b36e0
mov eax, dword [ebx + 0x74]
add esp, 4
push 0
push 1
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [edi + 0x3c]
mov edx, esi
push ebp
push dword [esp + 0x18]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x28], 0x51
mov dword [edi + 0x1c], 0x4c7e20
mov dword [edi + 0x18], 0x4c5f20
mov dword [edi + 0x20], 0x4c5f90
mov ecx, dword [ebx]
call fcn.004c2280
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4ec
mov edx, 0x620688
xor ecx, ecx
call fcn.004b47e0
add esp, 0xc
push 0x4ec
push str...microstackILibWrapperWebRTC.c
push 0x6206d0
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.00587d2d
int3
Function at 0x4c7f90
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [esp + 0x14]
push ebp
push esi
push edi
push eax
push 0x5f0e24
push 1
xor esi, esi
xor edi, edi
push edi
push 0x5f0e04
mov ebp, edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call ebx
test eax, eax
js 0x4c8099
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x4c8099
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x4c8099
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x4c8099
lea eax, [esp + 0x10]
push eax
push 0x5f0e44
push 1
push edi
push 0x5f0e14
call ebx
test eax, eax
js 0x4c8099
push ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call ebp
mov ebx, eax
test ebx, ebx
je 0x4c8099
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x4c8089
push 0x5f0c3c
call ebp
mov esi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4c8089
mov ecx, dword [esp + 0x10]
push esi
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
test eax, eax
js 0x4c8089
mov eax, dword [esp + 0x14]
push dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
test eax, eax
mov ecx, 1
cmovns edi, ecx
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
test esi, esi
je 0x4c8099
push esi
call ebx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c80a7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4c80b5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4c80c3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4c80d1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4c80df
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4c8720
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x10], eax
lea eax, [esp + 4]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0x30]
mov word [esp + 0x34], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp], eax
test eax, eax
je 0x4c878e
lea eax, [esp]
push eax
push dword [esp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 4]
neg eax
sbb eax, eax
and dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00584a28
add esp, 0x14
ret

Function at 0x4c87a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
push 0x104
lea eax, [esp + 0x44]
mov esi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4c882b
push 0x38
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x3c
push 0
push eax
call fcn.005869c0
add esp, 0xc
mov dword [esp + 0xc], 0
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
mov dword [esp + 0x10], str.runas
push eax
mov dword [esp + 0x1c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.00584a28
add esp, 0x1a8
ret
mov ecx, dword [esp + 0x1a8]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00584a28
add esp, 0x1a8
ret
Function at 0x4c8e80
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x458
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x454], eax
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
xor esi, esi
test edi, edi
je 0x4c8fa6
push 0x400
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4c8f9f
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x6c]
push eax
push esi
push 2
push 0x110
push 0xf01ff
push str.Mesh_Agent_background_service
push str.Mesh_Agent
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4c8f9f
mov esi, dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
lea ecx, [esp + 0x18]
push ecx
push 1
push eax
mov dword [esp + 0x24], str.Remote_monitoring_and_management_service.
call esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 3
push dword [esp + 0x1c]
call esi
lea eax, [esp + 0x40]
mov dword [esp + 0x30], 0
mov dword [esp + 0x30], eax
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
push eax
push 2
push dword [esp + 0x1c]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0xea60
mov dword [esp + 0x54], 1
mov dword [esp + 0x58], 0xea60
mov dword [esp + 0x5c], 1
mov dword [esp + 0x60], 0xea60
mov dword [esp + 0x2c], 0x15180
mov dword [esp + 0x38], 3
call esi
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x45c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret

Function at 0x4c8fc0
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
push 1
xor esi, esi
mov edi, ecx
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4c9034
push 0x10004
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4c902d
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c9026
cmp dword [esp + 0x10], 1
jne 0x4c9021
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4c9026
mov esi, 1
jmp 0x4c9026
mov esi, 2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x20
ret
Function at 0x4c9050
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
push 1
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x4c90b3
push ebx
push 0x10004
push str.Mesh_Agent
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x4c90a6
lea eax, [esp + 0xc]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
push ebx
cmovne esi, dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4c90ab
mov esi, 0x64
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00584a28
add esp, 0x20
ret

Function at 0x4c90d0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push 0x14
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4c9144
push edi
push 0x14
push str.Mesh_Agent
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4c913c
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c9135
cmp dword [esp + 0x10], 1
jne 0x4c9130
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp eax, 1
jne 0x4c9135
mov esi, eax
jmp 0x4c9135
mov esi, 2
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x20
ret

Function at 0x4c9160
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push 0x24
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x4c91df
push edi
push 0x24
push str.Mesh_Agent
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4c91d7
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c91d0
cmp dword [esp + 0x10], 1
je 0x4c91d0
lea eax, [esp + 0xc]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4c91d0
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x20
ret
Function at 0x4c9200
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
push edi
push 0x40
mov edi, 1
mov dword [esp + 0x2c], 0x44
lea eax, [esp + 0x30]
mov ebp, edx
push 0
push eax
mov esi, ecx
lea ebx, [edi + 0x31]
call fcn.005869c0
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x8000000
push edi
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4c9259
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
test ebp, ebp
je 0x4c929a
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [eax]
push 0x64
call esi
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call ebp
cmp dword [esp + 0x14], 0x103
mov edi, eax
jne 0x4c928f
xor edi, edi
jmp 0x4c9293
test edi, edi
jne 0x4c929a
mov eax, ebx
dec ebx
test eax, eax
jg 0x4c9270
push dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x1c]
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
Function at 0x4e62b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00584ea0
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x4e6316
cmp edi, dword [esi]
je 0x4e630d
test ebp, ebp
je 0x4e6390
test ebx, ebx
js 0x4e6390
mov eax, 1
mov dword [esi], edi
jmp 0x4e631c
mov edi, dword [esi]
test edi, edi
je 0x4e6390
test ebp, ebp
je 0x4e64aa
push edi
call fcn.004f8270
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4e6350
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.004e66d0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x4e63ab
push dword [esp + 0x10]
push edi
push dword [esi + 4]
call fcn.004e0310
add esp, 0xc
test eax, eax
je 0x4e6390
push ebx
push ebp
push dword [esi + 4]
call fcn.004e04a0
add esp, 0xc
test eax, eax
je 0x4e6390
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.004e0270
add esp, 0xc
test eax, eax
jne 0x4e63c7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584a28
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x4e6390
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.00586440
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x4e63ea
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.005869c0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4e63f0
push edx
push edi
push dword [esi + 8]
call fcn.004e0310
add esp, 0xc
test eax, eax
je 0x4e6390
push edi
call fcn.004f8270
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.004e04a0
add esp, 0x10
test eax, eax
je 0x4e6390
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x4e6440
push dword [esp + 0x10]
push edi
push dword [esi + 0xc]
call fcn.004e0310
add esp, 0xc
test eax, eax
je 0x4e6390
push edi
call fcn.004f8270
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.004e04a0
add esp, 0x10
test eax, eax
je 0x4e6390
push dword [esi + 8]
push dword [esi + 4]
call fcn.004e04d0
add esp, 8
test eax, eax
je 0x4e6390
mov eax, 1
jmp 0x4e6392
test eax, eax
je 0x4e648a
jmp 0x4e63ee

Function at 0x4e66a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor dl, dl
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x4e66c6
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4e66b6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x4f1fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, ebp
push edi
sub ecx, 4
jb 0x4f2011
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4f2018
add edx, 4
add esi, 4
sub ecx, 4
jae 0x4f2000
xor edi, edi
cmp ecx, 0xfffffffc
je 0x4f2053
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x4f2053
cmp ecx, 0xfffffffd
je 0x4f2053
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x4f2053
cmp ecx, 0xfffffffe
je 0x4f2053
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x4f2053
cmp ecx, 0xffffffff
je 0x4f2053
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x4f206e
push 0x157
push str.cryptox509v3_v3_addr.c
push str.assertion_failed:_memcmp_min__max__length____0
call fcn.004e66d0
add esp, 0xc
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x4f208d
mov esi, edi
mov edx, ebp
sub esi, ebp
nop
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x4f208d
inc ecx
inc edx
cmp ecx, ebx
jl 0x4f2080
lea edx, [ebx - 1]
test edx, edx
js 0x4f20b1
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
nop dword [eax + eax]
cmp byte [eax + esi], 0
jne 0x4f20b1
cmp byte [eax], 0xff
jne 0x4f20b1
dec eax
sub edx, 1
jns 0x4f20a0
cmp ecx, edx
jl case.0x4f20dd.2
jle 0x4f20c3
pop edi
pop esi
pop ebp
lea eax, [ecx*8]
pop ebx
ret
mov bl, byte [ecx + ebp]
mov dh, byte [ecx + edi]
mov dl, bl
xor dl, dh
movzx eax, dl
dec eax
cmp eax, 0x7e
ja case.0x4f20dd.2
movzx eax, byte [eax + 0x4f2150]
jmp dword [eax*4 + 0x4f2130]
mov eax, 7
jmp 0x4f2113
mov eax, 6
jmp 0x4f2113
mov eax, 5
jmp 0x4f2113
mov eax, 4
jmp 0x4f2113
mov eax, 3
jmp 0x4f2113
mov eax, 2
jmp 0x4f2113
mov eax, 1
test dl, dh
jne case.0x4f20dd.2
and bl, dl
cmp bl, dl
jne case.0x4f20dd.2
pop edi
pop esi
pop ebp
lea eax, [eax + ecx*8]
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret