joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002790
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x124
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ebp, [ebx + 1]
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x1000284e
mov ecx, dword [esp + 0x10]
push 0x103
lea edx, [esp + 0x25]
push ebx
push edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x2c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push str.RavTRAY
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x24]
lea esi, [esp + 0x28]
mov dword [esp + 0x24], 0x104
call fcn.10002c40
test eax, eax
je 0x1000283f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryString_Failed_Err_d
push ebx
push 0x80
mov esi, 0x100236a0
call fcn.10003ad0
add esp, 0x10
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1000284e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x124
ret
Function at 0x10002870
Capabilities:
Access peb ldr_data
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1001aa66
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
xor ebx, ebx
xor ebp, ebp
mov esi, 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
push 0x103
lea eax, [esp + 0x29]
push ebx
mov dword [esp + 0x140], ebx
push eax
mov byte [esp + 0x30], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edi, [esp + 0x24]
call fcn.10003b80
mov edx, dword [0x10023afc]
mov eax, dword [edx + 0xc]
mov ecx, 0x10023afc
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, edi
push ecx
push str.__s_rstray.exe___system
lea edi, [esp + 0x20]
mov byte [esp + 0x140], 1
call fcn.10002a40
add esp, 8
lea edx, [esp + 0x14]
push edx
push 0x2001f
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [esp + 0x18]
cmp eax, ebx
jne 0x1000299e
mov ebp, dword [esp + 0x14]
xor eax, eax
cmp edi, ebx
setne al
mov dword [esp + 0x1c], ebp
cmp eax, ebx
je 0x1000296c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
push ebx
push str.RavTRAY
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
je 0x1000298d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryString_Failed_Err_d
push ebx
push 0x80
mov esi, 0x100236a0
call fcn.10003ad0
add esp, 0x10
xor esi, esi
cmp ebp, ebx
je 0x1000299e
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
add edi, 0xfffffff0
mov dword [esp + 0x20], ebx
mov byte [esp + 0x138], bl
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100029c5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
cmp ebp, ebx
je 0x100029d0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.100192c6
add esp, 0x128
ret

Function at 0x10002c10
Capabilities:
Set registry value

Disassembly:
test esi, esi
jne 0x10002c1a
lea eax, [esi + 0xd]
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
inc eax
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x10002c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10002c9f
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x10002c7d
cmp eax, 2
jne 0x10002c8f
mov eax, dword [esp]
test esi, esi
je 0x10002c9b
test eax, eax
je 0x10002c98
cmp byte [eax + esi - 1], 0
je 0x10002c9b
mov eax, 0xd
pop ecx
ret 8
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x10002d10
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x125]
push ebx
push eax
mov dword [esp + 0x18], 0xffffffff
mov byte [esp + 0x12c], bl
call sub.MSVCR90.dll_memset
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x10002e75
mov eax, str.RAV.INI
lea edx, [eax + 1]
jmp 0x10002d70
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10002d70
sub eax, edx
cmp eax, 2
jb 0x10002e75
lea esi, [esp + 0x120]
call fcn.10002f70
mov ecx, 0x104
mov eax, esi
cmp byte [eax], bl
je 0x10002da1
inc eax
sub ecx, 1
jne 0x10002d95
jmp 0x10002dc4
cmp ecx, ebx
je 0x10002dc4
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax + 0x120]
mov eax, str.RAV.INI
call fcn.100034e0
push 0x104
lea edx, [esp + 0x1d]
push ebx
push edx
mov byte [esp + 0x24], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x120]
push eax
push 0x104
lea ecx, [esp + 0x20]
push ecx
push 0x1001c74d
push edi
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x18], bl
je 0x10002e75
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
mov esi, dword [sym.imp.MSVCR90.dll_sscanf_s]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push 0x1001cb00
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call esi
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
ja 0x10002e77
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push str.0X_X
push eax
call esi
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
ja 0x10002e77
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push 0x1001cb0c
push edx
call esi
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, ebx
ja 0x10002e77
mov eax, ebp
mov ecx, dword [esp + 0x224]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x21c
ret
Function at 0x10002e90
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
or esi, 0xffffffff
mov byte [esp + 0x10], 0
call sub.MSVCR90.dll_memset
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x10002f52
mov eax, str.RAV.INI
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002ed7
sub eax, edx
cmp eax, 2
jb 0x10002f52
lea esi, [esp + 4]
call fcn.10002f70
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x10002f02
inc eax
sub ecx, 1
jne 0x10002ef5
jmp 0x10002f22
test ecx, ecx
je 0x10002f22
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax + 4]
mov eax, str.RAV.INI
call fcn.100034e0
lea edx, [esp + 4]
push edx
push 0x200
push str.LOGSIZE
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret

Function at 0x10002f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x114], eax
xor eax, eax
cmp eax, 0x1001cb24
je 0x1000306e
test esi, esi
je 0x1000306e
push edi
push 0x103
push eax
lea ecx, [esp + 0x1d]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 1
mov byte [esp + 0x20], al
call sub.MSVCR90.dll_memset
push 0x1001cb24
push str.SOFTWARERising_s
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.100032e0
add esp, 0x14
lea edx, [esp + 4]
push edx
push 0x20019
push 0
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003047
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push str.datapath
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003020
sub eax, edx
je 0x1000303c
push 0x1001caf0
mov ecx, 0x104
mov edi, esi
call fcn.10003520
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 1]
pop edi
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10003050
sub eax, edx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.100192c6
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.100192c6
add esp, 0x118
ret
Function at 0x10003090
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
or esi, 0xffffffff
mov byte [esp + 0x10], 0
call sub.MSVCR90.dll_memset
xor ecx, ecx
add esp, 0xc
cmp ecx, str.RAV.INI
je 0x1000315c
mov eax, str.RAV.INI
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100030d7
sub eax, edx
cmp eax, 2
jb 0x1000315c
lea esi, [esp + 4]
call fcn.10002f70
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x10003102
inc eax
sub ecx, 1
jne 0x100030f5
jmp 0x10003122
test ecx, ecx
je 0x10003122
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [esp + eax + 4]
mov eax, str.RAV.INI
call fcn.100034e0
lea edx, [esp + 4]
push edx
push 0x105
push 0x10023eb8
push 0x1001c74d
push str.LOGNAME
push str.DEBUG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret

Function at 0x10003180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.10003090
cmp byte [0x10023eb8], 0
jne 0x10003241
push ebx
push esi
push 0x105
push 0x10023eb8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x10023eb8
mov ebx, eax
call dword [sym.imp.MSVCR90.dll__mbsrchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x1000322a
push ebp
mov eax, ebx
push edi
sub eax, esi
lea ebp, [eax + 0x10023eb8]
push ebp
lea edi, [esi + 9]
push esi
push edi
call dword [sym.imp.MSVCR90.dll_memmove]
mov ecx, dword [str.logfiles]
mov dword [esi], ecx
mov edx, dword [0x1001cbfc]
mov dword [esi + 4], edx
mov al, byte [0x1001cc00]
add esp, 0xc
push 0x10023eb8
mov byte [esi + 8], al
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [edi], 0x5c
cmp eax, 0xffffffff
je 0x10003215
test al, 0x10
je 0x10003215
mov byte [ebx + 0x10023ec1], 0
jmp 0x10003228
push ebp
push edi
push esi
call dword [sym.imp.MSVCR90.dll_memmove]
add esp, 0xc
mov byte [ebx + 0x10023eb8], 0
pop edi
pop ebp
pop esi
mov ecx, 0x104
mov eax, 0x10023eb8
pop ebx
cmp byte [eax], 0
je 0x10003242
inc eax
sub ecx, 1
jne 0x10003236
ret
test ecx, ecx
je 0x10003241
mov eax, 0x104
sub eax, ecx
mov ecx, 0x104
sub ecx, eax
lea edx, [eax + 0x10023eb8]
mov eax, str..log
jmp fcn.100034e0
Function at 0x10003b80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
xor ebx, ebx
mov byte [edi], bl
mov ecx, dword [0x1001cb14]
mov edx, dword [0x1001cb18]
mov eax, dword [str.SOFTWARERising_]
push 0xf4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [0x1001cb1c]
mov dword [esp + 0x18], ecx
mov cl, byte [0x1001cb20]
lea edx, [esp + 0x25]
push ebx
push edx
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], eax
mov byte [esp + 0x2c], cl
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003bf0
sub eax, edx
mov edx, eax
lea eax, [esp + 0x10]
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003c03
mov ecx, 0x105
sub ecx, edx
push ecx
sub eax, esi
push 0x1001c77c
lea edx, [esp + eax + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 8]
push eax
push 1
push ebx
lea ecx, [esp + 0x20]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x10003c90
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push edx
push edi
lea eax, [esp + 0x14]
push eax
push ebx
push str.installpath
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003c85
push 0x5c
push edi
call dword [sym.imp.MSVCR90.dll__mbsrchr]
add esp, 8
cmp eax, ebx
je 0x10003c80
cmp byte [eax + 1], bl
jne 0x10003c80
mov byte [eax], bl
mov ebx, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.100192c6
add esp, 0x118
ret
Function at 0x100048d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100048e7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10004918
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10004914
cmp esi, eax
jae 0x10004918
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x10004904
cmp esi, eax
jb 0x1000491e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10004ae0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x10023050]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
jne 0x10004b39
push 0x104
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x10004b49
push eax
lea edx, [esp + 8]
push edx
call fcn.100049d0
add esp, 8
jmp 0x10004b49
mov eax, esi
mov ecx, 0x104
lea edx, [esp + 4]
call fcn.100034e0
push edi
push str.NetConfig.ini
mov ecx, 0x104
lea edi, [esp + 0xc]
call fcn.10003520
mov eax, edi
push eax
push 0x104
push ebx
push 0x1001c74d
push 0x1001cd9c
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
pop edi
test esi, esi
jne 0x10004b9a
xor eax, eax
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
push 0x2e
push ebx
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x10004bad
mov byte [eax], 0
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100192c6
add esp, 0x108
ret
Function at 0x10005d90
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x10005dd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenSCManger_Failed_Err_d
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0xf01ff
push str.RsMgrSvc
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
jne 0x10005e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenService_Failed_Err_d
push edi
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10005e6f
cmp dword [esp + 0x14], 4
je 0x10005e52
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.QueryServiceStatus_ssStatus_is__d__DeleteService_is__d
push 0
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x14
jmp 0x10005e8d
push str.QueryServiceStatus_ssStatus_is_SERVICE_RUNNING
push 0
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0xc
mov ebp, 1
jmp 0x10005e8d
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
push str.QueryServiceStatus_ssStatus_is_error__DeleteService_is__d
push 0
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x10005eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1001af28
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x10023afc]
mov edx, dword [eax + 0xc]
mov ecx, 0x10023afc
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0xc]
push ecx
push str._sRsMgrSvc.exe
lea edi, [esp + 0x18]
call fcn.10002a40
mov edi, dword [esp + 0x18]
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov esi, 0x10023490
push ebx
push edi
push str._FileAttributeOk__s_is__d
push 0
push 4
call fcn.10003ad0
lea eax, [edi - 0x10]
add esp, 0x14
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10005f5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x10005fb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1001b228
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x24]
push eax
mov dword [edi + 0x24], 1
call fcn.1000e630
xor ebx, ebx
mov dword [esp + 0x90], ebx
mov edx, dword [0x10023afc]
mov eax, dword [edx + 0xc]
mov ecx, 0x10023afc
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov byte [esp + 0x90], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x1000603b
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.10002ae0
mov esi, dword [esp + 0x18]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [esi - 8]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_strnlen]
add esp, 8
cmp eax, ebx
jl 0x100061c0
cmp eax, dword [esi - 8]
jg 0x100061c0
push str.rsddown
lea ecx, [esp + 0x1c]
mov dword [esi - 0xc], eax
push ecx
mov edx, 7
mov byte [eax + esi], bl
call fcn.1000c3c0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.1000c1b0
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
push ebp
push edi
mov byte [esp + 0x98], 2
call fcn.10006280
push str._rsd.exe
lea edx, [esp + 0x1c]
push edx
mov edx, 8
call fcn.1000c3c0
mov esi, dword [esp + 0x18]
mov edx, esi
lea ecx, [esp + 0x24]
call fcn.1000ed00
test eax, eax
jne 0x1000612e
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.100061d0
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x100060e4
cmp eax, ebx
je 0x100060fd
push eax
push str.Failed_to_RunApp_rsd___d.
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
mov dword [edi + 0x24], ebx
push ebp
push edi
call fcn.100063a0
call fcn.10005d90
test eax, eax
je 0x10006117
push edi
call fcn.10005eb0
test eax, eax
jne 0x1000614d
push str.RSD_install_error_
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0xc
jmp 0x1000614a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RSD_download_error_Error_d_
push ebx
push 4
mov esi, 0x10023490
call fcn.10003ad0
add esp, 0x10
mov dword [edi + 0x24], ebx
mov edi, dword [edi + 0x24]
lea eax, [ebp - 0x10]
mov byte [esp + 0x90], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006174
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x90], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000619b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x24]
call fcn.1000e860
mov eax, edi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
push 0x80070057
call fcn.10002bf0
int3
Function at 0x100061d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x60
push esi
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [esp + 0x68]
xor eax, eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10006238
pop esi
add esp, 0x60
ret 8
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x60
ret 8

Function at 0x10006280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1001af00
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x10023050]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x10023afc]
mov edx, dword [eax + 0xc]
mov ecx, 0x10023afc
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x10]
push ecx
push str._sXMLS_setup.xml
lea edi, [esp + 0x1c]
call fcn.10002a40
mov edx, dword [0x10023afc]
mov eax, dword [edx + 0xc]
add esp, 8
mov ecx, 0x10023afc
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x2c]
push ecx
push str._s_setup.xml
lea edi, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.10002a40
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
add esp, 8
mov esi, ebp
call fcn.10017540
push ebp
mov esi, 0x10023490
push edi
test eax, eax
jne 0x10006330
push str.CopyFile_error_from__s__to__s
jmp 0x10006335
push str.CopyFile_File_from__s__to__s
push 0
push 0x40
call fcn.10003ad0
lea eax, [ebp - 0x10]
add esp, 0x14
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006362
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006386
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 8