Function at 0x10004110
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x718
mov eax, dword [0x10024014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x100305a0]
push 0x25a
push 0
push ecx
mov dword [ebp - 0x708], ecx
mov dword [ebp - 0x704], eax
mov dword [ebp - 4], 0
call fcn.100084d0
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x6f8]
mov dword [ebp - 0x4a0], 0x1c
mov ecx, 0x96
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x704]
lea ecx, [ebp - 0x6f8]
add esp, 0xc
add edi, 4
mov edx, edi
call fcn.10001a30
push 0x20c
lea eax, [ebp - 0x240]
push 0
push eax
lea esi, [ebp - 0x6f8]
call fcn.100084d0
lea eax, [ebp - 0x240]
push eax
push 2
push 0x10
push edi
mov eax, 0x10029eb0
call eax
mov edi, dword [ebp + 0xc]
add esp, 0x1c
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x6fc], ecx
shr eax, 4
mov edx, 0x10027198
cmp ecx, eax
jae 0x10004212
movups xmm0, xmmword [esi]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call edx
movups xmm0, xmmword [ebp - 0x34]
mov ecx, dword [ebp - 0x6fc]
add esp, 0xc
movups xmmword [esi], xmm0
add esi, 0x10
inc ecx
jmp 0x100041d0
and edi, 0xf
je 0x1000424d
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.10007f50
add esp, 0xc
xor ecx, ecx
test edi, edi
je 0x1000423f
nop dword [eax + eax]
mov al, byte [ecx + 0x10020bd0]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, edi
jl 0x10004230
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.10007f50
add esp, 0xc
push dword [ebp - 0x6e0]
movzx eax, byte [ebp - 0x6e2]
push eax
push str.Heartbeat_request:__04X___04X_n
call fcn.10002ef0
mov eax, 0xc
push 0x24c
mov word [ebp - 0x494], ax
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x490]
push 0
push eax
call fcn.100084d0
mov ecx, dword [ebp - 0x6e8]
add esp, 0x18
mov eax, ecx
shl eax, 0xf
xor eax, ecx
mov dword [ebp - 0x49c], eax
mov eax, ecx
and eax, 0xfffffeff
or eax, 0x1010001
xor eax, ecx
mov ecx, dword [ebp - 0x6e2]
mov dword [ebp - 0x498], eax
movzx eax, cl
inc ax
mov word [ebp - 0x492], ax
cmp cl, 1
jb 0x100045c7
cmp cl, 9
ja 0x100045c7
movzx eax, cl
test al, 1
je 0x100045c7
lea ecx, [ebp - 0x49c]
mov esi, dword [ebp - 0x704]
mov dword [ebp - 0x194], ecx
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 0x190], ecx
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x178], ecx
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x144], ecx
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0xf4], ecx
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 0xf0], ecx
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0xd8], ecx
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0xa4], ecx
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 0xa0], ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x1a0], 0
mov dword [ebp - method.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8heartbeat_ahn__AEXPAUrequest_buffer_4_PAUresponse_64__ZPAV34_AAPAU564_AAPAU764__std__XPAUrequest_buffer_ahn__PAUresponse_45__std__.virtual_0], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8heartbeat_ahn__AEXPAUrequest_buffer_4_PAUresponse_64__ZPAV34_AAPAU564_AAPAU764__std__XPAUrequest_buffer_ahn__PAUresponse_45__std__.0
mov dword [ebp - 0x198], 0x10004620
mov dword [ebp - 0x18c], esi
mov dword [ebp - 0x150], 0
mov dword [ebp - method.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8heartbeat_ahn__AEXPAUrequest_buffer_4_PAUresponse_64__ZPAV34_AAPAU564_AAPAU764__std__XPAUrequest_buffer_ahn__PAUresponse_45__std__.virtual_0], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8heartbeat_ahn__AEXPAUrequest_buffer_4_PAUresponse_64__ZPAV34_AAPAU564_AAPAU764__std__XPAUrequest_buffer_ahn__PAUresponse_45__std__.0
mov dword [ebp - 0x148], 0x10004930
mov dword [ebp - 0x13c], esi
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8heartbeat_ahn__AEXPAUrequest_buffer_4_PAUresponse_64__ZPAV34_AAPAU564_AAPAU764__std__XPAUrequest_buffer_ahn__PAUresponse_45__std__.0
mov dword [ebp - 0xf8], 0x100049b0
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8heartbeat_ahn__AEXPAUrequest_buffer_4_PAUresponse_64__ZPAV34_AAPAU564_AAPAU764__std__XPAUrequest_buffer_ahn__PAUresponse_45__std__.0
mov dword [ebp - 0xa8], 0x100049c0
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8heartbeat_ahn__AEXPAUrequest_buffer_4_PAUresponse_64__ZPAV34_AAPAU564_AAPAU764__std__XPAUrequest_buffer_ahn__PAUresponse_45__std__.0
mov dword [ebp - 0x58], 0x10004a00
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x49c]
mov dword [ebp - 0x6fc], ecx
lea eax, [eax + eax*4]
lea ecx, [ebp - 0x6f8]
mov dword [ebp - 0x700], ecx
mov ecx, dword [ebp + eax*8 - 0x1a0]
test ecx, ecx
je 0x100045c2
mov eax, dword [ecx]
lea edx, [ebp - 0x6fc]
push edx
lea edx, [ebp - 0x700]
push edx
call dword [eax + 8]
push 0x100045f0
push 0xa
push 0x28
lea eax, [ebp - 0x1c4]
mov byte [ebp - 4], 0
push eax
call fcn.1000692d
lea eax, [ebp - 0x49c]
mov ecx, esi
push eax
lea eax, [ebp - 0x6f8]
push eax
call fcn.10004ab0
movzx edi, word [ebp - 0x494]
lea eax, [ebp - 0x240]
push 0x20c
push 0
push eax
lea esi, [ebp - 0x49c]
call fcn.100084d0
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x704]
push 1
add eax, 4
push 0x10
push eax
mov eax, 0x10029eb0
call eax
add esp, 0x1c
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x6fc], ecx
shr eax, 4
mov edx, 0x100248d8
cmp ecx, eax
jge 0x1000452c
movups xmm0, xmmword [esi]
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
call edx
movups xmm0, xmmword [ebp - 0x34]
mov ecx, dword [ebp - 0x6fc]
add esp, 0xc
movups xmmword [esi], xmm0
add esi, 0x10
inc ecx
jmp 0x100044ea
and edi, 0xf
je 0x10004562
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.10007f50
add esp, 0xc
xor ecx, ecx
test edi, edi
je 0x10004554
mov al, byte [ecx + 0x10020bd0]
xor byte [ebp + ecx - 0x24], al
inc ecx
cmp ecx, edi
jl 0x10004545
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.10007f50
add esp, 0xc
mov edi, dword [ebp - 0x708]
lea esi, [ebp - 0x49c]
mov ecx, 0x96
mov al, 1
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x100045a4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100068b0
mov esp, ebp
pop ebp
ret 0xc
call fcn.10005d45
push str.heartbeat_type_is_illegal
lea ecx, [ebp - 0x724]
call fcn.10002870
push 0x100227a4
lea eax, [ebp - 0x724]
push eax
call fcn.10007ed7
int3