Function at 0x140046940
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x60]
xor r15d, r15d
mov dword [rsp + 0x78], r15d
mov r14d, 0xd92b51e3
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x140046b78
cmp word [rax + 0x48], 0
je 0x140046b78
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
movups xmmword [rsp + 0x20], xmm0
sub cx, 8
test r15d, r15d
je 0x140046a03
mov r9, qword [rsp + 0x28]
mov r10d, 0x8a903f0e
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x1400469fa
nop dword [rax + rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x1400469d0
cmp r10d, r15d
jne 0x140046b78
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
mov esi, edx
shr r12, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140046b78
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x140046b78
mov r13d, dword [rsi + 0x24]
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
nop dword [rax + rax]
dec edi
lea rcx, [rdi*2]
add rcx, r13
movzx edx, word [rcx + rbx]
lea rcx, [r9 + rdx*4]
mov r9d, dword [rcx + rbx]
lea rcx, [r10 + rdi*4]
mov r10d, dword [rcx + rbx]
add r9, rbx
add r10, rbx
cmp r9, rsi
jbe 0x140046a7a
lea rcx, [r12 + rsi]
cmp r9, rcx
jae 0x140046a7a
mov bpl, 1
jmp 0x140046a7d
xor bpl, bpl
movzx r8d, byte [r10]
mov r11d, 0x8a903f0e
inc r10
test r8b, r8b
je 0x140046abc
nop
movsx ecx, r8b
lea r10, [r10 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r10 - 1]
cmova edx, ecx
xor edx, r11d
imul r11d, edx, 0x1000193
test r8b, r8b
jne 0x140046a90
cmp r11d, r14d
je 0x140046ad9
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
test edi, edi
jne 0x140046a40
mov rax, qword [rax]
jmp 0x140046980
test bpl, bpl
je 0x140046b80
movzx edx, byte [r9]
mov r15d, 0x8a903f0e
mov r14d, r15d
cmp dl, 0x2e
je 0x140046b28
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9 + 1]
cmova ecx, eax
inc r9
xor ecx, r15d
imul r15d, ecx, 0x1000193
cmp dl, 0x2e
jne 0x140046b00
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
je 0x140046b67
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
lea r9, [r9 + 1]
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9]
cmova ecx, eax
xor ecx, r14d
imul r14d, ecx, 0x1000193
test dl, dl
jne 0x140046b40
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x140046980
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call r9
mov rax, qword gs:[0x60]
mov r14d, 0xce40e407
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x140046d9c
cmp word [rax + 0x48], 0
je 0x140046d9c
movups xmm0, xmmword [rax + 0x58]
mov edi, dword [rsp + 0x78]
movd ecx, xmm0
movups xmmword [rsp + 0x20], xmm0
sub cx, 8
test edi, edi
je 0x140046c23
mov r9, qword [rsp + 0x28]
mov r10d, 0x782243c8
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x140046c1a
nop dword [rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x140046bf0
cmp r10d, edi
jne 0x140046d9c
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r15, rdx
mov esi, edx
shr r15, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140046d9c
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x140046d9c
mov r12d, dword [rsi + 0x24]
mov r13d, dword [rsi + 0x1c]
mov r9d, dword [rsi + 0x20]
nop dword [rax + rax]
dec edi
lea rcx, [r12 + rdi*2]
movzx edx, word [rcx + rbx]
lea rcx, [rdx*4]
add rcx, r13
lea rdx, [r9 + rdi*4]
mov r10d, dword [rdx + rbx]
add r10, rbx
mov ecx, dword [rcx + rbx]
add rcx, rbx
cmp rcx, rsi
jbe 0x140046c99
lea rdx, [r15 + rsi]
cmp rcx, rdx
jae 0x140046c99
mov bpl, 1
jmp 0x140046c9c
xor bpl, bpl
movzx r9d, byte [r10]
mov r11d, 0x782243c8
inc r10
test r9b, r9b
je 0x140046cdf
nop
movsx edx, r9b
lea r10, [r10 + 1]
sub r9b, 0x41
mov r8d, edx
or r8d, 0x20
cmp r9b, 0x19
movzx r9d, byte [r10 - 1]
cmova r8d, edx
xor r8d, r11d
imul r11d, r8d, 0x1000193
test r9b, r9b
jne 0x140046cb0
cmp r11d, r14d
je 0x140046cf8
mov r9d, dword [rsi + 0x20]
test edi, edi
jne 0x140046c60
mov rax, qword [rax]
jmp 0x140046ba2
test bpl, bpl
je 0x140046da4
movzx r8d, byte [rcx]
mov edi, 0x782243c8
mov dword [rsp + 0x78], edi
mov r14d, edi
cmp r8b, 0x2e
je 0x140046d4e
nop word [rax + rax]
movsx eax, r8b
sub r8b, 0x41
mov edx, eax
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rcx + 1]
cmova edx, eax
inc rcx
xor edx, edi
imul edi, edx, 0x1000193
cmp r8b, 0x2e
jne 0x140046d20
mov dword [rsp + 0x78], edi
movzx r8d, byte [rcx + 1]
inc rcx
test r8b, r8b
je 0x140046d8b
nop dword [rax + rax]
movsx eax, r8b
lea rcx, [rcx + 1]
sub r8b, 0x41
mov edx, eax
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rcx]
cmova edx, eax
xor edx, r14d
imul r14d, edx, 0x1000193
test r8b, r8b
jne 0x140046d60
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x140046ba2
call rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp 0x1400517d0
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140121218]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
mov esi, 0xffffffff
test rcx, rcx
jne 0x140051800
mov eax, esi
jmp 0x140051948
mov qword [rsp + 0x98], rbx
lea rbx, [rcx + 0x4c6]
mov qword [rsp + 0xa0], rbp
xor ebp, ebp
test byte [rcx + 0x4c8], 0x40
je 0x14005182a
lea esi, [rbp + 1]
jmp 0x14005196b
movzx ecx, word [rbx]
movzx eax, cx
test cl, 0x20
jne 0x1400518d0
test cl, 0x10
jne 0x1400518d0
test cl, cl
js 0x1400518d0
mov edx, dword [rdi + 0x2cc]
test edx, edx
je 0x140051888
mov r8d, dword [rdi + 0x2c8]
mov rcx, rdi
mov qword [rdi + 0x2c8], rbp
call fcn.140071830
test eax, eax
je 0x140051888
cmp dword [rdi + 0x2cc], ebp
jne 0x140051897
mov dword [rdi + 0x2c8], ebp
mov dword [rdi + 0x2cc], 1
jmp 0x140051897
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call fcn.140071830
mov dword [rdi + 0x2d0], eax
test eax, eax
jns 0x1400518bc
mov r9d, eax
lea r8, str.wolfSSL_error_occurred__error___d
mov edx, 0x50
lea rcx, [rsp + 0x20]
call fcn.14004f720
jmp 0x140051936
mov eax, 0x80
or ax, word [rbx]
mov word [rbx], ax
test al, 0x40
je 0x140051902
mov esi, 1
test al, al
jns 0x140051966
test al, 0x40
jne 0x140051966
xor edx, edx
mov rcx, rdi
call fcn.14006c730
cmp eax, 0xfffffea9
jne 0x140051909
mov dword [rdi + 0x2d0], 5
mov esi, 1
jmp 0x14005196b
mov eax, 2
jmp 0x140051938
mov r9d, dword [rdi + 0x2d0]
test r9d, r9d
jne 0x14005191b
lea esi, [r9 + 2]
jmp 0x140051936
lea r8, str.wolfSSL_error_occurred__error___d
mov edx, 0x50
lea rcx, [rsp + 0x20]
call fcn.14004f720
mov esi, 0xffffffff
mov eax, esi
mov rbx, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400bf510
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
cmp esi, 1
jne 0x140051936
cmp byte [rdi + 0x4d2], bpl
jne 0x1400519a0
mov rcx, qword [rdi + 0x2a8]
call fcn.140055750
mov rdx, rax
call fcn.1400562c0
mov rcx, qword [rdi + 0xa8]
call fcn.140056160
mov qword [rdi + 0x2a8], rax
test rax, rax
je 0x140051931
mov edx, 0xffdf
mov dword [rdi + 0x4cf], ebp
and word [rbx], dx
mov ecx, 0xffef
movzx eax, word [rbx]
and word [rdi + 0x4ca], dx
and ax, cx
mov ecx, 0xff7f
mov word [rdi + 0x4d4], bp
and ax, cx
mov byte [rdi + 0x4cc], bpl
mov ecx, 0xffbf
and ax, cx
mov ecx, 0xfffb
and ax, cx
mov ecx, 0x7ff3
and word [rdi + 0x4c4], cx
mov ecx, 0xfffe
and ax, cx
mov ecx, 0xfffd
and ax, cx
mov rcx, qword [rdi + 0x1670]
mov word [rbx], ax
mov eax, 0xffec
and word [rdi + 0x4c8], ax
call fcn.14005d750
xor eax, eax
mov qword [rdi + 0x1670], rbp
mov byte [rdi + 0x4b8], bpl
mov rcx, rdi
mov dword [rdi + 0x2f4], eax
call fcn.1400617b0
cmp eax, 1
jne 0x140051931
mov rcx, rdi
call fcn.140062250
test eax, eax
jne 0x140051931
lea rcx, [rdi + 0xa88]
call fcn.140060ee0
mov r8, qword [rdi + 0xa8]
lea rcx, [rdi + 0xa88]
call fcn.140060e20
jmp 0x140051936