Function at 0x4a7168
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405708
mov eax, dword [ebp - 8]
call fcn.00405708
xor eax, eax
push ebp
push 0x4a7681
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a7644
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x40
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x417d74]
call fcn.0041bec0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4a7633
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004a5730
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [0x535640]
push dword [eax]
mov eax, dword [0x5353a8]
push dword [eax]
push 0x4a769c
lea edx, [ebp - 0x34]
mov eax, dword [0x535654]
mov eax, dword [eax]
call fcn.004aa6e8
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.0040561c
mov eax, dword [ebp - 0x30]
call fcn.00405718
push eax
call fcn.004a584b
mov esi, eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x417cfc]
call fcn.0041bdfc
mov edi, eax
push 0x4a76a8
push 0x4a76ac
xor ecx, ecx
mov dl, 1
mov eax, dword [0x417ef4]
call fcn.0041c304
mov ebx, eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, ebx
mov eax, edi
call fcn.0041bca8
mov eax, edi
call fcn.00404388
mov eax, ebx
call fcn.00404388
push esi
call sub.kernel32.dll_CloseHandle_1
call fcn.0040ba34
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [0x535580]
push dword [eax + 4]
push dword [eax]
call fcn.0049a14c
cmp edx, 0
jne 0x4a72a2
cmp eax, 5
jbe 0x4a72bb
jmp 0x4a72a4
jle 0x4a72bb
lea eax, [ebp - 8]
call fcn.00405288
mov eax, dword [0x5354dc]
mov edx, 0x4a76b8
call fcn.004052dc
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 8]
call fcn.00405718
push eax
call fcn.004a584b
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x417cfc]
call fcn.0041bdfc
mov dword [ebp - 0x18], eax
mov eax, dword [0x5354dc]
mov eax, dword [eax]
call fcn.00409df0
mov edx, eax
add edx, 4
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
call fcn.0040ba34
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [0x535580]
push dword [eax + 4]
push dword [eax]
call fcn.0049a14c
cmp edx, 0
jne 0x4a7333
cmp eax, 8
jbe 0x4a7353
jmp 0x4a7335
jle 0x4a7353
mov eax, dword [0x5354dc]
mov edx, 0x4a76b8
call fcn.004052dc
mov eax, dword [0x53550c]
mov edx, 0x4a76c4
call fcn.004052dc
mov dl, 1
mov eax, dword [0x417e78]
call fcn.00404358
mov dword [ebp - 0x1c], eax
mov dl, 1
mov eax, dword [0x417e78]
call fcn.00404358
mov dword [ebp - 0x20], eax
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0041ba2c
mov eax, dword [0x5354dc]
mov eax, dword [eax]
call fcn.00409df0
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0041bca8
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0041ba2c
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041ba2c
mov dword [ebp - 0x24], 0x2712
mov dword [ebp - 0x28], 0x2711
mov ebx, 0x2ca7
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
dec esi
test esi, esi
jl 0x4a740c
inc esi
lea edx, [ebp - 0x29]
mov ecx, 1
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
movzx eax, byte [ebp - 0x29]
mov edx, ebx
shr edx, 8
xor byte [ebp - 0x29], dl
movzx eax, al
add ebx, eax
imul ebx, dword [ebp - 0x24]
add ebx, dword [ebp - 0x28]
lea edx, [ebp - 0x29]
mov ecx, 1
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0x10]
dec esi
jne 0x4a73d1
push 0
push 0
mov eax, dword [ebp - 0x20]
call fcn.0041ba2c
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.0041bca8
mov cx, 2
mov edx, 0xfffffffc
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 0xc]
call fcn.0041bc38
lea edx, [ebp - 0x3c]
mov eax, dword [0x535238]
mov eax, dword [eax]
call fcn.004aa6e8
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004a81c8
mov eax, dword [ebp - 0x38]
call fcn.004a5e88
mov ebx, eax
lea edx, [ebp - 0x40]
mov eax, dword [0x535314]
mov eax, dword [eax]
call fcn.004aa6e8
mov eax, dword [ebp - 0x40]
call fcn.00409df0
imul eax, eax, 0x6d
mov esi, dword [ebp - 0x10]
sub esi, eax
mov eax, dword [0x5354dc]
mov eax, dword [eax]
call fcn.00409df0
sub esi, eax
mov eax, dword [0x53550c]
mov eax, dword [eax]
call fcn.00409df0
sub esi, eax
mov eax, dword [0x535310]
mov eax, dword [eax]
call fcn.00409df0
sub esi, eax
sub esi, ebx
mov eax, dword [0x5354dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53550c]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov edx, edi
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [0x53550c]
mov eax, dword [eax]
call fcn.00409df0
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0041bca8
mov eax, dword [0x5354dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53550c]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov eax, dword [0x535310]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov edx, edi
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [0x535310]
mov eax, dword [eax]
call fcn.00409df0
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0041bca8
mov eax, dword [0x5354dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53550c]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov eax, dword [0x535310]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov edx, edi
add edx, ebx
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, ebx
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0041bca8
mov eax, dword [0x5354dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53550c]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov eax, dword [0x535310]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov edx, edi
add edx, ebx
add edx, esi
neg edx
mov cx, 2
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, esi
cdq
push edx
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.0041bca8
mov eax, dword [ebp - 0x18]
call fcn.00404388
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a763a
mov eax, dword [ebp - 0xc]
call fcn.00404388
mov eax, dword [ebp - 0x1c]
call fcn.00404388
mov eax, dword [ebp - 0x20]
call fcn.00404388
ret