Function at 0x10003232
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 0x1000352a
push 0x10
pop edx
cmp ecx, edx
jb 0x1000352a
mov ebx, dword [ebp + 8]
push edx
push 0
push ebx
mov dword [eax], edx
call fcn.10006617
mov eax, dword [edi + 0xc]
add esp, 0xc
or dword [ebx + 8], 0xffffffff
mov esi, dword [0x1000d070]
mov dword [ebx], eax
mov dword [ebx + 4], 1
test esi, esi
je 0x1000351d
cmp dword [esi + 0xc], 0
je 0x100032b1
mov eax, dword [esi + 4]
cmp eax, dword [edi]
jne 0x100032ab
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
je 0x100032b1
mov esi, dword [esi]
test esi, esi
jne 0x10003296
test esi, esi
je 0x1000351d
lea eax, [esi + 0x10]
push eax
push 0xa0
lea ecx, [edi + 0x10]
lea edx, [esp + 0x158]
call fcn.1000357e
or dword [esp + 0x14], 0xffffffff
lea edx, [esp + 0x158]
add esp, 4
lea ecx, [esp + 0x10]
call fcn.1000625c
mov eax, dword [esp + 0x10]
not eax
pop ecx
cmp dword [edi + 8], eax
jne 0x10003519
cmp dword [esp + 0x14], 0x1000
jb 0x1000352a
mov edi, dword [0x1000d084]
test edi, edi
jne 0x10003326
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0x28]
mov dword [0x1000d084], 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.10005d0f
push eax
push 0x3000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1000352a
lea ecx, [eax + edi]
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push eax
push 3
pop ecx
call fcn.10005d0f
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 0x10003501
test al, al
je 0x10003501
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 [0x100085a0]
inc edi
mov dword [esp + 0xc], eax
cmp eax, 0xc8
ja 0x100033f5
cmp eax, edi
jl 0x100033f5
push eax
lea eax, [esp + 0x1f4]
push str.00_r
push eax
call fcn.100065f3
add esp, 0xc
jmp 0x1000340e
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 0x100033fe
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.10002614
mov dword [esp + esi*4 + 0x48], eax
inc esi
cmp esi, 0x20
jb 0x1000342c
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 0x10003475
lea ecx, [esp + 0xc8]
call fcn.10002614
mov dword [ebx + esi*4], eax
inc esi
cmp esi, 0x422
jb 0x10003465
mov eax, dword [0x100085a4]
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.100030b7
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.10003534
pop ecx
pop ecx
xor esi, esi
lea ecx, [esp + 0xc8]
call fcn.10002614
inc esi
cmp esi, 0x20
jb 0x100034e4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x1088
jmp 0x10003504
push 4
pop edi
push 0x8000
push 0
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1000352d
push 2
jmp 0x1000351f
push 3
xor edi, edi
pop eax
mov dword [ebx + 4], eax
lea eax, [edi + 1]
jmp 0x1000352d
push 4
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret