#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 */

/* Variables and functions */
int /*<<< orphan*/ writeVerbose(int, char *, ...);
void showUsage() {
  writeVerbose(1, "%s (%s) %s :: %s\n", "imap.mod", "2.0",
               "pMonkey <pmonkey@foofus.net>",
               "Brute force module for IMAP sessions");
  writeVerbose(1, "Available module options:");
  writeVerbose(1, "  TAG:? (Default: gerg)");
  writeVerbose(
      1,
      "  AUTH:? (Authentication Type (LOGIN/PLAIN/NTLM). Default: automatic)");
  writeVerbose(1, "  DOMAIN:? [optional]");
  writeVerbose(1, "");
  writeVerbose(1, "Usage example: \"-M imap -m TAG:A0001 -m AUTH:PLAIN");
  writeVerbose(1, "");
  writeVerbose(
      1, "The DOMAIN option should supply the specified domain appropriately,");
  writeVerbose(
      1, "regardless of authentication type. The domain can also be supplied ");
  writeVerbose(
      1,
      "via the username field, but the format appears to differ by auth type.");
  writeVerbose(1, "");
  writeVerbose(1, "Example 1: NTLM authentication with DOMAIN option");
  writeVerbose(1, "   \"medusa -M imap -m AUTH:NTLM -m DOMAIN:FOODOM -h host "
                  "-u foo -p bar\"");
  writeVerbose(1, "");
  writeVerbose(1, "Example 2: NTLM authentication with domain via username");
  writeVerbose(
      1, "   \"medusa -M imap -m AUTH:NTLM -h host -u foo@domain -p bar\"");
  writeVerbose(1, "");
  writeVerbose(
      1,
      "* If no domain is specified when using NTLM authentication, the server");
  writeVerbose(1, "supplied value will be used.");
  writeVerbose(1, "");
  writeVerbose(1, "Example 3: LOGIN authentication with domain via username");
  writeVerbose(
      1,
      "   \"medusa -M imap -m AUTH:LOGIN -h host -u 'domain\\\\foo' -p bar\"");
}


x86 assembly (clang, -O0):
<showUsage>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
lea    0xeeb(%rip),%rdx
lea    0xeed(%rip),%rcx
lea    0xeea(%rip),%r8
lea    0xf00(%rip),%r9
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf12(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf19(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf1e(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf51(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xe76(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf41(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xe50(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf4e(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xf7f(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xfb0(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xfd1(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xff0(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xdcb(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x1012(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x1037(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xd92(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x104f(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x1083(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0xd59(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x107a(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
lea    0x10a0(%rip),%rsi
mov    $0x0,%al
call   1030 <writeVerbose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showUsage>:
push   %rbx
lea    0xee8(%rip),%rsi
lea    0xef3(%rip),%rdx
lea    0xef5(%rip),%rcx
lea    0xef2(%rip),%r8
lea    0xf08(%rip),%r9
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf1a(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf21(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf26(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf59(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xe7e(%rip),%rbx
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf46(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf57(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xf88(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xfb9(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xfde(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0xffd(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1023(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1048(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1064(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1098(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x1093(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <writeVerbose@plt>
lea    0x10b9(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
pop    %rbx
jmp    1030 <writeVerbose@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"%s (%s) %s :: %s\0A\00"
@.str.1 = [9 x i8] c"imap.mod\00"
@.str.2 = [4 x i8] c"2.0\00"
@.str.3 = [29 x i8] c"pMonkey <pmonkey@foofus.net>\00"
@.str.4 = [37 x i8] c"Brute force module for IMAP sessions\00"
@.str.5 = [26 x i8] c"Available module options:\00"
@.str.6 = [24 x i8] c" TAG:? (Default: gerg)\00"
@.str.7 = [70 x i8] c" AUTH:? (Authentication Type (LOGIN/PLAIN/NTLM). Default: automatic)\00"
@.str.8 = [22 x i8] c" DOMAIN:? [optional]\00"
@.str.9 = [1 x i8] zeroinitializer
@.str.10 = [51 x i8] c"Usage example: \22-M imap -m TAG:A0001 -m AUTH:PLAIN\00"
@.str.11 = [68 x i8] c"The DOMAIN option should supply the specified domain appropriately,\00"
@.str.12 = [68 x i8] c"regardless of authentication type. The domain can also be supplied \00"
@.str.13 = [71 x i8] c"via the username field, but the format appears to differ by auth type.\00"
@.str.14 = [50 x i8] c"Example 1: NTLM authentication with DOMAIN option\00"
@.str.15 = [72 x i8] c" \22medusa -M imap -m AUTH:NTLM -m DOMAIN:FOODOM -h host -u foo -p bar\22\00"
@.str.16 = [56 x i8] c"Example 2: NTLM authentication with domain via username\00"
@.str.17 = [62 x i8] c" \22medusa -M imap -m AUTH:NTLM -h host -u foo@domain -p bar\22\00"
@.str.18 = [71 x i8] c"* If no domain is specified when using NTLM authentication, the server\00"
@.str.19 = [29 x i8] c"supplied value will be used.\00"
@.str.20 = [57 x i8] c"Example 3: LOGIN authentication with domain via username\00"
@.str.21 = [66 x i8] c" \22medusa -M imap -m AUTH:LOGIN -h host -u 'domain\\\\foo' -p bar\22\00"
define void @showUsage() {
%1 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%2 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%3 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%4 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
%5 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%6 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%8 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%10 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
%11 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.13, i64 0, i64 0))
%12 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%13 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0))
%14 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
%15 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0))
%17 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.17, i64 0, i64 0))
%18 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%22 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.20, i64 0, i64 0))
%23 = call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.21, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"%s (%s) %s :: %s\0A\00"
@.str.1 = [9 x i8] c"imap.mod\00"
@.str.2 = [4 x i8] c"2.0\00"
@.str.3 = [29 x i8] c"pMonkey <pmonkey@foofus.net>\00"
@.str.4 = [37 x i8] c"Brute force module for IMAP sessions\00"
@.str.5 = [26 x i8] c"Available module options:\00"
@.str.6 = [24 x i8] c" TAG:? (Default: gerg)\00"
@.str.7 = [70 x i8] c" AUTH:? (Authentication Type (LOGIN/PLAIN/NTLM). Default: automatic)\00"
@.str.8 = [22 x i8] c" DOMAIN:? [optional]\00"
@.str.9 = [1 x i8] zeroinitializer
@.str.10 = [51 x i8] c"Usage example: \22-M imap -m TAG:A0001 -m AUTH:PLAIN\00"
@.str.11 = [68 x i8] c"The DOMAIN option should supply the specified domain appropriately,\00"
@.str.12 = [68 x i8] c"regardless of authentication type. The domain can also be supplied \00"
@.str.13 = [71 x i8] c"via the username field, but the format appears to differ by auth type.\00"
@.str.14 = [50 x i8] c"Example 1: NTLM authentication with DOMAIN option\00"
@.str.15 = [72 x i8] c" \22medusa -M imap -m AUTH:NTLM -m DOMAIN:FOODOM -h host -u foo -p bar\22\00"
@.str.16 = [56 x i8] c"Example 2: NTLM authentication with domain via username\00"
@.str.17 = [62 x i8] c" \22medusa -M imap -m AUTH:NTLM -h host -u foo@domain -p bar\22\00"
@.str.18 = [71 x i8] c"* If no domain is specified when using NTLM authentication, the server\00"
@.str.19 = [29 x i8] c"supplied value will be used.\00"
@.str.20 = [57 x i8] c"Example 3: LOGIN authentication with domain via username\00"
@.str.21 = [66 x i8] c" \22medusa -M imap -m AUTH:LOGIN -h host -u 'domain\\\\foo' -p bar\22\00"
define void @showUsage() {
%1 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%2 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%3 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%4 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.7, i64 0, i64 0))
%5 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%6 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%9 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%10 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.12, i64 0, i64 0))
%11 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.13, i64 0, i64 0))
%12 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%13 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.14, i64 0, i64 0))
%14 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.15, i64 0, i64 0))
%15 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%16 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.16, i64 0, i64 0))
%17 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.17, i64 0, i64 0))
%18 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%19 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.18, i64 0, i64 0))
%20 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.19, i64 0, i64 0))
%21 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.9, i64 0, i64 0))
%22 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.20, i64 0, i64 0))
%23 = tail call i32 (i32, i8*, ...) @writeVerbose(i32 1, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.21, i64 0, i64 0))
ret void
}