joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4da1e4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4da212
mov eax, ebx
call fcn.004dac98
cmp dword [ebx + 0x40], 0
je 0x4da20b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4da283
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4da275
cmp dword [ebx + 8], 0
je 0x4da234
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4da246
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4da275
cmp dword [ebx + 8], 0
je 0x4da227
cmp eax, 3
je 0x4da259
dec eax
jne 0x4da227
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4da227
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4da227
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4da2a1
cmp dword [ebx + 0x14], 0xcc
je 0x4da2a1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004da2ac
pop ebx
ret

Function at 0x4f114c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
dec ecx
js 0x4f119d
lea eax, [ebp - 0x30]
cmp word [eax + 0x20], 3
je 0x4f1184
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4f1174
jmp 0x4f119d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4f1185
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505f34
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x547340
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x505f56
shr eax, 1
xor eax, 0xedb88320
jmp 0x505f58
shr eax, 1
dec edx
jne 0x505f44
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x505f3d
mov byte [0x547740], 1
pop esi
pop ebx
ret

Function at 0x505f74
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x547740], 0
jne 0x505f8b
call fcn.00505f34
mov eax, edi
dec eax
test eax, eax
jl 0x505fb3
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x547340]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x505f95
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x508d5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x508df6.0
jmp dword [ecx*4 + 0x508d8f]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x508dc1
sub dl, 8
je 0x508dd0
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508a04
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508a5c
jmp case.0x508df6.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x508df6.0
movzx ecx, byte [ecx + 0x508dfd]
jmp dword [ecx*4 + 0x508e0e]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508b08
jmp case.0x508df6.0
cmp dl, 3
jne 0x508e3b
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508b60
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508b1c
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508ba4
jmp case.0x508df6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x508e66
sub dl, 8
je 0x508e72
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508bd0
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508c3c
jmp case.0x508df6.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x508e91
sub dl, 8
je 0x508e9d
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508cf8
jmp case.0x508df6.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x508d20
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x508f3f
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00507f08
test eax, eax
je 0x508f3f
mov eax, ebx
call fcn.00508f48
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x508ed8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x508f48
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x508f79
dec al
je 0x508fb4
dec al
je 0x508ff9
dec al
je 0x509062
jmp 0x5090ec
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5090ec
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x508f89
jmp 0x5090ec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5090ec
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x508fc4
jmp 0x5090ec
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5090ec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x509028
xor ebp, ebp
jmp 0x509038
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x509041
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x509009
jmp 0x5090ec
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5090ec
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x5090bb
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00505fbc
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x509076
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407620
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x50d449
test al, 0x10
jne 0x50d44d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x518340
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
xor ecx, ecx
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x180], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x518564
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x540f58]
mov eax, dword [eax]
call fcn.004d0638
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x20], 0xffffffff
xor eax, eax
mov dword [ebp - 0x24], eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x518532
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00404b70
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 0x101
mov word [ebp - 0x3c], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x180]
mov ecx, ebx
mov edx, 0x51857c
call fcn.00407a78
mov eax, dword [ebp - 0x180]
call fcn.00407620
mov edx, eax
lea eax, [ebp - 4]
call fcn.00407750
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0x5185c4
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407620
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
jne 0x518466
mov ecx, 0x5185dc
mov dl, 1
mov eax, dword [0x40e688]
call fcn.00418554
call fcn.00405de0
jmp 0x518510
xor eax, eax
push ebp
push 0x518509
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
xor edx, edx
call fcn.004075e8
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xff
lea eax, [ebp - 0x17c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x1c], 0
jbe 0x5184d4
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x17c], 0
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x17c]
mov ecx, pe_nt_image_headers32
call fcn.0040778c
mov edx, dword [ebp - 0x184]
lea eax, [ebp - 8]
call fcn.004079b8
test bl, bl
je 0x5184de
cmp dword [ebp - 0x1c], 0
jne 0x51847e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518510
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x7c]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x518539
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00407594
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x51868c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00414d34
add esp, 0x20c
pop ebx
ret

Function at 0x5186b8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov edx, ebx
mov eax, esp
call fcn.00414d34
add esp, 0x20c
pop ebx
ret
Function at 0x530660
Capabilities:
Continue service
Pause service
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040757c
mov eax, dword [ebp - 8]
call fcn.0040757c
xor eax, eax
push ebp
push 0x5307f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00407620
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5307d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x5307a2
sub ebx, 1
jb 0x5306dd
je 0x53070d
dec ebx
je 0x530748
dec ebx
je 0x530775
jmp 0x5307aa
push 0x20
mov eax, dword [ebp - 8]
call fcn.00407620
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5307aa
xor eax, eax
mov dword [ebp - 0x18], eax
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00407620
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x530741
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceW
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5307aa
push 0x40
mov eax, dword [ebp - 8]
call fcn.00407620
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 2
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5307aa
push 0x40
mov eax, dword [ebp - 8]
call fcn.00407620
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ControlService
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x5307aa
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5307dd
cmp dword [ebp - 0x14], 0
je 0x5307c6
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x10], 0
je 0x5307d5
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x530808
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040757c
mov eax, dword [ebp - 8]
call fcn.0040757c
xor eax, eax
push ebp
push 0x5308e7
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5308c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00407620
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x530894
push 4
mov eax, dword [ebp - 8]
call fcn.00407620
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
jmp 0x530899
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5308cc
cmp dword [ebp - 0x14], 0
je 0x5308b5
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x10], 0
je 0x5308c4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x5308f8
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040757c
mov eax, dword [ebp - 8]
call fcn.0040757c
xor eax, eax
push ebp
push 0x5309e9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00407620
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5309c7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x10], 0
je 0x530993
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00407620
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ChangeServiceConfigW
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x53099b
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5309ce
cmp dword [ebp - 0x14], 0
je 0x5309b7
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x10], 0
je 0x5309c6
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x530bd4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040757c
xor eax, eax
push ebp
push 0x530c95
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x530c73
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x22]
xor ecx, ecx
mov edx, 0x1e
call fcn.00404b70
lea eax, [ebp - 0x222]
xor ecx, ecx
mov edx, 0x200
call fcn.00404b70
lea eax, [ebp - 0x222]
mov edx, dword [ebp - 4]
call fcn.00414aa4
xor eax, eax
mov dword [ebp - 0x22], eax
lea eax, [ebp - 0x222]
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x1e], 3
mov word [ebp - 0x12], 0x40
or word [ebp - 0x12], 0x10
or word [ebp - 0x12], 4
lea eax, [ebp - 0x22]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x530c7f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x530c9c
lea eax, [ebp - 4]
call fcn.00407584
ret
Function at 0x5316bc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00414d34
add esp, 0x20c
pop ebx
ret

Function at 0x5316e8
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040757c
mov eax, dword [ebp - 8]
call fcn.0040757c
xor eax, eax
push ebp
push 0x531783
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00407620
push eax
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jbe 0x531766
push 4
mov eax, dword [ebp - 8]
call fcn.00407620
push eax
push ebx
call sub.advapi32.dll_OpenServiceW
mov edi, eax
test edi, edi
jbe 0x531760
lea eax, [ebp - 0x24]
push eax
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x53175a
mov esi, dword [ebp - 0x20]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53178a
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040758c
ret

Function at 0x531dfc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
add esp, 0xffffffd4
mov esi, edx
mov ebx, eax
push 0x13
lea eax, [esp + 4]
push eax
push ebx
push 0x800
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jg 0x531e21
mov word [esp], 0
mov eax, esi
mov edx, esp
mov ecx, 0x15
call fcn.004077a4
add esp, 0x2c
pop esi
pop ebx
ret
Function at 0x531e98
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x531edc
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x531edc
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x531fb4
mov eax, 0x400
call fcn.00404274
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov edx, 0x547818
mov eax, dword [esp + 4]
call fcn.005322c0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x531fad
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x540a54
call sub.advapi32.dll_AllocateAndInitializeSid
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_GetLengthSid
call fcn.00404274
mov dword [0x547814], eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [0x547814]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetLengthSid
push eax
call sub.advapi32.dll_CopySid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x531fa3
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x531f9f
mov byte [esp], 1
jmp 0x531fa3
inc edi
dec ebx
jne 0x531f86
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00404290
movzx eax, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4b6480
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b65f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x8c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4b65d6
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409a74
mov dl, 1
mov eax, dword [0x470634]
call fcn.0047068c
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov dl, 1
mov eax, dword [0x419bf8]
call fcn.00403ae4
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x88]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00470708
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4b65d3
mov dl, 1
mov eax, dword [0x4710ec]
call fcn.00471154
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov edx, 0x4b6608
call 0x470a54
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404c08
xor eax, eax
push ebp
push 0x4b65cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00471454
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b6610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b65d3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00403b14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.00403b14
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00403b14
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b65f8
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404928
ret