joyce8/EMBER2024-capa huggingface dataset:
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.00580aa0
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.005919b0
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591960
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591960
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.005801d0
mov dword [esp], 0
mov ecx, ebx
call fcn.005800c0
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.005919b0
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591960
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00591960
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.0057f670
sub esp, 4
mov ecx, esi
call fcn.005801d0
mov ecx, ebx
call fcn.005801d0
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.00580aa0
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.005919b0
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.00591960
mov ecx, ebx
call fcn.005801d0
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.005801d0
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.00580aa0
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.005919b0
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.005801d0
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.005919b0
jmp 0x4aaa08
mov dword [esp], 8
call fcn.006409a0
mov dword [esp], str.Finished_message:_Unknown_protocol_version
mov ecx, eax
mov ebx, eax
call fcn.00602bf0
push eax
mov dword [esp + 8], fcn.00602ca0
mov dword [esp + 4], 0x6da5d0
mov dword [esp], ebx
call fcn.00641130
mov esi, eax
mov ecx, ebx
call fcn.005801d0
mov dword [esp], esi
call sub.libgcc_s_dw2_1.dll__Unwind_Resume
mov ebx, eax
mov ecx, esi
call fcn.005801d0
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 0x515c10
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 0x515cc5
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 0x515ca3
cmp edx, 0xffffffff
je 0x515cea
lock sub dword [eax], 1
mov eax, dword [ebp - 0xc]
jne 0x515cea
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], 0x68ea00
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 0x516180
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], 0x68ea00
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 0x51623f
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 0x516220
cmp edx, 0xffffffff
je 0x51623c
lock sub dword [eax], 1
jne 0x51623c
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 0x533380
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, 0x765374
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 [0x765380]
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 0x53cde0
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 0x53cef3
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.00616400
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.00616400
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 0x53cea8
mov dword [esp], eax
call fcn.00640840
test esi, esi
je 0x53cff0
cmp dword [ebp + 0xc], 1
je 0x53cf80
jb 0x53cfc2
cmp dword [ebp + 0xc], 2
je 0x53cfa5
cmp dword [ebp + 0xc], 3
je 0x53cf05
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 0x53ced0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x53ced3
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 0x53ced0
jmp 0x53cf69
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 0x53ced0
jmp 0x53cf69
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 0x53ced0
jmp 0x53cf69
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 0x53d1e0
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 0x53d350
lea esi, [ebp - 0x30]
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.0053cde0
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
test edx, edx
je 0x53d324
cmp edx, 0xffffffff
je 0x53d231
lock sub dword [eax], 1
mov eax, dword [ebp - 0x30]
je 0x53d324
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 0x53d342
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.00616400
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.00616400
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 0x53d2ef
mov dword [esp], eax
call fcn.00640840
test esi, esi
je 0x53d360
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 0x53d231
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 0x53d1ff
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 0x53d3b0
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 0x53d510
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.00616400
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.00616400
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 0x53d478
mov dword [esp], eax
call fcn.00640840
test esi, esi
je 0x53d523
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 0x53de30
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 0x53de92
add esp, 0x820
pop ebx
pop esi
pop edi
ret 4
mov dword [esp], edi
call fcn.00640860
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 0x53dee4
mov eax, dword [esi]
test eax, eax
je 0x53dec9
mov dword [esp], eax
call fcn.00640830
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 0x53debb
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
rol eax, 0x10
mov dword [esi + 4], eax
mov eax, 1
jmp 0x53de86

Function at 0x53ec10
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
Function at 0x542630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ebp - 0x220]
sub esp, 0x24c
mov eax, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x230], 0x104
mov dword [esp + 4], 0x104
mov dword [esp], esi
mov dword [ebp - 0x23c], eax
call eax
sub esp, 8
cmp eax, 0x104
mov ebx, eax
mov edi, dword [ebp - 0x228]
jbe 0x54273f
cmp dword [ebp - 0x22c], eax
cmovle eax, dword [ebp - 0x22c]
cmp dword [ebp - 0x230], ebx
mov dword [ebp - 0x240], eax
jge 0x542721
cmp ebx, 0x104
jg 0x542770
mov dword [ebp - 0x228], esi
lea esi, [ebp - 0x220]
mov dword [ebp - 0x230], 0x104
mov dword [ebp - 0x244], esi
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x244]
mov dword [esp + 4], edi
mov dword [ebp - 0x22c], 0
add eax, eax
mov dword [esp], edx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x240]
cmp edi, esi
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
je 0x5427a0
cmp edi, eax
je 0x542721
mov dword [esp], edi
call fcn.00567708
mov edi, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ebx
mov dword [esp + 4], ebx
mov dword [esp], edi
mov eax, dword [ebp - 0x23c]
call eax
mov edi, dword [ebp - 0x228]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [ebp - 0x228]
cmp eax, esi
je 0x542765
mov dword [esp], eax
call fcn.00567708
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + ebx]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x244], eax
je 0x5427a7
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
jmp 0x5426cd
mov edi, eax
jmp 0x542721
call dword [sym.imp.Qt5Core.dll_qBadAlloc__]
jmp 0x542785
Function at 0x551cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x7659c0]
test esi, esi
jle 0x551de0
mov edi, dword [0x7659c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x551d04
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x551d85
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x551cf0
mov dword [esp], eax
mov ebx, eax
call fcn.005525c0
test eax, eax
mov edi, eax
je 0x551e07
mov eax, dword [0x7659c4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.005526c0
add eax, dword [edi + 0xc]
mov edx, dword [0x7659c4]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x551de7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x551d7e
sub eax, 4
and eax, 0xfffffffb
jne 0x551d90
add dword [0x7659c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x7659c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x551d7e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.006452f0
lea esi, [esi]
xor esi, esi
jmp 0x551d0e
mov eax, dword [0x7659c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.006452f0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.006452f0
mov esi, esi
lea edi, [edi]

Function at 0x552240
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7659d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7659d0]
sub esp, 4
test ebx, ebx
je 0x552295
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x55228e
test esi, esi
je 0x55228e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x552270
mov dword [esp], 0x7659d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret