joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9c30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.004fc890
mov eax, dword [0x577690]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x4d9dc4
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.00499e10
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.00499f10
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004bacc0
push ebp
call fcn.00499e10
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.00499f10
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004bacc0
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x4d9c73
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.004f8e7f
add esp, 0xa0
ret

Function at 0x4d9ef0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.004fc930
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret
Function at 0x4dc7d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004fc890
mov eax, dword [0x577690]
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
inc eax
inc eax
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 8
inc eax
or ecx, edx
movzx edx, byte [eax - 2]
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax]
movzx eax, byte [eax + 1]
shl ebx, 8
or ebx, eax
mov ebp, dword [esp + 0x40]
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 + 0x10], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x2f], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x4dc99c
mov ebx, dword [esp + 0x3c]
dec dword [esp + 0x18]
test esi, esi
jne 0x4dc914
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004db670
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
inc dword [esp + 0x10]
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]
inc esi
mov byte [ebp], al
inc ebp
inc ebx
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x4dc8b0
cmp dword [esp + 0x10], 0
je 0x4dc983
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
inc eax
shr ebx, 8
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
inc eax
shr ecx, 0x10
mov byte [eax], cl
inc eax
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.004f8e7f
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.004f8e7f
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.004f8e7f
add esp, 0x28
ret
Function at 0x4dede0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.004fc890
mov eax, dword [0x577690]
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
inc eax
inc eax
shl edx, 0x10
shl ecx, 0x18
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 8
inc eax
or ecx, edx
movzx edx, byte [eax - 2]
or ecx, edx
movzx edx, byte [eax - 1]
inc eax
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax]
movzx eax, byte [eax + 1]
shl ebx, 8
or ebx, eax
mov ebp, dword [esp + 0x40]
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 + 0x10], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov byte [esp + 0x2f], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x4defac
mov ebx, dword [esp + 0x3c]
dec dword [esp + 0x18]
test esi, esi
jne 0x4def24
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.004dddc0
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
inc dword [esp + 0x10]
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]
inc esi
mov byte [ebp], al
inc ebp
inc ebx
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x4deec0
cmp dword [esp + 0x10], 0
je 0x4def93
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
inc eax
shr ebx, 8
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
inc eax
shr ecx, 0x10
mov byte [eax], cl
inc eax
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.004f8e7f
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.004f8e7f
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.004f8e7f
add esp, 0x28
ret
Function at 0x4defd0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 8
call fcn.004fc890
push ebx
mov ebx, dword [esp + 0x10]
push esi
push 0x1048
push 0x558150
push ebx
call fcn.004fc9b0
mov ecx, dword [esp + 0x24]
add esp, 0xc
cmp ecx, 0x48
jle 0x4df001
mov ecx, 0x48
push edi
mov edi, dword [esp + 0x20]
mov eax, edi
add ecx, edi
lea esi, [ebx + 8]
mov dword [esp + 0x18], 6
push ebp
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4df020
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df02f
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df03e
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df04d
mov eax, edi
xor dword [esi - 8], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4df05a
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df069
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df078
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df087
mov eax, edi
xor dword [esi - 4], edx
movzx edx, byte [eax]
inc eax
cmp eax, ecx
jb 0x4df094
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df0a3
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df0b2
mov eax, edi
movzx ebp, byte [eax]
shl edx, 8
inc eax
or edx, ebp
cmp eax, ecx
jb 0x4df0c1
mov eax, edi
xor dword [esi], edx
add esi, 0xc
sub dword [esp + 0x1c], 1
jne 0x4df016
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
xor esi, esi
pop ebp
mov edi, edi
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.004dddc0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebx + esi*4], ecx
mov dword [ebx + esi*4 + 4], edx
add esi, 2
add esp, 8
cmp esi, 0x12
jl 0x4df0e0
xor esi, esi
pop edi
lea eax, [esp + 8]
push ebx
push eax
call fcn.004dddc0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + esi*4 + 0x48], ecx
mov dword [ebx + esi*4 + 0x4c], edx
add esi, 2
add esp, 8
cmp esi, 0x400
jl 0x4df108
pop esi
pop ebx
add esp, 8
ret
Function at 0x4e6020
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x4e6039
mov esi, ebx
mov ebx, eax
jmp 0x4e603b
mov esi, eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jg 0x4e604b
mov eax, edi
jmp 0x4e6055
push eax
push edi
call fcn.0045d040
add esp, 8
test eax, eax
jne 0x4e605d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4e6079
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4e6064
cmp eax, dword [esi + 4]
jge 0x4e6090
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4e6080
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
test eax, eax
jle 0x4e60b1
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4e60ae
dec eax
test eax, eax
jg 0x4e60a0
mov dword [edi + 4], eax
cmp dword [edi + 4], 0
jne 0x4e60be
mov dword [edi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4f8e7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x577690]
jne 0x4f8e89
repz ret
jmp fcn.00503ad5
Function at 0x50952c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00505c57
and dword [ebp - 4], 0
cmp dword [0x57bbdc], 0
mov ebx, eax
jne 0x5095dd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x50968e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x50968e
push eax
call fcn.00505be5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x57bbdc], eax
call esi
push eax
call fcn.00505be5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x57bbe0], eax
call esi
push eax
call fcn.00505be5
mov dword [esp], 0x55fcf8
push edi
mov dword [0x57bbe4], eax
call esi
push eax
call fcn.00505be5
pop ecx
mov dword [0x57bbec], eax
test eax, eax
je 0x5095dd
push 0x55fce0
push edi
call esi
push eax
call fcn.00505be5
pop ecx
mov dword [0x57bbe8], eax
mov eax, dword [0x57bbe8]
cmp eax, ebx
je 0x509635
cmp dword [0x57bbec], ebx
je 0x509635
push eax
call fcn.00505c60
push dword [0x57bbec]
mov esi, eax
call fcn.00505c60
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x509635
test edi, edi
je 0x509635
call esi
test eax, eax
je 0x50962c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x50962c
test byte [ebp - 0xc], 1
jne 0x509635
or dword [ebp + 0x10], 0x200000
jmp 0x50966e
mov eax, dword [0x57bbe0]
cmp eax, ebx
je 0x50966e
push eax
call fcn.00505c60
pop ecx
test eax, eax
je 0x50966e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x50966e
mov eax, dword [0x57bbe4]
cmp eax, ebx
je 0x50966e
push eax
call fcn.00505c60
pop ecx
test eax, eax
je 0x50966e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57bbdc]
call fcn.00505c60
pop ecx
test eax, eax
je 0x50968e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x509690
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5111cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00505c57
and dword [ebp - 4], 0
cmp dword [0x57bc54], 0
mov ebx, eax
jne 0x51127c
push 0x542f1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51132d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x560d94
push edi
call esi
test eax, eax
je 0x51132d
push eax
call fcn.00505be5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x57bc54], eax
call esi
push eax
call fcn.00505be5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x57bc58], eax
call esi
push eax
call fcn.00505be5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x57bc5c], eax
call esi
push eax
call fcn.00505be5
pop ecx
mov dword [0x57bc64], eax
test eax, eax
je 0x51127c
push 0x55fce0
push edi
call esi
push eax
call fcn.00505be5
pop ecx
mov dword [0x57bc60], eax
mov eax, dword [0x57bc60]
cmp eax, ebx
je 0x5112d4
cmp dword [0x57bc64], ebx
je 0x5112d4
push eax
call fcn.00505c60
push dword [0x57bc64]
mov esi, eax
call fcn.00505c60
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5112d4
test edi, edi
je 0x5112d4
call esi
test eax, eax
je 0x5112cb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5112cb
test byte [ebp - 0xc], 1
jne 0x5112d4
or dword [ebp + 0x10], 0x200000
jmp 0x51130d
mov eax, dword [0x57bc58]
cmp eax, ebx
je 0x51130d
push eax
call fcn.00505c60
pop ecx
test eax, eax
je 0x51130d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51130d
mov eax, dword [0x57bc5c]
cmp eax, ebx
je 0x51130d
push eax
call fcn.00505c60
pop ecx
test eax, eax
je 0x51130d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57bc54]
call fcn.00505c60
pop ecx
test eax, eax
je 0x51132d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51132f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4018b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x410280]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401939
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401939
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403bfe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00403bfe
mov esp, ebp
pop ebp
ret
Function at 0x401fe0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40208a
call fcn.00401f30
mov esi, eax
cmp esi, ebx
je 0x40208a
push 0x44
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.004057f0
add esp, 0xc
lea ecx, [ebp - 8]
push ecx
push 4
lea edx, [ebp - 4]
push edx
push 0x13
push esi
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.winsta0default
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebx
push edi
je 0x402055
mov edx, dword [ebp - 4]
push edx
jmp 0x402056
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
mov eax, dword [ebp - 4]
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40206e
push eax
call ebx
push esi
call ebx
test edi, edi
je 0x402081
mov edx, dword [ebp - 0x18]
push edx
call ebx
mov eax, dword [ebp - 0x14]
push eax
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402de0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x410280]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402e61
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x402e60
push edi
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x204]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push 0x40e398
push 0x40e398
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
je 0x402e5c
push eax
call edi
push esi
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403bfe
mov esp, ebp
pop ebp
ret
Function at 0x402e70
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x410280]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402f0b
push esi
push 0xf01ff
push 0x40e398
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402f03
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x402ef9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [ebp - 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x402ef8
mov edi, edi
cmp dword [ebp - 0x1c], 3
jne 0x402ef8
push 0x3e8
call edi
lea edx, [ebp - 0x20]
push edx
push esi
call ebx
test eax, eax
jne 0x402ee0
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
jmp 0x402f04
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00403bfe
mov esp, ebp
pop ebp
ret
Function at 0x402f20
Capabilities:
Enumerate services
Query service configuration
Query service status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x386c
call fcn.00409b30
mov eax, dword [0x410280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
cmp esi, ebx
je 0x40305c
push edi
push 0x40e35c
call fcn.00404864
add esp, 8
test eax, eax
jne 0x40306f
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
lea eax, [ebp - 0x3864]
push eax
lea ecx, [ebp - 0x3868]
push ecx
lea edx, [ebp - 0x386c]
push edx
push ebx
lea eax, [ebp - 0x1c24]
push eax
push 3
push 0x30
push esi
mov dword [ebp - 0x386c], ebx
mov dword [ebp - 0x3868], ebx
mov dword [ebp - 0x3864], ebx
call edi
lea ecx, [ebp - 0x3864]
push ecx
mov ecx, dword [ebp - 0x386c]
lea edx, [ebp - 0x3868]
push edx
lea eax, [ebp - 0x386c]
push eax
inc ecx
push ecx
lea edx, [ebp - 0x1c24]
push edx
push 3
push 0x30
push esi
call edi
cmp dword [ebp - 0x3868], ebx
jbe 0x402fec
mov dword [ebp - 0x386c], ebx
mov dword [ebp - 0x3868], ebx
mov dword [ebp - 0x3864], ebx
lea eax, [ebp - 0x3864]
push eax
lea ecx, [ebp - 0x3868]
push ecx
lea edx, [ebp - 0x386c]
push edx
push ebx
lea eax, [ebp - 0x3844]
push eax
push 3
push 0xb
push esi
call edi
lea ecx, [ebp - 0x3864]
push ecx
mov ecx, dword [ebp - 0x386c]
lea edx, [ebp - 0x3868]
push edx
lea eax, [ebp - 0x386c]
push eax
inc ecx
push ecx
lea edx, [ebp - 0x3844]
push edx
push 3
push 0xb
push esi
call edi
xor edi, edi
cmp dword [ebp - 0x3868], ebx
jbe 0x403055
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc edi
cmp edi, dword [ebp - 0x3868]
jb 0x403045
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00403bfe
mov esp, ebp
pop ebp
ret
push 0xf01ff
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, ebx
je 0x403055
lea eax, [ebp - 0x3860]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4030e6
lea ecx, [ebp - 0x3864]
push ecx
push ebx
push ebx
push edi
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x4030c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4030e6
mov edx, dword [ebp - 0x3864]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov ecx, dword [ebp - 0x3864]
lea eax, [ebp - 0x3864]
push eax
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x4030e6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
jmp 0x403056