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

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x28
mov ebp, dword [ecx + 0x14]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
nop
lea esi, [esi]
mov eax, ebx
xor edx, edx
div esi
lea eax, [ebx + 3]
movzx ecx, byte [edi + edx]
xor edx, edx
div esi
shl ecx, 0x18
movzx eax, byte [edi + edx]
xor edx, edx
or ecx, eax
lea eax, [ebx + 1]
div esi
movzx eax, byte [edi + edx]
xor edx, edx
shl eax, 0x10
or ecx, eax
lea eax, [ebx + 2]
div esi
movzx eax, byte [edi + edx]
shl eax, 8
or ecx, eax
xor dword [ebp + ebx], ecx
add ebx, 4
cmp ebx, 0x48
jne 0x44ae20
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
lea esi, [esp + 0x24]
lea ebx, [esp + 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], 0
mov dword [esp + 8], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], eax
lea eax, [edi + 0x14]
mov ecx, edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0044ac90
sub esp, 0x14
mov ecx, edi
mov eax, dword [esp + 0x44]
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], eax
lea eax, [edi + 4]
mov dword [esp], eax
call fcn.0044ac90
sub esp, 0x14
add esp, 0x28
pop ebx
pop esi
pop edi
pop ebp
ret 0xc

Function at 0x44afb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14
mov ebp, dword [esp + 0x28]
lea eax, [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [ebp]
mov dword [esp + 0x10], 0
mov edx, 2
xor esi, esi
bswap eax
mov dword [esp + 0xc], eax
xor ecx, ecx
mov edi, 0x80808081
movzx eax, byte [esp + ecx + 0xc]
test al, al
je 0x44b018
test dl, dl
je 0x44b018
movzx ebx, byte [eax + 0x67f080]
movzx eax, byte [edx + 0x67f080]
add ebx, eax
mov eax, ebx
mul edi
shr edx, 7
mov eax, edx
shl eax, 8
sub eax, edx
sub ebx, eax
movzx eax, byte [ebx + 0x67ef80]
xor byte [esp + esi + 0x10], al
add ecx, 1
cmp ecx, 4
je 0x44b040
movzx eax, byte [esp + ecx + 0xc]
movzx edx, byte [esi + ecx*4 + 0x67cf60]
test al, al
jne 0x44afe9
add ecx, 1
cmp ecx, 4
jne 0x44b020
lea esi, [esi]
add esi, 1
cmp esi, 4
je 0x44b051
movzx edx, byte [esi + 0x67cf60]
jmp 0x44afd9
mov eax, dword [esp + 0x10]
add ebp, 4
bswap eax
mov dword [ebp - 4], eax
cmp dword [esp], ebp
jne 0x44afc1
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
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.00631390
mov ecx, dword [esp + 0x18]
mov ebp, eax
mov dword [esp], ecx
call fcn.00631390
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.00634ea0
test al, al
mov ebx, eax
je 0x460769
mov dword [esp], esi
call fcn.00631390
mov dword [esp], edi
mov esi, eax
call fcn.00631390
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.00634ea0
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.00589410
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.00580410
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.00580ce0
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.00591bf0
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591ba0
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591ba0
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.00580410
mov dword [esp], 0
mov ecx, ebx
call fcn.00580300
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.00591bf0
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591ba0
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591ba0
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.0057f8b0
sub esp, 4
mov ecx, esi
call fcn.00580410
mov ecx, ebx
call fcn.00580410
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.00580ce0
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.00591bf0
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.00591ba0
mov ecx, ebx
call fcn.00580410
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.00580410
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.00580ce0
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.00591bf0
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.00580410
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.00591bf0
jmp 0x4aaa08
mov dword [esp], 8
call fcn.0063fd40
mov dword [esp], str.Finished_message:_Unknown_protocol_version
mov ecx, eax
mov ebx, eax
call fcn.00603420
push eax
mov dword [esp + 8], fcn.006034d0
mov dword [esp + 4], 0x6d95b0
mov dword [esp], ebx
call fcn.006404d0
mov esi, eax
mov ecx, ebx
call fcn.00580410
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov ebx, eax
mov ecx, esi
call fcn.00580410
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 0x514a90
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 0x514b45
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 0x514b23
cmp edx, 0xffffffff
je 0x514b6a
lock sub dword [eax], 1
mov eax, dword [ebp - 0xc]
jne 0x514b6a
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], 0x68d9e0
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 0x515000
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], 0x68d9e0
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 0x5150bf
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 0x5150a0
cmp edx, 0xffffffff
je 0x5150bc
lock sub dword [eax], 1
jne 0x5150bc
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 0x532200
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, 0x763374
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 [0x763380]
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 0x53bc60
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 0x53bd73
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.00616c30
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.00616c30
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 0x53bd28
mov dword [esp], eax
call fcn.0063fbe0
test esi, esi
je 0x53be70
cmp dword [ebp + 0xc], 1
je 0x53be00
jb 0x53be42
cmp dword [ebp + 0xc], 2
je 0x53be25
cmp dword [ebp + 0xc], 3
je 0x53bd85
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 0x53bd50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x53bd53
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 0x53bd50
jmp 0x53bde9
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 0x53bd50
jmp 0x53bde9
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 0x53bd50
jmp 0x53bde9
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 0x53c060
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 0x53c1d0
lea esi, [ebp - 0x30]
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.0053bc60
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x53c1a4
cmp edx, 0xffffffff
je 0x53c0b1
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
je 0x53c1a4
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 0x53c1c2
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.00616c30
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.00616c30
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 0x53c16f
mov dword [esp], eax
call fcn.0063fbe0
test esi, esi
je 0x53c1e0
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 0x53c0b1
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 0x53c07f
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 0x53c230
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 0x53c390
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.00616c30
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.00616c30
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 0x53c2f8
mov dword [esp], eax
call fcn.0063fbe0
test esi, esi
je 0x53c3a3
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