Function at 0x10004810
Capabilities:
Encode data using xor
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003962b
mov eax, dword fs:[0]
push eax
mov eax, 0x1854
call fcn.1001bbd0
mov eax, dword [0x10149be4]
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
cmp dword [0x1014ad28], 1
je 0x100048e5
mov eax, dword [0x1014978c]
mov dword [0x10149790], eax
mov eax, dword [0x10149798]
mov dword [0x1014979c], eax
mov eax, dword [0x101497a4]
mov dword [0x101497a8], eax
mov eax, dword [0x101497b0]
mov dword [0x1014acf8], 0
mov dword [0x1014acfc], 0
mov dword [0x1014ad00], 0
mov dword [0x1014ad04], 0
mov dword [0x1014ad08], 0
mov dword [0x1014ad0c], 0
mov dword [0x1014ad10], 0
mov dword [0x1014ad14], 0
mov dword [0x1014ad18], 0
mov dword [0x1014ad1c], 0
mov dword [0x1014ad20], 0
mov dword [0x101497b4], eax
mov word [ebp - 0x17e0], 0x74c1
call fcn.10021244
and eax, 0x800000ff
jns 0x10004901
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x17de], al
mov eax, dword [0x1014ad28]
mov dword [ebp - 0x17dc], eax
mov eax, dword [0x1004907c]
mov dword [ebp - 0x17d8], eax
mov eax, dword [str.PREMIUM]
mov dword [ebp - 0x17d4], eax
mov eax, dword [0x1003d134]
mov byte [ebp - 0x17dd], 0
mov dword [ebp - 0x17d0], eax
call fcn.10008180
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x17cc], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x17bc], xmm0
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x17ac], eax
lea eax, [ebp - 0x185c]
push eax
push 0x1000
lea eax, [ebp - 0x176c]
mov dword [ebp - 0x185c], 0
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10004cd4
mov esi, dword [ebp - 0x185c]
xor edi, edi
shr esi, 2
mov dword [ebp - 0x1860], esi
test esi, esi
jle 0x10004b7a
mov eax, dword [ebp + edi*4 - 0x176c]
test eax, eax
je 0x10004b5b
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x10004b54
push 0x104
lea eax, [ebp - 0x564]
push eax
push ebx
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10004b54
mov eax, 0x1003d139
mov byte [ebp - 0x1854], 0x25
mov byte [ebp - 0x1852], 0
mov al, byte [eax]
xor al, 0x7d
mov byte [ebp - 0x1853], al
lea eax, [ebp - 0x564]
push eax
call fcn.10006b40
push eax
lea eax, [ebp - 0x1854]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
mov word [ebp - 0x1854], ax
mov byte [ebp - 0x1852], al
lea eax, [ebp - 0x76c]
push 0x104
push eax
lea eax, [ebp - 0x564]
push eax
call fcn.10006ba0
add esp, 0x1c
test al, al
je 0x10004b54
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.1001e7e0
mov eax, 0x1003d139
mov byte [ebp - 0x1858], 0x25
mov byte [ebp - 0x1856], 0
mov al, byte [eax]
xor al, 0x7d
mov byte [ebp - 0x1857], al
lea eax, [ebp - 0x76c]
push eax
lea eax, [ebp - 0x1858]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
xor eax, eax
add esp, 0x18
mov word [ebp - 0x1858], ax
xor edx, edx
mov byte [ebp - 0x1856], al
mov al, byte [ebp + edx - 0x114]
cmp al, 0x41
jl 0x10004ac8
cmp al, 0x5a
jg 0x10004ac8
add al, 0x20
mov byte [ebp + edx - 0x114], al
lea eax, [ebp - 0x114]
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10004ad2
sub eax, esi
cmp edx, eax
jbe 0x10004ab0
mov edx, 0xb4
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x1003d13c]
xor al, dl
mov byte [ebp + ecx - 0x17f8], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x17
jb 0x10004af0
mov byte [ebp - 0x17e1], 0
lea ecx, [ebp - 0x17f8]
lea eax, [ebp - 0x114]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10004b40
test dl, dl
je 0x10004b3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10004b40
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004b20
xor eax, eax
jmp 0x10004b45
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x10004b66
mov esi, dword [ebp - 0x1860]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, esi
jl 0x100049a0
jmp 0x10004b7a
mov eax, dword [ebp + edi*4 - 0x176c]
push ebx
mov dword [ebp - 0x1770], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x35c]
push 0
push eax
call fcn.1001e7e0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1001e7e0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x35c]
add esp, 0x18
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x35c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call esi
push 0x1003c6d8
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100102e0
push 0x35
lea eax, [ebp - 0x17a8]
push 0
push eax
call fcn.1001e7e0
movups xmm0, xmmword [ebp - 0x218]
mov eax, dword [ebp - 0x1f8]
add esp, 0x18
mov dword [ebp - 0x1788], eax
mov eax, dword [0x1014ad40]
movups xmmword [ebp - 0x17a8], xmm0
movups xmm0, xmmword [ebp - 0x208]
movups xmmword [ebp - 0x1798], xmm0
test eax, eax
je 0x10004c45
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x1784], xmm0
mov al, byte [eax + 0x10]
mov byte [ebp - 0x1774], al
cmp byte [0x10a6c7c6], 0
jne 0x10004cb4
mov edx, 0x27
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.kaiGEH__y_TgPXSe]
xor al, dl
mov byte [ebp + ecx - 0x1850], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x56
jb 0x10004c60
mov byte [ebp - 0x17fa], 0
lea eax, [ebp - 0x17cc]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x17d4]
push eax
push dword [ebp - 0x17d8]
lea eax, [ebp - 0x1850]
push dword [ebp - 0x17dc]
push eax
push 0
call fcn.1000e660
add esp, 0x18
movzx eax, byte [ebp - 0x17df]
mov ecx, 0x10049738
push eax
lea eax, [ebp - 0x17e0]
push eax
call fcn.10006fa0
mov byte [0x10a6c7c6], 1
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.1001bbbf
mov esp, ebp
pop ebp
ret