Function at 0x549060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x8a
push 0
push 0
dec ecx
jne 0x549069
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00404a34
xor eax, eax
push ebp
push 0x54946e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x410]
xor ecx, ecx
mov edx, 0x400
call fcn.00402f1c
lea edx, [ebp - 0x410]
mov ecx, 7
mov eax, 0x549488
call fcn.004f6794
cmp word [ebx + 0x172], 0
jne 0x5490cb
cmp dword [ebx + 4], 1
je 0x5490cf
xor eax, eax
jmp 0x5490d1
mov al, 1
mov byte [ebp - 0x408], al
test al, al
je 0x5490ff
lea eax, [ebp - 0x424]
lea edx, [ebx + 8]
call fcn.004047e8
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x407]
mov ecx, 0x1f
call fcn.004f6794
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x3e7], eax
cmp byte [ebx + 0x30], 1
sete al
mov byte [ebp - 0x3e3], al
mov al, byte [ebx + 0x31]
mov byte [ebp - 0x3e2], al
mov al, byte [ebx + 0x32]
mov byte [ebp - 0x3e1], al
lea eax, [ebp - 0x428]
lea edx, [ebx + 0x33]
call fcn.004047e8
mov eax, dword [ebp - 0x428]
lea edx, [ebp - 0x3e0]
mov ecx, 0x1f
call fcn.004f6794
lea eax, [ebp - 0x42c]
lea edx, [ebx + 0x54]
call fcn.004047e8
mov eax, dword [ebp - 0x42c]
lea edx, [ebp - 0x3c0]
mov ecx, 0x1f
call fcn.004f6794
lea eax, [ebp - 0x430]
lea edx, [ebx + 0x152]
call fcn.004047e8
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0x3a0]
mov ecx, 0xf
call fcn.004f6794
lea eax, [ebp - 0x434]
lea edx, [ebx + 0xec]
call fcn.004047e8
mov eax, dword [ebp - 0x434]
lea edx, [ebp - 0x390]
mov ecx, 0x1f
call fcn.004f6794
lea eax, [ebp - 0x438]
lea edx, [ebx + 0x75]
call fcn.004047e8
mov eax, dword [ebp - 0x438]
lea edx, [ebp - 0x370]
mov ecx, 0xf
call fcn.004f6794
mov ax, word [ebx + 0x172]
mov word [ebp - 0x360], ax
cmp word [ebx + 0x172], 0
je 0x549275
lea edx, [ebp - 0x43c]
mov eax, dword [ebp - 8]
call fcn.0040956c
cmp dword [ebp - 0x43c], 0
je 0x549275
xor eax, eax
push ebp
push 0x549255
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x35e], 1
lea edx, [ebp - 0x420]
mov eax, dword [ebp - 8]
call fcn.004f3dc4
lea edx, [ebp - 0x35c]
lea eax, [ebp - 0x420]
mov ecx, 0x10
call fcn.00402a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x549275
mov ax, word [ebx + 0x172]
add eax, eax
lea eax, [eax + eax*4]
mov word [ebp - 0x34c], ax
mov word [ebp - 0x34a], 1
lea eax, [ebp - 0x440]
lea edx, [ebx + 0x20a]
call fcn.004047e8
mov eax, dword [ebp - 0x440]
lea edx, [ebp - 0x344]
mov ecx, 0x21
call fcn.004f6794
lea edx, [ebp - 0x210]
mov eax, 0x549488
mov ecx, 7
call fcn.004f6794
lea eax, [ebp - 0x444]
lea edx, [ebx + 0xb9]
call fcn.004047e8
mov eax, dword [ebp - 0x444]
lea edx, [ebp - 0x208]
mov ecx, 0x31
call fcn.004f6794
lea eax, [ebp - 0x448]
lea edx, [ebx + 0xec]
call fcn.004047e8
mov eax, dword [ebp - 0x448]
lea edx, [ebp - 0x1d6]
mov ecx, 0x31
call fcn.004f6794
lea eax, [ebp - 0x44c]
lea edx, [ebx + 0x11f]
call fcn.004047e8
mov eax, dword [ebp - 0x44c]
lea edx, [ebp - 0x1a4]
mov ecx, 0x31
call fcn.004f6794
lea eax, [ebp - 0x450]
lea edx, [ebx + 0x152]
call fcn.004047e8
mov eax, dword [ebp - 0x450]
lea edx, [ebp - 0x172]
mov ecx, 0x1d
call fcn.004f6794
call fcn.0040bf2c
fstp qword [ebp - 0x154]
wait
mov eax, dword [ebx + 0x198]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebx + 0x19c]
mov dword [ebp - 0x148], eax
lea eax, [ebp - 0x454]
lea edx, [ebx + 0x1a0]
call fcn.004047e8
mov eax, dword [ebp - 0x454]
lea edx, [ebp - 0x13c]
mov ecx, 0x4f
call fcn.004f6794
call fcn.00402c04
lea eax, [ebp - 0x410]
mov dword [ebp - 0xc], eax
lea esi, [ebp - 0x210]
mov dword [ebp - 0x10], esi
add dword [ebp - 0x10], 0x100
mov edi, pe_nt_image_headers32
lea ebx, [ebp - 0x310]
mov eax, pe_nt_image_headers32
call fcn.00402f3c
mov byte [ebx], al
mov edx, dword [ebp - 0xc]
xor byte [edx], al
xor byte [esi], al
mov edx, dword [ebp - 0x10]
xor byte [edx], al
inc dword [ebp - 0xc]
inc esi
inc dword [ebp - 0x10]
inc ebx
dec edi
jne 0x5493dd
lea eax, [ebp - 0x410]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x400
mov edx, 0x400
mov al, byte [ebp - 1]
call fcn.00545020
cmp eax, 0x400
sete bl
test bl, bl
jne 0x549448
lea eax, [ebp - 0x410]
push eax
mov ecx, 0x400
mov edx, 0x400
mov al, byte [ebp - 1]
call fcn.00545394
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x549475
lea eax, [ebp - 0x454]
mov edx, 0xd
call fcn.00404598
lea eax, [ebp - 8]
call fcn.00404574
ret