user: 请从给定的汇编指令推导出C源代码:

```asm
<InverseModify>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  lea    0x0(%r13,%r13,1),%r12d
  push   %rbp
  lea    0x1(%r12),%edi
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x78,%rsp
  movdqa D1(%rip),%xmm0
  mov    %rcx,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movaps %xmm0,0x50(%rsp)
  pxor   %xmm0,%xmm0
  movb   $0x0,0x60(%rsp)
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  call   <malloc@plt>
  mov    %rax,%rbx
  test   %r13d,%r13d
  jle    L106
  mov    %r14,%rdx
  mov    %rax,%rcx
  lea    (%rax,%r13,2),%rdi
  nopl   0x0(%rax,%rax,1)
L108:
  movzbl (%rdx),%eax
  add    $0x2,%rcx
  add    $0x1,%rdx
  shr    $0x4,%al
  and    $0xf,%eax
  movzbl 0x50(%rsp,%rax,1),%eax
  mov    %al,-0x2(%rcx)
  movzbl -0x1(%rdx),%eax
  mov    %eax,%esi
  and    $0xf,%eax
  movzbl 0x50(%rsp,%rax,1),%eax
  shr    $0x4,%sil
  and    $0xf,%esi
  mov    %al,-0x1(%rcx)
  movzbl -0x1(%rdx),%eax
  addl   $0x1,0x10(%rsp,%rsi,4)
  and    $0xf,%eax
  addl   $0x1,0x10(%rsp,%rax,4)
  cmp    %rdi,%rcx
  jne    L108
L106:
  movslq %r12d,%r12
  mov    0x10(%rsp),%r14d
  lea    0x14(%rsp),%rax
  lea    0x50(%rsp),%r15
  movb   $0x0,(%rbx,%r12,1)
  mov    %r14d,%r13d
  nopl   0x0(%rax)
L103:
  mov    (%rax),%edx
  cmp    %edx,%r13d
  cmovl  %edx,%r13d
  add    $0x4,%rax
  cmp    %rax,%r15
  jne    L103
  mov    0x8(%rsp),%rdi
  mov    %r13d,%eax
  shl    $0x4,%eax
  mov    %eax,(%rdi)
  lea    0x1(%rax),%edi
  call   <malloc@plt>
  xor    %edx,%edx
  mov    %rax,0x0(%rbp)
  jmp    L65
  nopw   0x0(%rax,%rax,1)
L57:
  movzbl (%rbx,%rdx,1),%ecx
  mov    0x0(%rbp),%rax
  mov    %cl,(%rax,%rdx,1)
  add    $0x1,%rdx
L65:
  mov    %rbx,%rdi
  mov    %rdx,(%rsp)
  mov    %edx,%r12d
  call   <strlen@plt>
  mov    (%rsp),%rdx
  cmp    %edx,%eax
  jg     L57
  mov    %rbx,%rdi
  call   <free@plt>
  xor    %r8d,%r8d
  lea    -0x1(%r13),%r9d
  nopl   (%rax)
L42:
  cmp    %r14d,%r13d
  jle    L16
  movslq %r12d,%rdx
  mov    %r9d,%esi
  movzbl (%r15,%r8,1),%edi
  sub    %r14d,%esi
  lea    0x1(%rdx),%rax
  add    %rax,%rsi
  jmp    L18
  nopl   0x0(%rax)
L2:
  add    $0x1,%rax
L18:
  mov    0x0(%rbp),%rcx
  mov    %dil,(%rcx,%rdx,1)
  mov    %rax,%rdx
  cmp    %rax,%rsi
  jne    L2
  add    %r13d,%r12d
  sub    %r14d,%r12d
L16:
  add    $0x1,%r8
  cmp    $0x10,%r8
  je     L102
  mov    0x10(%rsp,%r8,4),%r14d
  jmp    L42
L102:
  mov    0x8(%rsp),%rax
  mov    0x0(%rbp),%rdx
  movslq (%rax),%rax
  movb   $0x0,(%rdx,%rax,1)
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L64
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L64:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D1
data_type: byte[16]

tool: {"D1": [0x46,0x45,0x48,0x47,0x42,0x41,0x44,0x43,0x4e,0x4d,0x50,0x4f,0x4a,0x49,0x4c,0x4b]}

assistant: ```c
void InverseModify(const char *modifiedBuf, const int modifiedLen, char **restoredString, int *restoredLen) {
  char binList[] = "FEHGBADCNMPOJILK";
  int frequencyTable[16];
  char *shellCodeBuffer;
  int i, j, k;
  int maxNum;
  for (i = 0; i < 16; ++i)
    frequencyTable[i] = 0;
  shellCodeBuffer = (char *)malloc(modifiedLen * 2 + 1);
  for (i = 0; i < modifiedLen; ++i) {
    shellCodeBuffer[i * 2] = binList[(unsigned char)modifiedBuf[i] >> 4];
    ++frequencyTable[(unsigned char)modifiedBuf[i] >> 4];
    shellCodeBuffer[i * 2 + 1] = binList[modifiedBuf[i] & 0x0f];
    ++frequencyTable[modifiedBuf[i] & 0x0f];
  }
  shellCodeBuffer[modifiedLen * 2] = 0;
  maxNum = frequencyTable[0];
  for (i = 1; i < 16; ++i)
    if (maxNum < frequencyTable[i])
      maxNum = frequencyTable[i];
  *restoredLen = maxNum * 16;
  *restoredString = (char *)malloc(*restoredLen + 1);
  for (i = 0; i < strlen(shellCodeBuffer); ++i)
    (*restoredString)[i] = shellCodeBuffer[i];
  free(shellCodeBuffer);
  for (j = 0; j < 16; ++j) {
    for (k = frequencyTable[j]; k < maxNum; ++k) {
      (*restoredString)[i] = binList[j];
      ++i;
    }
  }
  (*restoredString)[*restoredLen] = 0;
}
```