Function at 0x10005b20
Capabilities:
Generate random numbers via rtlgenrandom
Get hostname
Query environment variable
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
call sym.cares.dll_ares_library_initialized
test eax, eax
je 0x10005b35
mov eax, 0x15
add esp, 0x14
ret
push esi
push 0x91c8
call dword [section..data]
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
jne 0x10005b5c
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
lea eax, [esi + 0xf]
pop esi
add esp, 0x14
ret
push ebx
push edi
call fcn.10002d80
mov dword [esp + 0x18], edx
xorps xmm0, xmm0
cdq
mov dword [esi + 0x188], eax
lea eax, [esi + 0x194]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x78], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov dword [esi + 0x180], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x91a0], 0
mov dword [esi + 0x91a4], 0
mov dword [esi + 0x91a8], 0
mov dword [esi + 0x91ac], 0
mov dword [esi + 0x91b0], 0
mov dword [esi + 0x91b4], 0
mov dword [esi + 0x91b8], 0
mov dword [esi + 0x91bc], 0
mov dword [esi + 0x91c0], 0
mov dword [esi + 0x91c4], 0
mov dword [esi + 0x190], 0
mov dword [esi + 0x18c], edx
movups xmmword [esi + 0x3c], xmm0
push eax
movups xmmword [esi + 0x4c], xmm0
mov dword [esi + 0x5c], 0
movups xmmword [esi + 0x60], xmm0
call fcn.10007df0
add esp, 4
lea edi, [esi + 0x1a0]
mov ebx, 0x800
push edi
call fcn.10007df0
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x10005c92
lea edi, [esi + 0x61a0]
mov ebx, 0x400
nop
push edi
call fcn.10007df0
add esp, 4
add edi, 0xc
sub ebx, 1
jne 0x10005cb0
push ebp
push dword [esp + 0x30]
push dword [esp + 0x30]
push esi
call fcn.100074d0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10005fbb
mov edi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
push str.LOCALDOMAIN
call edi
add esp, 4
test eax, eax
je 0x10005d2a
cmp dword [esi + 0x28], 0xffffffff
jne 0x10005d2a
lea ecx, [esp + 0x18]
push ecx
push 0x1000f42c
push eax
call fcn.1000cd80
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
test eax, eax
je 0x10005d1c
test ecx, ecx
jne 0x10005d2a
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0xffffffff
push str.RES_OPTIONS
call edi
add esp, 4
test eax, eax
je 0x10005d46
push eax
push esi
call fcn.10007ac0
add esp, 8
test eax, eax
jne 0x10005d4f
push esi
call fcn.100077d0
add esp, 4
xor eax, eax
xor edi, edi
cmp dword [esi], 0xffffffff
mov dword [esp + 0x14], eax
jne 0x10005d5e
mov dword [esi], eax
cmp dword [esi + 4], 0xffffffff
jne 0x10005d6b
mov dword [esi + 4], 0x1388
cmp dword [esi + 8], 0xffffffff
jne 0x10005d78
mov dword [esi + 8], 4
cmp dword [esi + 0xc], 0xffffffff
jne 0x10005d85
mov dword [esi + 0xc], 1
cmp dword [esi + 0x10], 0xffffffff
jne 0x10005d8e
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0xffffffff
mov ebx, dword [sym.imp.WS2_32.dll_htons]
jne 0x10005da4
push 0x35
call ebx
movzx eax, ax
mov dword [esi + 0x14], eax
cmp dword [esi + 0x18], 0xffffffff
jne 0x10005db4
push 0x35
call ebx
movzx eax, ax
mov dword [esi + 0x18], eax
cmp dword [esi + 0x38], 0xffffffff
jne 0x10005dc1
mov dword [esi + 0x38], 0x500
cmp dword [esi + 0x78], 0xffffffff
jne 0x10005e07
push 0x58
call dword [section..data]
add esp, 4
mov dword [esi + 0x74], eax
test eax, eax
je 0x10005ee5
push 0x7f000001
mov dword [eax], 2
call dword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [esi + 0x74]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x74]
mov dword [eax + 0x14], edi
mov eax, dword [esi + 0x74]
mov dword [eax + 0x18], edi
mov dword [esi + 0x78], 1
cmp dword [esi + 0x28], 0xffffffff
jne 0x10005eaf
mov ebx, 0x40
mov dword [esi + 0x28], edi
push ebx
mov ebp, ebx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x10005ee5
nop
push ebx
push edi
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x10005e65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
jne 0x10005e69
add ebp, ebp
add ebx, ebx
push ebp
push edi
call dword [0x10011004]
add esp, 8
test eax, eax
je 0x10005ee5
mov edi, eax
jmp 0x10005e30
test eax, eax
je 0x10005e6c
mov byte [edi], 0
push 0x2e
push edi
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10005eaf
push 4
call dword [section..data]
add esp, 4
mov dword [esi + 0x24], eax
test eax, eax
je 0x10005ee5
lea eax, [ebx + 1]
push eax
call fcn.1000cc20
mov ecx, dword [esi + 0x24]
add esp, 4
mov dword [ecx], eax
mov eax, dword [esi + 0x24]
cmp dword [eax], 0
je 0x10005ee5
mov dword [esi + 0x28], 1
cmp dword [esi + 0x30], 0xffffffff
jne 0x10005ec3
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
cmp dword [esi + 0x34], 0
jne 0x10005f88
push 0x1000f428
call fcn.1000cc20
add esp, 4
mov dword [esi + 0x34], eax
test eax, eax
jne 0x10005f88
mov dword [esp + 0x14], 0xf
mov eax, dword [esi + 0x74]
test eax, eax
je 0x10005f05
push eax
call dword [0x10011008]
add esp, 4
mov dword [esi + 0x74], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10005f1c
mov eax, dword [eax]
test eax, eax
je 0x10005f1c
push eax
call dword [0x10011008]
add esp, 4
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10005f34
push eax
call dword [0x10011008]
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x10005f4c
push eax
call dword [0x10011008]
add esp, 4
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x10005f6a
push eax
call dword [0x10011008]
add esp, 4
mov dword [esi + 0x91c0], 0
mov eax, dword [esi + 0x91c4]
test eax, eax
je 0x10005f88
push eax
call dword [0x10011008]
add esp, 4
mov dword [esi + 0x91c4], 0
test edi, edi
je 0x10005f96
push edi
call dword [0x10011008]
add esp, 4
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x10005fbb
push 0x1f
lea ebx, [esi + 0x7e]
call dword [section..data]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1000603e
lea ebx, [eax + 0xf]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x10005fcc
push eax
call dword [0x10011008]
add esp, 4
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x10005fe0
push eax
push dword [esi + 0x24]
call fcn.1000cf20
add esp, 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x10005ff1
push eax
call dword [0x10011008]
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x10006002
push eax
call dword [0x10011008]
add esp, 4
mov eax, dword [esi + 0x91c0]
test eax, eax
je 0x10006016
push eax
call dword [0x10011008]
add esp, 4
mov eax, dword [esi + 0x91c4]
test eax, eax
je 0x1000602a
push eax
call dword [0x10011008]
add esp, 4
push esi
call dword [0x10011008]
add esp, 4
mov eax, ebx
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x14
ret
xorps xmm0, xmm0
mov ecx, ebx
movups xmmword [eax], xmm0
mov edx, pe_nt_image_headers32
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
mov word [eax + 0x1c], 0
mov byte [eax + 0x1e], 0
xor eax, eax
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x10006063
push 0x1f
push ebx
xor edi, edi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x10006099
mov ebp, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
call ebp
and eax, 0x800000ff
jns 0x10006090
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + ebx], al
inc edi
cmp edi, 0x1f
jl 0x10006080
mov esi, dword [esp + 0x18]
xor al, al
mov word [ebx + 0x100], 0
xor cl, cl
mov ebp, ebx
mov dword [esp + 0x14], pe_nt_image_headers32
mov dl, byte [ebp]
lea ebp, [ebp + 1]
movzx edi, al
mov al, byte [edi + esi]
add al, dl
add cl, al
mov byte [esp + 0x13], cl
movzx ecx, cl
mov al, byte [ecx + ebx]
mov byte [ebp - 1], al
lea eax, [edi + 1]
mov byte [ecx + ebx], dl
xor edx, edx
mov ecx, 0x1f
div ecx
sub dword [esp + 0x14], 1
mov cl, byte [esp + 0x13]
mov al, dl
jne 0x100060b4
push dword [esp + 0x18]
call dword [0x10011008]
push ebx
call fcn.1000c060
mov esi, dword [esp + 0x28]
add esp, 8
mov word [esi + 0x7c], ax
test byte [esi], 2
je 0x1000611a
cmp dword [esi + 0x78], 1
jle 0x1000611a
mov dword [esi + 0x78], 1
xor ebx, ebx
cmp dword [esi + 0x78], ebx
jle 0x1000618e
xor ebp, ebp
mov edi, dword [esi + 0x74]
add edi, ebp
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 0x20], 0xffffffff
inc dword [esi + 0x180]
mov eax, dword [esi + 0x180]
mov dword [edi + 0x40], eax
lea eax, [edi + 0x44]
push eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
call fcn.10007df0
inc ebx
mov dword [edi + 0x50], esi
add esp, 4
mov dword [edi + 0x54], 0
add ebp, 0x58
cmp ebx, dword [esi + 0x78]
jl 0x10006123
mov eax, dword [esp + 0x28]
pop ebp
pop edi
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
add esp, 0x14
ret