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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53704b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x583d10]
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 0x4e7ad9
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.004f2e30
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 0x4e7b1d
xor al, al
jmp 0x4e7cc9
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 0x4e7b41
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 0x4e7b7c
xor ecx, ecx
jmp 0x4e7b8a
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e7b81
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 0x4e7cae
push esi
call fcn.004f09ec
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 0x4e7ca5
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x234]
push eax
push 0x55a9e4
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4e7ca5
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.004f2e30
mov eax, dword [ebp - 0x240]
push esi
push edi
push ebx
movzx eax, ax
push eax
push 0x559744
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004fd999
mov ecx, dword [ebp - 0x238]
lea eax, [ebp - 0x218]
add esp, 0x28
push eax
call fcn.00426090
push dword [ebp - 0x244]
call fcn.004f304f
add esp, 4
mov bl, 1
jmp 0x4e7cb0
push ebx
call fcn.004f304f
add esp, 4
xor bl, bl
cmp dword [ebp - 0x21c], 0x10
jb 0x4e7cc7
push dword [ebp - 0x230]
call fcn.004b217d
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.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4e9420
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x583d10]
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 0x4e9480
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.004fd999
add esp, 0x14
test eax, eax
js 0x4e958a
lea eax, [ebp - 0x804]
push 0x55aa28
push eax
call fcn.0051efbb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e9584
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.0051eba8
push ebx
mov esi, eax
call fcn.0051eeb9
add esp, 0x10
test esi, esi
je 0x4e956a
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 0x4e952f
xor ecx, ecx
jmp 0x4e9543
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e9534
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.004ebb90
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 0x4e965c
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, dword [ebp - 0x810]
cmp dword [eax + 0xdc], 0
je 0x4e965c
cmp dword [eax + 0xe0], 0x10
lea esi, [eax + 0xcc]
jb 0x4e95ae
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.004fd999
add esp, 0x14
test eax, eax
js 0x4e965c
lea eax, [ebp - 0x804]
push 0x55aa28
push eax
call fcn.0051efbb
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e965c
push dword [ebp + 0x10]
push dword [ebp - 0x81c]
push ebx
call fcn.0051eba8
push ebx
mov esi, eax
call fcn.0051eeb9
add esp, 0x10
test esi, esi
je 0x4e964f
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.004ebb90
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.004f225b
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4e9680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5372b6
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x583d10]
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 0x55aea8
push eax
mov dword [ebp - 0x854], ecx
call fcn.004f7325
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e98e0
push 2
push 0
push ebx
call fcn.004f784d
push ebx
call fcn.004f7c60
push 0
push 0
push ebx
mov edi, eax
call fcn.004f784d
add esp, 0x1c
lea esi, [ebp - 0x81c]
cmp edi, 0x800
jb 0x4e971c
lea eax, [edi + 1]
push eax
call fcn.004f09ec
add esp, 4
mov esi, eax
push ebx
push edi
push 1
push esi
call fcn.004f7712
add esp, 0x10
test eax, eax
je 0x4e98bd
cmp edi, 8
jle 0x4e98bd
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.004f9bb0
lea ecx, [ebp - 0x1c]
add esp, 0xc
lea edx, [ecx + 1]
jmp 0x4e9760
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9760
sub ecx, edx
je 0x4e9794
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.004e9420
mov edi, eax
jmp 0x4e9797
or edi, 0xffffffff
mov ecx, dword [ebp - 0x850]
lea eax, [ebp - 0x1c]
push eax
call fcn.004e9f50
test al, al
jne 0x4e98c0
push 0
push 0x5506f3
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 0x4e9806
xor ecx, ecx
jmp 0x4e9819
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e9810
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.004eb860
cmp dword [ebp - 0x838], 0x10
jb 0x4e9867
push dword [ebp - 0x84c]
call fcn.004b217d
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 0x4e98a0
push dword [ebp - 0x834]
call fcn.004b217d
add esp, 4
mov dword [ebp - 0x820], 0xf
mov dword [ebp - 0x824], 0
mov byte [ebp - 0x834], 0
jmp 0x4e98c0
or edi, 0xffffffff
push ebx
call fcn.004f719e
lea eax, [ebp - 0x81c]
add esp, 4
cmp esi, eax
je 0x4e98dc
push esi
call fcn.004f304f
add esp, 4
mov eax, edi
jmp 0x4e98e3
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.004f225b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4eb7a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4eb7ef
mov edx, dword [ebp + 8]
cmp edx, 1
jne 0x4eb7cc
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x58377c]
call fcn.004e9420
pop ebp
ret 0x10
test edx, edx
jne 0x4eb7e8
push eax
push edx
push edx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x583780]
call fcn.004e9420
pop ebp
ret 0x10
or eax, 0xffffffff
pop ebp
ret 0x10
cmp byte [ecx + 0x9a], 0
je 0x4eb805
mov dword [ebp + 0x14], 0
pop ebp
jmp fcn.004ea2b0
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [esi + 0x10]
push eax
call fcn.004f3aa7
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.004f27e0
push 0
push 0
push edi
push 0x4ea280
push 0
push 0
call fcn.004f6132
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 0x4ed240
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x583d10]
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 0x4ed27f
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 0x4ed263
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret

Function at 0x4ed2f0
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 + 0x5837c0]
dec eax
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed318
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 0x4ed301
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ed4e0
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 0x4ed4fa
dec eax
jne 0x4ed503
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004ed510
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004ed5e0
pop ebp
ret
Function at 0x4ed5e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x583d10]
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.004fcf52
mov edi, eax
add esp, 0xc
mov esi, edi
test edi, edi
jle 0x4ed683
nop
cmp esi, 8
jge 0x4ed638
mov eax, 8
sub eax, edi
push eax
lea eax, [ebp - 0xc]
add eax, edi
push eax
push dword [ebx + 0x78]
call fcn.004fcf52
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x4ed638
add esi, edi
jmp 0x4ed610
test esi, esi
jle 0x4ed67b
mov ecx, 8
sub ecx, esi
test ecx, ecx
jle 0x4ed660
mov eax, 8
sub eax, ecx
mov edi, edi
cmp eax, 8
jae 0x4ed694
mov byte [ebp + eax - 0xc], 0
dec ecx
inc eax
test ecx, ecx
jg 0x4ed650
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.004ed6a0
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebx + 0x7c]
call fcn.004fbbcb
add esp, 0x14
test edi, edi
jg 0x4ed5f6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
call fcn.004f5df3
int3

Function at 0x4ed7e0
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 + 0x5838c8]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed81b
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 0x4ed7f8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ed870
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x583d10]
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 0x4ed8a0
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0x14], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x583848]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed8c3
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 0x4ed8a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4ed930
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x583d10]
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 0x4ed960
xor edx, edx
mov eax, edi
div ebx
mov dword [ebp - 0x14], edx
lea esi, [eax + ecx]
movzx eax, byte [edi + 0x583888]
dec eax
mov ebx, eax
and ebx, reloc.OLEAUT32.dll_VariantInit
jns 0x4ed983
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 0x4ed960
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4ed9f0
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 + 0x583918]
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 + 0x583958]
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 + 0x583998]
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 + 0x5839d8]
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 + 0x583a18]
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 + 0x583a58]
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 + 0x583a98]
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 + 0x583ad8]
or byte [edi + 3], al
xor ebx, ebx
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea ecx, [ecx]
movzx eax, byte [ebx + 0x5838f8]
mov esi, ebx
dec eax
shr esi, 3
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4edb5c
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 0x4edb40
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 0x4edef0
Capabilities:
Query service status
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537858
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x583d10]
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 0x4ee0c7
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 0x4ee05f
cmp dword [ebp - 0x20], ebx
je 0x4ee05f
call fcn.00422b30
test eax, eax
jg 0x4edfba
push ebx
push 0x22f
push str.RepairService_repair.cc
lea ecx, [ebp - 0xf0]
call fcn.00422b40
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 0x4edfd1
lea ecx, [ebp - 0xf0]
call fcn.00422b90
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 0x4ee02f
cmp esi, 0xffffffff
je 0x4ee02f
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 0x4ee02f
cmp ecx, 0xffffffff
je 0x4ee02f
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x4ee02f
mov bl, 1
jmp 0x4ee031
xor bl, bl
test ecx, ecx
je 0x4ee05b
cmp ecx, 0xffffffff
je 0x4ee05b
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 0x4ee0c9
call fcn.00422b30
cmp eax, 2
jg 0x4ee0b0
push 2
push 0x22b
push str.RepairService_repair.cc
lea ecx, [ebp - 0x1a0]
call fcn.00422b40
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 0x4ee0c7
lea ecx, [ebp - 0x1a0]
call fcn.00422b90
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.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x4ee0f0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5378b8
mov eax, dword fs:[0]
push eax
sub esp, 0x184
mov eax, dword [0x583d10]
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 0x4ee1b2
call fcn.00422b30
cmp eax, 2
jg 0x4ee197
push 2
push 0x1f8
push str.RepairService_repair.cc
lea ecx, [ebp - 0xe0]
call fcn.00422b40
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 0x4ee1ae
lea ecx, [ebp - 0xe0]
call fcn.00422b90
xor eax, eax
jmp 0x4ee216
call fcn.00422b30
test eax, eax
jg 0x4ee1fc
push 0
push 0x1fc
push str.RepairService_repair.cc
lea ecx, [ebp - 0x190]
call fcn.00422b40
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 0x4ee213
lea ecx, [ebp - 0x190]
call fcn.00422b90
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.004f225b
mov esp, ebp
pop ebp
ret