joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x2c
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
mov esi, dword [edi + 0x3c]
cmp esi, dword [ecx + 0x3c]
je 0x460775
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 4
test esi, esi
mov edx, dword [edi + 0x38]
mov eax, dword [ecx + 0x38]
je 0x4607aa
add esi, eax
mov ebx, 1
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [edx]
cmp byte [eax], cl
sete cl
add eax, 1
add edx, 1
mov ebp, ecx
and ebx, ebp
cmp esi, eax
jne 0x460790
test bl, bl
je 0x460769
mov esi, dword [esp + 0x18]
lea eax, [edi + 4]
mov dword [esp + 4], eax
lea eax, [esi + 4]
mov dword [esp], eax
call fcn.0044a650
test al, al
mov ebx, eax
je 0x460769
movzx eax, byte [edi + 0x9c]
cmp byte [esi + 0x9c], al
je 0x4607e3
xor ebx, ebx
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov eax, dword [edi + 0x98]
cmp dword [esi + 0x98], eax
jne 0x4607d5
mov ebp, dword [esi + 0x90]
lea eax, [esi + 0x88]
mov ecx, dword [edi + 0x90]
mov dword [esp + 0x1c], eax
cmp eax, ebp
je 0x4608ad
mov eax, dword [ecx + 0x14]
cmp eax, dword [ebp + 0x14]
jne 0x4607d5
mov esi, esi
lea edi, [edi]
test eax, eax
je 0x460846
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
mov ecx, dword [esp + 0x18]
jne 0x4607d5
mov eax, dword [ebp + 0x2c]
cmp eax, dword [ecx + 0x2c]
jne 0x4607d5
test eax, eax
je 0x460878
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
mov ecx, dword [esp + 0x18]
jne 0x4607d5
mov dword [esp], ebp
mov dword [esp + 0x18], ecx
call fcn.0062fa30
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov dword [esp], ecx
call fcn.0062fa30
cmp dword [esp + 0x1c], ebp
mov ecx, eax
je 0x4608ad
mov eax, dword [ebp + 0x14]
cmp eax, dword [ecx + 0x14]
je 0x460820
xor ebx, ebx
jmp 0x4607d7
mov eax, dword [edi + 0x80]
cmp dword [esi + 0x80], eax
jne 0x4607d5
lea ebp, [esi + 0x70]
mov esi, dword [esi + 0x78]
mov edi, dword [edi + 0x78]
cmp ebp, esi
jne 0x460909
jmp 0x460769
lea eax, [edi + 0x28]
mov dword [esp + 4], eax
lea eax, [esi + 0x28]
mov dword [esp], eax
call fcn.00633540
test al, al
mov ebx, eax
je 0x460769
mov dword [esp], esi
call fcn.0062fa30
mov dword [esp], edi
mov esi, eax
call fcn.0062fa30
cmp ebp, esi
mov edi, eax
je 0x460769
lea eax, [edi + 0x10]
mov dword [esp + 4], eax
lea eax, [esi + 0x10]
mov dword [esp], eax
call fcn.00633540
test al, al
mov ebx, eax
jne 0x4608d1
jmp 0x460769
Function at 0x47c0a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
sub esp, 0x34
mov edx, dword [ecx + 0x44]
test edx, edx
je 0x47c0d2
mov edx, dword [ecx + 0x40]
add byte [edx], 1
jne 0x47c0d2
xor edx, edx
jmp 0x47c0ca
mov ecx, dword [ebx + 0x40]
add ecx, edx
add byte [ecx], 1
jne 0x47c0d2
add edx, 1
cmp edx, dword [ebx + 0x44]
jne 0x47c0c0
mov ecx, dword [ebx + 0x10]
mov byte [ebp - 0x19], 2
lea edx, [ebp - 0x19]
mov eax, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], 1
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]
sub esp, 8
lea ecx, [ebp - 0x18]
mov dword [esp], eax
call fcn.00587a00
mov eax, dword [ebp - 0x14]
sub esp, 4
xor ecx, ecx
test eax, eax
je 0x47c13c
mov eax, ecx
xor edx, edx
div dword [ebx + 0x34]
mov eax, dword [ebp - 0x18]
add edx, dword [ebx + 0x30]
movzx eax, byte [eax + ecx]
add ecx, 1
xor byte [edx], al
cmp ecx, dword [ebp - 0x14]
jne 0x47c121
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 0x47c16f
mov ecx, ebx
call fcn.0047be40
lea ecx, [ebp - 0x18]
call fcn.0057ea00
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4aa6c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x60]
push ebx
lea ebx, [ebp - 0x38]
sub esp, 0x8c
mov dword [ebp - 0x6c], ecx
mov ecx, edi
mov dword [ebp - 0x52], 0x7473616d
mov dword [ebp - 0x4e], 0x73207265
mov dword [ebp - 0x4a], 0x65726365
mov byte [ebp - 0x46], 0x74
mov dword [ebp - 0x45], 0x2079656b
mov dword [ebp - 0x41], 0x61707865
mov dword [ebp - 0x3d], 0x6f69736e
mov byte [ebp - 0x39], 0x6e
call fcn.004aa500
mov dword [esp], 0
mov ecx, ebx
call fcn.0057f2d0
lea esi, [ebp - 0x28]
sub esp, 4
lea eax, [ebp - 0x52]
mov dword [esp], ebx
mov dword [ebp - 0x24], 0xd
mov dword [esp + 4], esi
mov dword [ebp - 0x28], eax
call fcn.005901e0
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00590190
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00590190
mov eax, dword [ebp - 0x34]
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [esp + 4], 0x30
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0048b6c0
mov ecx, dword [ebp + 8]
sub esp, 0x18
mov dword [esp], esi
call fcn.00458280
sub esp, 4
mov ecx, esi
call fcn.0057ea00
mov dword [esp], 0
mov ecx, ebx
call fcn.0057e8f0
sub esp, 4
lea eax, [ebp - 0x45]
mov dword [ebp - 0x24], 0xd
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x28], eax
call fcn.005901e0
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00590190
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00590190
mov eax, dword [ebp - 0x34]
mov ecx, esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], edi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call fcn.0048b6c0
mov ecx, dword [ebp - 0x6c]
sub esp, 0x18
mov dword [esp], esi
call fcn.0057dea0
sub esp, 4
mov ecx, esi
call fcn.0057ea00
mov ecx, ebx
call fcn.0057ea00
mov ecx, edi
call fcn.0040cf40
mov eax, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
Function at 0x4aa880
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x6c], ecx
cmp eax, 0x300
je 0x4aa9c0
sub eax, 0x301
cmp eax, 1
ja 0x4aaa55
lea edi, [ebp - 0x64]
mov ecx, 0x6568
lea esi, [ebp - 0x38]
mov word [ebp - 0x4b], cx
mov ebx, 0x6568
mov dword [ebp - 0x57], 0x65696c63
mov ecx, edi
mov dword [ebp - 0x53], 0x6620746e
mov dword [ebp - 0x4f], 0x73696e69
mov byte [ebp - 0x49], 0x64
mov dword [ebp - 0x48], 0x76726573
mov dword [ebp - 0x44], 0x66207265
mov dword [ebp - 0x40], 0x73696e69
mov word [ebp - 0x3c], bx
mov byte [ebp - 0x3a], 0x64
call fcn.004aa500
mov dword [esp], 0
mov ecx, esi
call fcn.0057f2d0
mov edx, dword [ebp + 0x14]
sub esp, 4
lea eax, [ebp - 0x57]
test edx, edx
jne 0x4aa9b0
lea ebx, [ebp - 0x28]
mov dword [esp], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0xf
mov dword [esp + 4], ebx
call fcn.005901e0
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [esp], eax
call fcn.004a4190
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00590190
mov ecx, ebx
call fcn.0057ea00
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], 0xc
mov dword [esp], edi
mov dword [esp + 8], eax
call fcn.0048b6c0
sub esp, 0x18
mov ecx, esi
call fcn.0057ea00
mov ecx, edi
call fcn.0040cf40
mov eax, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea eax, [ebp - 0x48]
jmp 0x4aa91b
lea ebx, [ebp - 0x28]
mov dword [esp], 0
mov dword [ebp - 0x64], 0x544e4c43
mov dword [ebp - 0x57], 0x52565253
mov ecx, ebx
call fcn.0057f2d0
mov esi, dword [ebp + 0x14]
sub esp, 4
test esi, esi
je 0x4aaa34
lea eax, [ebp - 0x57]
mov dword [ebp - 0x34], 4
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.005901e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x6c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004a4ed0
sub esp, 8
mov ecx, ebx
call fcn.0057ea00
mov eax, dword [ebp - 0x6c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
lea eax, [ebp - 0x64]
mov dword [ebp - 0x44], 4
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.005901e0
jmp 0x4aaa08
mov dword [esp], 8
call fcn.0063e390
mov dword [esp], str.Finished_message:_Unknown_protocol_version
mov ecx, eax
mov ebx, eax
call fcn.00601ac0
push eax
mov dword [esp + 8], fcn.00601b70
mov dword [esp + 4], 0x6d7aa4
mov dword [esp], ebx
call fcn.0063eb20
mov esi, eax
mov ecx, ebx
call fcn.0057ea00
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov ebx, eax
mov ecx, esi
call fcn.0057ea00
mov ecx, edi
call fcn.0040cf40
mov dword [esp], ebx
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov ebx, eax
jmp 0x4aaaa4
Function at 0x514880
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 + 8], 0xa
mov dword [esp], 0
mov dword [ebp - 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
je 0x514935
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 0x514913
cmp edx, 0xffffffff
je 0x51495a
lock sub dword [eax], 1
mov eax, dword [ebp - 0xc]
jne 0x51495a
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
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], 0x68c900
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 0x514df0
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], 0x68c900
call dword [method.QString.fromAscii_helper_char_const__int_]
mov dword [ebx], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], 5
mov dword [esp], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
sub esp, 0x14
test eax, eax
mov edx, dword [ebp - 0x10]
je 0x514eaf
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 0x514e90
cmp edx, 0xffffffff
je 0x514eac
lock sub dword [eax], 1
jne 0x514eac
lea esi, [esi]
lea edi, [edi]
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 0x531f90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov eax, 0x100
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x40]
sub esp, 0x60
mov esi, dword [ebp + 8]
mov word [ebp - 0xa], ax
mov ecx, ebx
mov dword [ebp - 0x3a], 0xff80
mov dword [ebp - 0x36], 0x100
mov dword [ebp - 0x32], 0
mov dword [ebp - 0x2e], 0x414b4320
mov dword [ebp - 0x2a], 0x41414141
mov dword [ebp - 0x26], 0x41414141
mov dword [ebp - 0x22], 0x41414141
mov dword [ebp - 0x1e], 0x41414141
mov dword [ebp - 0x1a], 0x41414141
mov dword [ebp - 0x16], 0x41414141
mov dword [ebp - 0x12], 0x41414141
mov dword [ebp - 0xe], 0x21000041
mov dword [esp], esi
call dword [method.QHostAddress.QHostAddress_QString_const_]
lea eax, [ebp - 0x3a]
sub esp, 4
mov ecx, 0x761374
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 [0x761380]
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 0x53a7b0
Capabilities:
Modify service
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, 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 0x53a8c3
mov ebx, eax
xor eax, eax
mov dword [esp + 4], 0
mov word [ebp - 0x2c], ax
mov eax, dword [esi]
lea edi, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], edi
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.006152d0
mov eax, dword [esi]
sub esp, 8
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
add edx, edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x34]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.006152d0
mov eax, dword [ebp - 0x34]
sub esp, 8
mov dword [esp + 8], 0xf003f
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov eax, dword [ebp - 0x34]
sub esp, 0xc
cmp eax, edi
je 0x53a878
mov dword [esp], eax
call fcn.0063e230
test esi, esi
je 0x53a9c0
cmp dword [ebp + 0xc], 1
je 0x53a950
jb 0x53a992
cmp dword [ebp + 0xc], 2
je 0x53a975
cmp dword [ebp + 0xc], 3
je 0x53a8d5
mov edi, dword [ebp - 0x30]
mov dword [esp], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esp, [ebp - 0xc]
mov edi, eax
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
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], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
sub esp, 0x2c
test eax, eax
jne 0x53a8a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x53a8a3
lea eax, [ebp - 0x34]
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
sub esp, 0xc
test eax, eax
jne 0x53a8a0
jmp 0x53a939
lea eax, [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
sub esp, 8
test eax, eax
jne 0x53a8a0
jmp 0x53a939
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
sub esp, 0xc
test eax, eax
jne 0x53a8a0
jmp 0x53a939
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x53abb0
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 0x53ad20
lea esi, [ebp - 0x30]
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.0053a7b0
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x53acf4
cmp edx, 0xffffffff
je 0x53ac01
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
je 0x53acf4
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x53ad12
lea eax, [ebp - 0x28]
mov dword [esp + 4], 0
mov ecx, esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.006152d0
mov eax, dword [ebx]
sub esp, 8
mov ecx, dword [eax + 4]
add eax, dword [eax + 0xc]
lea edx, [ecx + ecx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov eax, dword [ebx]
mov ecx, esi
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.006152d0
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 8], 0xf01ff
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub esp, 0xc
cmp eax, ecx
je 0x53acbf
mov dword [esp], eax
call fcn.0063e230
test esi, esi
je 0x53ad30
mov dword [esp], esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
sub esp, 4
test eax, eax
setne bl
mov dword [esp], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], edi
call esi
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
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 0x53ac01
lea esp, [ebp - 0xc]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lock add dword [edx], 1
jmp 0x53abcf
mov dword [esp], edi
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x53ad80
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, 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 0x53aee0
mov ebx, eax
xor eax, eax
mov dword [esp + 4], 0
mov word [ebp - 0x28], ax
mov eax, dword [esi]
lea edi, [ebp - 0x28]
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], edi
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.006152d0
mov eax, dword [esi]
sub esp, 8
mov edx, dword [eax + 4]
add eax, dword [eax + 0xc]
add edx, edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov dword [esp + 4], 0
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.006152d0
mov eax, dword [ebp - 0x30]
sub esp, 8
mov dword [esp + 8], 0xf003f
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov eax, dword [ebp - 0x30]
sub esp, 0xc
cmp eax, edi
je 0x53ae48
mov dword [esp], eax
call fcn.0063e230
test esi, esi
je 0x53aef3
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0xea60
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0xea60
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
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], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 2
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
sub esp, 0xc
mov edi, eax
mov dword [esp], esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
sub esp, 4
mov dword [esp], ebx
call esi
sub esp, 4
test edi, edi
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 esi, eax
mov dword [esp], ebx
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 0x53b800
Capabilities:
Get file version info

Disassembly:
push edi
push esi
xor eax, eax
push ebx
mov esi, ecx
mov ecx, 0x200
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, dword [eax + 4]
add eax, dword [eax + 0xc]
mov dword [esp], ebx
add edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], 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 0x53b862
add esp, 0x820
pop ebx
pop esi
pop edi
ret 4
mov dword [esp], edi
call fcn.0063e250
mov dword [esi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 8], edi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
sub esp, 0x10
test eax, eax
jne 0x53b8b4
mov eax, dword [esi]
test eax, eax
je 0x53b899
mov dword [esp], eax
call fcn.0063e220
mov dword [esi], 0
mov dword [esi + 4], 0
add esp, 0x820
pop ebx
xor eax, eax
pop esi
pop edi
ret 4
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 0x53b88b
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
rol eax, 0x10
mov dword [esi + 4], eax
mov eax, 1
jmp 0x53b856

Function at 0x53c5e0
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