Function at 0x4030b0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ec48
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x43d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x4c], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x2c], 0x75006e
mov dword [ebp - 0x28], 0x6c006c
mov word [ebp - 0x24], ax
mov edx, 0x438bd8
mov byte [ebp - 4], 2
mov ecx, 0x43e078
call fcn.004044f0
push eax
call fcn.00404790
mov eax, dword [ebp - 0x78]
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404dd0
mov eax, dword [ebp - 0x14]
dec eax
cmp eax, 8
ja case.default.0x40315b
jmp dword [eax*4 + 0x403924]
mov eax, dword [ebp - 0x18]
cmp eax, 0x31
jb 0x403196
cmp eax, 7
mov dword [ebp - 0x1c], 0x31
push 0x62
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__win_sys2021.oss_cn_hangzhou.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x62], ax
jmp 0x403435
push str.https:__win_sys2021.oss_cn_hangzhou.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x31
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x32
jb 0x4031e5
cmp eax, 7
mov dword [ebp - 0x1c], 0x32
push 0x64
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_hk.oss_cn_hongkong.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x64], ax
jmp 0x403435
push str.https:__snowlotus_hk.oss_cn_hongkong.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x32
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x31
jb 0x403234
cmp eax, 7
mov dword [ebp - 0x1c], 0x31
push 0x62
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_usa.oss_us_west_1.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x62], ax
jmp 0x403435
push str.https:__snowlotus_usa.oss_us_west_1.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x31
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x30
jb 0x403283
cmp eax, 7
mov dword [ebp - 0x1c], 0x30
push 0x60
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_uk.oss_eu_west_1.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x60], ax
jmp 0x403435
push str.https:__snowlotus_uk.oss_eu_west_1.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x30
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x36
jb 0x4032d2
cmp eax, 7
mov dword [ebp - 0x1c], 0x36
push 0x6c
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_sgp.oss_ap_southeast_1.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x6c], ax
jmp 0x403435
push str.https:__snowlotus_sgp.oss_ap_southeast_1.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x36
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x35
jb 0x403321
cmp eax, 7
mov dword [ebp - 0x1c], 0x35
push 0x6a
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_jp.oss_ap_northeast_1.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x6a], ax
jmp 0x403435
push str.https:__snowlotus_jp.oss_ap_northeast_1.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x35
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x33
jb 0x403370
cmp eax, 7
mov dword [ebp - 0x1c], 0x33
push 0x66
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_dubai.oss_me_east_1.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x66], ax
jmp 0x403435
push str.https:__snowlotus_dubai.oss_me_east_1.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x33
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x35
jb 0x4033bc
cmp eax, 7
mov dword [ebp - 0x1c], 0x35
push 0x6a
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_ml.oss_ap_southeast_3.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x6a], ax
jmp 0x403435
push str.https:__snowlotus_ml.oss_ap_southeast_3.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x35
call fcn.004051b0
jmp 0x403435
mov eax, dword [ebp - 0x18]
cmp eax, 0x34
jb 0x403405
cmp eax, 7
mov dword [ebp - 0x1c], 0x34
push 0x68
lea esi, [ebp - 0x2c]
cmova esi, dword [ebp - 0x2c]
push str.https:__snowlotus_gem.oss_eu_central_1.aliyuncs.com_
push esi
call fcn.0040d550
add esp, 0xc
xor eax, eax
mov word [esi + 0x68], ax
jmp 0x403435
push str.https:__snowlotus_gem.oss_eu_central_1.aliyuncs.com_
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0x34
call fcn.004051b0
jmp 0x403435
mov edx, 0x43900c
mov ecx, 0x43e078
call fcn.004044f0
push eax
call fcn.00404790
add esp, 4
push str.aria2c.exe
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x90]
call fcn.00404830
add esp, 4
lea ecx, [ebp - 0x5c]
push eax
call fcn.00403bb0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 7
jbe 0x403491
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403487
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403900
push ecx
push edx
call fcn.0040c015
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00403c40
mov ecx, str.c:_aria2c.exe
call fcn.00402050
push str.bcdedit.exe
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x90]
call fcn.00404830
add esp, 0x1c
lea ecx, [ebp - 0x5c]
push eax
call fcn.00403bb0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 7
jbe 0x403505
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4034fb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403905
push ecx
push edx
call fcn.0040c015
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00403c40
mov ecx, str.c:_bcdedit.exe
call fcn.00402050
mov edx, esp
mov dword [ebp - 0x78], eax
mov esi, closesocket
mov dword [ebp - 0x14], edx
mov edi, dword [ebp + 0x18]
mov ecx, esi
sub ecx, edi
cmp ecx, 0xc
jb 0x40390a
cmp dword [ebp + 0x1c], 0xf
lea eax, [ebp + 8]
push 0xc
cmova eax, dword [ebp + 8]
push str.___get_pewim
push edi
push eax
push ecx
push dword [ebp - 0x78]
mov ecx, edx
call fcn.00406900
lea ecx, [ebp - 0x74]
call fcn.004022a0
add esp, 0x18
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
sub esi, ecx
cmp esi, 0x40
jb 0x40390f
cmp dword [ebp - 0x60], 0xf
lea eax, [ebp - 0x74]
push ecx
cmova eax, dword [ebp - 0x74]
push eax
push 0x40
push str.c:_aria2c.exe____file_allocationnone____dirc:____outpe.wim___
push ecx
push dword [ebp - 0x78]
lea ecx, [ebp - 0x90]
call fcn.00406900
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x7c]
mov eax, edx
mov ecx, dword [ebp - 0x80]
sub eax, ecx
cmp eax, 1
jb 0x4035d0
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x90]
cmova eax, dword [ebp - 0x90]
mov word [eax + ecx], 0x22
lea eax, [ebp - 0x90]
jmp 0x4035eb
push 1
push 0x43909c
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x90]
push dword [ebp - 0x14]
push 1
call fcn.00405050
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0xf
jbe 0x40365d
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403653
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403914
push ecx
push edx
call fcn.0040c015
add esp, 8
push 0
push str.c:pe.wim
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
call fcn.00416d48
add esp, 8
cmp eax, 0xffffffff
je 0x4036ae
push 0
push str.c:pe.wim
call fcn.00416d48
add esp, 8
cmp eax, 0xffffffff
je 0x4036d7
push 0
push str.c:pe.wim.aria2
call fcn.00416d48
add esp, 8
cmp eax, 0xffffffff
je 0x4036d7
mov edx, 0x439100
mov ecx, 0x43e078
call fcn.004044f0
push eax
call fcn.00404790
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call fcn.00416bb7
add esp, 8
push str.boot.sdi
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0xa8]
call fcn.00404830
add esp, 4
lea ecx, [ebp - 0x5c]
push eax
call fcn.00403bb0
mov ecx, dword [ebp - 0x94]
cmp ecx, 7
jbe 0x403736
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40372c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403919
push ecx
push edx
call fcn.0040c015
add esp, 8
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00403c40
mov ecx, str.c:_boot.sdi
call fcn.00402050
push 0
push str.c:pe.wim
mov esi, eax
call fcn.00416d48
add esp, 0x20
cmp eax, 0xffffffff
je 0x40378a
push 0
push str.c:pe.wim.aria2
call fcn.00416d48
add esp, 8
cmp eax, 0xffffffff
jne 0x40378a
push str.del_c:_aria2c.exe
lea edi, [eax + 2]
call fcn.00416bb7
add esp, 4
jmp 0x40378c
xor edi, edi
cmp dword [ebp - 0x78], 0
je 0x4037a1
test esi, esi
je 0x4037a1
test edi, edi
je 0x4037a1
mov esi, 1
jmp 0x4037a3
xor esi, esi
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x4037d7
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4037cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40391e
push ecx
push edx
call fcn.0040c015
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x40381d
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403813
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40391e
push ecx
push edx
call fcn.0040c015
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 7
jbe 0x403869
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40385f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40391e
push ecx
push edx
call fcn.0040c015
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 7
jbe 0x4038b3
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4038a9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40391e
push ecx
push edx
call fcn.0040c015
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x4038e3
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4038d9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40391e
push ecx
push edx
call fcn.0040c015
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bfd2
mov esp, ebp
pop ebp
ret
call fcn.0041762b
call fcn.0041762b
call fcn.00401340
call fcn.00401340
call fcn.0041762b
call fcn.0041762b
call fcn.0041762b
nop
bound esi, qword [ecx]
inc eax
add byte [ecx + 0x4031], dh
xor al, byte [eax]
dec edi
xor al, byte [eax]
sahf
xor al, byte [eax]
in eax, dx
xor al, byte [eax]
cmp al, 0x33
inc eax
add byte [ebx - 0x2bffbfcd], cl
xor eax, dword [eax]
int3