Function at 0x1004012c0
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xd8
cmp ecx, 0x68
mov rbx, rdx
je 0x100401870
jle 0x100401324
cmp ecx, 0x74
je 0x100401841
jle 0x100401360
cmp ecx, 0x3e9
je 0x100401880
jle 0x1004013f0
cmp ecx, 0x3ed
je 0x1004018d0
cmp ecx, 0x3ef
je 0x1004016d0
cmp ecx, 0x3eb
je 0x1004018c2
mov ecx, 1
call sym.show_usage_and_exit
cmp ecx, 0x52
je 0x1004018a0
jg 0x1004013a2
cmp ecx, 0x48
je 0x100401835
nop dword [rax + rax]
jg 0x100401500
cmp ecx, 0x42
je 0x100401530
cmp ecx, 0x44
jne 0x10040131a
mov byte [0x10046c0c0], 1
jmp 0x100401520
cmp ecx, 0x71
je 0x100401744
jg 0x100401450
cmp ecx, 0x6f
je 0x100401540
cmp ecx, 0x70
nop dword [rax + rax]
jne 0x10040131a
mov rcx, qword [0x10046c4c0]
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov qword [0x10046c4c0], rax
jmp 0x100401520
cmp ecx, 0x56
je 0x100401722
jg 0x100401484
cmp ecx, 0x53
je 0x100401863
cmp ecx, 0x54
nop dword [rax]
jne 0x10040131a
mov rcx, rdx
call sym.atoi
lea edx, [rax - 1]
cmp edx, 0x1869e
ja 0x10040131a
mov dword [0x100465040], eax
jmp 0x100401520
cmp ecx, 0x75
je 0x100401702
cmp ecx, 0x78
jne 0x10040131a
lea rdx, str.socks4:__
mov r8d, 9
mov rcx, rbx
call sym.strncasecmp
test eax, eax
jne 0x1004018f1
mov qword [0x10046c7e8], 4
mov rcx, qword [0x10046c7e0]
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov qword [0x10046c7e0], rax
jmp 0x100401520
cmp ecx, 0x72
je 0x1004016e0
cmp ecx, 0x73
jne 0x10040131a
mov rcx, rdx
call sym.atoi
lea edx, [rax - 1]
cmp edx, 0x270e
ja 0x10040131a
mov dword [0x100465020], eax
jmp 0x100401520
cmp ecx, 0x61
je 0x1004017e0
cmp ecx, 0x63
jne 0x10040131a
mov rcx, qword [0x10046c5a0]
test rcx, rcx
je 0x1004014c2
mov rax, qword [rcx + 8]
mov edx, 0xffffffff
cmp rax, rdx
je 0x1004014c2
sub rax, 1
test rax, rax
mov qword [rcx + 8], rax
jne 0x1004014c2
call sym.json_delete
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sym.json_load_file
test rax, rax
mov qword [0x10046c5a0], rax
je 0x1004014e1
mov eax, dword [rax]
test eax, eax
je 0x100401520
lea rdx, str.JSON_decode_of__s_failed
mov ecx, 3
mov r8, rbx
call sym.applog
mov ecx, 1
call sym.exit
nop
cmp ecx, 0x4f
je 0x100401750
cmp ecx, 0x50
jne 0x10040131a
mov byte [0x10046c0a0], 1
nop dword [rax]
add rsp, 0xd8
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov byte [0x10046c5e0], 1
jmp 0x100401520
lea rdx, [0x10046780c]
mov rcx, rbx
call sym.strstr
test rax, rax
je 0x100401947
lea rdx, str.http:__
mov r8d, 7
mov rcx, rbx
call sym.strncasecmp
test eax, eax
je 0x1004015a7
lea rdx, str.https:__
mov r8d, 8
mov rcx, rbx
call sym.strncasecmp
test eax, eax
je 0x1004015a7
lea rdx, [0x100467821]
mov r8d, 0xe
mov rcx, rbx
call sym.strncasecmp
test eax, eax
jne 0x10040131a
mov rcx, qword [0x10046c520]
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov qword [0x10046c520], rax
mov rbx, rax
mov edx, 0x40
mov rcx, rbx
call sym.strrchr
test rax, rax
mov rsi, rax
je 0x100401694
lea rdx, [0x10046780c]
mov rcx, rbx
mov byte [rax], 0
call sym.strstr
mov edx, 0x3a
lea rbx, [rax + 3]
mov rcx, rbx
call sym.strchr
test rax, rax
mov rdi, rax
je 0x10040199c
mov rcx, qword [0x10046c500]
mov rbp, rdi
sub rbp, rbx
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov rcx, qword [0x10046c4e0]
mov qword [0x10046c500], rax
call fcn.100462c40
lea rcx, [rbp + 1]
mov edx, 1
call sym.calloc
mov r8, rbp
mov rdx, rbx
mov rcx, rax
mov qword [0x10046c4e0], rax
call sym.strncpy
mov rcx, qword [0x10046c4c0]
call fcn.100462c40
lea rcx, [rdi + 1]
call sym.strdup
mov qword [0x10046c4c0], rax
add rsi, 1
mov rcx, rsi
call sym.strlen
mov rdx, rsi
mov rcx, rbx
lea r8, [rax + 1]
call sym.memmove
xor eax, eax
cmp byte [0x10046c620], 0
jne 0x1004016bd
mov rcx, qword [0x10046c520]
mov r8d, 7
lea rdx, str.stratum
call sym.strncasecmp
test eax, eax
sete al
mov byte [0x10046c060], al
jmp 0x100401520
mov byte [0x1004650a0], 0
jmp 0x100401520
mov rcx, rdx
call sym.atoi
lea edx, [rax + 1]
cmp edx, 0x2710
ja 0x10040131a
mov dword [0x100465080], eax
jmp 0x100401520
mov rcx, qword [0x10046c4e0]
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov qword [0x10046c4e0], rax
jmp 0x100401520
call sym.curl_version
lea rcx, str._s_n_s_n
lea rdx, [0x10046786c]
mov r8, rax
call sym.printf
xor ecx, ecx
call sym.exit
mov byte [0x10046c5c0], 1
jmp 0x100401520
mov edx, 0x3a
mov rcx, rbx
call sym.strchr
test rax, rax
mov rsi, rax
je 0x10040131a
mov rcx, qword [0x10046c500]
mov rdi, rsi
sub rdi, rbx
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov rcx, qword [0x10046c4e0]
mov qword [0x10046c500], rax
call fcn.100462c40
lea rcx, [rdi + 1]
mov edx, 1
call sym.calloc
mov r8, rdi
mov rdx, rbx
mov rcx, rax
mov qword [0x10046c4e0], rax
call sym.strncpy
mov rcx, qword [0x10046c4c0]
call fcn.100462c40
lea rcx, [rsi + 1]
call sym.strdup
mov qword [0x10046c4c0], rax
jmp 0x100401520
lea rdi, str.scrypt
mov ecx, 7
mov rsi, rdx
repe cmpsb byte [rsi], byte [rdi]
je 0x1004019e6
lea rdi, str.sha256d
mov ecx, 8
mov rsi, rdx
repe cmpsb byte [rsi], byte [rdi]
je 0x1004019ed
lea rdi, str.keccak
mov ecx, 7
mov rsi, rdx
repe cmpsb byte [rsi], byte [rdi]
jne 0x10040131a
mov eax, 2
mov dword [0x10046c580], eax
jmp 0x100401520
mov byte [0x10046c0e0], 1
jmp 0x100401520
mov rcx, rdx
call sym.atoi
lea edx, [rax - 1]
cmp edx, 0x270e
ja 0x10040131a
mov dword [0x10046c560], eax
jmp 0x100401520
mov byte [0x10046c040], 1
jmp 0x100401520
xor ecx, ecx
call sym.show_usage_and_exit
nop word [rax + rax]
mov rcx, qword [0x10046c808]
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov qword [0x10046c808], rax
jmp 0x100401520
mov rcx, rdx
call sym.atoi
lea edx, [rax - 1]
cmp edx, 0x270e
ja 0x10040131a
mov dword [0x100465060], eax
jmp 0x100401520
mov byte [0x1004650c0], 0
jmp 0x100401520
mov byte [0x10046c620], 1
mov byte [0x1004650c0], 0
mov byte [0x1004650a0], 0
mov byte [0x10046c060], 0
jmp 0x100401520
lea rdx, str.socks5:__
mov r8d, 9
mov rcx, rbx
call sym.strncasecmp
test eax, eax
jne 0x10040191a
mov qword [0x10046c7e8], 5
jmp 0x10040142a
lea rdx, str.socks4a:__
mov r8d, 0xa
mov rcx, rbx
call sym.strncasecmp
test eax, eax
jne 0x1004019bc
mov qword [0x10046c7e8], 6
jmp 0x10040142a
movzx eax, byte [rbx]
cmp al, 0x2f
je 0x10040131a
test al, al
je 0x10040131a
mov rcx, qword [0x10046c520]
call fcn.100462c40
mov rcx, rbx
call sym.strlen
lea rcx, [rax + 8]
call sym.malloc
lea rdx, str.http:___s
mov r8, rbx
mov rcx, rax
mov qword [0x10046c520], rax
call sym.sprintf
mov rbx, qword [0x10046c520]
jmp 0x1004015c5
mov rcx, qword [0x10046c4e0]
call fcn.100462c40
mov rcx, rbx
call sym.strdup
mov qword [0x10046c4e0], rax
jmp 0x100401679
lea rdx, str.socks5h:__
mov r8d, 0xa
mov rcx, rbx
call sym.strncasecmp
cmp eax, 1
sbb rax, rax
and eax, 7
mov qword [0x10046c7e8], rax
jmp 0x10040142a
xor eax, eax
jmp 0x10040182a
mov eax, 1
jmp 0x10040182a