joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004ec330
mov eax, dword [0x559540]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
movzx edx, byte [edi + 1]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
add eax, 1
shl edx, 0x10
add eax, 1
shl ecx, 0x18
or ecx, edx
xor edx, edx
mov dh, byte [eax - 1]
add eax, 1
movzx ebx, byte [eax + 1]
add eax, 1
add eax, 1
or ecx, edx
movzx edx, byte [eax - 3]
or ecx, edx
movzx edx, byte [eax - 2]
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
xor ebx, ebx
mov bh, byte [eax]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x2f], cl
mov bl, byte [eax + 1]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2d], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
cmp dword [esp + 0x44], 0
mov dword [esp + 0x20], edx
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x4b0e35
mov ebx, dword [esp + 0x3c]
sub dword [esp + 0x18], 1
test esi, esi
jne 0x4b0d99
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004afe80
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x34], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x36], al
mov byte [esp + 0x35], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x38], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 8
add esp, 8
add dword [esp + 0x10], 1
mov byte [esp + 0x2f], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
xor al, byte [ebx]
add esi, 1
mov byte [ebp], al
add ebp, 1
add ebx, 1
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x4b0d33
cmp dword [esp + 0x10], 0
je 0x4b0e1c
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x28]
mov ebx, ecx
shr ebx, 0x10
mov byte [eax], bl
mov ebx, ecx
add eax, 1
shr ebx, 8
mov byte [eax], bl
mov byte [eax + 1], cl
add eax, 1
add eax, 1
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
add eax, 1
shr ecx, 0x10
mov byte [eax], cl
add eax, 1
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
mov byte [eax + 1], dl
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ebd2c
add esp, 0x28
ret
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ebd2c
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebd2c
add esp, 0x28
ret
Function at 0x4b13d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004ec330
mov eax, dword [0x559540]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov dh, byte [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
add eax, 1
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
add eax, 1
xor ebx, ebx
mov bh, byte [eax]
add eax, 1
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x2c], cl
mov dword [esp + 0x10], 0
or edx, ebx
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2e], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x4b15b1
sub dword [esp + 0x18], 1
test esi, esi
jne 0x4b150d
mov ecx, dword [esp + 0x24]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00474900
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3b], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x3c], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 0xc
add dword [esp + 0x10], 1
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
add esi, 1
mov byte [ebp], cl
add eax, 1
add ebp, 1
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x4b14a7
cmp dword [esp + 0x10], 0
je 0x4b1598
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
add eax, 1
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ebd2c
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004ebd2c
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ebd2c
add esp, 0x28
ret
Function at 0x4b7717
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
test edx, edx
jne 0x4b7729
push 0xd
pop eax
jmp 0x4b7760
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp + 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b7737
sub ecx, dword [ebp + 0xc]
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x4b772f
push esi
push edx
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ba68a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x60
mov eax, 0x50bb54
call fcn.004ebe03
mov edi, ecx
mov dword [ebp - 0x64], edi
mov eax, dword [ebp + 0xc]
lea ebx, [edi + 0xc]
mov esi, dword [ebp + 8]
push ebx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x68], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 4], 0xffffffff
jne 0x4ba850
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4ba850
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x4ba850
and dword [ebp - 0x58], 0
call fcn.004bab28
push eax
lea ecx, [ebp - 0x58]
call fcn.004b8a71
and dword [ebp - 4], 0
and dword [ebp - 0x5c], 0
call fcn.004bab28
push eax
lea ecx, [ebp - 0x5c]
call fcn.004b8a71
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.004ba98c
mov esi, dword [ebp - 0x58]
pop ecx
cmp dword [esi - 0xc], 0
je 0x4ba83d
call fcn.004bba96
xor ebx, ebx
test eax, eax
je 0x4ba74f
movdqa xmm0, xmmword [0x5110b0]
lea ecx, [ebp - 0x54]
movdqu xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x44], 0x6174
lea edx, [ecx + 1]
mov byte [ebp - 0x42], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ba743
lea eax, [ebp - 0x54]
jmp 0x4ba775
movdqa xmm0, xmmword [0x511080]
lea ecx, [ebp - 0x40]
movdqu xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x30], 0x776f
lea edx, [ecx + 1]
mov byte [ebp - 0x2e], bl
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ba76b
lea eax, [ebp - 0x40]
sub ecx, edx
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004b99a0
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x58]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.004b99a0
push 1
push 0x510cac
lea ecx, [ebp - 0x58]
call fcn.004b99a0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004b948f
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx]
lea ecx, [ebp - 0x58]
push dword [eax - 0xc]
push eax
call fcn.004b99a0
movdqa xmm0, xmmword [0x5110d0]
lea ecx, [ebp - 0x2c]
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x756b6361
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0x78742e70
mov word [ebp - 0x14], 0x74
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ba7e5
sub ecx, edx
lea eax, [ebp - 0x2c]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.004b99a0
mov esi, dword [ebp - 0x58]
push ebx
push 0x80
push 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 3
push 0xc0120089
push esi
call ebx
push 0
push 0x80
push 4
push 0
push 3
mov dword [edi + 4], eax
mov edi, dword [ebp - 0x5c]
push 0xc0120089
push edi
call ebx
mov ecx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x68]
mov dword [ecx + 8], eax
jmp 0x4ba840
mov edi, dword [ebp - 0x5c]
lea ecx, [edi - 0x10]
call fcn.004bc9da
lea ecx, [esi - 0x10]
call fcn.004bc9da
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004ebdb2
ret 8
Function at 0x4ba98c
Capabilities:
Contain obfuscated stackstrings
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4baacb
push 0x128
lea eax, [ebp - 0x244]
push edi
push eax
call fcn.004edc70
add esp, 0xc
mov dword [ebp - 0x244], 0x128
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x4baa24
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6c707865
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], 0x7265726f
push eax
mov dword [ebp - 0xc], 0x6578652e
mov byte [ebp - 8], 0
call fcn.004eeaa9
pop ecx
pop ecx
test eax, eax
je 0x4baa2a
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4ba9e8
jmp 0x4baa30
mov edi, dword [ebp - 0x23c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4baacb
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4baacb
lea ecx, [ebp - 0x248]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4baacb
push 0x103
lea eax, [ebp - 0x117]
mov dword [ebp - 0x11c], 0x104
push 0
push eax
mov byte [ebp - 0x118], 0
call fcn.004edc70
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
test eax, eax
je 0x4baacb
lea edx, [ebp - 0x118]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4baab3
sub edx, esi
lea eax, [ebp - 0x118]
push edx
push eax
mov ecx, ebx
call fcn.004bcbab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
Function at 0x4bb88a
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov ebx, ecx
call fcn.004bba01
test eax, eax
je 0x4bb8b2
xor eax, eax
inc eax
jmp 0x4bb962
push esi
mov esi, 0x104
lea eax, [ebp - 0x10b]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4bb95f
cmp eax, esi
je 0x4bb95f
mov byte [ebp - 0x10c], 0x22
mov byte [ebp + eax - 0x10b], 0x22
add eax, 2
cmp eax, 0x106
jae 0x4bb9fb
xor ecx, ecx
push 0xf003f
push ecx
push ecx
mov byte [ebp + eax - 0x10c], cl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4bb972
mov esi, 0x400
lea eax, [ebp - 0x50c]
push esi
push eax
push 0xd80a
call fcn.004b9c40
add esp, 0xc
test eax, eax
jne 0x4bb94a
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
add esp, 0x10
push 0
lea eax, [ebx + 0x40]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
xor eax, eax
add ebx, 0x40
push eax
push eax
push str.RPCSS
push eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 3
push 0x10
push 0xf01ff
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x4bb9e7
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 0x400
lea eax, [ebp - 0x50c]
push esi
push eax
push 0xd80b
call fcn.004b9c40
add esp, 0xc
test eax, eax
jne 0x4bb9df
push str.Could_not_start_service
lea eax, [ebp - 0x50c]
push esi
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
add esp, 0x10
push 0
push ebx
jmp 0x4bb950
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call esi
push edi
call esi
xor eax, eax
inc eax
jmp 0x4bb961
call fcn.004eb79c
int3

Function at 0x4bba3f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x94
lea eax, [ebp - 0x98]
push esi
push 0
push eax
call fcn.004edc70
add esp, 0xc
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret

Function at 0x4bba96
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x94
lea eax, [ebp - 0x98]
push esi
push 0
push eax
call fcn.004edc70
add esp, 0xc
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
Function at 0x4bbaf4
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push 0xff
push 0x100
push eax
call fcn.004eee8a
xor ebx, ebx
lea eax, [ebp - 0x104]
add esp, 0x14
mov byte [ebp - 5], bl
mov dword [ebp - 0x108], eax
cmp dword [esi + 0x160], ebx
jne 0x4bbb4c
push eax
call fcn.004eec6b
pop ecx
lea eax, [esi + 0x40]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4bbb7b
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
push 1
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret

Function at 0x4bbed0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x170], eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x4c07ad
push edi
push edi
call fcn.004eefa8
mov dword [esi + 0x168], eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x4c0673
push edi
push edi
call fcn.004eefa8
add esp, 0x30
mov dword [esi + 0x16c], eax
mov ecx, esi
push dword [ebp + 8]
call fcn.004bbda9
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 4

Function at 0x4bbfd3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
and dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4bc03a
cmp dword [ebp - 8], 1
je 0x4bc01f
cmp dword [ebp - 8], 2
je 0x4bc01f
push 0xd
pop eax
jmp 0x4bc03a
mov eax, dword [ebp - 0xc]
test esi, esi
je 0x4bc036
test eax, eax
je 0x4bc033
cmp byte [esi + eax - 1], 0
je 0x4bc036
jmp 0x4bc01a
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4bc04c
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1002c
call fcn.004ec330
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x1002c], 0
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 4], 0xffffffff
je 0x4bc224
lea eax, [ebp - 0x1000c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x4bc17a
push eax
push eax
push eax
push dword [esi + 8]
mov dword [ebp - 0x10008], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10008]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc224
cmp dword [ebp - 0x10008], 0
jbe 0x4bc224
and dword [ebp - 0x10010], 0
lea eax, [ebp - 0x10010]
push 0
push eax
push dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4bc224
cmp dword [ebp - 0x10010], 0
jbe 0x4bc224
push dword [ebp - 0x10010]
and dword [ebp - 0x10018], 0
lea eax, [ebp - 0x10004]
push eax
lea ecx, [ebp - 0x10028]
mov dword [ebp - 0x10014], 0xf
mov byte [ebp - 0x10028], 0
call fcn.004be2ee
lea eax, [ebp - 0x10028]
push eax
lea ecx, [esi + 0x24]
call fcn.004b94df
push 0
push 1
lea ecx, [ebp - 0x10028]
call fcn.004bdd48
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x4bc224
push 0xffff
lea eax, [ebp - 0x10003]
mov byte [ebp - 0x10004], 0
push 0
push eax
call fcn.004edc70
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x10010], eax
push eax
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10010]
push eax
push 0xffff
lea eax, [ebp - 0x10004]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4bc224
cmp dword [ebp - 0x10010], 0
jbe 0x4bc224
push dword [ebp - 0x10010]
and dword [ebp - 0x10018], 0
lea eax, [ebp - 0x10004]
push eax
lea ecx, [ebp - 0x10028]
mov dword [ebp - 0x10014], 0xf
mov byte [ebp - 0x10028], 0
call fcn.004be2ee
lea eax, [ebp - 0x10028]
push eax
lea ecx, [esi + 0x24]
call fcn.004b94df
push 0
push 1
lea ecx, [ebp - 0x10028]
call fcn.004bdd48
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi + 0x24]
push ecx
mov ecx, edi
call fcn.004b8be3
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret 4
Function at 0x4bcdb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x30], eax
test eax, eax
je 0x4bcdff
push edi
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x4bbb8b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4bcdfc
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret
Function at 0x4bcec6
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.004bba01
test eax, eax
jne 0x4bceeb
inc eax
jmp 0x4bd0b6
push ebx
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x82c], ebx
test ebx, ebx
jne 0x4bcf53
mov ebx, 0x400
lea eax, [ebp - 0x404]
push ebx
push eax
push 0xd80a
call fcn.004b9c40
add esp, 0xc
test eax, eax
jne 0x4bcf41
push str.Could_not_open_Service_Manager
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
add esp, 0x10
push edi
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x404]
push eax
push edi
jmp 0x4bd0ac
push 0x10020
add esi, 0x40
push esi
push ebx
mov dword [ebp - 0x824], esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 0x828], edi
test edi, edi
jne 0x4bcfc3
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x400
lea eax, [ebp - 0x404]
push ebx
push eax
push 0xd80c
call fcn.004b9c40
add esp, 0xc
test eax, eax
jne 0x4bcfb5
push str.Could_not_open_service
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
add esp, 0x10
push 0
push esi
lea eax, [ebp - 0x404]
jmp 0x4bd0a9
lea eax, [ebp - 0x820]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, 0x400
test eax, eax
jne 0x4bd03f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x4bd03f
cmp eax, 0x425
jne 0x4bcff9
cmp dword [ebp - 0x81c], 3
je 0x4bd03f
push ebx
lea eax, [ebp - 0x404]
push eax
push 0xd80e
call fcn.004b9c40
add esp, 0xc
test eax, eax
jne 0x4bd02d
push str.Could_not_stop_service
lea eax, [ebp - 0x404]
push ebx
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
add esp, 0x10
push 0
push esi
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp - 0x828]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push dword [ebp - 0x82c]
call esi
test edi, edi
je 0x4bd067
xor eax, eax
inc eax
jmp 0x4bd0b4
push ebx
lea eax, [ebp - 0x804]
push eax
push 0xd80d
call fcn.004b9c40
add esp, 0xc
test eax, eax
jne 0x4bd09b
push str.Could_not_delete_service
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004ee14d
push eax
call fcn.004b4a42
add esp, 0x10
push 0
push dword [ebp - 0x824]
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ebd2c
mov esp, ebp
pop ebp
ret