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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2bc
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 0xa54351
push 0x10
pop edx
cmp ecx, edx
jb 0xa54351
mov ebx, dword [ebp + 8]
push edx
push 0
push ebx
mov dword [eax], edx
call fcn.00a55019
mov eax, dword [edi + 0xc]
add esp, 0xc
or dword [ebx + 8], 0xffffffff
mov esi, dword [0xa5c04c]
mov dword [ebx], eax
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov dword [ebx + 4], eax
test esi, esi
je 0xa54346
cmp dword [esi + 0xc], 0
je 0xa540d3
mov eax, dword [esi + 4]
cmp eax, dword [edi]
jne 0xa540cd
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
je 0xa540d3
mov esi, dword [esi]
test esi, esi
jne 0xa540b8
test esi, esi
je 0xa54346
lea eax, [esi + 0x10]
push eax
push 0xa0
lea ecx, [edi + 0x10]
lea edx, [esp + 0x168]
call fcn.00a543a5
or dword [esp + 0x18], 0xffffffff
lea edx, [esp + 0x168]
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00a54d63
mov eax, dword [esp + 0x14]
not eax
pop ecx
cmp dword [edi + 8], eax
jne 0xa54342
cmp dword [esp + 0x14], 0x1000
jb 0xa54351
mov edi, dword [0xa57784]
test edi, edi
jne 0xa5414e
lea eax, [esp + 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esp + 0xb8]
mov dword [0xa57784], edi
xor edx, edx
lea eax, [edi + 0x1087]
div edi
xor ecx, ecx
lea edx, [eax + 2]
imul edx, edi
mov dword [esp + 0x14], edx
call fcn.00a5495e
push eax
push 0x3000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x2c], eax
test eax, eax
je 0xa54351
lea edx, [eax + edi]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], edx
push eax
push 3
pop ecx
call fcn.00a5495e
mov ecx, dword [esp + 0x18]
push eax
lea eax, [edi + edi]
sub ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x10]
test eax, eax
setne al
test ecx, ecx
je 0xa54323
test al, al
je 0xa54323
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x160]
push edi
push ecx
push eax
mov dword [edi], 0x1000
call dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
and dword [ecx + 8], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov eax, dword [0xa57570]
mov dword [esp + 0x18], eax
cmp eax, 0xc8
ja 0xa5421d
cmp eax, 1
jl 0xa5421d
push eax
lea eax, [esp + 0x204]
push str.00_r
push eax
call fcn.00a54ff5
add esp, 0xc
jmp 0xa54236
push 0x10
pop edx
mov dword [esp + 0x18], edx
xor ecx, ecx
mov al, cl
xor al, 0xc0
mov byte [esp + ecx + 0x200], al
inc ecx
cmp ecx, edx
jl 0xa54226
rdtsc
and dword [esp + 0xdc], 0
mov dword [esp + 0x24], edx
cdq
xor eax, edx
sub eax, edx
neg eax
xor esi, esi
mov dword [esp + 0xd8], eax
lea ecx, [esp + 0xd8]
call fcn.00a5343e
mov dword [esp + esi*4 + 0x30], eax
inc esi
cmp esi, 0x20
jb 0xa54254
mov eax, dword [esp + 0x30]
mov esi, dword [edi]
and eax, 0xffffff7f
and dword [esp + 0x40], 0
or eax, 0x40
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
shr esi, 2
jmp 0xa5429a
lea ecx, [esp + 0xd8]
call fcn.00a5343e
mov dword [ebx + esi*4], eax
inc esi
cmp esi, 0x422
jb 0xa5428a
mov eax, dword [0xa57574]
lea ecx, [esp + 0x30]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [ebx + 0x1008]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x210]
push eax
call fcn.00a53ed6
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov dword [ebx + 0x1000], ecx
mov esi, 0x10000
xor ecx, ecx
mov edx, ebx
test al, al
lea eax, [esp + 0x38]
push eax
cmovne esi, ecx
or esi, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x1004], esi
call fcn.00a5435b
pop ecx
pop ecx
xor esi, esi
lea ecx, [esp + 0xd8]
call fcn.00a5343e
inc esi
cmp esi, 0x20
jb 0xa54309
mov dword [edi], 0x1088
jmp 0xa5432b
mov dword [esp + 0x1c], 4
push 0x8000
push 0
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x1c]
jmp 0xa54354
push 2
jmp 0xa54348
push 3
pop eax
mov dword [ebx + 4], eax
xor eax, eax
inc eax
jmp 0xa54354
push 4
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret