#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ MD5_CTX;

/* Variables and functions */
int MD5_DIGEST_LENGTH;
int /*<<< orphan*/ MD5_Final(unsigned char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ MD5_Init(int /*<<< orphan*/ *);
int /*<<< orphan*/ MD5_Update(int /*<<< orphan*/ *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ doCRFile(char *);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ free(char *);
char *getRand();
int gethostname(char *, int);
char *getmID();
int /*<<< orphan*/ printf(char *, ...);
char *strerror(int /*<<< orphan*/);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
int /*<<< orphan*/ unlink(char *);
int /*<<< orphan*/ xor_decrypt(char *, char *, int);
int main(void) {
  printf("Running HWID Creator.\n");
  printf("Be sure to run this from the machine that will be running the "
         "checker, and the same user.\n");
  char *rand = getRand();
  if (!rand) {
    printf("Error when running first breakpoint.\n");
    exit(2);
  }
  if (!doCRFile(rand)) {
    printf("Error when running third breakpoint.\n");
    exit(2);
  }
  char *mid = getmID();
  if (!mid) {
    char chr[] = {99, 7,  3,  44, 81,  104, 15,  19, 4,  37, 9,   14, 29, 21,
                  2,  47, 64, 66, 113, 4,   119, 0,  79, 87, 124, 84, 0};
    xor_decrypt(chr, "LolA4GbvcDdosfg", 26);
    printf("Error when running second breakpoint\n");
    unlink(chr);
    free(rand);
    exit(2);
  }
  char gh[65];
  int gho = gethostname(gh, 64);
  gh[65 - 1] = 0;
  if (gho == -1) {
    printf("Error when running fourth breakpoint.(%s)\n", strerror(errno));
    char chr[] = {99, 7,  3,  44, 81,  104, 15,  19, 4,  37, 9,   14, 29, 21,
                  2,  47, 64, 66, 113, 4,   119, 0,  79, 87, 124, 84, 0};
    xor_decrypt(chr, "LolA4GbvcDdosfg", 26);
    unlink(chr);
    free(rand);
    free(mid);
    exit(2);
  }
  char out[216] = "";
  strncat(out, rand, 120);
  strncat(out, mid, 32);
  strncat(out, gh, 64);
  unsigned char c[MD5_DIGEST_LENGTH];
  unsigned char data[1024];
  int bytes;
  MD5_CTX mdContext;
  MD5_Init(&mdContext);
  MD5_Update(&mdContext, out, strlen(out));
  MD5_Final(c, &mdContext);
  printf("\nHWID IS: \n\n");
  for (int i = 0; i < MD5_DIGEST_LENGTH; i++)
    printf("%02x", c[i]);
  printf("\n\n");
  free(rand);
  free(mid);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x5e0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x0,%al
call   1070 <getRand@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    124c <main+0x5c>
lea    0xe37(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x2,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rdi
call   10c0 <doCRFile@plt>
cmp    $0x0,%eax
jne    1276 <main+0x86>
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    $0x2,%edi
call   10f0 <exit@plt>
mov    $0x0,%al
call   1040 <getmID@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1300 <main+0x110>
mov    0xead(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeaa(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xea7(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xea4(%rip),%ax
mov    %ax,-0x28(%rbp)
mov    0xe9c(%rip),%al
mov    %al,-0x26(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xdf2(%rip),%rsi
mov    $0x1a,%edx
call   10b0 <xor_decrypt@plt>
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1050 <unlink@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    $0x2,%edi
call   10f0 <exit@plt>
lea    -0x90(%rbp),%rdi
mov    $0x40,%esi
call   10e0 <gethostname@plt>
mov    %eax,-0x94(%rbp)
movb   $0x0,-0x50(%rbp)
cmpl   $0xffffffff,-0x94(%rbp)
jne    13cb <main+0x1db>
mov    0x2cb1(%rip),%rax
mov    (%rax),%edi
call   1100 <strerror@plt>
mov    %rax,%rsi
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    0xe12(%rip),%rax
mov    %rax,-0xb0(%rbp)
mov    0xe0c(%rip),%rax
mov    %rax,-0xa8(%rbp)
mov    0xe06(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xe00(%rip),%ax
mov    %ax,-0x98(%rbp)
mov    0xdf5(%rip),%al
mov    %al,-0x96(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0xd25(%rip),%rsi
mov    $0x1a,%edx
call   10b0 <xor_decrypt@plt>
lea    -0xb0(%rbp),%rdi
call   1050 <unlink@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    $0x2,%edi
call   10f0 <exit@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,-0x5e0(%rbp)
movaps %xmm0,-0xd0(%rbp)
movaps %xmm0,-0xe0(%rbp)
movaps %xmm0,-0xf0(%rbp)
movaps %xmm0,-0x100(%rbp)
movaps %xmm0,-0x110(%rbp)
movaps %xmm0,-0x120(%rbp)
movaps %xmm0,-0x130(%rbp)
movaps %xmm0,-0x140(%rbp)
movaps %xmm0,-0x150(%rbp)
movaps %xmm0,-0x160(%rbp)
movaps %xmm0,-0x170(%rbp)
movaps %xmm0,-0x180(%rbp)
movaps %xmm0,-0x190(%rbp)
movq   $0x0,-0xc0(%rbp)
mov    -0x10(%rbp),%rsi
lea    -0x190(%rbp),%rdi
mov    %rdi,-0x5c8(%rbp)
mov    $0x78,%edx
call   10a0 <strncat@plt>
mov    -0x5c8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x20,%edx
call   10a0 <strncat@plt>
mov    -0x5c8(%rbp),%rdi
lea    -0x90(%rbp),%rsi
mov    $0x40,%edx
call   10a0 <strncat@plt>
mov    0x2b4d(%rip),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x198(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x5b8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x1a0(%rbp)
lea    -0x5a8(%rbp),%rdi
call   10d0 <MD5_Init@plt>
lea    -0x190(%rbp),%rax
mov    %rax,-0x5c0(%rbp)
lea    -0x190(%rbp),%rdi
call   1080 <strlen@plt>
mov    -0x5c0(%rbp),%rsi
mov    %eax,%edx
lea    -0x5a8(%rbp),%rdi
call   1110 <MD5_Update@plt>
mov    -0x5b8(%rbp),%rdi
lea    -0x5a8(%rbp),%rsi
call   1060 <MD5_Final@plt>
lea    0xc11(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
movl   $0x0,-0x5ac(%rbp)
mov    -0x5ac(%rbp),%eax
mov    0x2aac(%rip),%rcx
cmp    (%rcx),%eax
jge    1568 <main+0x378>
mov    -0x5b8(%rbp),%rax
movslq -0x5ac(%rbp),%rcx
movzbl (%rax,%rcx,1),%esi
lea    0xbdf(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x5ac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5ac(%rbp)
jmp    151f <main+0x32f>
lea    0xbba(%rip),%rdi
mov    $0x0,%al
call   1090 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
xor    %edi,%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
lea    0xe25(%rip),%rdi
call   1060 <puts@plt>
lea    0xe2f(%rip),%rdi
call   1060 <puts@plt>
xor    %eax,%eax
call   1080 <getRand@plt>
test   %rax,%rax
jne    1241 <main+0x41>
lea    0xe71(%rip),%rdi
jmp    1257 <main+0x57>
mov    %rax,%r15
mov    %rax,%rdi
call   10d0 <doCRFile@plt>
test   %eax,%eax
jne    1266 <main+0x66>
lea    0xe7e(%rip),%rdi
call   1060 <puts@plt>
mov    $0x2,%edi
call   1100 <exit@plt>
xor    %eax,%eax
call   1040 <getmID@plt>
test   %rax,%rax
jne    12c5 <main+0xc5>
movups 0xec2(%rip),%xmm0
movups %xmm0,-0x105(%rbp)
movaps 0xea9(%rip),%xmm0
movaps %xmm0,-0x110(%rbp)
lea    0xd6b(%rip),%rsi
lea    -0x110(%rbp),%rbx
mov    %rbx,%rdi
mov    $0x1a,%edx
call   10c0 <xor_decrypt@plt>
lea    0xe4a(%rip),%rdi
call   1060 <puts@plt>
mov    %rbx,%rdi
call   1050 <unlink@plt>
mov    %r15,%rdi
jmp    134e <main+0x14e>
mov    %rax,%rbx
lea    -0x160(%rbp),%rdi
mov    $0x40,%esi
call   10f0 <gethostname@plt>
movb   $0x0,-0x120(%rbp)
cmp    $0xffffffff,%eax
jne    135d <main+0x15d>
mov    0x2cf4(%rip),%rax
mov    (%rax),%edi
call   1110 <strerror@plt>
lea    0xd16(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   10a0 <printf@plt>
movups 0xe30(%rip),%xmm0
movups %xmm0,-0x105(%rbp)
movaps 0xe17(%rip),%xmm0
movaps %xmm0,-0x110(%rbp)
lea    0xcd9(%rip),%rsi
lea    -0x110(%rbp),%r14
mov    %r14,%rdi
mov    $0x1a,%edx
call   10c0 <xor_decrypt@plt>
mov    %r14,%rdi
call   1050 <unlink@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    $0x2,%edi
call   1100 <exit@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,-0x50(%rbp)
movaps %xmm0,-0x60(%rbp)
movaps %xmm0,-0x70(%rbp)
movaps %xmm0,-0x80(%rbp)
movaps %xmm0,-0x90(%rbp)
movaps %xmm0,-0xa0(%rbp)
movaps %xmm0,-0xb0(%rbp)
movaps %xmm0,-0xc0(%rbp)
movaps %xmm0,-0xd0(%rbp)
movaps %xmm0,-0xe0(%rbp)
movaps %xmm0,-0xf0(%rbp)
movaps %xmm0,-0x100(%rbp)
movaps %xmm0,-0x110(%rbp)
movq   $0x0,-0x40(%rbp)
lea    -0x110(%rbp),%r14
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x78,%edx
call   10b0 <strncat@plt>
mov    %r14,%rdi
mov    %rbx,-0x30(%rbp)
mov    %rbx,%rsi
mov    $0x20,%edx
call   10b0 <strncat@plt>
lea    -0x160(%rbp),%rsi
mov    %r14,%rdi
mov    $0x40,%edx
call   10b0 <strncat@plt>
mov    0x2bdb(%rip),%r13
mov    0x0(%r13),%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
lea    -0x34(%rbp),%r12
mov    %r12,%rdi
call   10e0 <MD5_Init@plt>
mov    %r14,%rdi
call   1090 <strlen@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %eax,%edx
call   1120 <MD5_Update@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1070 <MD5_Final@plt>
lea    0xcda(%rip),%rdi
call   1060 <puts@plt>
cmpl   $0x0,0x0(%r13)
jle    147c <main+0x27c>
lea    0xbe3(%rip),%r12
xor    %r14d,%r14d
nopl   0x0(%rax,%rax,1)
movzbl (%rbx,%r14,1),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   10a0 <printf@plt>
add    $0x1,%r14
movslq 0x0(%r13),%rax
cmp    %rax,%r14
jl     1460 <main+0x260>
lea    0xca6(%rip),%rdi
call   1060 <puts@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
xor    %edi,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"Running HWID Creator.\0A\00"
@.str.1 = [91 x i8] c"Be sure to run this from the machine that will be running the checker, and the same user.\0A\00"
@.str.2 = [38 x i8] c"Error when running first breakpoint.\0A\00"
@.str.3 = [38 x i8] c"Error when running third breakpoint.\0A\00"
@__const.main.chr = [27 x i8] c"c\07\03,Qh\0F\13\04%\09\0E\1D\15\02/@Bq\04w\00OW|T\00"
@.str.4 = [16 x i8] c"LolA4GbvcDdosfg\00"
@.str.5 = [38 x i8] c"Error when running second breakpoint\0A\00"
@.str.6 = [43 x i8] c"Error when running fourth breakpoint.(%s)\0A\00"
@errno = global i32 0
@__const.main.chr.7 = [27 x i8] c"c\07\03,Qh\0F\13\04%\09\0E\1D\15\02/@Bq\04w\00OW|T\00"
@MD5_DIGEST_LENGTH = global i32 0
@.str.8 = [13 x i8] c"\0AHWID IS: \0A\0A\00"
@.str.9 = [5 x i8] c"%02x\00"
@.str.10 = [3 x i8] c"\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca [27 x i8]
%5 = alloca [65 x i8]
%6 = alloca i32
%7 = alloca [27 x i8]
%8 = alloca [216 x i8]
%9 = alloca i8*
%10 = alloca i64
%11 = alloca [1024 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %1
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.1, i64 0, i64 0))
%17 = call i8* (...) @getRand()
store i8* %17, i8** %2
%18 = load i8*, i8** %2
%19 = icmp ne i8* %18, null
br i1 %19, label %23, label %20
20: ; preds = %0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.2, i64 0, i64 0))
%22 = call i32 @exit(i32 2)
unreachable
23: ; preds = %0
%24 = load i8*, i8** %2
%25 = call i32 @doCRFile(i8* %24)
%26 = icmp ne i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %23
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%29 = call i32 @exit(i32 2)
unreachable
30: ; preds = %23
%31 = call i8* (...) @getmID()
store i8* %31, i8** %3
%32 = load i8*, i8** %3
%33 = icmp ne i8* %32, null
br i1 %33, label %44, label %34
34: ; preds = %30
%35 = bitcast [27 x i8]* %4 to i8*
%36 = getelementptr inbounds [27 x i8], [27 x i8]* %4, i64 0, i64 0
%37 = call i32 @xor_decrypt(i8* %36, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 26)
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%39 = getelementptr inbounds [27 x i8], [27 x i8]* %4, i64 0, i64 0
%40 = call i32 @unlink(i8* %39)
%41 = load i8*, i8** %2
%42 = call i32 @free(i8* %41)
%43 = call i32 @exit(i32 2)
unreachable
44: ; preds = %30
%45 = getelementptr inbounds [65 x i8], [65 x i8]* %5, i64 0, i64 0
%46 = call i32 @gethostname(i8* %45, i32 64)
store i32 %46, i32* %6
%47 = getelementptr inbounds [65 x i8], [65 x i8]* %5, i64 0, i64 64
store i8 0, i8* %47
%48 = load i32, i32* %6
%49 = icmp eq i32 %48, -1
br i1 %49, label %50, label %64
50: ; preds = %44
%51 = load i32, i32* @errno
%52 = call i8* @strerror(i32 %51)
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i8* %52)
%54 = bitcast [27 x i8]* %7 to i8*
%55 = getelementptr inbounds [27 x i8], [27 x i8]* %7, i64 0, i64 0
%56 = call i32 @xor_decrypt(i8* %55, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 26)
%57 = getelementptr inbounds [27 x i8], [27 x i8]* %7, i64 0, i64 0
%58 = call i32 @unlink(i8* %57)
%59 = load i8*, i8** %2
%60 = call i32 @free(i8* %59)
%61 = load i8*, i8** %3
%62 = call i32 @free(i8* %61)
%63 = call i32 @exit(i32 2)
unreachable
64: ; preds = %44
%65 = bitcast [216 x i8]* %8 to i8*
%66 = getelementptr inbounds [216 x i8], [216 x i8]* %8, i64 0, i64 0
%67 = load i8*, i8** %2
%68 = call i32 @strncat(i8* %66, i8* %67, i32 120)
%69 = getelementptr inbounds [216 x i8], [216 x i8]* %8, i64 0, i64 0
%70 = load i8*, i8** %3
%71 = call i32 @strncat(i8* %69, i8* %70, i32 32)
%72 = getelementptr inbounds [216 x i8], [216 x i8]* %8, i64 0, i64 0
%73 = getelementptr inbounds [65 x i8], [65 x i8]* %5, i64 0, i64 0
%74 = call i32 @strncat(i8* %72, i8* %73, i32 64)
%75 = load i32, i32* @MD5_DIGEST_LENGTH
%76 = zext i32 %75 to i64
%77 = call i8* @llvm.stacksave()
store i8* %77, i8** %9
%78 = alloca i8, i64 %76
store i64 %76, i64* %10
%79 = call i32 @MD5_Init(i32* %13)
%80 = getelementptr inbounds [216 x i8], [216 x i8]* %8, i64 0, i64 0
%81 = getelementptr inbounds [216 x i8], [216 x i8]* %8, i64 0, i64 0
%82 = call i32 @strlen(i8* %81)
%83 = call i32 @MD5_Update(i32* %13, i8* %80, i32 %82)
%84 = call i32 @MD5_Final(i8* %78, i32* %13)
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %14
br label %86
86: ; preds = %97, %64
%87 = load i32, i32* %14
%88 = load i32, i32* @MD5_DIGEST_LENGTH
%89 = icmp slt i32 %87, %88
br i1 %89, label %90, label %100
90: ; preds = %86
%91 = load i32, i32* %14
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds i8, i8* %78, i64 %92
%94 = load i8, i8* %93
%95 = zext i8 %94 to i32
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %95)
br label %97
97: ; preds = %90
%98 = load i32, i32* %14
%99 = add nsw i32 %98, 1
store i32 %99, i32* %14
br label %86
100: ; preds = %86
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%102 = load i8*, i8** %2
%103 = call i32 @free(i8* %102)
%104 = load i8*, i8** %3
%105 = call i32 @free(i8* %104)
%106 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str.4 = [16 x i8] c"LolA4GbvcDdosfg\00"
@.str.6 = [43 x i8] c"Error when running fourth breakpoint.(%s)\0A\00"
@errno = global i32 0
@__const.main.chr.7 = [27 x i8] c"c\07\03,Qh\0F\13\04%\09\0E\1D\15\02/@Bq\04w\00OW|T\00"
@MD5_DIGEST_LENGTH = global i32 0
@.str.9 = [5 x i8] c"%02x\00"
@str = [22 x i8] c"Running HWID Creator.\00"
@str.11 = [90 x i8] c"Be sure to run this from the machine that will be running the checker, and the same user.\00"
@str.12 = [37 x i8] c"Error when running first breakpoint.\00"
@str.13 = [37 x i8] c"Error when running third breakpoint.\00"
@str.14 = [37 x i8] c"Error when running second breakpoint\00"
@str.15 = [12 x i8] c"\0AHWID IS: \0A\00"
@str.16 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca [27 x i8]
%2 = alloca [65 x i8]
%3 = alloca [27 x i8]
%4 = alloca [216 x i8]
%5 = alloca i32
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.11, i64 0, i64 0))
%8 = tail call i8* (...) @getRand()
%9 = icmp eq i8* %8, null
br i1 %9, label %10, label %13
10: ; preds = %0
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.12, i64 0, i64 0))
%12 = tail call i32 @exit(i32 2)
unreachable
13: ; preds = %0
%14 = tail call i32 @doCRFile(i8* %8)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.13, i64 0, i64 0))
%18 = tail call i32 @exit(i32 2)
unreachable
19: ; preds = %13
%20 = tail call i8* (...) @getmID()
%21 = icmp eq i8* %20, null
br i1 %21, label %22, label %29
22: ; preds = %19
%23 = getelementptr inbounds [27 x i8], [27 x i8]* %1, i64 0, i64 0
%24 = call i32 @xor_decrypt(i8* %23, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 26)
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.14, i64 0, i64 0))
%26 = call i32 @unlink(i8* %23)
%27 = call i32 @free(i8* %8)
%28 = call i32 @exit(i32 2)
unreachable
29: ; preds = %19
%30 = getelementptr inbounds [65 x i8], [65 x i8]* %2, i64 0, i64 0
%31 = call i32 @gethostname(i8* %30, i32 64)
%32 = getelementptr inbounds [65 x i8], [65 x i8]* %2, i64 0, i64 64
store i8 0, i8* %32
%33 = icmp eq i32 %31, -1
br i1 %33, label %34, label %44
34: ; preds = %29
%35 = load i32, i32* @errno
%36 = call i8* @strerror(i32 %35)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i8* %36)
%38 = getelementptr inbounds [27 x i8], [27 x i8]* %3, i64 0, i64 0
%39 = call i32 @xor_decrypt(i8* %38, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 26)
%40 = call i32 @unlink(i8* %38)
%41 = call i32 @free(i8* %8)
%42 = call i32 @free(i8* %20)
%43 = call i32 @exit(i32 2)
unreachable
44: ; preds = %29
%45 = getelementptr inbounds [216 x i8], [216 x i8]* %4, i64 0, i64 0
%46 = call i32 @strncat(i8* %45, i8* %8, i32 120)
%47 = call i32 @strncat(i8* %45, i8* %20, i32 32)
%48 = call i32 @strncat(i8* %45, i8* %30, i32 64)
%49 = load i32, i32* @MD5_DIGEST_LENGTH
%50 = zext i32 %49 to i64
%51 = alloca i8, i64 %50
%52 = bitcast i32* %5 to i8*
%53 = call i32 @MD5_Init(i32* %5)
%54 = call i32 @strlen(i8* %45)
%55 = call i32 @MD5_Update(i32* %5, i8* %45, i32 %54)
%56 = call i32 @MD5_Final(i8* %51, i32* %5)
%57 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.15, i64 0, i64 0))
%58 = load i32, i32* @MD5_DIGEST_LENGTH
%59 = icmp sgt i32 %58, 0
br i1 %59, label %65, label %60
60: ; preds = %65, %44
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.16, i64 0, i64 0))
%62 = call i32 @free(i8* %8)
%63 = call i32 @free(i8* %20)
%64 = call i32 @exit(i32 0)
unreachable
65: ; preds = %44, %65
%66 = phi i64 [ %71, %65 ], [ 0, %44 ]
%67 = getelementptr inbounds i8, i8* %51, i64 %66
%68 = load i8, i8* %67
%69 = zext i8 %68 to i32
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 %69)
%71 = add nuw nsw i64 %66, 1
%72 = load i32, i32* @MD5_DIGEST_LENGTH
%73 = sext i32 %72 to i64
%74 = icmp slt i64 %71, %73
br i1 %74, label %65, label %60
}