user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x120,%rsp
  mov    %edi,-0x114(%rbp)
  mov    %rsi,-0x120(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movq   $0x0,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movq   $0x0,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movq   $0x0,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movq   $0x0,-0x90(%rbp)
  movq   $0x0,-0x88(%rbp)
  movq   $0x0,-0x80(%rbp)
  movq   $0x0,-0x78(%rbp)
  movq   $0x0,-0x70(%rbp)
  movq   $0x0,-0x68(%rbp)
  movq   $0x0,-0x60(%rbp)
  movq   $0x0,-0x58(%rbp)
  movq   $0x0,-0x50(%rbp)
  movq   $0x0,-0x48(%rbp)
  movq   $0x0,-0x40(%rbp)
  movq   $0x0,-0x38(%rbp)
  movq   $0x0,-0x30(%rbp)
  movq   $0x0,-0x28(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  movb   $0x0,-0x10(%rbp)
  movl   $0x0,-0x110(%rbp)
  movabs $0x616853656e4fb195,%rax
  movabs $0x7620737361506c6c,%rdx
  mov    %rax,-0x100(%rbp)
  mov    %rdx,-0xf8(%rbp)
  movabs $0x746c6173a4302e32,%rax
  movabs $0x2e656c676f6f67aa,%rdx
  mov    %rax,-0xf0(%rbp)
  mov    %rdx,-0xe8(%rbp)
  movl   $0x16d6f63,-0xe0(%rbp)
  movb   $0x0,-0xdc(%rbp)
  mov    $0x0,%eax
  call   <ERR_load_crypto_strings@plt>
  mov    $0x0,%eax
  call   <OpenSSL_add_all_algorithms@plt>
  mov    $0x0,%edi
  call   <OPENSSL_config@plt>
  mov    $0x0,%eax
  call   <EVP_sha512@plt>
  mov    %eax,%edx
  lea    -0xd0(%rbp),%rax
  push   %rax
  push   $0x40
  mov    %edx,%r9d
  mov    $0x100,%r8d
  mov    $0x4,%ecx
  lea    D99(%rip),%rax
  mov    %rax,%rdx
  mov    $0x8,%esi
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <PKCS5_PBKDF2_HMAC@plt>
  add    $0x10,%rsp
  movl   $0x0,-0x10c(%rbp)
  jmp    L13
L30:
  mov    -0x10c(%rbp),%eax
  cltq
  movzbl -0xd0(%rbp,%rax,1),%eax
  movsbl %al,%eax
  movzbl %al,%eax
  mov    -0x10c(%rbp),%edx
  add    %edx,%edx
  movslq %edx,%rdx
  lea    -0x90(%rbp),%rcx
  add    %rdx,%rcx
  mov    %eax,%edx
  lea    D46(%rip),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sprintf@plt>
  addl   $0x1,-0x10c(%rbp)
L13:
  cmpl   $0x3f,-0x10c(%rbp)
  jle    L30
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x10c(%rbp)
  jmp    L40
L77:
  mov    -0x10c(%rbp),%eax
  shl    $0x2,%eax
  cltq
  lea    -0xd0(%rbp),%rdx
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <ntohl@plt>
  mov    %eax,%edx
  mov    -0x10c(%rbp),%eax
  mov    %eax,%esi
  lea    D112(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x10c(%rbp)
L40:
  cmpl   $0xf,-0x10c(%rbp)
  jle    L77
  mov    $0x0,%eax
  call   <EVP_sha512@plt>
  mov    %eax,%edi
  lea    -0x100(%rbp),%rdx
  lea    -0xd0(%rbp),%rax
  sub    $0x8,%rsp
  lea    -0x110(%rbp),%rcx
  push   %rcx
  mov    $0x0,%r9d
  mov    $0x25,%r8d
  mov    %rdx,%rcx
  mov    $0x40,%edx
  mov    %rax,%rsi
  call   <HMAC@plt>
  add    $0x10,%rsp
  mov    %rax,-0x108(%rbp)
  mov    -0x110(%rbp),%eax
  mov    %eax,%esi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0x10c(%rbp)
  jmp    L74
L19:
  mov    -0x10c(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x108(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    -0x10c(%rbp),%edx
  add    %edx,%edx
  movslq %edx,%rdx
  lea    -0x90(%rbp),%rcx
  add    %rdx,%rcx
  mov    %eax,%edx
  lea    D46(%rip),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sprintf@plt>
  addl   $0x1,-0x10c(%rbp)
L74:
  mov    -0x10c(%rbp),%edx
  mov    -0x110(%rbp),%eax
  cmp    %eax,%edx
  jb     L19
  mov    -0x110(%rbp),%eax
  mov    %eax,%edx
  mov    -0x108(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x108(%rbp),%rax
  mov    %rax,%rsi
  lea    D109(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D0(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x10c(%rbp)
  jmp    L88
L3:
  mov    -0x10c(%rbp),%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  mov    -0x108(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  mov    %eax,%edi
  call   <ntohl@plt>
  mov    %eax,%edx
  mov    -0x10c(%rbp),%eax
  mov    %eax,%esi
  lea    D112(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x10c(%rbp)
L88:
  mov    -0x110(%rbp),%eax
  shr    $0x2,%eax
  mov    %eax,%edx
  mov    -0x10c(%rbp),%eax
  cmp    %eax,%edx
  ja     L3
  lea    -0x90(%rbp),%rax
  mov    %rax,%rsi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x108(%rbp),%rax
  mov    $0x40,%esi
  mov    %rax,%rdi
  call   <base64@plt>
  mov    %rax,%rsi
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  call   <EVP_cleanup@plt>
  mov    $0x0,%eax
  call   <CRYPTO_cleanup_all_ex_data@plt>
  mov    $0x0,%eax
  call   <ERR_free_strings@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L76
  call   <__stack_chk_fail@plt>
L76:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D99
type: string
name: extract_symbolic_data
arguments: label: D42
type: string
name: extract_symbolic_data
arguments: label: D46
type: string
name: extract_symbolic_data
arguments: label: D58
type: string
name: extract_symbolic_data
arguments: label: D112
type: string
name: extract_symbolic_data
arguments: label: D51
type: string
name: extract_symbolic_data
arguments: label: D109
type: string
name: extract_symbolic_data
arguments: label: D0
type: string
name: extract_symbolic_data
arguments: label: D2
type: string
name: extract_symbolic_data
arguments: label: D13
type: string

tool: D99: salt

tool: D42: password

tool: D46: %02x

tool: D58: dk:

tool: D112: [%d] %d


tool: D51: md_len: %d


tool: D109: digest raw: %s


tool: D0: digest:

tool: D2: digest %s


tool: D13: digest base64 %s


assistant: ```c
int main(int argc, char **argv) {
  char derived_key[64] = {0};
  char hexResult[2 * 64 + 1] = {0};
  unsigned int md_len = 0;
  unsigned char data[] = {149, 177, 79, 110, 101, 83, 104, 97, 108, 108, 80, 97, 115, 115, 32, 118, 50, 46, 48, 164, 115, 97, 108, 116, 170, 103, 111, 111, 103, 108, 101, 46, 99, 111, 109, 1, 0};
  int i;
  ERR_load_crypto_strings();
  OpenSSL_add_all_algorithms();
  OPENSSL_config(NULL);
  PKCS5_PBKDF2_HMAC("password", 8, "salt", 4, 256, EVP_sha512(), 64, derived_key);
  for (i = 0; i < 64; i++) {
    sprintf(hexResult + (i * 2), "%02x", 255 & derived_key[i]);
  };
  printf("dk:\n");
  for (i = 0; i < 64 / 4; i++) {
    printf("[%d] %d\n", i, ntohl(*(int *)(derived_key + 4 * i)));
  }
  unsigned char *digest = HMAC(EVP_sha512(), derived_key, 64, data, sizeof(data), NULL, &md_len);
  printf("md_len: %d\n", md_len);
  for (i = 0; i < md_len; i++) {
    sprintf(hexResult + (i * 2), "%02x", 255 & digest[i]);
  };
  digest[md_len] = 0;
  printf("digest raw: %s\n", digest);
  printf("digest:\n");
  for (i = 0; i < md_len / 4; i++) {
    printf("[%d] %d\n", i, ntohl(*(int *)(digest + i * 4)));
  }
  printf("digest %s\n", hexResult);
  printf("digest base64 %s\n", base64(digest, 64));
  EVP_cleanup();
  CRYPTO_cleanup_all_ex_data();
  ERR_free_strings();
  return 0;
}
```