Function at 0x10024c50
Capabilities:
Create thread
Encode data using xor
Enumerate processes
Set file attributes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x12c
push 0xffffffffffffffff
push 0x100292cb
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x10040cf8]
xor eax, ebp
mov dword [ebp + 0x128], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x134]
push 0
push 2
mov dword [ebp - 0x18], ebx
mov dword [ebp], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10024cf7
mov ecx, ebx
lea eax, [ebp + 0x24]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10024ce0
test dl, dl
je 0x10024cdc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10024ce0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10024cc0
xor eax, eax
jmp 0x10024ce5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10024d26
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10024cb5
cmp esi, 0xffffffff
je 0x10024d03
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.10026c20
lea esp, [ebp + 0x12c]
pop ebp
ret
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x1004118c], 1
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
jne 0x10024e46
mov dword [ebp - 0x10], 0x10038770
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x10024da7
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10024d9b
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x10024d82
mov byte [eax + edi], 0
mov esi, edi
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
push 1
push 0x40
push 8
push esi
lea ecx, [ebp - 0x180]
call fcn.100049c0
mov dword [ebp - 0x10], 0x10038798
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 4], 0
cmp byte [ebx + 0x13], 0
je 0x10024e0f
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10024e09
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [esi + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x10024df0
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0x180]
push esi
push eax
call fcn.10004550
push dword [ebp - 0x18]
lea eax, [ebp - 0x180]
push eax
call fcn.10004550
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x180]
call fcn.10004fb0
mov edi, dword [sym.imp.ucrtbased.dll_malloc]
cmp dword [0x1004119c], 1
jne 0x100250c3
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ucrtbased.dll__time64]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ucrtbased.dll__localtime64]
mov dword [ebp - 0x10], 0x100387bc
add esp, 8
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 0x14], eax
cmp byte [ebx + 0x13], 0
je 0x10024ebf
mov eax, dword [ebx + 0xf]
inc eax
push eax
call edi
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10024eb9
sub esi, edi
nop dword [eax]
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + esi]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x10024ea0
mov byte [eax + edi], 0
mov esi, edi
push 1
push 0x40
push 8
push esi
lea ecx, [ebp - 0xd0]
call fcn.100049c0
mov dword [ebp - 0x10], 0x100387d4
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
mov dword [ebp - 4], 1
cmp byte [ebx + 0x13], 0
je 0x10024f2f
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10024f29
sub esi, edi
nop dword [eax]
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + esi]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x10024f10
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.10004550
push dword [ebp - 0x14]
call dword [sym.imp.ucrtbased.dll_asctime]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x100387f8
add esp, 0x14
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x10024faf
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10024fa9
sub esi, edi
nop dword [eax]
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + esi]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x10024f90
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.10004550
push dword [ebp - 0x18]
lea eax, [ebp - 0xd0]
push eax
call fcn.10004550
mov dword [ebp - 0x10], 0x1003881c
add esp, 0x10
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x10025021
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1002501b
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + esi]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x10025002
mov byte [eax + edi], 0
mov esi, edi
lea eax, [ebp - 0xd0]
push esi
push eax
call fcn.10004550
add esp, 8
lea ecx, [ebp - 0xcc]
call fcn.100054a0
test eax, eax
jne 0x1002505a
push eax
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xd0]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140D.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov dword [ebp - 0x10], 0x10038858
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x100250af
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100250a9
sub esi, edi
nop
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + esi]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x10025090
mov byte [eax + edi], 0
mov esi, edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xd0]
call fcn.10004fb0
mov eax, dword [0x10041190]
push 0
cmp eax, 1
jne 0x100250f5
push 0
push 0
push 0x10025220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 2
jne 0x10025105
push 0
push 0
push 0x100251a0
jmp 0x100250d8
cmp eax, 3
jne 0x10025115
push 0
push 0
push 0x100252a0
jmp 0x100250d8
cmp eax, 4
jne 0x100250ef
push 0
push 0
push 0x10026220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], 0x10038870
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x10]
add esi, 0x14
cmp byte [ebx + 0x13], 0
je 0x10025180
mov eax, dword [ebx + 0xf]
inc eax
push eax
call dword [sym.imp.ucrtbased.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [ebx + 0xf]
xor edx, edx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1002517a
sub esi, edi
mov eax, edx
lea ecx, [edx + edi]
and eax, 7
inc edx
mov al, byte [eax + ebx + 7]
xor al, byte [ecx + esi]
mov byte [ecx], al
mov eax, dword [ebp - 0x14]
cmp edx, eax
jb 0x10025161
mov byte [eax + edi], 0
mov esi, edi
push 0x200010
push esi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x100250ed