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

Disassembly:
push ecx
test edx, edx
jne 0x4c6539
xor eax, eax
pop ecx
ret
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
cmp esi, 8
jb 0x4c65f7
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 + 0x5f11a8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f11a8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f11a8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f11a8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f11a8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f11a8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f11a8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x5f11a8]
sub edi, 1
jne 0x4c6550
pop edi
test esi, esi
je 0x4c661a
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 + 0x5f11a8]
sub esi, 1
jne 0x4c6600
not eax
pop esi
pop ecx
ret

Function at 0x4c6870
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.0058db11
mov esi, eax
add esp, 4
test esi, esi
je 0x4c68b5
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, 0x627d1c
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x94
push 0x627d40
push 0x627d64
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
int3
Function at 0x4c7f90
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x78
mov ebx, ecx
call fcn.0058db11
mov edi, eax
add esp, 4
test edi, edi
je 0x4c8112
push 0x78
push 0
push edi
call fcn.00587250
add esp, 0xc
mov dword [edi + 0x14], str.ILibWrapper_WebRTC_ConnectionFactory
mov dword [edi + 8], 0x4c7680
mov esi, dword [ebx + 0x2f0]
mov ecx, esi
call fcn.004b3590
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 0x4c7fee
mov dword [ecx + 8], eax
cmp dword [esi + 0xc], 0
mov dword [esi + 0x10], eax
jne 0x4c7ffa
mov dword [esi + 0xc], eax
inc dword [esi + 4]
push ecx
mov ecx, ebx
mov dword [edi + 0xc], ebx
call fcn.004c4230
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x4c802f
mov ecx, dword [ebx + 0x2f0]
mov edx, edi
call fcn.004b36c0
push edi
call fcn.0058c812
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.004c74f0
cmp dword [esp + 0x14], 1
je 0x4c8053
mov edx, dword [edi + 0x34]
lea eax, [edi + 0x38]
mov ecx, dword [edi + 0x1c]
push eax
call fcn.004c41b0
add esp, 4
mov eax, dword [edi + 0x1c]
push 0x14
mov dword [eax + 0x134], 0x4c7a50
mov dword [eax + 0x138], 0x4c7ac0
mov dword [eax + 0x13c], 0x4c7ba0
mov eax, dword [edi + 0x1c]
mov dword [eax + 0x1a8], 0x4c7c70
mov dword [eax + 0x1ac], 0x4c7bf0
mov dword [eax + 0x1b0], 0x4c7e10
mov dword [eax + 0x1a4], fcn.00403f00
call fcn.0058db11
mov esi, eax
add esp, 4
test esi, esi
je 0x4c8153
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], 0x4bbb50
call fcn.0058db11
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x10], 0
push 0x80
push 0
push eax
call fcn.00587250
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, 0x6280fc
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x351
push 0x628120
push 0x628144
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xfe
push 0x4c4
mov edx, 0x624148
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x4c4
push 0x624164
push 0x624180
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
int3
Function at 0x4c81a0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
push 0
push 0x10
push 0xbc
mov esi, ecx
call fcn.0058db11
add esp, 4
mov edx, 0x8c
mov ecx, eax
call fcn.004aec40
mov edi, eax
add esp, 8
mov dword [edi + 0x7c], 0x4a7ad0
mov dword [edi + 0x80], 0x4a7c30
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.004b3e80
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.0058db11
mov esi, eax
add esp, 4
test esi, esi
je 0x4c828d
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], 0x4bbb50
call fcn.0058db11
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x10], 0
push 0x80
push 0
push eax
call fcn.00587250
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, 0x624148
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x4c4
push 0x624164
push 0x624180
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
int3
Function at 0x4c8700
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.004aeee0
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.0058db11
add esp, 0xc
mov dword [edi + 0x30], eax
test eax, eax
je 0x4c87ec
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], 0x4a7f60
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.004b3e80
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], 0x4c86c0
mov dword [edi + 0x18], 0x4c67c0
mov dword [edi + 0x20], 0x4c6830
mov ecx, dword [ebx]
call fcn.004c2b20
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, 0x628300
xor ecx, ecx
call fcn.004b4f80
add esp, 0xc
push 0x4ec
push str...microstackILibWrapperWebRTC.c
push 0x628348
call fcn.004010e0
add esp, 0xc
push 0xfe
call fcn.005885bd
int3
Function at 0x4c8830
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 0x5f1e24
push 1
xor esi, esi
xor edi, edi
push edi
push 0x5f1e04
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 0x4c8939
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 0x4c8939
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 0x4c8939
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 0x4c8939
lea eax, [esp + 0x10]
push eax
push 0x5f1e44
push 1
push edi
push 0x5f1e14
call ebx
test eax, eax
js 0x4c8939
push ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
call ebp
mov ebx, eax
test ebx, ebx
je 0x4c8939
mov eax, dword [esp + 0x10]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
test eax, eax
js 0x4c8929
push 0x5f1c3c
call ebp
mov esi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x4c8929
mov ecx, dword [esp + 0x10]
push esi
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
test eax, eax
js 0x4c8929
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 0x4c8939
push esi
call ebx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4c8947
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4c8955
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4c8963
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4c8971
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [esp + 0x20]
test edx, edx
je 0x4c897f
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 0x4c8fd0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x6019e4]
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 0x4c903e
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.005852a8
add esp, 0x14
ret

Function at 0x4c9050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x6019e4]
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 0x4c90db
push 0x38
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x3c
push 0
push eax
call fcn.00587250
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.005852a8
add esp, 0x1a8
ret
mov ecx, dword [esp + 0x1a8]
xor eax, eax
pop esi
xor ecx, esp
call fcn.005852a8
add esp, 0x1a8
ret
Function at 0x4c9730
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x458
mov eax, dword [0x6019e4]
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 0x4c9856
push 0x400
lea eax, [esp + 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4c984f
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 0x4c984f
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.005852a8
mov esp, ebp
pop ebp
ret

Function at 0x4c9870
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x6019e4]
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 0x4c98e4
push 0x10004
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4c98dd
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c98d6
cmp dword [esp + 0x10], 1
jne 0x4c98d1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4c98d6
mov esi, 1
jmp 0x4c98d6
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.005852a8
add esp, 0x20
ret
Function at 0x4c9900
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x6019e4]
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 0x4c9963
push ebx
push 0x10004
push str.Mesh_Agent
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x4c9956
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 0x4c995b
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.005852a8
add esp, 0x20
ret

Function at 0x4c9980
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x6019e4]
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 0x4c99f4
push edi
push 0x14
push str.Mesh_Agent
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4c99ec
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c99e5
cmp dword [esp + 0x10], 1
jne 0x4c99e0
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp eax, 1
jne 0x4c99e5
mov esi, eax
jmp 0x4c99e5
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.005852a8
add esp, 0x20
ret

Function at 0x4c9a10
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x20
mov eax, dword [0x6019e4]
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 0x4c9a8f
push edi
push 0x24
push str.Mesh_Agent
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x4c9a87
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4c9a80
cmp dword [esp + 0x10], 1
je 0x4c9a80
lea eax, [esp + 0xc]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4c9a80
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.005852a8
add esp, 0x20
ret
Function at 0x4c9ab0
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.00587250
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 0x4c9b09
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
test ebp, ebp
je 0x4c9b4a
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 0x4c9b3f
xor edi, edi
jmp 0x4c9b43
test edi, edi
jne 0x4c9b4a
mov eax, ebx
dec ebx
test eax, eax
jg 0x4c9b20
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 0x4e6bd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00585720
mov eax, dword [0x6019e4]
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 0x4e6c36
cmp edi, dword [esi]
je 0x4e6c2d
test ebp, ebp
je 0x4e6cb0
test ebx, ebx
js 0x4e6cb0
mov eax, 1
mov dword [esi], edi
jmp 0x4e6c3c
mov edi, dword [esi]
test edi, edi
je 0x4e6cb0
test ebp, ebp
je 0x4e6dca
push edi
call fcn.004e52e0
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4e6c70
push 0x28
push str.cryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.004e7000
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x4e6ccb
push dword [esp + 0x10]
push edi
push dword [esi + 4]
call fcn.004e0be0
add esp, 0xc
test eax, eax
je 0x4e6cb0
push ebx
push ebp
push dword [esi + 4]
call fcn.004e0d70
add esp, 0xc
test eax, eax
je 0x4e6cb0
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.004e0b40
add esp, 0xc
test eax, eax
jne 0x4e6ce7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005852a8
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x4e6cb0
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.00586cd0
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x4e6d0a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.00587250
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 0x4e6d10
push edx
push edi
push dword [esi + 8]
call fcn.004e0be0
add esp, 0xc
test eax, eax
je 0x4e6cb0
push edi
call fcn.004e52e0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.004e0d70
add esp, 0x10
test eax, eax
je 0x4e6cb0
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 0x4e6d60
push dword [esp + 0x10]
push edi
push dword [esi + 0xc]
call fcn.004e0be0
add esp, 0xc
test eax, eax
je 0x4e6cb0
push edi
call fcn.004e52e0
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.004e0d70
add esp, 0x10
test eax, eax
je 0x4e6cb0
push dword [esi + 8]
push dword [esi + 4]
call fcn.004e0da0
add esp, 8
test eax, eax
je 0x4e6cb0
mov eax, 1
jmp 0x4e6cb2
test eax, eax
je 0x4e6daa
jmp 0x4e6d0e

Function at 0x4e6fc0
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 0x4e6fe6
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x4e6fd6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x4f2960
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 0x4f2991
nop dword [eax]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4f2998
add edx, 4
add esi, 4
sub ecx, 4
jae 0x4f2980
xor edi, edi
cmp ecx, 0xfffffffc
je 0x4f29d3
movzx edi, byte [edx]
movzx eax, byte [esi]
sub edi, eax
jne 0x4f29d3
cmp ecx, 0xfffffffd
je 0x4f29d3
movzx edi, byte [edx + 1]
movzx eax, byte [esi + 1]
sub edi, eax
jne 0x4f29d3
cmp ecx, 0xfffffffe
je 0x4f29d3
movzx edi, byte [edx + 2]
movzx eax, byte [esi + 2]
sub edi, eax
jne 0x4f29d3
cmp ecx, 0xffffffff
je 0x4f29d3
movzx edi, byte [edx + 3]
movzx eax, byte [esi + 3]
sub edi, eax
test edi, edi
jle 0x4f29ee
push 0x157
push str.cryptox509v3_v3_addr.c
push str.assertion_failed:_memcmp_min__max__length____0
call fcn.004e7000
add esp, 0xc
mov edi, dword [esp + 0x14]
xor ecx, ecx
test ebx, ebx
jle 0x4f2a0d
mov esi, edi
mov edx, ebp
sub esi, ebp
nop
mov al, byte [esi + edx]
cmp al, byte [edx]
jne 0x4f2a0d
inc ecx
inc edx
cmp ecx, ebx
jl 0x4f2a00
lea edx, [ebx - 1]
test edx, edx
js 0x4f2a31
mov esi, edi
lea eax, [edx + ebp]
sub esi, ebp
nop dword [eax + eax]
cmp byte [eax + esi], 0
jne 0x4f2a31
cmp byte [eax], 0xff
jne 0x4f2a31
dec eax
sub edx, 1
jns 0x4f2a20
cmp ecx, edx
jl case.0x4f2a5d.2
jle 0x4f2a43
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.0x4f2a5d.2
movzx eax, byte [eax + 0x4f2ad0]
jmp dword [eax*4 + 0x4f2ab0]
mov eax, 7
jmp 0x4f2a93
mov eax, 6
jmp 0x4f2a93
mov eax, 5
jmp 0x4f2a93
mov eax, 4
jmp 0x4f2a93
mov eax, 3
jmp 0x4f2a93
mov eax, 2
jmp 0x4f2a93
mov eax, 1
test dl, dh
jne case.0x4f2a5d.2
and bl, dl
cmp bl, dl
jne case.0x4f2a5d.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