joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475ad0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x4f4], ebx
test ebx, ebx
je 0x475cc9
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004a7480
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x4e0]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x475c98
push edi
xor edi, edi
mov dword [ebp - 0x4e4], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push edi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x475c89
lea eax, [ebp - 0x4e8]
push eax
push 1
push 0
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call esi
test eax, eax
jne 0x475c53
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4f0], 1
push eax
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4ec], 0x208
push eax
lea eax, [ebp - 0x4f0]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x4e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x475c4b
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.004a7480
add esp, 8
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x4dc]
call fcn.004759b0
add esp, 4
test eax, eax
je 0x475c4b
cmp byte [ebp - 0x68], 0
je 0x475c0f
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x475c4b
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x475c3a
mov al, byte [esi + ecx]
test al, al
je 0x475c3a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x475c21
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x4e8]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4e4], 0x104
push eax
lea eax, [ebp - 0x2d4]
inc edi
push eax
push edi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x475b64
push dword [ebp - 0x4e0]
call ebx
mov ebx, dword [ebp - 0x4f4]
pop edi
cmp byte [ebp - 0x68], 0
pop esi
je 0x475cc9
push SysReAllocString
lea eax, [ebp - 0x68]
mov edx, 0x64
push eax
push ecx
mov ecx, ebx
call fcn.0046d7c0
not eax
shr eax, 0x1f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.0048e923
mov esp, ebp
pop ebp
ret
Function at 0x476290
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, ecx
mov dword [ebp - 0xc], edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push eax
mov dword [ebp - 4], 0
xor ebx, ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x4762c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.004b0f8b
mov esi, eax
add esp, 4
test esi, esi
jne 0x4762d7
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0
push dword [ebp - 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x476318
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4f71a4
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x476318
mov ecx, dword [ebp - 8]
mov ebx, 1
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
push esi
call fcn.004aa54d
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x476330
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4764a2
push edi
mov edi, dword [sym.imp.Secur32.dll_GetUserNameExW]
lea eax, [ebp - 8]
push eax
push 0
push 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
call edi
test al, al
je 0x476382
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, eax
push esi
push eax
call fcn.004b0f8b
mov esi, eax
add esp, 4
test esi, esi
je 0x47649a
lea eax, [ebp - 8]
push eax
push esi
push 2
call edi
test al, al
je 0x47649a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x476491
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x476491
push dword [ebp - 0x10]
call fcn.004b0f8b
mov edi, eax
add esp, 4
test edi, edi
je 0x476491
mov eax, dword [ebp - 0xc]
add eax, eax
push ebx
push eax
call fcn.004b0f8b
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x47641e
push esi
call fcn.004aa54d
push edi
call fcn.004aa54d
add esp, 8
xor eax, eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x476472
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x476472
push dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x64
call fcn.004242e0
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
push esi
call fcn.004aa54d
push edi
call fcn.004aa54d
push ebx
call fcn.004aa54d
mov eax, dword [ebp - 0x14]
add esp, 0xc
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004aa54d
add esp, 4
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4764b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 0x20c]
push 0x208
push ebx
push eax
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
call fcn.004a7480
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x476503
push esi
mov ecx, 0xb
lea eax, [ebp - 0x214]
mov esi, str._system32Shell32.dll
lea edx, [ebp - 0x210]
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00476290
add esp, 4
pop esi
test eax, eax
je 0x47655a
cmp dword [ebp - 0x210], 0x60002
jb 0x47655a
cmp dword [ebp - 0x214], 0x295a01c8
mov eax, 1
cmovae ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.0048e923
mov esp, ebp
pop ebp
ret
Function at 0x476a40
Capabilities:
Encode data using base64
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x50f290
push 0x4a9410
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x516108]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
test eax, eax
je 0x476bd9
test ebx, ebx
je 0x476bd9
test edi, edi
je 0x476bd9
xor esi, esi
mov byte [ebp - 0x34], 0
xorps xmm0, xmm0
movq qword [ebp - 0x33], xmm0
mov dword [ebp - 0x2b], esi
mov word [ebp - 0x27], si
mov byte [ebp - 0x25], 0
mov byte [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x23], ecx
mov word [ebp - 0x1f], cx
mov byte [ebp - 0x1d], cl
mov dword [ebp - 4], ecx
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.004769d0
add esp, 8
test eax, eax
je 0x476bce
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
mov edx, edi
mov ecx, dword [ebp - 0x40]
call fcn.00476940
add esp, 8
test eax, eax
je 0x476bce
xor eax, eax
mov dword [ebp - 0x38], eax
xor edi, edi
mov dword [ebp - 0x44], edi
mov cl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x476b16
xor bh, bh
jmp 0x476b1e
mov bh, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 8
jb 0x476b27
xor bl, bl
jmp 0x476b2f
mov bl, byte [ebp + eax - 0x24]
inc eax
mov dword [ebp - 0x38], eax
movzx edx, cl
mov ecx, edx
shr ecx, 2
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp - 0x3c]
mov word [esi + edi*2], cx
movzx esi, bh
mov ecx, esi
shr ecx, 4
and edx, 3
shl edx, 4
or ecx, edx
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov edx, dword [ebp - 0x3c]
mov word [edx + edi*2 + 2], cx
movzx edx, bl
mov ecx, edx
shr ecx, 6
and esi, 0xf
shl esi, 2
or ecx, esi
movzx ecx, word [ecx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0x3c]
mov word [ebx + edi*2 + 4], cx
and edx, 0x3f
movzx ecx, word [edx*2 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov word [ebx + edi*2 + 6], cx
add edi, 4
mov dword [ebp - 0x44], edi
cmp eax, 8
jb 0x476b05
mov dword [ebx + edi*2 - 2], 0x3d
mov esi, 1
mov dword [ebp - 0x48], esi
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x476bdb
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x476bdb
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret
Function at 0x477d90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da8fe
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x5c]
push eax
call fcn.00478260
mov dword [ebp - 4], 0
push dword [ebp - 0x5c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x477e0a
and dword [ebp - 0x70], 0xfffffe00
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x78]
mov ecx, dword [ebp - 0x5c]
call fcn.004685c0
mov eax, dword [ebp - 0x70]
test al, al
je 0x477e4c
cmp al, 7
je 0x477e4c
lea ecx, [ebp - 0x78]
call fcn.00465be0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x477e2e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
push ecx
push str.send_date
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 3
call fcn.004663e0
lea edx, [ebp - 0x68]
mov ecx, eax
call fcn.00479090
mov eax, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
sub eax, edi
sar eax, 2
cmp eax, 3
jb 0x477ecf
mov ecx, dword [edi]
cmp ecx, 0x7d0
jb 0x477ecf
mov eax, dword [edi + 4]
cmp eax, 1
jb 0x477ecf
cmp eax, 0xc
ja 0x477ecf
mov eax, dword [edi + 8]
cmp eax, 1
jb 0x477ecf
cmp eax, 0x1f
ja 0x477ecf
sub esp, 0x10
push eax
push dword [edi + 4]
push ecx
lea ecx, [ebp - 0x88]
call fcn.00463c30
mov ecx, dword [eax]
mov dword [ebx + 0x3c], ecx
mov eax, dword [eax + 4]
mov dword [ebx + 0x40], eax
lea ecx, [ebp - 0x80]
call fcn.00439330
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
call fcn.0047a250
test eax, eax
je 0x477eec
mov esi, dword [eax + 0xc]
jmp 0x477eee
xor esi, esi
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebx + 0x3c]
call fcn.0047a250
test eax, eax
je 0x477f03
mov eax, dword [eax + 0xc]
jmp 0x477f05
xor eax, eax
cmp esi, eax
je 0x477f41
mov eax, dword [ebp - 0x80]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebx + 0x40], eax
mov byte [ebp - 4], 4
lea ecx, [ebx + 0x34]
mov eax, dword [ebx + 0x34]
push dword [eax + 4]
call fcn.00413fb0
mov eax, dword [ebx + 0x34]
mov dword [eax + 4], eax
mov eax, dword [ebx + 0x34]
mov dword [eax], eax
mov eax, dword [ebx + 0x34]
mov dword [eax + 8], eax
mov dword [ebx + 0x38], 0
jmp 0x477f59
push ecx
push str.reports
lea ecx, [ebp - 0x78]
call fcn.004663e0
lea edx, [ebx + 0x34]
mov ecx, eax
call fcn.00479210
test edi, edi
je 0x477f6c
mov eax, dword [ebp - 0x60]
sub eax, edi
sar eax, 2
push eax
push edi
call fcn.00402860
lea ecx, [ebp - 0x78]
call fcn.00465be0
mov esi, 1
jmp 0x477e0c
Function at 0x478a30
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4daa98
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a7480
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x44]
push 0x104
push eax
push 0x4f84d0
push dword [ebp + 8]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x478ae5
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x478ac0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00404370
mov esi, 1
jmp 0x478ae7
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x478b09
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret 8

Function at 0x479aa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push esi
mov esi, ecx
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x479b3f
push 0x2c
push eax
lea eax, [esp + 0x14]
push eax
call fcn.004a7480
add esp, 0xc
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
mov dword [esp + 0x1c], 0x400000
mov dword [esp + 0x30], str.Q360SoftMgrTimerWnd
mov dword [esp + 0x10], 0x479b90
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [esp + 0x20]
push 0
push 0xfffffffffffffffd
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x58]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x479b49
push esi
push 0xffffffffffffffeb
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47d4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x47d535
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x47d535
xor edx, edx
div dword [esi + 0x3cc]
test edx, edx
jne 0x47d535
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x47d534
push edi
lea edi, [esi + 0x3f4]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.0047ce10
cmp byte [esi + 4], 0
mov edx, ebx
je 0x47d507
xor eax, eax
cmp dword [esi + 0x3cc], eax
jle 0x47d507
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, dword [esi + 0x3cc]
jl 0x47d4f5
push dword [esi + 0x3cc]
push dword [ebp + 8]
push edi
call fcn.004a6f00
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
add esp, 0xc
div ecx
inc dword [ebp - 4]
add ebx, ecx
add dword [ebp + 8], ecx
cmp dword [ebp - 4], eax
jb 0x47d4d8
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x47d580
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
or esi, 0xffffffff
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x47d5b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47d5d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x47d5e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x480740
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x868
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x480777
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret 0x14
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.004a7480
add esp, 0xc
lea eax, [ebp - 0x80c]
test edi, edi
je 0x4807aa
push edi
push esi
push 0x4f7fb8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x4807ba
push esi
push 0x4f7ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x40
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.004a7480
mov ax, word [ebp + 0x18]
add esp, 0xc
mov word [ebp - 0x834], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x864], 0x44
movups xmmword [ebp - 0x81c], xmm0
push eax
lea eax, [ebp - 0x864]
mov dword [ebp - 0x838], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x80c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x480762
cmp dword [ebp + 0x10], 0
je 0x480849
push dword [ebp + 0x14]
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x81c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x818]
call esi
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e923
mov esp, ebp
pop ebp
ret 0x14

Function at 0x480880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x48094d
mov eax, dword [0x4f7758]
xorps xmm0, xmm0
movups xmmword [ebp - 0x22], xmm0
push 0x38
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x5c]
movq qword [ebp - 0x12], xmm0
movq xmm0, qword [str.runas]
push 0
push eax
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movq qword [ebp - 0x24], xmm0
call fcn.004a7480
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x4c], ebx
push eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x48094d
cmp dword [ebp + 0x10], 0
je 0x48092c
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e923
mov esp, ebp
pop ebp
ret 0x10
Function at 0x481a10
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x510628
push 0x4a9410
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x516108]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x481a7d
push 1
push str.ExtensionProtect
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x481a78
mov ebx, 1
push eax
call edi
push esi
call edi
jmp 0x481a83
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x481a8c
lea eax, [ebx + 1]
jmp 0x481af1
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x44], ebx
xor esi, esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], ebx
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x481ae3
push 0x10020
push str.ExtensionProtect
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x481ae3
lea eax, [ebp - 0x38]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00481b19
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret
Function at 0x484390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc1d4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x516108]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x51a670]
test esi, esi
jne 0x4843f5
push 0x140
call fcn.0048e442
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x4843e6
mov ecx, eax
call fcn.00483db0
mov esi, eax
jmp 0x4843e8
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [0x51a670], esi
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4844b2
push 1
mov ecx, esi
call fcn.0041c630
push 0xe8
call fcn.0048e442
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x484435
mov ecx, eax
call fcn.0040fbf0
mov edi, eax
jmp 0x484437
xor edi, edi
push 3
push 0x83
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.0040f8c0
push 2
mov ecx, edi
call fcn.00410750
movaps xmm0, xmmword [0x4dfe10]
sub esp, 0x10
mov eax, esp
mov ecx, edi
movups xmmword [eax], xmm0
call fcn.004108a0
push edi
mov ecx, esi
call fcn.0041c650
push 0
mov ecx, esi
call fcn.0041b060
movaps xmm0, xmmword [0x4dfe20]
push 0
push ecx
mov eax, esp
push 0x40000
push SysReAllocString
push 0x4f7f28
push ecx
mov dword [eax], 0
lea ecx, [ebp - 0x20]
mov eax, esp
movups xmmword [ebp - 0x20], xmm0
push 0
mov dword [eax], ecx
mov ecx, esi
call fcn.00419d20
push 1
push dword [esi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0041c710
push eax
call fcn.0045bd70
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048e923
mov esp, ebp
pop ebp
ret