Function at 0x140058e60
Capabilities:
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x3f8
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14010d268]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x88], r8
mov qword [rsp + 0x50], r9
lea rcx, [rsp + 0xd0]
call fcn.1400096d0
mov rax, qword [rsi]
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x1400d2998]
mulsd xmm0, qword [0x1400d2990]
cvttsd2si eax, xmm0
mov r14d, 1
sub r14d, eax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xb0], 0
cmp byte [rdi], 0
je 0x140059058
lea r9, [rdi + 8]
cmp qword [rdi + 0x20], 0x10
jb 0x140058f42
mov r9, qword [rdi + 8]
mov rax, qword [rdi + 0x18]
mov qword [rsp + 0x130], r9
mov qword [rsp + 0x138], rax
lea r9, [rdi + 0x28]
cmp qword [rdi + 0x40], 0x10
jb 0x140058f65
mov r9, qword [rdi + 0x28]
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x140], r9
mov qword [rsp + 0x148], rax
lea rdx, [rdi + 0x48]
cmp qword [rdi + 0x60], 0x10
jb 0x140058f88
mov rdx, qword [rdi + 0x48]
mov rax, qword [rdi + 0x58]
mov qword [rsp + 0x150], rdx
mov qword [rsp + 0x158], rax
lea rcx, [rdi + 0x68]
cmp qword [rdi + 0x80], 0x10
jb 0x140058fae
mov rcx, qword [rdi + 0x68]
mov rax, qword [rdi + 0x78]
mov qword [rsp + 0x160], rcx
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x20], 0xbbbb
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x90], xmm0
lea rcx, str._ProxyIP___ProxyIP__ProxyPort___ProxyPort__ProxyUsername___ProxyUsername__ProxyPassword___ProxyPassword_
mov qword [rsp + 0x20], rcx
mov rax, rcx
inc rax
cmp byte [rax], 0
jne 0x140058ff5
sub rax, rcx
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xd0]
call fcn.140057440
nop
lea rcx, [rsp + 0xb0]
call fcn.14001ba50
movups xmm0, xmmword [rsp + 0xd0]
movups xmmword [rsp + 0xb0], xmm0
movups xmm1, xmmword [rsp + 0xe0]
movups xmmword [rsp + 0xc0], xmm1
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140059065
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x140059071
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x110]
call fcn.14006a490
nop
lea rcx, str.NITRO_LOG_LEVEL
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400590d9
xor edx, edx
lea r8, str.trace
nop
movzx ecx, byte [rax + rdx]
inc rdx
cmp cl, byte [r8 + rdx - 1]
jne 0x1400590d9
cmp rdx, 6
jne 0x1400590c0
lea ecx, [rdx - 2]
jmp 0x1400590db
xor ecx, ecx
lea rax, [rsp + 0x110]
cmp qword [rsp + reloc.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_], 0x10
cmovae rax, qword [rsp + 0x110]
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x180], r14d
mov dword [rsp + 0x190], ecx
lea rax, [rsp + 0xb0]
cmp qword [rsp + 0xc8], 0x10
cmovae rax, qword [rsp + 0xb0]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1a8], rax
mov qword [rsp + 0x20], 0xb22a
lea rax, [rsp + 0x170]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x90], xmm0
lea rcx, str.__xml_version_1.0__encoding_UTF_8____SHAFERXMLParams__WorkDir___WorkDir__NSLEnabled_1__NSLEnabled__NSAEnabled_0__NSAEnabled__SecurityValue___SecurityValue__LogLevel___LogLevel___SHAFERXMLParams_
mov qword [rsp + 0x20], rcx
mov rax, rcx
inc rax
cmp byte [rax], 0
jne 0x140059171
sub rax, rcx
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xf0]
call fcn.140057440
nop
lea rdx, [rsp + 0xf0]
cmp qword [rsp + 0x108], 0x10
cmovae rdx, qword [rsp + 0xf0]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
cmp eax, 0xffffe443
je 0x1400593bf
test eax, eax
jne 0x1400593d0
jmp 0x1400591f9
imul r8d, r14d, 0x33e
mov eax, 0xa6810a7
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 7
imul eax, eax, 0xf6
sub r8d, eax
lea edx, [r8 + 0x164]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rsi]
mov edx, 0x13b9
mov r8d, 0x68
mov rcx, rsi
call qword [rax + 0x30]
test eax, eax
jne 0x1400593ee
mov rdx, qword [rsp + 0x108]
cmp rdx, 0x10
jb 0x14005928f
inc rdx
mov rcx, qword [rsp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005928a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005928a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
movdqa xmm0, xmmword [0x1400cafe0]
movdqu xmmword [rsp + 0x100], xmm0
mov byte [rsp + 0xf0], 0
mov rdx, qword [rsp + reloc.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t_]
cmp rdx, 0x10
jb 0x1400592ee
inc rdx
mov rcx, qword [rsp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400592e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400592e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
movdqa xmm0, xmmword [0x1400cafe0]
movdqu xmmword [rsp + 0x120], xmm0
mov byte [rsp + 0x110], 0
mov rdx, qword [rsp + 0xc8]
cmp rdx, 0x10
jb 0x14005934d
inc rdx
mov rcx, qword [rsp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059348
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140059348
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005f1b8
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0xb0], 0
mov rcx, rbx
call fcn.140013e20
nop
cmp byte [rdi], 0
je 0x1400593a2
lea rcx, [rdi + 0x68]
call fcn.1400176a0
lea rcx, [rdi + 0x48]
call fcn.1400176a0
lea rcx, [rdi + 0x28]
call fcn.1400176a0
lea rcx, [rdi + 8]
call fcn.1400176a0
mov byte [rdi], 0
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.14005f850
add rsp, 0x3f8
pop r14
pop rdi
pop rsi
pop rbx
ret
lea rdx, [0x1401069a0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
mov edx, eax
lea rcx, [rsp + 0x34]
call fcn.1400017a0
lea rdx, [0x1401069f8]
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.NSLValidateLibrary_failed
lea rcx, [rsp + 0x68]
call fcn.140039400
lea rdx, [0x1401061c8]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3