joyce8/EMBER2024-capa huggingface dataset:
Function at 0x428ab4
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x559b2b
call fcn.0052b327
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call fcn.0040a371
push esi
push esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, str.windir
push edi
mov dword [ebp - 0x18], 1
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jbe 0x428b2a
push eax
call fcn.00518720
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0
push eax
call fcn.0052b590
add esp, 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push edi
call esi
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.00428863
push dword [ebp - 0x10]
call fcn.0052b8e4
pop ecx
cmp dword [ebx + 0x14], 0
je 0x428b3c
push str.system32cmd.exe
mov ecx, ebx
call fcn.00428a9b
mov eax, ebx
call fcn.0052b3ff
ret

Function at 0x428b44
Capabilities:
Set file attributes

Disassembly:
push 4
mov eax, 0x559b46
call fcn.0052b35a
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x428b80
cmp dword [eax + 0x18], 0x10
jb 0x428b68
mov eax, dword [eax + 4]
jmp 0x428b6b
add eax, 4
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
jmp 0x428b9d
cmp dword [eax + 0x18], 0x10
jb 0x428b8b
mov eax, dword [eax + 4]
jmp 0x428b8e
add eax, 4
push 0x80
jmp 0x428b6d
call fcn.0052b3ff
ret
Function at 0x429bf8
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x70]
push esi
mov esi, dword [ebp + 0x7c]
xor edx, edx
push edi
mov edi, dword [ebp + 0x74]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebx], edx
je 0x429d27
cmp dword [edi + 0x14], edx
je 0x429d27
cmp eax, edx
je 0x429d27
cmp esi, edx
je 0x429d27
cmp dword [0x5c7c3c], edx
jne 0x429c8d
push 0x90
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0052b590
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x2c], 6
mov ecx, dword [ebp - 0x38]
mov dword [0x5c7c3c], 2
jb 0x429c8d
mov dword [0x5c7c3c], 0x22
cmp dword [ecx + 0x18], 0x10
jb 0x429c98
mov eax, dword [ecx + 4]
jmp 0x429c9b
lea eax, [ecx + 4]
push dword [0x5c7c3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x429d27
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x31], 0
jb 0x429cc0
mov edi, dword [edi + 4]
jmp 0x429cc3
add edi, 4
movzx ecx, word [ebx]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x429d19
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x429d19
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
inc eax
push eax
call fcn.00518720
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x429d19
mov edx, dword [esi]
mov byte [eax + edx], 0
push dword [esi]
push ebx
push dword [ecx]
call fcn.0052c7c0
add esp, 0xc
mov byte [ebp - 0x31], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x31]
jmp 0x429d29
xor al, al
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b318
add ebp, 0x68
leave
ret 0x10
Function at 0x430793
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov eax, dword [eax + 4]
xor ebx, ebx
cmp dword [eax + edi + 8], ebx
je 0x4307b2
xor al, al
jmp 0x4308e6
push 0x574538
push 0x24000
push ebx
push ebx
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4307ab
push esi
lea eax, [ebp - 0x2c]
push eax
push 2
push ebx
mov ecx, edi
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call fcn.00425fa7
mov ecx, eax
call fcn.0042590e
mov esi, dword [eax + 8]
add esi, dword [eax]
push ebx
push ebx
mov ecx, edi
call fcn.00425fa7
lea eax, [esi + 1]
push eax
call fcn.00518720
mov edi, eax
pop ecx
mov dword [ebp - 0xc], edi
cmp edi, ebx
je 0x4308d8
lea eax, [esi + 1]
push eax
push ebx
push edi
call fcn.0052b590
mov ecx, dword [ebp + 8]
add esp, 0xc
push esi
push 0xffffffffffffffff
push edi
call fcn.0042601d
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push esi
mov byte [edi + esi], bl
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [ebp - 0x10], ebx
call edi
test eax, eax
jne 0x430858
push 2
pop eax
push ebx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push esi
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
call edi
mov eax, dword [ebp - 8]
cmp eax, ebx
jbe 0x4308cf
inc eax
push eax
call fcn.00518720
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4308cf
mov ecx, dword [ebp - 8]
inc ecx
push ecx
push ebx
push eax
call fcn.0052b590
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
push esi
push dword [ebp - 0xc]
call edi
cmp eax, 1
jne 0x4308c6
push ebx
push 7
push dword [ebp - 8]
push dword [ebp + 8]
push 0x10001
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
dec eax
neg eax
sbb al, al
inc al
mov byte [ebp - 1], al
jne 0x4308c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80092005
sete byte [ebp - 1]
push dword [ebp + 8]
call fcn.0052b8e4
pop ecx
push dword [ebp - 0xc]
call fcn.0052b8e4
pop ecx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov al, byte [ebp - 1]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x4308ec
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push str.ROOT
push ebx
mov byte [ebp - 1], bl
call dword [sym.imp.CRYPT32.dll_CertOpenSystemStoreA]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4309ab
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0x10
jb 0x43091d
mov eax, dword [eax + 4]
jmp 0x430920
add eax, 4
push esi
push ebx
push eax
push 0x70007
push ebx
push 0x10001
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov esi, eax
cmp esi, ebx
je 0x4309a0
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
lea eax, [ebp + 8]
push eax
push ebx
push ebx
push dword [esi + 8]
mov dword [ebp + 8], ebx
push dword [esi + 4]
call edi
cmp dword [ebp + 8], ebx
jbe 0x43099f
push dword [ebp + 8]
call fcn.00518720
pop ecx
lea ecx, [ebp + 8]
push ecx
push eax
push ebx
push dword [esi + 8]
mov dword [ebp - 8], eax
push dword [esi + 4]
call edi
cmp eax, 1
jne 0x430996
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp dword [eax + ecx + 8], ebx
jne 0x430996
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00430697
mov byte [ebp - 1], 1
push dword [ebp - 8]
call fcn.0052b8e4
pop ecx
pop edi
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret 8
Function at 0x4345e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x13c
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x13c], eax
push 0x50
mov eax, 0x55b210
call fcn.0052b35a
mov ecx, dword [ebp + 0x148]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ebx
call fcn.00402291
xor edi, edi
inc edi
push 2
pop esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
call fcn.004a3420
cmp eax, 0x800
jl 0x434640
push 0x22
pop esi
lea eax, [ebp - 0x5c]
push eax
call fcn.0049ac90
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 2
jb 0x434659
mov eax, dword [eax + 4]
jmp 0x43465c
add eax, 4
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0
mov ebx, eax
push edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
call fcn.00402d14
test ebx, ebx
je 0x434775
push 0x57147c
push 0x72
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x434775
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x434775
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea esi, [edi + 1]
push esi
call fcn.0052b6e7
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x434775
push esi
push 0
push eax
call fcn.0052b590
add esp, 0xc
push edi
push ebx
push dword [ebp - 0x14]
call fcn.0052c7c0
lea eax, [ebp - 0x40]
add esp, 0xc
push eax
call fcn.0042cce3
pop ecx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 3
jb 0x4346fe
mov eax, dword [eax + 4]
jmp 0x434701
add eax, 4
push eax
push 0x1dcd204
lea ecx, [ebp]
call fcn.0040c550
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00402d14
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040c48a
lea esi, [eax + 1]
test esi, esi
jbe 0x434769
push esi
call fcn.0052b6e7
mov ebx, eax
pop ecx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x434769
push esi
push 0
push ebx
call fcn.0052b590
add esp, 0xc
push esi
push ebx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp]
call fcn.0040c45e
test al, al
je 0x434769
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.00402cf3
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0040c310
and dword [ebp - 4], 0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x434789
push dword [ebp - 0x14]
call fcn.0052b60a
pop ecx
cmp dword [ebp - 0x1c], esi
je 0x434797
push dword [ebp - 0x1c]
call fcn.0052b60a
pop ecx
cmp dword [ebp - 0x18], esi
je 0x4347a5
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x13c]
xor ecx, ebp
call fcn.0052b318
add ebp, 0x140
leave
ret 4
Function at 0x442f8c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x15c
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x15c], eax
push 0x90
mov eax, 0x55d918
call fcn.0052b35a
mov esi, dword [ebp + 0x168]
xor edi, edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call fcn.004029c2
push dword [ebp + 0x16c]
xor ebx, ebx
lea eax, [ebp - 0x30]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00442e61
pop ecx
pop ecx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
mov byte [ebp - 4], 2
test eax, eax
jne 0x443020
lea eax, [ebp - 0x48]
push eax
mov ecx, esi
call fcn.004029f4
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], bl
call fcn.00402a81
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402a81
mov eax, esi
jmp 0x443194
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push 0x1c
cdq
pop ecx
idiv ecx
cmp edi, eax
jae 0x443164
push edi
lea ecx, [ebp - 0x30]
call fcn.004077dc
push str..
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406a34
add esp, 0xc
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x443062
mov eax, dword [eax + 4]
jmp 0x443065
add eax, 4
lea ecx, [ebp]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0
push ebx
lea ecx, [ebp - 0x64]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00402d14
cmp esi, 0xffffffff
je 0x44316b
lea eax, [ebp + 0x2c]
push eax
call fcn.0052ab50
pop ecx
test eax, eax
jbe 0x443132
cmp byte [ebp + 0x2c], 0x2e
je 0x443132
test byte [ebp], 0x10
je 0x443132
push edi
lea ecx, [ebp - 0x30]
call fcn.004077dc
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0049b210
pop ecx
pop ecx
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x140]
push eax
mov byte [ebp - 4], 5
call fcn.00406a34
add esp, 0xc
push 0
push ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 7
call fcn.00402d14
lea eax, [ebp + 0x140]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0049b210
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 8
call fcn.00402b62
push 0
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00402d14
push 0
push ebx
lea ecx, [ebp + 0x140]
mov byte [ebp - 4], 3
call fcn.00402d14
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44308a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc edi
jmp 0x443024
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x48]
push eax
call fcn.004029f4
or dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402a81
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.00402a81
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x15c]
xor ecx, ebp
call fcn.0052b318
add ebp, 0x160
leave
ret
Function at 0x44a0fe
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x55ec83
call fcn.0052b327
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
test byte [0x5c99e4], bl
jne 0x44a1a1
movzx eax, word [0x5c9a30]
movzx ecx, word [0x5c9a32]
imul eax, eax, 0x9069
mov edx, dword [0x5c9a38]
add eax, ecx
movzx ecx, word [0x5c9a5c]
or dword [0x5c99e4], ebx
imul ecx, ecx, 0x4650
mov dword [0x5c9a30], eax
movzx eax, word [0x5c9a5e]
add ecx, eax
mov eax, dword [0x5c9a58]
imul eax, eax, 0x10dcd
mov esi, edx
shl esi, 0xc
xor esi, edx
mov edi, edx
add eax, 0x12d687
shl esi, 5
shr edi, 0xd
xor esi, edi
mov dword [0x5c9a58], eax
xor edx, esi
xor al, cl
add al, dl
mov dword [0x5c9a5c], ecx
mov dword [0x5c9a38], edx
mov byte [0x5c99e0], al
xor esi, esi
jmp 0x44a1a6
mov al, byte [0x5c99e0]
test byte [0x5c99e4], 2
jne 0x44a21d
or dword [0x5c99e4], 2
mov cl, al
xor cl, 0x63
mov byte [0x5c99d8], cl
mov cl, al
dec cl
xor cl, 0x6d
mov byte [0x5c99d9], cl
mov cl, al
sub cl, 2
xor cl, 0x39
mov byte [0x5c99da], cl
mov cl, al
sub cl, 3
xor cl, 0x6b
mov byte [0x5c99db], cl
mov cl, al
sub cl, 4
xor cl, 0x61
mov byte [0x5c99dc], cl
mov cl, al
sub cl, 5
xor cl, 0x6d
mov byte [0x5c99dd], cl
mov cl, al
sub cl, 6
xor cl, 0x38
sub al, 7
xor al, 0x3d
mov byte [0x5c99de], cl
mov byte [0x5c99df], al
mov ecx, dword [ebp - 0x14]
push esi
push 8
call fcn.004074f0
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
mov bl, byte [0x5c99e0]
mov ecx, dword [ebp - 0x14]
sub bl, al
xor bl, byte [eax + 0x5c99d8]
push eax
call fcn.00407518
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
mov byte [eax], bl
jb 0x44a231
mov eax, dword [ebp - 0x14]
call fcn.0052b3ff
ret
Function at 0x44d698
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x44d725
cmp dword [0x5c9b30], 0x10
mov eax, dword [0x5c9b1c]
jae 0x44d6cc
mov eax, 0x5c9b1c
push ebx
push esi
push 0x14
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x44d71e
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44d71b
cmp dword [ebp - 0x20], 4
je 0x44d717
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x44d71b
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret

Function at 0x44d72b
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x44d7a9
cmp dword [0x5c9b30], 0x10
mov eax, dword [0x5c9b1c]
jae 0x44d75f
mov eax, 0x5c9b1c
push ebx
push esi
push 4
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
cmp esi, edi
je 0x44d7a2
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x44d79f
cmp dword [ebp - 0x20], 4
jne 0x44d79f
mov byte [ebp - 1], 1
push esi
call ebx
push dword [ebp - 8]
call ebx
pop esi
pop ebx
mov al, byte [ebp - 1]
pop edi
leave
ret
Function at 0x45e5f5
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x80
push edi
lea eax, [ebp - 0x84]
push 0
push eax
mov esi, ecx
call fcn.0052b590
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 0xc
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb0]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x20]
call fcn.00402cf3
push edi
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0xb4]
call ebx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0x3c]
call fcn.00402cf3
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0xb8], 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b318
leave
ret

Function at 0x465412
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x40
mov eax, 0x5618cf
call fcn.0052b327
mov eax, dword [ebp + 0x12c]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0x18], ebx
jne 0x465512
push 0x103
lea eax, [ebp + 0x1d]
push ebx
push eax
mov byte [ebp + 0x1c], bl
call fcn.0052b590
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push ebx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp]
call fcn.0043b5e2
push ebx
push str.Temp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.0043b5e2
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.0040fe86
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040dd12
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040a290
push ebx
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040a290
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp]
call fcn.0040e572
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 3
call fcn.00402bef
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00402d14
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.0040a290
mov ecx, dword [ebp - 0x10]
add esi, 4
push esi
call fcn.004022fc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0052b318
add ebp, 0x124
leave
ret 4

Function at 0x46c634
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, edx
mov eax, edx
xor eax, dword [esp + 0xc]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x46c66b
push esi
push edi
mov esi, dword [esp + 0xc]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x46c64a
pop edi
pop esi
ret
Function at 0x472ee0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x561a43
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.00518a9b
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x472f31
mov eax, dword [esi + 0x1c]
push eax
call fcn.00529442
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4740f0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x47410b
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x474400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561f23
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov edx, 7
xor ecx, ecx
xor esi, esi
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], ecx
mov word [eax + 4], si
mov dword [eax + 0x34], edx
xor edx, edx
mov dword [eax + 0x30], ecx
mov word [eax + 0x20], dx
mov dword [eax + 0x50], 0xf
mov dword [eax + 0x4c], ecx
mov byte [eax + 0x3c], cl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret