Function at 0x180527e2
Capabilities:
Generate random numbers via rtlgenrandom
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x18052800
mov eax, dword [ecx]
mov dword [ecx + 4], eax
lea ecx, [esi + 0x4c]
call fcn.18005cb1
or dword [esi + 0x6c], 0xffffffff
xor eax, eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov ebx, dword [esi + 0xa8]
mov edi, dword [esi + 0xa4]
cmp edi, ebx
je 0x1805284c
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.18003140
add edi, 0x28
cmp edi, ebx
jne 0x18052833
mov edi, dword [esi + 0xa4]
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esi + 0xa8], edi
mov dword [esp + 0x10], eax
call fcn.18005c3b
xor eax, eax
lea ebx, [esi + 0x1c]
push dword [ebx]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esi + 0xa0]
push str.Url_s_r_n
push eax
mov dword [esp + 0x28], ebx
call fcn.18011d33
mov eax, dword [esi + 0x40]
xor edi, edi
and dword [esi + 0x70], edi
add esp, 0xc
and dword [esi + 0x78], edi
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x70]
cmp eax, dword [esi + 0x38]
jg 0x18052c32
cmp dword [esi + 0x74], 0x186a0
jg 0x18052c32
mov ecx, dword [esi + 0x80]
call fcn.18011ca1
test al, al
jne 0x18052c38
cmp dword [esi + 0x70], 0
je 0x18052950
cmp dword [esi + 0x58], 0
je 0x1805290b
call fcn.1800ea09
mov ebx, eax
mov edi, edx
mov eax, dword [esi + 0x74]
mov esi, 0x2710
cdq
mov ecx, eax
mov eax, edx
mul esi
mov esi, eax
mov eax, ecx
mov ecx, 0x2710
mul ecx
add esi, edx
add ebx, eax
adc edi, esi
mov esi, dword [esp + 0x20]
push edi
push ebx
mov ecx, dword [esi + 0x58]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [esi + 0x74]
push dword [esi + 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x58]
mov edi, eax
test ecx, ecx
je 0x18052928
mov edx, dword [ecx]
call dword [edx + 4]
test edi, edi
je 0x18052c38
cmp edi, 0x102
je 0x18052950
cmp edi, 0xffffffff
jne 0x18052c2b
call fcn.18015f1f
mov edi, eax
test edi, edi
js 0x18052c74
lea edi, [esi + 0xc]
mov ecx, esi
push edi
call fcn.180534a3
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x180529ba
push 2
push 7
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x48], 2
call fcn.1800457f
mov edx, edi
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x24]
call fcn.1804ab8b
push dword [eax]
lea eax, [esp + 0x3c]
push str._detected_configurations___r_n_s_
push eax
call fcn.18002ca6
mov ecx, dword [esp + 0x30]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.18003140
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.18052cc8
mov edi, eax
mov eax, dword [esp + 0x10]
push 0x64
cdq
pop ecx
idiv ecx
imul eax, eax, 0x64
test edi, edi
jns 0x18052c32
cmp edi, 0x80040810
je 0x18052c32
cmp eax, 0x190
je 0x18052c32
cmp dword [esi + 0x6c], 0
jg 0x18052c32
cmp eax, 0x1f4
jne 0x18052a1f
cmp dword [esi + 0x74], 0x4e20
jge 0x18052a1f
mov dword [esi + 0x74], 0x4e20
mov eax, dword [esi + 0x74]
cmp eax, 0x3fffffff
jle 0x18052a32
mov dword [esi + 0x74], 0x186a0
jmp 0x18052a6d
add eax, eax
cmp dword [esi + 0x44], 0
mov dword [esi + 0x74], eax
jle 0x18052a6d
cmp eax, dword [esi + 0x44]
jl 0x18052a6d
and dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov ebx, dword [esi + 0x44]
test al, al
mov eax, ebx
je 0x18052a61
mov eax, dword [esp + 0x18]
xor edx, edx
lea ecx, [ebx + ebx]
div ecx
sub edx, ebx
add dword [esi + 0x74], edx
inc dword [esi + 0x70]
call fcn.180663aa
lea ecx, [esp + 0xc]
push ecx
mov ecx, eax
call fcn.1806851c
movzx ecx, byte [0x18101323]
mov esi, dword [esp + 0xc]
neg ecx
push 7
sbb ecx, ecx
pop ebx
and ecx, 0x18101240
je 0x18052ac8
push 6
pop eax
push eax
push ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], eax
call fcn.1800457f
push esi
mov dword [esp + 0x58], eax
lea eax, [esp + 0x4c]
push str._ASUS__QueryRegion___s_
push eax
call fcn.18002ca6
add esp, 0xc
push 0x180ed9ac
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18052b2e
mov ebx, str.https:__rls_proxy_01.chinaeast2.cloudapp.chinacloudapi.cn_service_update2
push ebx
call fcn.180ac191
pop ecx
push eax
push ebx
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.18005f0f
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x18052c1a
push 7
pop eax
push 6
pop edx
push edx
push eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
call fcn.1800457f
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
jmp 0x18052c0a
cmp dword [esi - 0xc], 0
jne 0x18052c1a
call fcn.180663aa
lea eax, [esp + 0x28]
push eax
call fcn.180681b7
push eax
lea ecx, [esp + 0x10]
call fcn.18005b84
mov ecx, dword [esp + 0x28]
lea ecx, [ecx - 0x10]
call fcn.18003140
movzx ecx, byte [0x18101323]
mov esi, dword [esp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x18052ba1
push 6
pop eax
push eax
push ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
call fcn.1800457f
push esi
mov dword [esp + 0x78], eax
lea eax, [esp + 0x6c]
push str._ASUS__GetRegion___s_
push eax
call fcn.18002ca6
add esp, 0xc
push 0x180ed9ac
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18052c1a
mov ebx, str.https:__rls_proxy_01.chinaeast2.cloudapp.chinacloudapi.cn_service_update2
push ebx
call fcn.180ac191
pop ecx
push eax
push ebx
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.18005f0f
movzx ecx, byte [0x18101323]
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x18052c1a
push 7
pop eax
push 6
pop edx
push edx
push eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edx
call fcn.1800457f
mov dword [esp + 0x84], eax
lea eax, [esp + 0x78]
push dword [ebx]
push str._ASUS__PROXY___s_
push eax
call fcn.18002ca6
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.18003140
mov esi, dword [esp + 0x20]
jmp 0x18052898
mov edi, 0x8000ffff
jmp 0x18052c74
cmp dword [esi + 0x7c], 0
je 0x18052c3f
mov edi, 0x80040810
jmp 0x18052c74
cmp dword [esi + 0x74], 0x186a0
jle 0x18052c4f
mov edi, 0x80040892
jmp 0x18052c74
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x4c]
mov dword [esi + 0x48], eax
lea eax, [esp + 0x14]
push eax
call fcn.18005b84
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x18052c74
lea eax, [esp + 0x2c]
push eax
call fcn.1804ba5f
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x18052cb3
mov eax, dword [esp + 0x34]
sub eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp eax, 0x1000
jb 0x18052caa
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.18003b3c
mov eax, dword [esp + 0x28]
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.180a66f3
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.18003140
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret