void main(int argc, char *argv[]) {
  char buf[7] = {0};
  char hashmodel[31];
  char username[15];
  unsigned char hash;
  int tim = time(&tim);
  int a, b, c;
  a = enc1(tim);
  c = a;
  b = enc2(&a);
  lendian2byte(c, hashmodel);
  memcpy(hashmodel + 4, argv[1], 11);
  memcpy(hashmodel + 15, &"sh_xi@xiaoyuanyi", 16);
  hash = MD5DAT(hashmodel, 31);
  enc3(&b, buf);
  printf("%s%02x%s", buf, hash, argv[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x17(%rbp),%rdi
xor    %esi,%esi
mov    $0x7,%edx
call   1070 <memset@plt>
lea    -0x54(%rbp),%rdi
mov    $0x0,%al
call   1080 <time@plt>
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%edi
mov    $0x0,%al
call   1090 <enc1@plt>
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
mov    %eax,-0x60(%rbp)
lea    -0x58(%rbp),%rdi
mov    $0x0,%al
call   1060 <enc2@plt>
mov    %eax,-0x5c(%rbp)
mov    -0x60(%rbp),%edi
lea    -0x40(%rbp),%rsi
mov    $0x0,%al
call   1030 <lendian2byte@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    (%rax),%rcx
mov    %rcx,-0x3c(%rbp)
mov    0x8(%rax),%cx
mov    %cx,-0x34(%rbp)
mov    0xa(%rax),%al
mov    %al,-0x32(%rbp)
mov    0xe00(%rip),%rax
mov    %rax,-0x31(%rbp)
mov    0xdfd(%rip),%rax
mov    %rax,-0x29(%rbp)
lea    -0x40(%rbp),%rdi
mov    $0x1f,%esi
mov    $0x0,%al
call   1040 <MD5DAT@plt>
mov    %al,-0x50(%rbp)
lea    -0x17(%rbp),%rsi
lea    -0x5c(%rbp),%rdi
mov    $0x0,%al
call   10a0 <enc3@plt>
lea    -0x17(%rbp),%rsi
movzbl -0x50(%rbp),%edx
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rcx
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
mov    %rsi,%r14
movl   $0x0,0x1b(%rsp)
movl   $0x0,0x18(%rsp)
lea    0x14(%rsp),%rdi
xor    %eax,%eax
call   1070 <time@plt>
mov    %eax,0x14(%rsp)
mov    %eax,%edi
xor    %eax,%eax
call   1080 <enc1@plt>
mov    %eax,%ebp
mov    %eax,0x10(%rsp)
lea    0x10(%rsp),%rdi
xor    %eax,%eax
call   1060 <enc2@plt>
mov    %eax,0xc(%rsp)
lea    0x20(%rsp),%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <lendian2byte@plt>
mov    0x8(%r14),%rax
mov    (%rax),%rcx
mov    %rcx,0x24(%rsp)
mov    0x7(%rax),%eax
mov    %eax,0x2b(%rsp)
movups 0xe1b(%rip),%xmm0
movups %xmm0,0x2f(%rsp)
mov    %rbx,%rdi
mov    $0x1f,%esi
xor    %eax,%eax
call   1040 <MD5DAT@plt>
mov    %eax,%ebx
lea    0xc(%rsp),%rdi
lea    0x18(%rsp),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <enc3@plt>
movzbl %bl,%edx
mov    0x8(%r14),%rcx
lea    0xdf4(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"sh_xi@xiaoyuanyi\00"
@.str.1 = [9 x i8] c"%s%02x%s\00"
define void @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
%5 = alloca [7 x i8]
%6 = alloca [31 x i8]
%7 = alloca [15 x i8]
%8 = alloca i8
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 %0, i32* %3
store i8** %1, i8*** %4
%13 = bitcast [7 x i8]* %5 to i8*
%14 = call i32 (i32*, ...) bitcast (i32 (...)* @time to i32 (i32*, ...)*)(i32* %9)
store i32 %14, i32* %9
%15 = load i32, i32* %9
%16 = call i32 (i32, ...) bitcast (i32 (...)* @enc1 to i32 (i32, ...)*)(i32 %15)
store i32 %16, i32* %10
%17 = load i32, i32* %10
store i32 %17, i32* %12
%18 = call i32 (i32*, ...) bitcast (i32 (...)* @enc2 to i32 (i32*, ...)*)(i32* %10)
store i32 %18, i32* %11
%19 = load i32, i32* %12
%20 = getelementptr inbounds [31 x i8], [31 x i8]* %6, i64 0, i64 0
%21 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @lendian2byte to i32 (i32, i8*, ...)*)(i32 %19, i8* %20)
%22 = getelementptr inbounds [31 x i8], [31 x i8]* %6, i64 0, i64 0
%23 = getelementptr inbounds i8, i8* %22, i64 4
%24 = load i8**, i8*** %4
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = getelementptr inbounds [31 x i8], [31 x i8]* %6, i64 0, i64 0
%28 = getelementptr inbounds i8, i8* %27, i64 15
%29 = getelementptr inbounds [31 x i8], [31 x i8]* %6, i64 0, i64 0
%30 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @MD5DAT to i32 (i8*, i32, ...)*)(i8* %29, i32 31)
%31 = trunc i32 %30 to i8
store i8 %31, i8* %8
%32 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%33 = call i32 (i32*, i8*, ...) bitcast (i32 (...)* @enc3 to i32 (i32*, i8*, ...)*)(i32* %11, i8* %32)
%34 = getelementptr inbounds [7 x i8], [7 x i8]* %5, i64 0, i64 0
%35 = load i8, i8* %8
%36 = zext i8 %35 to i32
%37 = load i8**, i8*** %4
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %34, i32 %36, i8* %39)
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"sh_xi@xiaoyuanyi\00"
@.str.1 = [9 x i8] c"%s%02x%s\00"
define void @main(i32 %0, i8** nocapture %1) {
%3 = alloca [7 x i8]
%4 = alloca [31 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = getelementptr inbounds [7 x i8], [7 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [31 x i8], [31 x i8]* %4, i64 0, i64 0
%10 = bitcast i32* %5 to i8*
%11 = call i32 (i32*, ...) bitcast (i32 (...)* @time to i32 (i32*, ...)*)(i32* %5)
store i32 %11, i32* %5
%12 = bitcast i32* %6 to i8*
%13 = bitcast i32* %7 to i8*
%14 = call i32 (i32, ...) bitcast (i32 (...)* @enc1 to i32 (i32, ...)*)(i32 %11)
store i32 %14, i32* %6
%15 = call i32 (i32*, ...) bitcast (i32 (...)* @enc2 to i32 (i32*, ...)*)(i32* %6)
store i32 %15, i32* %7
%16 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @lendian2byte to i32 (i32, i8*, ...)*)(i32 %14, i8* %9)
%17 = getelementptr inbounds [31 x i8], [31 x i8]* %4, i64 0, i64 4
%18 = getelementptr inbounds i8*, i8** %1, i64 1
%19 = load i8*, i8** %18
%20 = getelementptr inbounds [31 x i8], [31 x i8]* %4, i64 0, i64 15
%21 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @MD5DAT to i32 (i8*, i32, ...)*)(i8* %9, i32 31)
%22 = call i32 (i32*, i8*, ...) bitcast (i32 (...)* @enc3 to i32 (i32*, i8*, ...)*)(i32* %7, i8* %8)
%23 = and i32 %21, 255
%24 = load i8*, i8** %18
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* %8, i32 %23, i8* %24)
ret void
}