Function at 0x1800184f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.180025ca4
xor r8d, r8d
lea rcx, [rbp + 0x40]
call fcn.180005038
lea r9, [0x180002474]
lea r8, [rbp + 0x40]
lea rdx, [0x180001f58]
lea rcx, [rsp + 0x30]
call fcn.18000542c
lea r13, [rbx + 0x10a70]
mov edx, reloc.WS2_32.dll_recv
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov rcx, qword [r13]
xor r12d, r12d
mov rax, qword [r13 + 8]
test rcx, rcx
jne 0x180018584
test rax, rax
jne 0x180018584
lea eax, [rcx + 1]
mov qword [r13 + 8], rax
mov rsi, qword [0x1800281b0]
lea rdx, [0x180002018]
mov qword [0x180028e20], rcx
mov rcx, rsi
mov qword [0x180028e28], rax
call fcn.18000c674
mov r14d, 4
test rax, rax
je 0x1800185be
cmp byte [rax], r14b
jne 0x1800185be
mov rdi, qword [rax + 0x10]
jmp 0x1800185c1
mov rdi, r12
lea rdx, [0x180001ff4]
mov rcx, rsi
call fcn.18000c674
mov sil, 2
test rax, rax
je 0x1800185e3
cmp byte [rax], sil
jne 0x1800185e3
mov r10d, dword [rax + 0x10]
jmp 0x1800185e6
mov r10d, r12d
test rdi, rdi
je 0x180018600
lea rcx, [rbx + 0x3c8]
mov r8d, 0x100
mov rdx, rdi
call fcn.1800049c4
mov rcx, qword [0x180029060]
lea rdx, [0x1800035e8]
mov dword [rbx + 0x4c8], r10d
call fcn.18000c674
test rax, rax
je 0x18001862a
cmp byte [rax], r14b
jne 0x18001862a
mov rdx, qword [rax + 0x10]
jmp 0x180018631
lea rdx, [0x18000175a]
lea rcx, [rbx + 0x106f4]
mov r8d, gethostbyname
call fcn.1800049c4
lea rcx, [rbp + 0x170]
mov dword [rbp + 0x170], gethostbyname
lea rax, [rbx + 0x364]
mov qword [rsp + 0x28], rcx
lea r8, [0x180002210]
mov qword [rsp + 0x20], rax
lea rdx, [0x180002218]
call fcn.180004b30
lea rax, [rbp + 0x170]
mov dword [rbp + 0x170], r14d
mov qword [rsp + 0x28], rax
lea rdi, [rbx + 0x106ec]
lea r8, [0x1800035f8]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x30]
call fcn.180004b30
cmp dword [rdi], r12d
jne 0x1800186de
mov rcx, qword [0x180029060]
lea rdx, [0x1800035f8]
call fcn.18000c674
test rax, rax
je 0x1800186cf
cmp byte [rax], sil
jne 0x1800186cf
mov eax, dword [rax + 0x10]
jmp 0x1800186d2
mov eax, r12d
test eax, eax
mov ecx, 0xe10
cmove eax, ecx
mov dword [rdi], eax
lea rax, [rbp + 0x170]
mov dword [rbp + 0x170], r14d
mov qword [rsp + 0x28], rax
lea rdi, [rbx + 0x106f0]
lea r8, [0x180003600]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x30]
call fcn.180004b30
cmp dword [rdi], r12d
jne 0x180018744
mov rcx, qword [0x180029060]
lea rdx, [0x180003600]
call fcn.18000c674
test rax, rax
je 0x180018735
cmp byte [rax], sil
jne 0x180018735
mov eax, dword [rax + 0x10]
jmp 0x180018738
mov eax, r12d
test eax, eax
mov ecx, 0x15180
cmove eax, ecx
mov dword [rdi], eax
lea rax, [rbp + 0x170]
mov dword [rbp + 0x170], r14d
mov qword [rsp + 0x28], rax
lea rdi, [rbx + 0x10724]
lea r8, [0x180003610]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x30]
call fcn.180004b30
cmp dword [rdi], r12d
jne 0x18001877f
mov dword [rdi], 0xa
lea rax, [rbp + 0x170]
mov dword [rbp + 0x170], r14d
mov qword [rsp + 0x28], rax
lea rdi, [rbx + 0x10728]
lea r8, [0x180003618]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x30]
call fcn.180004b30
mov esi, 3
cmp dword [rdi], r12d
jne 0x1800187bb
mov dword [rdi], esi
lea rax, [rbp + 0x170]
mov dword [rbp + 0x170], r14d
mov qword [rsp + 0x28], rax
lea rdi, [rbx + 0x106e8]
lea r8, [0x180003620]
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x30]
call fcn.180004b30
cmp dword [rdi], r12d
jne 0x1800187f6
mov dword [rdi], reloc.WS2_32.dll_sendto
mov rcx, qword [0x180029078]
mov dword [rbx + 0x1072c], esi
mov qword [rbx + 0x106b0], r12
test rcx, rcx
je 0x180018820
lea rdx, [0x180001644]
call fcn.18000c674
mov rdi, rax
jmp 0x180018823
mov rdi, r12
mov esi, r12d
test rdi, rdi
je 0x180018836
cmp byte [rdi], 8
jne 0x180018836
mov esi, dword [rdi + 0x118]
mov qword [rbx + 0x10a90], r12
mov r14d, r12d
test esi, esi
je 0x1800188cf
mov r15, r12
test rdi, rdi
je 0x180018862
mov eax, r14d
or eax, 1
bsr ecx, eax
mov rcx, qword [rdi + rcx*8 + 0x10]
mov r12, qword [r15 + rcx]
lea rdx, [0x180001674]
mov rcx, r12
call fcn.18000c674
test rax, rax
je 0x180018881
cmp byte [rax], 4
jne 0x180018881
mov rcx, qword [rax + 0x10]
jmp 0x180018883
xor ecx, ecx
lea rdx, [0x1800020dc]
call fcn.180025cc8
test eax, eax
je 0x1800188a7
inc r14d
add r15, 8
mov r12d, 0
cmp r14d, esi
jb 0x18001884b
jmp 0x1800188cf
lea rdx, [0x180001bb8]
mov rcx, r12
call fcn.18000c674
lea rdx, [0x1800020e4]
mov rcx, rax
call fcn.18000c674
mov qword [rbx + 0x10a90], rax
xor r12d, r12d
lea rcx, [rbx + 0x10a60]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1800016ec]
call fcn.1800049c4
lea rdi, [rbx + 8]
test r13, r13
lea r10, [0x180028e20]
mov esi, recv
mov r9, r10
cmovne r9, r13
lea r15d, [rsi + 0x11]
mov rcx, qword [r9]
mov rdx, qword [r9 + 8]
lea r8, [rdx + rcx]
xor rdx, rcx
ror rcx, 9
mov rax, rdx
shl rax, 0xe
xor rcx, rax
xor rcx, rdx
ror rdx, 0x1c
mov qword [r9], rcx
test r13, r13
mov qword [r9 + 8], rdx
mov r9, r10
mov dword [rbx + 0x358], r8d
cmovne r9, r13
mov rcx, qword [r9]
mov rdx, qword [r9 + 8]
lea r8, [rdx + rcx]
xor rdx, rcx
ror rcx, 9
mov rax, rdx
shl rax, 0xe
xor rcx, rax
xor rcx, rdx
ror rdx, 0x1c
mov qword [r9], rcx
test r13, r13
mov qword [r9 + 8], rdx
mov dword [rbx + 0x360], r8d
cmovne r10, r13
or r14, 0xffffffffffffffff
mov rcx, qword [r10]
mov rdx, qword [r10 + 8]
lea r8, [rdx + rcx]
xor rdx, rcx
mov rax, rdx
ror rcx, 9
shl rax, 0xe
xor rcx, rax
xor rcx, rdx
ror rdx, 0x1c
mov qword [r10], rcx
lea rcx, [rdi + 0x20]
mov qword [r10 + 8], rdx
mov rdx, qword [rbx + 0x104e0]
mov qword [rbx + 0x10a80], r8
mov qword [rdi + 8], rdx
mov dword [rdi + 0x10], esi
mov dword [rdi + 0x58], r15d
lea rax, [rdx + 0x10]
mov qword [rcx], rax
mov rax, qword [rdx + 0x18]
mov qword [rdi + 0x28], rax
mov qword [rax], rcx
mov rax, qword [sym.imp.WS2_32.dll_WSARecv]
mov qword [rdx + 0x18], rcx
lea rdx, [0x180003628]
and qword [rdi + 0x78], 0
mov qword [rdi + 0x198], rax
xor ecx, ecx
mov rax, qword [sym.imp.WS2_32.dll_WSARecvFrom]
mov qword [rdi + 0x1a0], rax
mov dword [rdi + 0x30], r14d
mov qword [rdi + 0x70], r14
mov qword [rdi + 0x60], r12
mov qword [rdi + 0x68], r12
mov dword [rdi + 0x88], esi
mov qword [rdi + 0xc0], r12
mov qword [rdi + 0x80], rdi
call fcn.180018484
test eax, eax
jne 0x180018a62
lea rcx, [0x1800035b0]
call fcn.180004a90
test rax, rax
je 0x180018a4b
call fcn.180004a90
lea rcx, [rax + 1]
lea r8, [0x180003630]
mov edx, 0x1f9
call qword [0x180029278]
jmp 0x180018b1c
mov r8, qword [rbx + 0x104e0]
lea r9, [rbx + 0x1b0]
mov qword [r9 + 8], r8
lea rcx, [r9 + 0x20]
mov dword [r9 + 0x10], esi
lea rdx, [0x180003628]
mov dword [r9 + 0x58], r15d
lea rax, [r8 + 0x10]
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [r9 + 0x28], rax
mov qword [rax], rcx
mov rax, qword [sym.imp.WS2_32.dll_WSARecv]
mov qword [r8 + 0x18], rcx
xor ecx, ecx
and qword [r9 + 0x78], 0
mov qword [r9 + 0x198], rax
mov rax, qword [sym.imp.WS2_32.dll_WSARecvFrom]
mov qword [r9 + 0x1a0], rax
mov dword [r9 + 0x30], r14d
mov qword [r9 + 0x70], r14
mov qword [r9 + 0x60], r12
mov qword [r9 + 0x68], r12
mov dword [r9 + 0x88], esi
mov qword [r9 + 0xc0], r12
mov qword [r9 + 0x80], r9
call fcn.180018484
test eax, eax
jne 0x180018b19
lea rcx, [0x1800035b0]
call fcn.180004a90
test rax, rax
je 0x180018b08
call fcn.180004a90
lea rcx, [rax + 1]
lea r8, [0x180003650]
mov edx, 0x1ff
jmp 0x180018a57
mov qword [rbx], rdi
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret