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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x1c], ecx
mov ebp, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], esi
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov esi, dword [esi + 0x10]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x34]
test esi, esi
je 0x45b108
mov esi, dword [ebx + 0x34]
mov ebx, dword [ebx + 4]
mov dword [esp + 4], ebp
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp], esi
mov dword [esp + 0x14], ebx
lea esi, [esi]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp]
mov edi, eax
bswap edi
mov dword [ebp + esi], edi
mov edi, dword [esp + 0xc]
add edi, eax
add eax, edx
add edx, ecx
add ecx, dword [esp + 4]
mov ebx, edi
shr ebx, 8
mov esi, ebx
mov ebx, edi
movzx edi, bl
mov ebx, esi
mov esi, dword [esp + 0x14]
xor ebx, dword [esi + edi*4]
mov edi, ecx
movzx ecx, cl
shr edi, 8
xor edi, dword [esi + ecx*4]
mov dword [esp + 0xc], ebx
mov ecx, edi
mov edi, edx
movzx edx, dl
shr edi, 8
xor edi, dword [esi + edx*4]
mov edx, dword [esp]
mov dword [esp + 8], edi
mov edi, eax
movzx eax, al
shr edi, 8
xor edi, dword [esi + eax*4]
add dword [esp], 8
mov eax, edi
bswap eax
mov dword [ebp + edx + 4], eax
mov ebp, dword [esp + 4]
lea edx, [ebx + ecx]
mov eax, dword [esp + 8]
add ebp, edi
add eax, edi
mov edi, dword [esp + 8]
mov ebx, ebp
add edi, ecx
mov ecx, ebp
movzx ebp, bl
shr ecx, 8
xor ecx, dword [esi + ebp*4]
mov ebx, edi
mov dword [esp + 4], ecx
mov ecx, edx
movzx edx, dl
shr ecx, 8
xor ecx, dword [esi + edx*4]
mov edx, edi
movzx edi, bl
shr edx, 8
xor edx, dword [esi + edi*4]
mov edi, eax
movzx eax, al
shr edi, 8
xor edi, dword [esi + eax*4]
mov esi, dword [esp]
mov eax, edi
cmp dword [esp + 0x34], esi
jne 0x45b040
mov ebp, dword [esp + 4]
mov esi, dword [esp + 0x18]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov esi, dword [esp + 0xc]
mov dword [eax + 0x10], esi
mov eax, dword [esp + 0x1c]
mov dword [eax + 0x44], 0
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x45d540
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov ecx, dword [ecx + 0x2c]
mov esi, dword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebp, dword [ebx + 0x40]
cmp eax, 7
jbe 0x45d6c0
lea edx, [eax - 8]
mov dword [esp + 0x18], eax
shr edx, 3
lea edx, [edx*8 + 8]
lea edi, [esi + edx]
mov ecx, edi
mov edi, ebp
lea esi, [esi]
mov eax, dword [esi]
add esi, 8
xor dword [edi], eax
mov eax, dword [esi - 4]
xor dword [edi + 4], eax
add edi, 8
cmp esi, ecx
jne 0x45d580
lea edi, [edx + ebp]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
and eax, 7
test eax, eax
je 0x45d614
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
lea esi, [ecx + 4]
lea edi, [ebp + 4]
cmp ebp, esi
setae dl
cmp ecx, edi
mov esi, edx
setae dl
mov edi, edx
or esi, edi
lea edi, [eax - 1]
cmp edi, 2
seta dl
mov edi, edx
mov edx, esi
mov ecx, edi
test dl, cl
je 0x45d654
mov ecx, dword [esp + 0x18]
mov esi, ebp
or esi, ecx
and esi, 3
jne 0x45d654
mov esi, dword [ebp]
xor dword [ecx], esi
cmp eax, 4
je 0x45d611
movzx edx, byte [ebp + 4]
xor byte [ecx + 4], dl
cmp eax, 5
je 0x45d611
movzx edx, byte [ebp + 5]
xor byte [ecx + 5], dl
cmp eax, 6
je 0x45d611
movzx eax, byte [ebp + 6]
xor byte [ecx + 6], al
mov ebp, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x2c]
mov eax, dword [ecx]
mov dword [esp + 4], ebp
mov dword [esp], ebp
mov dword [esp + 8], 1
call dword [eax + 0x20]
mov ecx, dword [ebx + 0x2c]
sub esp, 0xc
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], eax
call fcn.0045d010
sub esp, 8
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
movzx ecx, byte [edi]
xor byte [esi], cl
cmp eax, 1
je 0x45d611
movzx edx, byte [edi + 1]
xor byte [esi + 1], dl
cmp eax, 2
je 0x45d611
movzx ecx, byte [edi + 2]
xor byte [esi + 2], cl
cmp eax, 3
je 0x45d611
movzx edx, byte [edi + 3]
xor byte [esi + 3], dl
cmp eax, 4
je 0x45d611
movzx ecx, byte [edi + 4]
xor byte [esi + 4], cl
cmp eax, 5
je 0x45d611
movzx edx, byte [edi + 5]
xor byte [esi + 5], dl
cmp eax, 6
je 0x45d611
movzx eax, byte [edi + 6]
xor byte [esi + 6], al
jmp 0x45d611
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebp
jmp 0x45d5a6
Function at 0x468530
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
sub eax, 1
cmp eax, 0x36
ja 0x468667
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4686ea
cmp dword [ebp + 0x14], 0x12
ja 0x4686b5
mov eax, dword [ecx]
mov ebx, ecx
mov eax, dword [eax]
cmp eax, 0x40f8e0
jne 0x468660
mov ecx, dword [ecx + 0x14]
mov eax, dword [0x6afd60]
mov esi, 0x6afd60
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6afda4]
and edi, 0xfffffffc
mov dword [ecx + 0x44], eax
sub ecx, edi
mov eax, dword [0x6aed60]
sub esi, ecx
add ecx, 0x48
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov esi, 0x6aed60
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
lea edi, [ecx + 4]
mov eax, dword [0x6afd5c]
and edi, 0xfffffffc
mov dword [ecx + 0xffc], eax
sub ecx, edi
sub esi, ecx
add ecx, 0x1000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebp - 0x30], 0
lea esi, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov edi, 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], 0
mov dword [esp], eax
call fcn.0044f290
movzx ecx, byte [ebp + 0x14]
sub esp, 0xc
shl edi, cl
mov dword [ebp - 0x3c], edi
xor edi, edi
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov ecx, ebx
add edi, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0044f290
mov eax, dword [ebp + 0x10]
mov ecx, ebx
sub esp, 0xc
mov dword [esp + 8], esi
mov dword [esp + 4], 0x10
mov dword [esp], eax
call fcn.0044f290
sub esp, 0xc
cmp dword [ebp - 0x3c], edi
jne 0x468613
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call eax
jmp 0x4685c6
mov dword [esp], 8
lea esi, [ebp - 0x30]
call fcn.00641770
mov dword [esp], str.EKSBlowfish
mov ecx, esi
mov edi, eax
call fcn.00433440
push eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0058ee10
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
push esi
push esi
cmp eax, edx
je 0x645ce4
mov dword [esp], eax
call fcn.00641620
jmp 0x645ce4
mov dword [esp], 8
call fcn.00641770
mov dword [esp], str.Requested_Bcrypt_work_factor_too_large
mov ecx, eax
mov ebx, eax
call fcn.00609060
push eax
mov dword [esp + 8], fcn.00609110
mov dword [esp + 4], 0x700128
mov dword [esp], ebx
call fcn.00641e60
mov dword [esp], 8
call fcn.00641770
mov dword [esp], str.Bcrypt_work_factor_must_be_at_least_1
mov ecx, eax
mov ebx, eax
call fcn.00609060
push edx
mov dword [esp + 8], fcn.00609110
mov dword [esp + 4], 0x700128
mov dword [esp], ebx
call fcn.00641e60
mov ebx, eax
jmp 0x645cfc
Function at 0x47f6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, ecx
sub esp, 0x20
mov edx, dword [ecx + 0x44]
test edx, edx
je 0x47f6e2
mov edx, dword [ecx + 0x40]
add byte [edx], 1
jne 0x47f6e2
xor edx, edx
jmp 0x47f6da
mov ecx, dword [ebx + 0x40]
add ecx, edx
add byte [ecx], 1
jne 0x47f6e2
add edx, 1
cmp edx, dword [ebx + 0x44]
jne 0x47f6d0
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0x18], 2
lea esi, [ebp - 0x18]
mov eax, dword [ecx]
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x44]
sub esp, 8
mov eax, dword [ecx]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x40]
mov dword [esp], edx
call dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, esi
sub esp, 8
mov dword [esp], eax
call fcn.0058fb50
mov eax, dword [ebp - 0x14]
xor ecx, ecx
sub esp, 4
test eax, eax
je 0x47f74b
mov eax, ecx
xor edx, edx
div dword [ebx + 0x34]
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + ecx]
add ecx, 1
add edx, dword [ebx + 0x30]
xor byte [edx], al
cmp ecx, dword [ebp - 0x14]
jne 0x47f730
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x30]
mov edx, dword [ecx]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], eax
call dword [edx + 0x20]
mov eax, dword [ebx + 0x40]
xor edx, edx
sub esp, 0xc
movzx eax, byte [eax]
div dword [ebx + 4]
test edx, edx
jne 0x47f77e
mov ecx, ebx
call fcn.0047f3a0
mov ecx, esi
call fcn.00586a90
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4fe8b0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x1c
mov eax, dword [ecx + 0x70]
cmp eax, 2
je 0x4fe905
cmp eax, 3
je 0x4fe8f0
cmp eax, 1
jne 0x4fe901
mov dword [ecx + 0x74], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 1
call fcn.00545d80
sub esp, 0xc
add esp, 0x1c
ret
mov eax, dword [ecx + 0x74]
cmp eax, 1
je 0x4fe943
cmp eax, 3
je 0x4fe980
add esp, 0x1c
ret
mov eax, dword [ecx + 0x74]
cmp eax, 1
je 0x4fe943
cmp eax, 3
je 0x4fe950
cmp eax, 2
je 0x4fe960
test eax, eax
jne 0x4fe901
mov dword [ecx + 0x74], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 2
call fcn.00545d80
sub esp, 0xc
jmp 0x4fe901
mov dword [ecx + 0x74], 3
add esp, 0x1c
jmp fcn.004fe9b0
mov dword [ecx + 0x74], 2
add esp, 0x1c
jmp fcn.004fd460
mov dword [ecx + 0x74], 0
mov dword [esp], 0
call fcn.004ff7e0
sub esp, 4
jmp 0x4fe901
mov dword [ecx + 0x74], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], 3
call fcn.00545d80
sub esp, 0xc
jmp 0x4fe901
Function at 0x50f650
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x10], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
je 0x50f715
mov eax, dword [ebp - 0x10]
lea esi, [ebp - 0xc]
mov dword [esp + 8], 0xffffffff
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, dword [ebp - 0xc]
sub esp, 4
mov dword [ebx], eax
mov eax, dword [sym.imp.Qt5Core.dll_QArrayData::shared_null]
mov dword [ebp - 0xc], eax
mov edx, dword [eax]
test edx, edx
je 0x50f6f0
cmp edx, 0xffffffff
je 0x50f6e0
lock sub dword [eax], 1
je 0x50f6f0
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0x6b4660
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x50fcb0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], 0x6b4660
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 5
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x50fd65
lea eax, [ebp - 0xc]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebx], edx
mov edx, dword [eax]
test edx, edx
je 0x50fd46
cmp edx, 0xffffffff
je 0x50fd62
lock sub dword [eax], 1
jne 0x50fd62
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call sub.WTSAPI32.dll_WTSFreeMemory
sub esp, 4
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
Function at 0x52bbc0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov eax, 0x100
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x40]
mov ecx, ebx
sub esp, 0x60
mov esi, dword [ebp + 8]
mov word [ebp - 0xc], ax
mov dword [ebp - 0x3c], 0xff80
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x414b4320
mov dword [ebp - 0x2c], 0x41414141
mov dword [ebp - 0x28], 0x41414141
mov dword [ebp - 0x24], 0x41414141
mov dword [ebp - 0x20], 0x41414141
mov dword [ebp - 0x1c], 0x41414141
mov dword [ebp - 0x18], 0x41414141
mov dword [ebp - 0x14], 0x41414141
mov dword [ebp - 0x10], 0x21000041
mov dword [esp], esi
call dword [method.QHostAddress.QHostAddress_QString_const_]
lea eax, [ebp - 0x3c]
mov ecx, 0x795374
sub esp, 4
mov dword [esp + 0x10], 0x89
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0x32
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [method.QUdpSocket.writeDatagram_char_const__long_long__QHostAddress_const__unsigned_short_]
sub esp, 0x14
mov ecx, ebx
call dword [method.QHostAddress.QHostAddress__]
mov eax, dword [0x795380]
mov dword [esp], esi
mov dword [esp + 8], str.1nameLookup_QHostInfo_
mov dword [esp + 4], eax
call dword [method.QHostInfo.lookupHost_QString_const__QObject__char_const_]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x538680
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x538844
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
lea edi, [ebp - 0x2c]
xor edx, edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
mov eax, dword [eax]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x2c], dx
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0061b160
mov eax, dword [ebp + 8]
sub esp, 8
mov edx, dword [ebp - 0x34]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x53872c
add eax, dword [eax + 0xc]
je 0x538710
add ecx, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], 0
lea ecx, [ebp - 0x34]
mov dword [esp], eax
call fcn.0061b160
mov edx, dword [ebp - 0x34]
sub esp, 8
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
sub esp, 0xc
cmp eax, edi
je 0x538756
mov dword [esp], eax
call fcn.00641620
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x5388c0
cmp ebx, 1
je 0x538860
test ebx, ebx
je 0x538890
cmp ebx, 2
je 0x538824
cmp ebx, 3
je 0x5387b0
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x3c]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp], esi
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
sub esp, 0x2c
test eax, eax
jne 0x538780
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x538783
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
sub esp, 8
test eax, eax
jne 0x538780
jmp 0x538817
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [ebp - 0xc]
mov edi, eax
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
ret
lea eax, [ebp - 0x34]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
sub esp, 0xc
test eax, eax
jne 0x538780
jmp 0x538817
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
sub esp, 0xc
test eax, eax
jne 0x538780
jmp 0x538817
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
jmp 0x53879c
Function at 0x538db0
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov edx, dword [ebx]
mov dword [ebp - 0x30], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x538f23
lea edi, [ebp - 0x30]
mov dword [esp + 4], 1
mov dword [esp], edi
call fcn.00538680
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x538f05
cmp edx, 0xffffffff
je 0x538e01
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
je 0x538f05
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x538f30
lea eax, [ebp - 0x28]
mov ecx, edi
mov dword [esp + 4], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebx]
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.0061b160
mov eax, dword [ebx]
sub esp, 8
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax + 4]
test ebx, ebx
jne 0x538ed0
mov dword [esp + 8], 0xf01ff
mov dword [esp + 4], edx
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub esp, 0xc
cmp eax, ecx
je 0x538e90
mov dword [esp], eax
call fcn.00641620
test ebx, ebx
je 0x538f40
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
sub esp, 4
test eax, eax
setne al
mov dword [esp], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call ebx
sub esp, 4
mov dword [esp], esi
call ebx
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, dword [eax + 0xc]
je 0x538ee8
lea ecx, [ebx + ebx]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov ecx, edi
mov dword [esp], ebx
call fcn.0061b160
sub esp, 8
mov edx, dword [ebp - 0x30]
jmp 0x538e64
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
jmp 0x538e01
lock add dword [edx], 1
jmp 0x538dcf
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x538f70
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov edi, dword [ebp + 8]
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
je 0x5390d2
mov dword [esp + 4], 0
mov ebx, eax
mov eax, dword [edi]
lea esi, [ebp - 0x28]
xor edx, edx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x28], dx
mov dword [esp], eax
call fcn.0061b160
mov eax, dword [edi]
sub esp, 8
mov edx, dword [ebp - 0x30]
mov edi, dword [eax + 4]
test edi, edi
je 0x539011
add eax, dword [eax + 0xc]
je 0x538ff8
lea ecx, [edi + edi]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
lea ecx, [ebp - 0x30]
mov dword [esp], edi
call fcn.0061b160
mov edx, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov eax, dword [ebp - 0x30]
sub esp, 0xc
cmp eax, esi
je 0x53903a
mov dword [esp], eax
call fcn.00641620
test edi, edi
je 0x5390e5
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], 0xea60
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0xea60
mov dword [ebp - 0x44], 0x15180
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x38], 3
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 0xc
mov dword [ebp - 0x4c], eax
mov dword [esp], edi
call esi
sub esp, 4
mov dword [esp], ebx
call esi
mov eax, dword [ebp - 0x4c]
sub esp, 4
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
test esi, esi
setne al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x539840
Capabilities:
Get file version info

Disassembly:
push edi
xor eax, eax
push esi
mov esi, ecx
mov ecx, 0x200
push ebx
sub esp, 0x820
lea ebx, [esp + 0x20]
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x830]
mov eax, dword [eax]
mov edx, eax
add edx, dword [eax + 0xc]
je 0x53987f
mov eax, dword [eax + 4]
mov dword [esp + 4], edx
mov dword [esp], ebx
add eax, eax
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
lea eax, [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
sub esp, 8
xor eax, eax
test edi, edi
jne 0x5398b0
add esp, 0x820
pop ebx
pop esi
pop edi
ret 4
mov dword [esp], edi
call fcn.00641640
mov dword [esp + 8], edi
mov dword [esi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
sub esp, 0x10
test eax, eax
je 0x539920
lea eax, [esp + 0x18]
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp], eax
call sub.VERSION.dll_VerQueryValueW
sub esp, 0x10
test eax, eax
je 0x539920
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
rol eax, 0x10
mov dword [esi + 4], eax
add esp, 0x820
mov eax, 1
pop ebx
pop esi
pop edi
ret 4
mov eax, dword [esi]
test eax, eax
je 0x53992e
mov dword [esp], eax
call fcn.00641610
mov dword [esi], 0
xor eax, eax
mov dword [esi + 4], 0
add esp, 0x820
pop ebx
pop esi
pop edi
ret 4

Function at 0x53a6c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x13c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
sub esp, 4
cmp dword [esp + 0x20], 5
seta al
add esp, 0x13c
ret