joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100021f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10171068
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x101f1dd0]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x101f1dd0]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x101d87c8
mov byte [ecx + 4], bl
call fcn.10001850
push ebx
mov byte [esp + 0x644], 3
call fcn.100795ed
push eax
call fcn.1007c576
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.10076580
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x10002351
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.10076580
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x1000232e
cmp eax, ebx
je 0x1000232e
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.100017c0
jmp 0x10002351
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10002335
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.10001a90
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x10002388
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x10002365
call fcn.100763b0
cmp dword [edi + 0x18], 8
jb 0x10002370
mov eax, dword [edi + 4]
jmp 0x10002373
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x10002388
push 1
push 0x101d87cc
mov ecx, edi
call fcn.100039b0
cmp dword [esi + 0x38], ebx
jne 0x1000239b
push 3
push 0x101d87d0
mov ecx, edi
call fcn.10001a90
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.10075e13
add esp, 0x634
ret
Function at 0x100023d0
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x54], ebx
push ebp
mov ebp, 8
je 0x100023f2
cmp dword [esi + 0x58], ebp
jb 0x100023e8
mov eax, dword [esi + 0x44]
jmp 0x100023eb
lea eax, [esi + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x74], 0x10
jb 0x10002404
mov eax, dword [esi + 0x60]
push eax
call fcn.10052b17
add esp, 4
mov dword [esi + 0x74], 0xf
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
cmp dword [esi + 0x58], ebp
jb 0x10002422
mov ecx, dword [esi + 0x44]
push ecx
call fcn.10052b17
add esp, 4
mov dword [esi + 0x58], 7
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
cmp dword [esi + 0x3c], ebp
jb 0x10002441
mov edx, dword [esi + 0x28]
push edx
call fcn.10052b17
add esp, 4
mov dword [esi + 0x3c], 7
mov dword [esi + 0x38], ebx
mov word [esi + 0x28], bx
cmp dword [esi + 0x20], ebp
jb 0x10002460
mov eax, dword [esi + 0xc]
push eax
call fcn.10052b17
add esp, 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 7
pop ebp
mov word [esi + 0xc], bx
pop ebx
ret
Function at 0x10003c70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10171138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x101f1dd0]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.10001d60
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10003cd0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.100039b0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.10001d60
cmp dword [esp + 0x28], 8
jb 0x10003d1b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.10052b17
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x10004670
Capabilities:
Get http content length

Disassembly:
mov eax, dword [eax + 4]
sub esp, 8
test eax, eax
je 0x100046af
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push edx
push 0x20000005
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100046af
mov eax, dword [esp]
xor edx, edx
add esp, 8
ret
xor eax, eax
xor edx, edx
add esp, 8
ret
Function at 0x1000585f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x3c
mov eax, 0x1016a060
call fcn.10075e8b
mov esi, ecx
mov eax, dword [esi + 0x394]
xor ebx, ebx
xor edi, edi
inc ebx
cmp eax, edi
mov dword [ebp - 4], edi
je 0x10005887
push ebx
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
mov ecx, esi
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push edi
lea ecx, [ebp - 0x2c]
mov esi, eax
mov dword [ebp - 0x14], 0xf
call fcn.100019b0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.1001fb72
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001660
push edi
push ebx
lea ecx, [ebp - 0x48]
call fcn.10001770
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x100058ea
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10001770
push edi
push ebx
jmp 0x10005980
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x100058fc
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x100058d9
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
je 0x100058f4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x100058f4
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x28]
jae 0x10005926
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push edx
push ecx
push eax
call fcn.10075976
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push edi
push edi
push edi
mov ebx, 0xa2
push ebx
call esi
push edi
push edi
push edi
push 0x56
call esi
push edi
push 2
push edi
push 0x56
call esi
push edi
push 2
push edi
push ebx
call esi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001770
push edi
push 1
lea ecx, [ebp + 8]
call fcn.100017f0
call fcn.10075f0e
ret 0x1c
Function at 0x10006d2f
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x32c]
lea ecx, [eax + 0x4b4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [esi + 0x35c]
call fcn.10015b45
mov ecx, esi
call fcn.10006cc0
mov ecx, esi
pop esi
jmp fcn.10005f3d
Function at 0x1000cb5c
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x1016ac1f
call fcn.10075e8b
mov edi, ecx
call fcn.10004cf1
mov ecx, eax
call fcn.1001b44e
push eax
lea ecx, [ebp - 0x2c]
call fcn.100015f0
xor ebx, ebx
push str.LatelyCharFace.xml
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.10003540
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1001fb72
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
lea esi, [edi + 0x32c]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10001660
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000cbc4
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000cc03
cmp dword [ebp - 0x30], 0x10
mov eax, dword [ebp - 0x44]
jae 0x1000cbdb
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x68]
call fcn.10001580
lea eax, [ebp - 0x68]
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.1000bd30
push ebx
push 1
lea ecx, [ebp - 0x68]
call fcn.10001770
jmp 0x1000ccc0
push 0x48
call fcn.10052ae7
pop ecx
mov ecx, eax
mov dword [ebp - 0x4c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x1000cc30
cmp dword [esi + 0x18], 0x10
jb 0x1000cc23
mov eax, dword [esi + 4]
jmp 0x1000cc26
lea eax, [esi + 4]
push eax
call fcn.1004f2b0
mov edi, eax
jmp 0x1000cc32
xor edi, edi
push 0x38
mov byte [ebp - 4], 1
call fcn.10052ae7
pop ecx
mov ecx, eax
mov dword [ebp - 0x4c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 4
je 0x1000cc61
push 0x101d87c8
push 0x10174240
push 0x10174248
call fcn.1004f900
jmp 0x1000cc63
xor eax, eax
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1004e690
push 0x50
call fcn.10052ae7
pop ecx
mov ecx, eax
mov dword [ebp - 0x4c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 5
je 0x1000cc90
push 0x10174238
call fcn.1004fde0
jmp 0x1000cc92
xor eax, eax
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.1004e690
cmp dword [esi + 0x18], 0x10
jb 0x1000cca9
mov esi, dword [esi + 4]
jmp 0x1000ccac
add esi, 4
push esi
mov ecx, edi
call fcn.1004f590
cmp edi, ebx
je 0x1000ccc0
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10001770
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100017f0
xor eax, eax
inc eax
call fcn.10075f0e
ret
Function at 0x1000d68e
Capabilities:
Read .ini file

Disassembly:
push 0x2c
mov eax, 0x1016ad91
call fcn.10075e8b
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x34], eax
call fcn.1001cf88
push 8
call fcn.10052ae7
pop ecx
mov dword [ebp - 0x30], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1000d6c4
mov ecx, eax
call fcn.100070c0
jmp 0x1000d6c6
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x220], eax
jne 0x1000d6db
xor eax, eax
jmp 0x1000d7bb
push 0x10
call fcn.10052ae7
pop ecx
cmp eax, ebx
je 0x1000d6f2
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1000d6f4
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x334], eax
je 0x1000d6d4
push 8
call fcn.10052ae7
pop ecx
mov dword [ebp - 0x30], eax
cmp eax, ebx
mov dword [ebp - 4], 2
je 0x1000d721
mov ecx, eax
call fcn.100070c0
jmp 0x1000d723
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x338], eax
je 0x1000d6d4
lea eax, [esi + 0xb0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003510
push str.SmartCloudInfo.ini
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 3
call fcn.10003540
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1000d760
lea eax, [ebp - 0x28]
push eax
push ebx
push str.ActivityMode
mov edi, str.AppInfo
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp - 0x14], 8
mov dword [esi + 0x22c], eax
mov eax, dword [ebp - 0x28]
jae 0x1000d785
lea eax, [ebp - 0x28]
push eax
push 0x104
lea eax, [esi + 0x33c]
push eax
push 0x10174ce8
push str.Spreader
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push dword [ebp - 0x34]
mov ecx, esi
call fcn.1000d281
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100017f0
xor eax, eax
inc eax
call fcn.10075f0e
ret 4
Function at 0x1000deb1
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0x3c
mov eax, 0x1016a060
call fcn.10075e8b
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push edi
lea ecx, [ebp - 0x2c]
mov esi, eax
mov dword [ebp - 0x14], 0xf
call fcn.100019b0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 1
call fcn.1001fb72
pop ecx
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.10001660
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x48]
call fcn.10001770
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1000df26
push edi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10001770
push edi
push ebx
jmp 0x1000dfbc
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1000df38
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x1000df15
mov eax, dword [ebp - 0x18]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, edi
je 0x1000df30
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, edi
je 0x1000df30
cmp dword [ebp - 0x14], 0x10
mov edx, dword [ebp - 0x28]
jae 0x1000df62
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
inc ecx
push ecx
push edx
push ecx
push eax
call fcn.10075976
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push edi
push edi
push edi
mov ebx, 0xa2
push ebx
call esi
push edi
push edi
push edi
push 0x56
call esi
push edi
push 2
push edi
push 0x56
call esi
push edi
push 2
push edi
push ebx
call esi
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001770
push edi
push 1
lea ecx, [ebp + 8]
call fcn.100017f0
call fcn.10075f0e
ret 0x1c
Function at 0x1000e8a5
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x80], esi
call fcn.10004cf1
mov ecx, eax
call fcn.1004a288
add esi, 0x344
push eax
mov ecx, esi
call fcn.100017c0
push str.ConfigConfig.ini
mov ecx, esi
call fcn.10003540
cmp dword [esi + 0x18], 8
jb 0x1000e8f9
mov eax, dword [esi + 4]
jmp 0x1000e8fc
lea eax, [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
xor edi, edi
push edi
push str.DateTimeWndLeftPos
push str.Setting
call ebx
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x7c], eax
jb 0x1000e920
mov esi, dword [esi + 4]
jmp 0x1000e923
add esi, 4
push esi
push edi
push str.DateTimeWndTopPos
push str.Setting
call ebx
push 0x206
mov ebx, eax
lea eax, [ebp - 0x76]
push edi
push eax
mov word [ebp - 0x78], di
call fcn.10076580
push 0x10173f9c
lea eax, [ebp - 0x78]
push 0x101751a4
push eax
call fcn.100048d5
mov esi, dword [ebp - 0x80]
add esp, 0x18
push edi
push 0x14a
push 0x1e0
push edi
push edi
push 0x8040108
push 0x10ce0000
lea eax, [ebp - 0x78]
push eax
push edi
mov ecx, esi
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::Create_struct_HWND_____wchar_t_const___unsigned_long_int__unsigned_long_int__int__int__int__int__struct_HMENU____]
cmp dword [ebp - 0x7c], edi
jne 0x1000e996
cmp ebx, edi
jne 0x1000e996
mov ecx, esi
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
jmp 0x1000e9aa
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x7c]
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0x190]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0x194
leave
ret
Function at 0x100133d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1001344a
push ebx
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.10078b70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
push dword [ebp + 0x10]
call fcn.100133b3
pop ecx
pop ecx
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x10015443
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x10015483
push esi
call fcn.10076514
test eax, eax
pop ecx
jbe 0x10015483
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1001548b
push str.UnInstall_OpenSCManager_faled.
push 0x10175610
call fcn.100247c2
pop ecx
pop ecx
xor al, al
pop edi
pop esi
leave
ret 4
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x100154ac
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.UnInstall_ERROR_SUCCESS___rc_2
jmp 0x10015477
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
test ebx, ebx
pop ebx
je 0x10015483
push 0x258
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x10015485
Function at 0x100154e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1a8]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1ac]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x70]
push eax
mov edi, 0xf003f
push edi
xor ebx, ebx
push ebx
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x100155ac
push 0x206
lea eax, [ebp - 0x6a]
push ebx
push eax
mov word [ebp - 0x6c], bx
call fcn.10076580
push 0x10174190
lea eax, [ebp - 0x6c]
push str._smgr
push eax
call fcn.100048d5
add esp, 0x18
lea eax, [ebp - 0x74]
push eax
push edi
push ebx
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x70]
call esi
test eax, eax
je 0x10015580
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100155ac
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
mov dword [ebp - 0x78], 0x104
push ebx
push ebx
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x70]
call esi
mov ecx, dword [ebp + 0x19c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0x1a0
leave
ret 8

Function at 0x100155c6
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and word [ebp - 0x20c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x14]
mov esi, 0x206
push esi
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.10076580
and word [ebp - 0x414], 0
push esi
lea eax, [ebp - 0x412]
push 0
push eax
call fcn.10076580
push dword [ebp - 0x41c]
lea eax, [ebp - 0x20c]
push str.SYSTEMCurrentControlSetServices_s
push eax
call fcn.100048d5
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._sParameters
push eax
call fcn.100048d5
push edi
call fcn.10076514
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0x34
lea eax, [eax*4 + 4]
push eax
push edi
push 1
push str.DisplayName
lea eax, [ebp - 0x20c]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
push ebx
call fcn.10076514
pop ecx
lea eax, [eax*4 + 4]
push eax
push ebx
push 1
push str.Description
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
push dword [ebp - 0x418]
call fcn.10076514
pop ecx
lea eax, [eax*4 + 4]
push eax
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push 2
push str.ServiceDll
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
leave
ret 0x10
Function at 0x100156e1
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x412]
push edi
push eax
mov word [ebp - 0x414], di
call fcn.10076580
push esi
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call fcn.10076580
push 0x10174190
lea eax, [ebp - 0x20c]
push str.SoftWare_smgr
push eax
call fcn.100048d5
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x24
lea eax, [ebp - 0x414]
push eax
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
call esi
lea eax, [ebp - 0x20c]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10075e13
leave
ret

Function at 0x1001576d
Capabilities:
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x101f1dd0]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0xf003f
push esi
push ebx
push ebx
mov edi, ecx
mov byte [ebp - 0x5d], bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x64], eax
je 0x10015840
push 0x206
lea eax, [ebp - 0x5a]
push ebx
push eax
mov word [ebp - 0x5c], bx
call fcn.10076580
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
push str.ServiceName
mov ecx, edi
call fcn.100154e3
lea eax, [ebp - 0x5c]
push eax
call fcn.10076514
test eax, eax
pop ecx
jbe 0x1001582d
push esi
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x1001582d
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x80], ebx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10015826
cmp dword [ebp - 0x7c], 4
je 0x10015822
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x10015826
mov byte [ebp - 0x5d], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp byte [ebp - 0x5d], bl
mov eax, str.success
jne 0x10015845
mov eax, str.failed
push eax
push str.svchost_service_start__s.
push 0x10175610
call fcn.100247c2
mov ecx, dword [ebp + 0x1ac]
mov al, byte [ebp - 0x5d]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10075e13
add ebp, 0x1b0
leave
ret
Function at 0x10017f22
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x344]
lea ecx, [eax + 0x4b4]
mov eax, dword [ecx]
push 0
call dword [eax]
lea ecx, [eax + 0x4b4]
mov eax, dword [ecx]
push 0
call dword [eax]
mov esi, eax
test esi, esi
je 0x10017f85
lea ecx, [esi + 0x4b4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0xcc]
mov eax, dword [esi]
push 0x10174114
push 0x1017415c
mov ecx, esi
call dword [eax + 0x110]
mov ecx, dword [edi + 0x3c0]
mov eax, dword [ecx]
push 1
call dword [eax + 0xcc]
mov ecx, edi
call fcn.10017f0e
mov ecx, edi
pop edi
pop esi
jmp fcn.10017aab