joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53699b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x4e7559
mov eax, dword [eax]
mov byte [eax], 0
lea eax, [ebp - 0x113]
push 0x103
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.004f28b0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x114], 0
jne 0x4e759d
xor al, al
jmp 0x4e7749
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], 0
lea edx, [ecx + 1]
mov byte [ebp - 0x230], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e75c1
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00417e30
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, eax
cmp byte [edx], 0
jne 0x4e75fc
xor ecx, ecx
jmp 0x4e760a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e7601
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.00417e30
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4e772e
push esi
call fcn.004f046c
add esp, 4
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 0x10
mov ebx, eax
mov dword [ebp - 0x244], ebx
cmovae ecx, dword [ebp - 0x230]
push ebx
push esi
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4e7725
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x55966c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4e7725
mov eax, dword [ebp - 0x234]
push 0x103
push 0
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
lea eax, [ebp - 0x217]
push eax
mov dword [ebp - 0x240], ecx
mov byte [ebp - 0x218], 0
call fcn.004f28b0
mov eax, dword [ebp - 0x240]
push esi
push edi
push ebx
movzx eax, ax
push eax
push 0x5583cc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004fd419
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
add esp, 0x28
push eax
call fcn.00425fa0
push dword [ebp - 0x244]
call fcn.004f2acf
add esp, 4
mov bl, 1
jmp 0x4e7730
push ebx
call fcn.004f2acf
add esp, 4
xor bl, bl
cmp dword [ebp - 0x21c], 0x10
jb 0x4e7747
push dword [ebp - 0x230]
call fcn.004b1ca1
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4e8ea0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov byte [ebp - 0x805], 0
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x81c], ecx
lea esi, [eax + 0xb4]
mov ecx, dword [ebp + 0x18]
push edi
or edi, 0xffffffff
mov dword [ebp - 0x814], ecx
cmp dword [esi + 0x14], 0x10
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x810], eax
mov dword [ebp - 0x818], ebx
mov dword [ebp - 0x820], ecx
mov dword [ebp - 0x80c], edi
jb 0x4e8f00
mov esi, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebx
push eax
push esi
push str._s_send__x.gz
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.004fd419
add esp, 0x14
test eax, eax
js 0x4e900a
lea eax, [ebp - 0x804]
push 0x5596b0
push eax
call fcn.0051ea1b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e9004
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.0051e608
push ebx
mov esi, eax
call fcn.0051e919
add esp, 0x10
test esi, esi
je 0x4e8fea
push dword [ebp - 0x814]
mov ebx, dword [ebp - 0x818]
lea eax, [ebp - 0x80c]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x804]
push eax
sub esp, 0x18
xor eax, eax
mov edx, esp
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
cmp word [ebx], ax
jne 0x4e8faf
xor ecx, ecx
jmp 0x4e8fc3
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e8fb4
sub ecx, esi
sar ecx, 1
push ecx
push ebx
mov ecx, edx
call fcn.00417b50
mov eax, dword [ebp - 0x810]
add eax, 0x12c
push eax
call fcn.004eb610
mov edi, dword [ebp - 0x80c]
mov byte [ebp - 0x805], 1
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp - 0x805], 0
jne 0x4e90dc
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [ebp - 0x810]
cmp dword [eax + 0xdc], 0
je 0x4e90dc
cmp dword [eax + 0xe0], 0x10
lea esi, [eax + 0xcc]
jb 0x4e902e
mov esi, dword [esi]
call ebx
push eax
push esi
push str._s_send__x.gz
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.004fd419
add esp, 0x14
test eax, eax
js 0x4e90dc
lea eax, [ebp - 0x804]
push 0x5596b0
push eax
call fcn.0051ea1b
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e90dc
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.0051e608
push ebx
mov esi, eax
call fcn.0051e919
add esp, 0x10
test esi, esi
je 0x4e90cf
push dword [ebp - 0x814]
lea eax, [ebp - 0x80c]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x804]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x818]
call fcn.00417260
mov eax, dword [ebp - 0x810]
add eax, 0x12c
push eax
call fcn.004eb610
mov edi, dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4e9100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536c06
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x850], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x858], eax
mov eax, dword [ebp + 0xc]
push 0x559b30
push eax
mov dword [ebp - 0x854], ecx
call fcn.004f6da5
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e9360
push 2
push 0
push ebx
call fcn.004f72cd
push ebx
call fcn.004f76e0
push 0
push 0
push ebx
mov edi, eax
call fcn.004f72cd
add esp, 0x1c
lea esi, [ebp - 0x81c]
cmp edi, 0x800
jb 0x4e919c
lea eax, [edi + 1]
push eax
call fcn.004f046c
add esp, 4
mov esi, eax
push ebx
push edi
push 1
push esi
call fcn.004f7192
add esp, 0x10
test eax, eax
je 0x4e933d
cmp edi, 8
jle 0x4e933d
push 8
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0
xorps xmm0, xmm0
push esi
push eax
movq qword [ebp - 0x1b], xmm0
call fcn.004f9630
lea ecx, [ebp - 0x1c]
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x4e91e0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e91e0
sub ecx, edx
je 0x4e9214
push dword [ebp - 0x854]
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [edi - 8]
push eax
lea eax, [esi + 8]
push eax
push dword [ebp - 0x858]
call fcn.004e8ea0
mov edi, eax
jmp 0x4e9217
or edi, 0xffffffff
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x1c]
push eax
call fcn.004e99d0
test al, al
jne 0x4e9340
push 0
push 0x54f373
lea ecx, [ebp - 0x834]
mov dword [ebp - 0x820], 0xf
mov dword [ebp - 0x824], 0
mov byte [ebp - 0x834], al
call fcn.00417e30
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], 0xf
mov dword [ebp - 0x83c], 0
mov byte [ebp - 0x84c], 0
jne 0x4e9286
xor ecx, ecx
jmp 0x4e9299
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9290
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x84c]
call fcn.00417e30
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x84c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x834]
push eax
push eax
push 5
call fcn.004eb2e0
cmp dword [ebp - 0x838], 0x10
jb 0x4e92e7
push dword [ebp - 0x84c]
call fcn.004b1ca1
add esp, 4
cmp dword [ebp - 0x820], 0x10
mov dword [ebp - 0x838], 0xf
mov dword [ebp - 0x83c], 0
mov byte [ebp - 0x84c], 0
mov dword [ebp - 4], 0xffffffff
jb 0x4e9320
push dword [ebp - 0x834]
call fcn.004b1ca1
add esp, 4
mov dword [ebp - 0x820], 0xf
mov dword [ebp - 0x824], 0
mov byte [ebp - 0x834], 0
jmp 0x4e9340
or edi, 0xffffffff
push ebx
call fcn.004f6c1e
lea eax, [ebp - 0x81c]
add esp, 4
cmp esi, eax
je 0x4e935c
push esi
call fcn.004f2acf
add esp, 4
mov eax, edi
jmp 0x4e9363
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4eb220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4eb26f
mov edx, dword [ebp + 8]
cmp edx, 1
jne 0x4eb24c
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x58177c]
call fcn.004e8ea0
pop ebp
ret 0x10
test edx, edx
jne 0x4eb268
push eax
push edx
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x581780]
call fcn.004e8ea0
pop ebp
ret 0x10
or eax, 0xffffffff
pop ebp
ret 0x10
cmp byte [ecx + 0x9a], 0
je 0x4eb285
mov dword [ebp + 0x14], 0
pop ebp
jmp fcn.004e9d30
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [esi + 0x10]
push eax
call fcn.004f33b9
mov ecx, dword [ebp + 8]
mov edi, eax
push esi
push dword [ebp + 0xc]
mov dword [edi], ecx
lea ecx, [edi + 0xc]
push ecx
mov dword [edi + 4], 0
mov dword [edi + 8], esi
call fcn.004f2260
push 0
push 0
push edi
push 0x4e9d00
push 0
push 0
call fcn.004f5bb2
add esp, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
Function at 0x4eccc0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + str.91__]
mov esi, ebx
dec eax
shr esi, 3
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4eccff
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 0x14], edx
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
mov cl, 7
sub cl, byte [ebp - 0x14]
mov byte [ebp - 0xd], dl
cdq
and edx, 7
add eax, edx
mov dl, byte [ebp - 0xd]
sar eax, 3
and dl, byte [ebp + eax - 0xc]
mov al, bl
shr dl, cl
and al, 7
mov cl, 7
sub cl, al
mov eax, ebx
and eax, 7
shl dl, cl
mov ecx, 7
inc ebx
sub ecx, eax
mov al, 1
shl al, cl
not al
and al, byte [esi + edi]
or dl, al
mov byte [esi + edi], dl
cmp ebx, 0x38
jb 0x4ecce3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret

Function at 0x4ecd70
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
movzx eax, byte [ebx + 0x5817c0]
dec eax
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ecd98
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 8], edx
mov ecx, 7
sub ecx, edx
mov byte [ebp - 1], 1
mov ch, byte [ebp - 1]
cdq
shl ch, cl
and edx, 7
add eax, edx
mov cl, 7
sub cl, byte [ebp - 8]
mov edx, ebx
sar eax, 3
shr edx, 3
and ch, byte [eax + edi]
mov al, bl
and al, 7
shr ch, cl
mov cl, 7
sub cl, al
mov eax, ebx
shl ch, cl
and eax, 7
mov byte [ebp - 1], ch
inc ebx
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
not al
and al, byte [edx + esi]
or al, byte [ebp - 1]
mov byte [edx + esi], al
cmp ebx, 0x30
jb 0x4ecd81
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ecf60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
sub eax, 0
je 0x4ecf7a
dec eax
jne 0x4ecf83
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004ecf90
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004ed060
pop ebp
ret
Function at 0x4ed060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x78]
call fcn.004fc9d2
mov edi, eax
add esp, 0xc
mov esi, edi
test edi, edi
jle 0x4ed103
nop
cmp esi, 8
jge 0x4ed0b8
mov eax, 8
sub eax, edi
push eax
lea eax, [ebp - 0xc]
add eax, edi
push eax
push dword [ebx + 0x78]
call fcn.004fc9d2
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x4ed0b8
add esi, edi
jmp 0x4ed090
test esi, esi
jle 0x4ed0fb
mov ecx, 8
sub ecx, esi
test ecx, ecx
jle 0x4ed0e0
mov eax, 8
sub eax, ecx
mov edi, edi
cmp eax, 8
jae 0x4ed114
mov byte [ebp + eax - 0xc], 0
dec ecx
inc eax
test ecx, ecx
jg 0x4ed0d0
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.004ed120
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x7c]
call fcn.004fb64b
add esp, 0x14
test edi, edi
jg 0x4ed076
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
call fcn.004f5873
int3

Function at 0x4ed260
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 8], eax
mov ebx, 8
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0xc], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x5818c8]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed29b
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 1], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 1]
sar eax, 3
and dl, byte [ebp + eax - 8]
mov eax, dword [ebp - 0xc]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp + 8]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x30
jl 0x4ed278
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ed2f0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 0xc], eax
mov ebx, 8
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
jmp 0x4ed320
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0x14], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x581848]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed343
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 0xd], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 0xd]
sar eax, 3
and dl, byte [ebp + eax - 0xc]
mov eax, dword [ebp - 0x14]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp - 0x18]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x40
jl 0x4ed320
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4ed3b0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx]
xor edi, edi
mov dword [ebp - 0xc], eax
mov ebx, 8
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], eax
jmp 0x4ed3e0
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0x14], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x581888]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed403
dec ebx
or ebx, 0xfffffff8
inc ebx
mov ecx, 7
mov dl, 1
sub ecx, ebx
inc edi
shl dl, cl
mov cl, 7
mov byte [ebp - 0xd], dl
sub cl, bl
cdq
mov ebx, 8
and edx, 7
add eax, edx
mov dl, byte [ebp - 0xd]
sar eax, 3
and dl, byte [ebp + eax - 0xc]
mov eax, dword [ebp - 0x14]
shr dl, cl
mov cl, 7
sub cl, al
shl dl, cl
mov ecx, 7
sub ecx, eax
mov al, 1
shl al, cl
mov ecx, dword [ebp - 0x18]
not al
and al, byte [esi]
or dl, al
mov byte [esi], dl
cmp edi, 0x40
jl 0x4ed3e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4ed470
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
movzx edx, byte [esi]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x581918]
shl al, 4
or byte [edi], al
movzx edx, byte [esi + 1]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x581958]
or byte [edi], al
movzx edx, byte [esi + 2]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x581998]
shl al, 4
or byte [edi + 1], al
movzx edx, byte [esi + 3]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x5819d8]
or byte [edi + 1], al
movzx edx, byte [esi + 4]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x581a18]
shl al, 4
or byte [edi + 2], al
movzx edx, byte [esi + 5]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x581a58]
or byte [edi + 2], al
movzx edx, byte [esi + 6]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x581a98]
shl al, 4
or byte [edi + 3], al
movzx edx, byte [esi + 7]
mov ecx, edx
mov eax, edx
shr ecx, 4
and eax, 1
and ecx, 2
shr edx, 1
or ecx, eax
and edx, 0xf
add ecx, ecx
movzx eax, byte [edx + ecx*8 + 0x581ad8]
or byte [edi + 3], al
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea ecx, [ecx]
movzx eax, byte [ebx + 0x5818f8]
mov esi, ebx
dec eax
shr esi, 3
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed5dc
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 8], edx
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
mov cl, 7
sub cl, byte [ebp - 8]
mov byte [ebp + 0xb], dl
cdq
and edx, 7
add eax, edx
mov dl, byte [ebp + 0xb]
sar eax, 3
and dl, byte [ebp + eax - 4]
mov al, bl
shr dl, cl
and al, 7
mov cl, 7
sub cl, al
mov eax, ebx
and eax, 7
shl dl, cl
mov ecx, 7
inc ebx
sub ecx, eax
mov al, 1
shl al, cl
not al
and al, byte [esi + edi]
or dl, al
mov byte [esi + edi], dl
cmp ebx, 0x20
jl 0x4ed5c0
mov ecx, dword [ebp + 0x10]
movzx eax, byte [ecx]
xor byte [edi], al
movzx eax, byte [ecx + 1]
xor byte [edi + 1], al
movzx eax, byte [ecx + 2]
xor byte [edi + 2], al
movzx eax, byte [ecx + 3]
xor byte [edi + 3], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed970
Capabilities:
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5371a8
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x40], ebx
cmp dword [ecx + 0x38], 0x10
jne 0x4edb47
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x24
lea eax, [ebp - 0x3c]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4edadf
cmp dword [ebp - 0x20], ebx
je 0x4edadf
call fcn.00422a40
test eax, eax
jg 0x4eda3a
push ebx
push 0x22f
push str.RepairService_repair.cc
lea ecx, [ebp - 0xf0]
call fcn.00422a50
push dword [ebp - 0x20]
add eax, 8
mov dword [ebp - 4], 1
push str.dwProcessId:
mov ebx, 2
push eax
mov dword [ebp - 0x40], ebx
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4eda51
lea ecx, [ebp - 0xf0]
call fcn.00422aa0
push dword [ebp - 0x20]
mov dword [ebp - 0x14], 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor ecx, ecx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x4edaaf
cmp esi, 0xffffffff
je 0x4edaaf
mov dword [ebp - 0x14], esi
call fcn.0042a570
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.0042a990
mov ecx, dword [ebp - 0x14]
add esp, 0x10
test ecx, ecx
je 0x4edaaf
cmp ecx, 0xffffffff
je 0x4edaaf
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x4edaaf
mov bl, 1
jmp 0x4edab1
xor bl, bl
test ecx, ecx
je 0x4edadb
cmp ecx, 0xffffffff
je 0x4edadb
call fcn.0042a570
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
call fcn.0042a9c0
push dword [ebp - 0x14]
call fcn.0042a960
add esp, 0x14
mov al, bl
jmp 0x4edb49
call fcn.00422a40
cmp eax, 2
jg 0x4edb30
push 2
push 0x22b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1a0]
call fcn.00422a50
mov esi, eax
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.QueryServiceStatusEx_failed:
push eax
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4edb47
lea ecx, [ebp - 0x1a0]
call fcn.00422aa0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret
Function at 0x4edb70
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537208
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x581d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4edc32
call fcn.00422a40
cmp eax, 2
jg 0x4edc17
push 2
push 0x1f8
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00422a50
mov esi, eax
mov dword [ebp - 4], ebx
mov ebx, 1
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.QueryServiceStatus_failed:
push eax
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x4edc2e
lea ecx, [ebp - 0xe0]
call fcn.00422aa0
xor eax, eax
jmp 0x4edc96
call fcn.00422a40
test eax, eax
jg 0x4edc7c
push 0
push 0x1fc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x190]
call fcn.00422a50
push dword [ebp - 0x28]
add eax, 8
mov dword [ebp - 4], 1
push str.Service_state:
mov ebx, 2
push eax
mov dword [ebp - 0x30], ebx
call fcn.004189b0
add esp, 8
mov ecx, eax
call fcn.0041c1a0
mov dword [ebp - 4], 0xffffffff
test bl, 2
je 0x4edc93
lea ecx, [ebp - 0x190]
call fcn.00422aa0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f1cdb
mov esp, ebp
pop ebp
ret