Function at 0x4a97c4
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 0x4a9cdd
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a9ca0
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 0x4a9c8f
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004a7d8c
push 0
push 0
push 1
push 0
push 1
push 0x40000000
mov eax, dword [0x537640]
push dword [eax]
mov eax, dword [0x5373a8]
push dword [eax]
push 0x4a9cf8
lea edx, [ebp - 0x34]
mov eax, dword [0x537654]
mov eax, dword [eax]
call fcn.004acd44
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.004a7ea7
mov esi, eax
mov ecx, esi
mov dl, 1
mov eax, dword [0x417cfc]
call fcn.0041bdfc
mov edi, eax
push 0x4a9d04
push 0x4a9d08
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 [0x537580]
push dword [eax + 4]
push dword [eax]
call fcn.0049c830
cmp edx, 0
jne 0x4a98fe
cmp eax, 5
jbe 0x4a9917
jmp 0x4a9900
jle 0x4a9917
lea eax, [ebp - 8]
call fcn.00405288
mov eax, dword [0x5374dc]
mov edx, 0x4a9d14
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.004a7ea7
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 [0x5374dc]
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 [0x537580]
push dword [eax + 4]
push dword [eax]
call fcn.0049c830
cmp edx, 0
jne 0x4a998f
cmp eax, 8
jbe 0x4a99af
jmp 0x4a9991
jle 0x4a99af
mov eax, dword [0x5374dc]
mov edx, 0x4a9d14
call fcn.004052dc
mov eax, dword [0x53750c]
mov edx, 0x4a9d20
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 [0x5374dc]
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 0x4a9a68
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 0x4a9a2d
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 [0x537238]
mov eax, dword [eax]
call fcn.004acd44
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004aa824
mov eax, dword [ebp - 0x38]
call fcn.004a84e4
mov ebx, eax
lea edx, [ebp - 0x40]
mov eax, dword [0x537314]
mov eax, dword [eax]
call fcn.004acd44
mov eax, dword [ebp - 0x40]
call fcn.00409df0
imul eax, eax, 0x6d
mov esi, dword [ebp - 0x10]
sub esi, eax
mov eax, dword [0x5374dc]
mov eax, dword [eax]
call fcn.00409df0
sub esi, eax
mov eax, dword [0x53750c]
mov eax, dword [eax]
call fcn.00409df0
sub esi, eax
mov eax, dword [0x537310]
mov eax, dword [eax]
call fcn.00409df0
sub esi, eax
sub esi, ebx
mov eax, dword [0x5374dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53750c]
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 [0x53750c]
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 [0x5374dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53750c]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov eax, dword [0x537310]
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 [0x537310]
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 [0x5374dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53750c]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov eax, dword [0x537310]
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 [0x5374dc]
mov eax, dword [eax]
call fcn.00409df0
mov edi, eax
add edi, 4
mov eax, dword [0x53750c]
mov eax, dword [eax]
call fcn.00409df0
add edi, eax
mov eax, dword [0x537310]
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 0x4a9c96
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