Function at 0x140040ff0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8a8]
sub rsp, 0xb08
mov rax, qword [0x14007c040]
xor rax, rsp
mov qword [rbp + 0x890], rax
mov rax, qword [rbp + 0x910]
mov rbx, r8
mov qword [rbp - 0x38], rax
mov r15, rdx
lea rax, [rbp + 0x20]
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x481]
movzx eax, byte [r9]
mov esi, Ordinal_26
and al, 1
mov qword [rbp - 0x70], r9
xor edx, edx
mov byte [rbp - 0x80], al
mov r8d, 0x400
mov qword [rbp - 0x20], rbx
mov rdi, r9
mov dword [rbp - 0x7c], esi
mov qword [rbp - 0x60], 0
mov byte [rbp + 0x480], 0
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea edx, [rsi + 0x44]
xorps xmm0, xmm0
mov qword [rbp], rax
xorps xmm1, xmm1
mov qword [rbp + 0x30], rax
xor r13d, r13d
mov rcx, r15
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp - 0x68], r13
movups xmmword [rbp + 0x20], xmm1
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r14, rax
test rax, rax
jne 0x1400410bb
lea edx, [rsi + 0x17]
mov rcx, r15
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov r14, rax
mov rax, r14
test r14, r14
je 0x1400410d2
mov r13, r14
sub r13, r15
mov qword [rbp - 0x68], r13
inc r14
jmp 0x1400410d5
mov r14, r15
test rax, rax
mov qword [rbp - 0x58], r14
lea rcx, [0x140067813]
mov r12, 0xffffffffffffffff
cmove r15, rcx
mov qword [rbp - 0x40], r15
inc r12
cmp byte [r14 + r12], 0
jne 0x1400410f2
lea r9, str.WORKSTATION
mov qword [rbp - 0x50], r12
lea r8, [0x14006a64c]
mov edx, 0x401
lea rcx, [rbp + 0x480]
call fcn.140039c30
test dword [rdi], 0x80000
mov dword [rbp - 0x78], reloc.WLDAP32.dll_Ordinal_27
je 0x1400413af
mov esi, 8
lea rdi, [rbp - 0x28]
nop dword [rax + rax]
mov ebx, 4
cmp rsi, rbx
cmovb rbx, rsi
cmp byte [0x14007eadc], 0
jne 0x140041188
mov r9d, 2
mov dword [rbp - 0x30], 0
lea rdx, [rbp - 0x30]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov ecx, eax
neg ecx
sbb edx, edx
and edx, 2
test eax, eax
jne 0x140041288
mov eax, dword [rbp - 0x30]
jmp 0x1400411a0
imul eax, dword [0x14007eaf0], 0x41c64e6d
add eax, 0x3039
mov dword [0x14007eaf0], eax
ror eax, 0x10
test rbx, rbx
je 0x1400411be
sub rsi, rbx
nop dword [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x1400411b0
test rsi, rsi
jne 0x140041140
mov rcx, qword [rbp - 0x20]
lea rdx, [rbp + 0x68]
call fcn.1400114c0
test eax, eax
jne 0x140041899
cmp r12, 0x7a1200
ja 0x1400413a3
cmp r13, 0x7a1200
ja 0x1400413a3
lea rbx, [r12 + r13]
add rbx, rbx
lea rcx, [rbx + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400413a3
xor ecx, ecx
test r12, r12
je 0x14004123a
lea rdx, [0x140069160]
movzx eax, byte [rcx + r14]
mov byte [rdi + rcx*2 + 1], 0
movzx eax, byte [rax + rdx]
mov byte [rdi + rcx*2], al
inc rcx
cmp rcx, r12
jb 0x140041221
xor ecx, ecx
lea rdx, [rdi + r12*2]
test r13, r13
je 0x140041265
nop word [rax + rax]
movzx eax, byte [rcx + r15]
mov byte [rdx + rcx*2], al
mov byte [rdx + rcx*2 + 1], 0
inc rcx
cmp rcx, r13
jb 0x140041250
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x68]
lea rcx, fcn.1400362d0
call fcn.1400221f0
mov rsi, rax
test rax, rax
jne 0x14004128f
lea ebx, [rax + 0x1b]
jmp 0x1400412d2
mov eax, edx
jmp 0x140041899
mov rax, qword [rax]
mov r8d, ebx
mov rcx, qword [rsi + 8]
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsi]
lea rcx, [rbp + 0x38]
mov rdx, qword [rsi + 8]
call qword [rbx + reloc.WS2_32.dll_recv]
mov r8d, dword [rbx + 0x20]
lea rdx, [rbp + 0x38]
mov rcx, qword [rsi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp + 0x38]
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, rsi
call qword [0x14007c4b8]
xor ebx, ebx
mov rcx, rdi
call qword [0x14007c4b8]
test ebx, ebx
jne 0x1400413a8
mov rbx, qword [rbp - 0x70]
lea rdx, [rbp + 0x38]
mov r8d, reloc.WS2_32.dll_recv
lea rcx, fcn.1400362d0
mov rax, qword [rbx + 4]
mov rbx, qword [rbp - 0x28]
mov qword [rbp + 0x10], rbx
mov qword [rbp + 8], rax
call fcn.1400221f0
mov rsi, rax
test rax, rax
je 0x1400416ea
mov rax, qword [rax]
lea rdx, [rbp + 8]
mov rcx, qword [rsi + 8]
mov r8d, reloc.WS2_32.dll_recv
call qword [rax + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsi]
lea rcx, [rbp - 0x20]
mov rdx, qword [rsi + 8]
call qword [rdi + reloc.WS2_32.dll_recv]
mov r8d, dword [rdi + 0x20]
lea rdx, [rbp - 0x20]
mov rcx, qword [rsi + 0x10]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rsi + 0x10]
lea rcx, [rbp - 0x20]
call qword [rdi + reloc.WS2_32.dll_recv]
mov rcx, rsi
call qword [0x14007c4b8]
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbp], rbx
lea rax, [rbp - 0x7c]
mov rbx, qword [rbp - 0x70]
lea r9, [rbp - 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x38]
movups xmmword [rbp - 0x10], xmm0
call fcn.140011690
test eax, eax
jne 0x140041899
mov rax, qword [rbp - 0x60]
mov esi, dword [rbp - 0x7c]
mov qword [rbp - 0x28], rax
jmp 0x140041446
mov ebx, reloc.WLDAP32.dll_Ordinal_27
mov eax, ebx
jmp 0x140041899
lea rdx, [rbp + 8]
mov rcx, rbx
call fcn.1400114c0
test eax, eax
jne 0x140041899
lea r8, [rbp + 8]
lea rdx, [rbp + 0x20]
lea rcx, [rdi + 4]
call fcn.140011230
lea r8, [rbp + 0xf]
lea rdx, [rbp + 0x28]
lea rcx, [rdi + 4]
call fcn.140011230
lea r8, [rbp + 0x16]
lea rdx, [rbp + 0x30]
lea rcx, [rdi + 4]
call fcn.140011230
lea rdx, [rbp + 0x50]
mov rcx, rbx
call fcn.1400113d0
test eax, eax
jne 0x140041899
lea r8, [rbp + 0x50]
lea rdx, [rbp - 0x10]
lea rcx, [rdi + 4]
call fcn.140011230
lea r8, [rbp + 0x57]
lea rdx, [rbp - 8]
lea rcx, [rdi + 4]
call fcn.140011230
lea r8, [rbp + 0x5e]
lea rdx, [rbp]
lea rcx, [rdi + 4]
call fcn.140011230
and dword [rdi], 0xfff7ffff
mov rbx, rdi
movzx ecx, byte [rbp - 0x80]
test cl, cl
je 0x14004145c
add r13, r13
add r12, r12
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x50], r12
movzx r8d, byte [rbx + 2]
lea r14d, [rsi + 0x58]
movzx r9d, byte [rbx + 1]
lea rdi, [r14 + r13]
lea r10, [r12 + rdi]
mov esi, r14d
test cl, cl
movzx r11d, r10b
mov edx, listen
mov eax, Ordinal_26
cmove eax, edx
mov edx, dword [rbp - 0x7c]
mov qword [rbp - 0x20], rax
mov rax, r12
shr rax, 8
movzx r15d, al
mov rax, r13
shr rax, 8
movzx r13d, al
mov rax, r10
shr rax, 8
shr edx, 8
movzx ecx, dl
movzx edx, byte [rbx + 3]
mov dword [rsp + 0x1d0], edx
mov dword [rsp + 0x1c8], r8d
mov dword [rsp + 0x1c0], r9d
mov dword [rbp - 0x30], ecx
movzx ecx, byte [rbx]
mov dword [rsp + 0x1b8], ecx
movzx ebx, al
mov rax, rdi
shr rax, 8
movzx r10d, al
movzx eax, dil
movzx edi, r14b
mov r14, qword [rbp - 0x20]
shr rsi, 8
xor edx, edx
movzx r12d, r12b
mov qword [rsp + 0x1b0], rdx
mov qword [rsp + 0x1a8], rdx
mov qword [rsp + 0x1a0], rdx
mov qword [rsp + 0x198], rdx
mov qword [rsp + 0x190], rdx
mov qword [rsp + 0x188], rdx
mov qword [rsp + 0x180], rdx
mov qword [rsp + 0x178], rdx
mov qword [rsp + 0x170], rdx
mov qword [rsp + 0x168], rdx
mov dword [rsp + 0x160], ebx
mov dword [rsp + 0x158], r11d
mov dword [rsp + 0x150], edx
mov dword [rsp + 0x148], r14d
mov dword [rsp + 0x140], edx
mov dword [rsp + 0x138], r14d
mov qword [rsp + 0x130], rdx
mov qword [rsp + 0x128], rdx
mov dword [rsp + 0x120], r10d
mov dword [rsp + 0x118], eax
mov dword [rsp + 0x110], r15d
mov dword [rsp + 0x108], r12d
mov dword [rsp + 0x100], r15d
mov dword [rsp + 0xf8], r12d
mov qword [rsp + 0xf0], rdx
mov qword [rsp + 0xe8], rdx
movzx esi, sil
mov dword [rsp + 0xe0], esi
mov dword [rsp + 0xd8], edi
mov rdi, qword [rbp - 0x68]
mov dword [rsp + 0xd0], r13d
movzx eax, dil
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0xc0], r13d
mov dword [rsp + 0xb8], eax
mov eax, dword [rbp - 0x30]
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xa8], rdx
mov dword [rsp + 0xa0], edx
mov dword [rsp + 0x98], 0x58
mov dword [rsp + 0x90], eax
mov ebx, dword [rbp - 0x7c]
lea r8, str.NTLMSSP_c
movzx ecx, bl
xor r9d, r9d
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x78], ecx
lea rcx, [rbp + 0x80]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x60], edx
mov dword [rsp + 0x58], 0x40
mov qword [rsp + 0x50], rdx
mov dword [rsp + 0x48], Ordinal_26
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x38], Ordinal_26
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rdx
mov edx, 0x400
call fcn.140039c30
movsxd rdx, eax
cmp rdx, 0x3e8
jae 0x1400416ca
movups xmm0, xmmword [rbp - 0x10]
movsd xmm1, qword [rbp]
movups xmmword [rbp + rdx + 0x80], xmm0
movsd qword [rbp + rdx + 0x90], xmm1
add rdx, 0x18
lea r15, [rbx + rdx]
mov r8, rbx
cmp r15, 0x400
jbe 0x1400416f4
mov rcx, qword [rbp - 0x48]
lea rdx, str.incoming_NTLM_message_too_big
call fcn.140013150
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140041899
lea rcx, [rbp + 0x80]
add rcx, rdx
mov rdx, qword [rbp - 0x28]
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rbp - 0x60]
call qword [0x14007c4b8]
mov rbx, qword [rbp - 0x50]
lea r12, [r15 + rdi]
lea r13, [r12 + rbx]
lea rsi, [r14 + r13]
cmp rsi, 0x400
jb 0x140041744
mov rcx, qword [rbp - 0x48]
lea rdx, str.user__domain__host_name_too_big
call fcn.140013150
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140041899
lea r9, [rbp + 0x80]
add r9, r15
cmp byte [rbp - 0x80], 0
je 0x1400417ea
shr rdi, 1
mov r15d, 0
mov ecx, r15d
je 0x140041785
mov rdx, qword [rbp - 0x40]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [r9 + rcx*2], al
mov byte [r9 + rcx*2 + 1], r15b
inc rcx
cmp rcx, rdi
jb 0x140041770
lea r8, [rbp + 0x80]
mov rcx, r15
add r8, r12
shr rbx, 1
je 0x1400417b5
mov rdx, qword [rbp - 0x58]
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [r8 + rcx*2], al
mov byte [r8 + rcx*2 + 1], r15b
inc rcx
cmp rcx, rbx
jb 0x1400417a0
lea rdx, [rbp + 0x80]
mov rcx, r15
add rdx, r13
shr r14, 1
nop word [rax + rax]
movzx eax, byte [rbp + rcx + 0x480]
mov byte [rdx + rcx*2], al
mov byte [rdx + rcx*2 + 1], r15b
inc rcx
cmp rcx, r14
jb 0x1400417d0
jmp 0x14004182b
mov rdx, qword [rbp - 0x40]
mov r8, rdi
mov rcx, r9
call sub.VCRUNTIME140.dll_memcpy
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp + 0x80]
add rcx, r12
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp + 0x80]
mov r8, r14
add rcx, r13
lea rdx, [rbp + 0x480]
call sub.VCRUNTIME140.dll_memcpy
xor r15d, r15d
lea rcx, [rsi + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140041880
mov r8, rsi
lea rdx, [rbp + 0x80]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rbp - 0x38]
mov byte [rbx + rsi], 0
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14004186a
mov rax, qword [rdi]
test rax, rax
je 0x14004186a
call rax
lea rax, [0x140009920]
mov qword [rdi + 8], rbx
mov qword [rdi], rax
mov qword [rdi + 0x10], rsi
mov dword [rbp - 0x78], r15d
mov rbx, qword [rbp - 0x70]
mov rcx, qword [rbx + 0x10]
call qword [0x14007c4b8]
mov eax, dword [rbp - 0x78]
mov qword [rbx + 0x10], r15
mov dword [rbx + 0xc], r15d
mov rcx, qword [rbp + 0x890]
xor rcx, rsp
call fcn.140065250
add rsp, 0xb08
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret