File size: 14,668 Bytes
4c57526
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
	"func_name": "-__assert_fail",
	"opensource": "openssl",
	"content": "// attributes: thunk\nvoid __noreturn __assert_fail(const char *assertion, const char *file, unsigned int line, const char *function)\n{\n  _assert_fail(assertion, file, line, function);\n}\n  "
}{
	"func_name": "-__stack_chk_fail",
	"opensource": "openssl",
	"content": "// attributes: thunk\nvoid __noreturn __stack_chk_fail()\n{\n  _stack_chk_fail();\n}\n  "
}{
	"func_name": "-init_proc",
	"opensource": "openssl",
	"content": "__int64 (**init_proc())(void)\n{\n  __int64 (**result)(void); // rax\n\n  result = &_gmon_start__;\n  if ( &_gmon_start__ )\n    result = (__int64 (**)(void))_gmon_start__();\n  return result;\n}\n  "
}{
	"func_name": "-term_proc",
	"opensource": "openssl",
	"content": "void term_proc()\n{\n  ;\n}\n  "
}{
	"func_name": "AES_decrypt",
	"opensource": "openssl",
	"content": "unsigned __int64 __fastcall AES_decrypt(_DWORD *a1, int *a2, _DWORD *a3)\n{\n  unsigned int v5; // [rsp+2Ch] [rbp-74h]\n  unsigned int v6; // [rsp+2Ch] [rbp-74h]\n  unsigned int v7; // [rsp+30h] [rbp-70h]\n  unsigned int v8; // [rsp+30h] [rbp-70h]\n  unsigned int v9; // [rsp+34h] [rbp-6Ch]\n  unsigned int v10; // [rsp+34h] [rbp-6Ch]\n  unsigned int v11; // [rsp+38h] [rbp-68h]\n  unsigned int v12; // [rsp+38h] [rbp-68h]\n  int j; // [rsp+3Ch] [rbp-64h]\n  int i; // [rsp+40h] [rbp-60h]\n  int v15; // [rsp+44h] [rbp-5Ch]\n  unsigned int v16; // [rsp+4Ch] [rbp-54h]\n  unsigned int v17; // [rsp+50h] [rbp-50h]\n  _DWORD *v18; // [rsp+68h] [rbp-38h]\n  int v19; // [rsp+70h] [rbp-30h]\n  int v20; // [rsp+74h] [rbp-2Ch]\n  int v21; // [rsp+78h] [rbp-28h]\n  int v22; // [rsp+7Ch] [rbp-24h]\n  unsigned __int64 v23; // [rsp+88h] [rbp-18h]\n\n  v23 = __readfsqword(0x28u);\n  if ( !a1 || !a2 || !a3 )\n    __assert_fail(\"in && out && key\", \"core.c\", 0x371u, \"AES_decrypt\");\n  v5 = *a1 ^ *a3;\n  v7 = a1[1] ^ a3[1];\n  v9 = a1[2] ^ a3[2];\n  v11 = a1[3] ^ a3[3];\n  prefetch256((__int64)Td4);\n  v19 = (Td4[BYTE2(v9)] << 16) ^ (Td4[BYTE1(v11)] << 8) ^ Td4[(unsigned __int8)v5] ^ (Td4[HIBYTE(v7)] << 24);\n  v20 = (Td4[BYTE2(v11)] << 16) ^ (Td4[BYTE1(v5)] << 8) ^ Td4[(unsigned __int8)v7] ^ (Td4[HIBYTE(v9)] << 24);\n  v21 = (Td4[BYTE2(v5)] << 16) ^ (Td4[BYTE1(v7)] << 8) ^ Td4[(unsigned __int8)v9] ^ (Td4[HIBYTE(v11)] << 24);\n  v22 = (Td4[BYTE2(v7)] << 16) ^ (Td4[BYTE1(v9)] << 8) ^ Td4[(unsigned __int8)v11] ^ (Td4[HIBYTE(v5)] << 24);\n  for ( i = 0; i <= 3; ++i )\n  {\n    v15 = *(&v19 + i);\n    v16 = (2 * v15) & 0xFEFEFEFE ^ ((v15 & 0x80808080) - ((v15 & 0x80808080) >> 7)) & 0x1B1B1B1B;\n    v17 = (2 * v16) & 0xFEFEFEFE ^ ((v16 & 0x80808080) - ((v16 & 0x80808080) >> 7)) & 0x1B1B1B1B;\n    *(&v19 + i) = __ROL4__(\n                    v16 ^ v15 ^ (2 * v17) & 0xFEFEFEFE ^ ((v17 & 0x80808080) - ((v17 & 0x80808080) >> 7)) & 0x1B1B1B1B,\n                    24) ^ __ROL4__(\n                            v15 ^ (2 * v17) & 0xFEFEFEFE ^ ((v17 & 0x80808080) - ((v17 & 0x80808080) >> 7)) & 0x1B1B1B1B,\n                            8) ^ v16 ^ v17 ^ (2 * v17) & 0xFEFEFEFE ^ ((v17 & 0x80808080) - ((v17 & 0x80808080) >> 7)) & 0x1B1B1B1B ^ __ROL4__(v17 ^ v15 ^ (2 * v17) & 0xFEFEFEFE ^ ((v17 & 0x80808080) - ((v17 & 0x80808080) >> 7)) & 0x1B1B1B1B, 16);\n    *(&v19 + i) ^= a3[i + 4];\n  }\n  v6 = v19;\n  v8 = v20;\n  v10 = v21;\n  v12 = v22;\n  v18 = a3 + 8;\n  for ( j = a3[60] - 2; j > 0; --j )\n  {\n    v19 = *(_QWORD *)((char *)&Td[HIBYTE(v8)] + 1) ^ *(_QWORD *)((char *)&Td[BYTE2(v10)] + 2) ^ *(_QWORD *)((char *)&Td[BYTE1(v12)] + 3) ^ Td[(unsigned __int8)v6] ^ *v18;\n    v20 = *(_QWORD *)((char *)&Td[HIBYTE(v10)] + 1) ^ *(_QWORD *)((char *)&Td[BYTE2(v12)] + 2) ^ *(_QWORD *)((char *)&Td[BYTE1(v6)] + 3) ^ Td[(unsigned __int8)v8] ^ v18[1];\n    v21 = *(_QWORD *)((char *)&Td[HIBYTE(v12)] + 1) ^ *(_QWORD *)((char *)&Td[BYTE2(v6)] + 2) ^ *(_QWORD *)((char *)&Td[BYTE1(v8)] + 3) ^ Td[(unsigned __int8)v10] ^ v18[2];\n    v22 = *(_QWORD *)((char *)&Td[HIBYTE(v6)] + 1) ^ *(_QWORD *)((char *)&Td[BYTE2(v8)] + 2) ^ *(_QWORD *)((char *)&Td[BYTE1(v10)] + 3) ^ Td[(unsigned __int8)v12] ^ v18[3];\n    v6 = v19;\n    v8 = v20;\n    v10 = v21;\n    v12 = v22;\n    v18 += 4;\n  }\n  prefetch256((__int64)Td4);\n  *a2 = *v18 ^ (Td4[HIBYTE(v8)] << 24) ^ (Td4[BYTE2(v10)] << 16) ^ (Td4[BYTE1(v12)] << 8) ^ Td4[(unsigned __int8)v6];\n  a2[1] = (Td4[HIBYTE(v10)] << 24) ^ (Td4[BYTE2(v12)] << 16) ^ (Td4[BYTE1(v6)] << 8) ^ Td4[(unsigned __int8)v8] ^ v18[1];\n  a2[2] = (Td4[HIBYTE(v12)] << 24) ^ (Td4[BYTE2(v6)] << 16) ^ (Td4[BYTE1(v8)] << 8) ^ Td4[(unsigned __int8)v10] ^ v18[2];\n  a2[3] = (Td4[HIBYTE(v6)] << 24) ^ (Td4[BYTE2(v8)] << 16) ^ (Td4[BYTE1(v10)] << 8) ^ Td4[(unsigned __int8)v12] ^ v18[3];\n  return v23 - __readfsqword(0x28u);\n}\n  "
}{
	"func_name": "AES_encrypt",
	"opensource": "openssl",
	"content": "unsigned __int64 __fastcall AES_encrypt(_DWORD *a1, int *a2, _DWORD *a3)\n{\n  unsigned int v5; // [rsp+24h] [rbp-5Ch]\n  unsigned int v6; // [rsp+24h] [rbp-5Ch]\n  unsigned int v7; // [rsp+28h] [rbp-58h]\n  unsigned int v8; // [rsp+28h] [rbp-58h]\n  unsigned int v9; // [rsp+2Ch] [rbp-54h]\n  unsigned int v10; // [rsp+2Ch] [rbp-54h]\n  unsigned int v11; // [rsp+30h] [rbp-50h]\n  unsigned int v12; // [rsp+30h] [rbp-50h]\n  int j; // [rsp+34h] [rbp-4Ch]\n  int i; // [rsp+38h] [rbp-48h]\n  int v15; // [rsp+3Ch] [rbp-44h]\n  _DWORD *v16; // [rsp+48h] [rbp-38h]\n  int v17; // [rsp+50h] [rbp-30h]\n  int v18; // [rsp+54h] [rbp-2Ch]\n  int v19; // [rsp+58h] [rbp-28h]\n  int v20; // [rsp+5Ch] [rbp-24h]\n  unsigned __int64 v21; // [rsp+68h] [rbp-18h]\n\n  v21 = __readfsqword(0x28u);\n  if ( !a1 || !a2 || !a3 )\n    __assert_fail(\"in && out && key\", \"core.c\", 0x29Bu, \"AES_encrypt\");\n  v5 = *a1 ^ *a3;\n  v7 = a1[1] ^ a3[1];\n  v9 = a1[2] ^ a3[2];\n  v11 = a1[3] ^ a3[3];\n  prefetch256((__int64)Te4);\n  v17 = (Te4[BYTE2(v9)] << 16) ^ (Te4[BYTE1(v7)] << 8) ^ Te4[(unsigned __int8)v5] ^ (Te4[HIBYTE(v11)] << 24);\n  v18 = (Te4[BYTE2(v11)] << 16) ^ (Te4[BYTE1(v9)] << 8) ^ Te4[(unsigned __int8)v7] ^ (Te4[HIBYTE(v5)] << 24);\n  v19 = (Te4[BYTE2(v5)] << 16) ^ (Te4[BYTE1(v11)] << 8) ^ Te4[(unsigned __int8)v9] ^ (Te4[HIBYTE(v7)] << 24);\n  v20 = (Te4[BYTE2(v7)] << 16) ^ (Te4[BYTE1(v5)] << 8) ^ Te4[(unsigned __int8)v11] ^ (Te4[HIBYTE(v9)] << 24);\n  for ( i = 0; i <= 3; ++i )\n  {\n    v15 = *(&v17 + i);\n    *(&v17 + i) = __ROL4__(v15, 8) ^ __ROL4__(v15, 16) ^ __ROL4__(v15, 24) ^ (2 * v15) & 0xFEFEFEFE ^ ((v15 & 0x80808080) - ((v15 & 0x80808080) >> 7)) & 0x1B1B1B1B ^ __ROL4__((2 * v15) & 0xFEFEFEFE ^ ((v15 & 0x80808080) - ((v15 & 0x80808080) >> 7)) & 0x1B1B1B1B, 24);\n    *(&v17 + i) ^= a3[i + 4];\n  }\n  v6 = v17;\n  v8 = v18;\n  v10 = v19;\n  v12 = v20;\n  v16 = a3 + 8;\n  for ( j = a3[60] - 2; j > 0; --j )\n  {\n    v17 = *(_QWORD *)((char *)&Te[HIBYTE(v12)] + 1) ^ *(_QWORD *)((char *)&Te[BYTE2(v10)] + 2) ^ *(_QWORD *)((char *)&Te[BYTE1(v8)] + 3) ^ Te[(unsigned __int8)v6] ^ *v16;\n    v18 = *(_QWORD *)((char *)&Te[HIBYTE(v6)] + 1) ^ *(_QWORD *)((char *)&Te[BYTE2(v12)] + 2) ^ *(_QWORD *)((char *)&Te[BYTE1(v10)] + 3) ^ Te[(unsigned __int8)v8] ^ v16[1];\n    v19 = *(_QWORD *)((char *)&Te[HIBYTE(v8)] + 1) ^ *(_QWORD *)((char *)&Te[BYTE2(v6)] + 2) ^ *(_QWORD *)((char *)&Te[BYTE1(v12)] + 3) ^ Te[(unsigned __int8)v10] ^ v16[2];\n    v20 = *(_QWORD *)((char *)&Te[HIBYTE(v10)] + 1) ^ *(_QWORD *)((char *)&Te[BYTE2(v8)] + 2) ^ *(_QWORD *)((char *)&Te[BYTE1(v6)] + 3) ^ Te[(unsigned __int8)v12] ^ v16[3];\n    v6 = v17;\n    v8 = v18;\n    v10 = v19;\n    v12 = v20;\n    v16 += 4;\n  }\n  prefetch256((__int64)Te4);\n  *a2 = *v16 ^ (Te4[HIBYTE(v12)] << 24) ^ (Te4[BYTE2(v10)] << 16) ^ (Te4[BYTE1(v8)] << 8) ^ Te4[(unsigned __int8)v6];\n  a2[1] = (Te4[HIBYTE(v6)] << 24) ^ (Te4[BYTE2(v12)] << 16) ^ (Te4[BYTE1(v10)] << 8) ^ Te4[(unsigned __int8)v8] ^ v16[1];\n  a2[2] = (Te4[HIBYTE(v8)] << 24) ^ (Te4[BYTE2(v6)] << 16) ^ (Te4[BYTE1(v12)] << 8) ^ Te4[(unsigned __int8)v10] ^ v16[2];\n  a2[3] = (Te4[HIBYTE(v10)] << 24) ^ (Te4[BYTE2(v8)] << 16) ^ (Te4[BYTE1(v6)] << 8) ^ Te4[(unsigned __int8)v12] ^ v16[3];\n  return v21 - __readfsqword(0x28u);\n}\n  "
}{
	"func_name": "AES_set_decrypt_key",
	"opensource": "openssl",
	"content": "__int64 __fastcall AES_set_decrypt_key(_DWORD *a1, int a2, _DWORD *a3)\n{\n  int v5; // [rsp+1Ch] [rbp-44h]\n  int j; // [rsp+1Ch] [rbp-44h]\n  int i; // [rsp+20h] [rbp-40h]\n  int k; // [rsp+20h] [rbp-40h]\n  int v9; // [rsp+24h] [rbp-3Ch]\n  int v10; // [rsp+28h] [rbp-38h]\n  unsigned int v11; // [rsp+30h] [rbp-30h]\n  unsigned int v12; // [rsp+34h] [rbp-2Ch]\n  int v13; // [rsp+4Ch] [rbp-14h]\n  int v14; // [rsp+4Ch] [rbp-14h]\n  int v15; // [rsp+4Ch] [rbp-14h]\n  int v16; // [rsp+4Ch] [rbp-14h]\n  _DWORD *v17; // [rsp+50h] [rbp-10h]\n\n  v9 = AES_set_encrypt_key(a1, a2, a3);\n  if ( v9 < 0 )\n    return (unsigned int)v9;\n  v17 = a3;\n  v5 = 0;\n  for ( i = 4 * a3[60]; v5 < i; i -= 4 )\n  {\n    v13 = a3[v5];\n    a3[v5] = a3[i];\n    a3[i] = v13;\n    v14 = a3[v5 + 1];\n    a3[v5 + 1] = a3[i + 1];\n    a3[i + 1] = v14;\n    v15 = a3[v5 + 2];\n    a3[v5 + 2] = a3[i + 2];\n    a3[i + 2] = v15;\n    v16 = a3[v5 + 3];\n    a3[v5 + 3] = a3[i + 3];\n    a3[i + 3] = v16;\n    v5 += 4;\n  }\n  for ( j = 1; j < a3[60]; ++j )\n  {\n    v17 += 4;\n    for ( k = 0; k <= 3; ++k )\n    {\n      v10 = v17[k];\n      v11 = (2 * v10) & 0xFEFEFEFE ^ ((v10 & 0x80808080) - ((v10 & 0x80808080) >> 7)) & 0x1B1B1B1B;\n      v12 = (2 * v11) & 0xFEFEFEFE ^ ((v11 & 0x80808080) - ((v11 & 0x80808080) >> 7)) & 0x1B1B1B1B;\n      v17[k] = __ROL4__(\n                 v11 ^ v10 ^ (2 * v12) & 0xFEFEFEFE ^ ((v12 & 0x80808080) - ((v12 & 0x80808080) >> 7)) & 0x1B1B1B1B,\n                 24) ^ __ROL4__(\n                         v10 ^ (2 * v12) & 0xFEFEFEFE ^ ((v12 & 0x80808080) - ((v12 & 0x80808080) >> 7)) & 0x1B1B1B1B,\n                         8) ^ v11 ^ v12 ^ (2 * v12) & 0xFEFEFEFE ^ ((v12 & 0x80808080) - ((v12 & 0x80808080) >> 7)) & 0x1B1B1B1B ^ __ROL4__(v12 ^ v10 ^ (2 * v12) & 0xFEFEFEFE ^ ((v12 & 0x80808080) - ((v12 & 0x80808080) >> 7)) & 0x1B1B1B1B, 16);\n    }\n  }\n  return 0LL;\n}\n  "
}{
	"func_name": "AES_set_encrypt_key",
	"opensource": "openssl",
	"content": "__int64 __fastcall AES_set_encrypt_key(_DWORD *a1, int a2, _DWORD *a3)\n{\n  __int64 result; // rax\n  int v4; // [rsp+18h] [rbp-10h]\n  unsigned int v5; // [rsp+1Ch] [rbp-Ch]\n  unsigned int v6; // [rsp+1Ch] [rbp-Ch]\n  unsigned int v7; // [rsp+1Ch] [rbp-Ch]\n  unsigned int v8; // [rsp+1Ch] [rbp-Ch]\n  _DWORD *v9; // [rsp+20h] [rbp-8h]\n\n  v4 = 0;\n  if ( !a1 || !a3 )\n    return 0xFFFFFFFFLL;\n  if ( a2 != 128 && a2 != 192 && a2 != 256 )\n    return 4294967294LL;\n  v9 = a3;\n  if ( a2 == 128 )\n  {\n    a3[60] = 10;\n  }\n  else if ( a2 == 192 )\n  {\n    a3[60] = 12;\n  }\n  else\n  {\n    a3[60] = 14;\n  }\n  *a3 = *a1;\n  a3[1] = a1[1];\n  a3[2] = a1[2];\n  a3[3] = a1[3];\n  if ( a2 == 128 )\n  {\n    while ( 1 )\n    {\n      v5 = v9[3];\n      v9[4] = (Te4[(unsigned __int8)v5] << 24) ^ (Te4[HIBYTE(v5)] << 16) ^ (Te4[BYTE2(v5)] << 8) ^ Te4[BYTE1(v5)] ^ *v9 ^ rcon[v4];\n      v9[5] = v9[1] ^ v9[4];\n      v9[6] = v9[2] ^ v9[5];\n      v9[7] = v9[3] ^ v9[6];\n      if ( ++v4 == 10 )\n        break;\n      v9 += 4;\n    }\n    result = 0LL;\n  }\n  else\n  {\n    a3[4] = a1[4];\n    a3[5] = a1[5];\n    if ( a2 == 192 )\n    {\n      while ( 1 )\n      {\n        v6 = v9[5];\n        v9[6] = (Te4[(unsigned __int8)v6] << 24) ^ (Te4[HIBYTE(v6)] << 16) ^ (Te4[BYTE2(v6)] << 8) ^ Te4[BYTE1(v6)] ^ *v9 ^ rcon[v4];\n        v9[7] = v9[1] ^ v9[6];\n        v9[8] = v9[2] ^ v9[7];\n        v9[9] = v9[3] ^ v9[8];\n        if ( ++v4 == 8 )\n          break;\n        v9[10] = v9[4] ^ v9[9];\n        v9[11] = v9[5] ^ v9[10];\n        v9 += 6;\n      }\n      result = 0LL;\n    }\n    else\n    {\n      a3[6] = a1[6];\n      a3[7] = a1[7];\n      while ( 1 )\n      {\n        v7 = v9[7];\n        v9[8] = (Te4[(unsigned __int8)v7] << 24) ^ (Te4[HIBYTE(v7)] << 16) ^ (Te4[BYTE2(v7)] << 8) ^ Te4[BYTE1(v7)] ^ *v9 ^ rcon[v4];\n        v9[9] = v9[1] ^ v9[8];\n        v9[10] = v9[2] ^ v9[9];\n        v9[11] = v9[3] ^ v9[10];\n        if ( ++v4 == 7 )\n          break;\n        v8 = v9[11];\n        v9[12] = (Te4[BYTE2(v8)] << 16) ^ (Te4[BYTE1(v8)] << 8) ^ Te4[(unsigned __int8)v8] ^ v9[4] ^ (Te4[HIBYTE(v8)] << 24);\n        v9[13] = v9[5] ^ v9[12];\n        v9[14] = v9[6] ^ v9[13];\n        v9[15] = v9[7] ^ v9[14];\n        v9 += 8;\n      }\n      result = 0LL;\n    }\n  }\n  return result;\n}\n  "
}{
	"func_name": "__cxa_finalize",
	"opensource": "openssl",
	"content": "// attributes: thunk\nint __fastcall _cxa_finalize(void *a1)\n{\n  return __cxa_finalize(a1);\n}\n  "
}{
	"func_name": "__do_global_dtors_aux",
	"opensource": "openssl",
	"content": "char *_do_global_dtors_aux()\n{\n  char *result; // rax\n\n  if ( !_bss_start )\n  {\n    if ( &__cxa_finalize )\n      _cxa_finalize(_dso_handle);\n    result = deregister_tm_clones();\n    _bss_start = 1;\n  }\n  return result;\n}\n  "
}{
	"func_name": "_start",
	"opensource": "openssl",
	"content": "// positive sp value has been detected, the output may be wrong!\nvoid __fastcall __noreturn start(__int64 a1, __int64 a2, void (*a3)(void))\n{\n  __int64 v3; // rax\n  int v4; // esi\n  __int64 v5; // [rsp-8h] [rbp-8h] BYREF\n  char *retaddr; // [rsp+0h] [rbp+0h] BYREF\n\n  v4 = v5;\n  v5 = v3;\n  _libc_start_main((int (__fastcall *)(int, char **, char **))main, v4, &retaddr, 0LL, 0LL, a3, &v5);\n  __halt();\n}\n  "
}{
	"func_name": "deregister_tm_clones",
	"opensource": "openssl",
	"content": "char *deregister_tm_clones()\n{\n  return &_bss_start;\n}\n  "
}{
	"func_name": "frame_dummy",
	"opensource": "openssl",
	"content": "__int64 frame_dummy()\n{\n  return register_tm_clones();\n}\n  "
}{
	"func_name": "main",
	"opensource": "openssl",
	"content": "int __cdecl main(int argc, const char **argv, const char **envp)\n{\n  int result; // eax\n\n  return result;\n}\n  "
}{
	"func_name": "prefetch256",
	"opensource": "openssl",
	"content": "__int64 __fastcall prefetch256(__int64 a1)\n{\n  unsigned int i; // [rsp+Ch] [rbp-1Ch]\n  __int64 v3; // [rsp+18h] [rbp-10h]\n\n  v3 = 0LL;\n  for ( i = 0; i <= 0x1F; i += 4 )\n    v3 ^= *(_QWORD *)(8LL * (int)i + a1);\n  return v3;\n}\n  "
}{
	"func_name": "register_tm_clones",
	"opensource": "openssl",
	"content": "__int64 register_tm_clones()\n{\n  return 0LL;\n}\n  "
}{
	"func_name": "sub_1020",
	"opensource": "openssl",
	"content": "void sub_1020()\n{\n  JUMPOUT(0LL);\n}\n  "
}{
	"func_name": "sub_1030",
	"opensource": "openssl",
	"content": "void sub_1030()\n{\n  sub_1020();\n}\n  "
}{
	"func_name": "sub_1040",
	"opensource": "openssl",
	"content": "void sub_1040()\n{\n  sub_1020();\n}\n  "
}