Function at 0x10002a4e
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ac
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
cmp edx, 0xb0
jb 0x10002d4a
push 0x10
pop edx
cmp ecx, edx
jb 0x10002d4a
mov ebx, dword [ebp + 8]
push edx
push 0
push ebx
mov dword [eax], edx
call fcn.10003a5c
mov eax, dword [edi + 0xc]
add esp, 0xc
or dword [ebx + 8], 0xffffffff
mov esi, dword [0x1000a03c]
mov dword [ebx], eax
mov dword [ebx + 4], 1
test esi, esi
je 0x10002d3d
cmp dword [esi + 0xc], 0
je 0x10002acd
mov eax, dword [esi + 4]
cmp eax, dword [edi]
jne 0x10002ac7
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
je 0x10002acd
mov esi, dword [esi]
test esi, esi
jne 0x10002ab2
test esi, esi
je 0x10002d3d
lea eax, [esi + 0x10]
push eax
push 0xa0
lea ecx, [edi + 0x10]
lea edx, [esp + 0x158]
call fcn.10002d9e
or dword [esp + 0x14], 0xffffffff
lea edx, [esp + 0x158]
push 0xa0
lea ecx, [esp + 0x18]
call fcn.100037b4
mov eax, dword [esp + 0x18]
add esp, 0xc
not eax
cmp dword [edi + 8], eax
jne 0x10002d39
cmp dword [esp + 0x14], 0x1000
jb 0x10002d4a
mov edi, dword [0x1000577c]
test edi, edi
jne 0x10002b46
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x28]
mov dword [0x1000577c], edi
xor edx, edx
lea eax, [edi + 0x1087]
div edi
xor ecx, ecx
lea edx, [eax + 2]
imul edx, edi
mov dword [esp + 0x10], edx
call fcn.100032ff
push eax
push 0x3000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10002d4a
lea ecx, [eax + edi]
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push eax
push 3
pop ecx
call fcn.100032ff
mov ecx, dword [esp + 0x14]
push eax
lea eax, [edi + edi]
mov edi, dword [esp + 0x1c]
sub ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
test edi, edi
je 0x10002d21
test al, al
je 0x10002d21
mov ecx, dword [ebp + 0xc]
push ecx
push edi
mov dword [ecx], 0x1000
lea ecx, [esp + 0x158]
mov eax, dword [esi + 0xc]
push ecx
call eax
and dword [edi + 8], 0
add esp, 0xc
mov dword [edi + 4], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
xor edi, edi
mov eax, dword [0x10005568]
inc edi
mov dword [esp + 0xc], eax
cmp eax, 0xc8
ja 0x10002c15
cmp eax, edi
jl 0x10002c15
push eax
lea eax, [esp + 0x1f4]
push str.00_r
push eax
call fcn.10003a38
add esp, 0xc
jmp 0x10002c2e
push 0x10
pop edx
mov dword [esp + 0xc], edx
xor ecx, ecx
mov al, cl
xor al, 0xc0
mov byte [esp + ecx + 0x1f0], al
inc ecx
cmp ecx, edx
jl 0x10002c1e
rdtsc
and dword [esp + 0xcc], 0
mov dword [esp + 0x1c], edx
cdq
xor eax, edx
sub eax, edx
neg eax
xor esi, esi
mov dword [esp + 0xc8], eax
lea ecx, [esp + 0xc8]
call fcn.1000272c
mov dword [esp + esi*4 + 0x48], eax
inc esi
cmp esi, 0x20
jb 0x10002c4c
mov eax, dword [esp + 0x48]
mov esi, dword [ebp + 0xc]
and eax, 0xffffff7f
and dword [esp + 0x58], 0
or eax, 0x40
mov dword [esp + 0x48], eax
mov esi, dword [esi]
mov dword [esp + 0x4c], esi
shr esi, 2
jmp 0x10002c95
lea ecx, [esp + 0xc8]
call fcn.1000272c
mov dword [ebx + esi*4], eax
inc esi
cmp esi, 0x422
jb 0x10002c85
mov eax, dword [0x1000556c]
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebx + 0x1008]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x200]
push eax
call fcn.100028da
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov dword [ebx + 0x1000], ecx
mov esi, 0x10000
xor ecx, ecx
mov edx, ebx
test al, al
lea eax, [esp + 0x50]
push eax
cmovne esi, ecx
or esi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x1004], esi
call fcn.10002d54
pop ecx
pop ecx
xor esi, esi
lea ecx, [esp + 0xc8]
call fcn.1000272c
inc esi
cmp esi, 0x20
jb 0x10002d04
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x1088
jmp 0x10002d24
push 4
pop edi
push 0x8000
push 0
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10002d4d
push 2
jmp 0x10002d3f
push 3
xor edi, edi
pop eax
mov dword [ebx + 4], eax
lea eax, [edi + 1]
jmp 0x10002d4d
push 4
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret