Function at 0x1001af50
Capabilities:
Encode data using xor
Read file on windows
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x1006466d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1008a884]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
push 0x1006a26c
push str..DataLocalServerListDisplay.bmd
call fcn.1004dd0e
mov edi, eax
add esp, 8
test edi, edi
jne 0x1001afbe
push 0x10
push 0x1006a294
push str.ServerListDisplay.bmd_file_not_found
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 2
push 0
push edi
call fcn.1004e322
push edi
call fcn.1004e981
push edi
mov esi, eax
call fcn.1004eb47
push esi
call fcn.10046deb
push edi
push esi
mov ebx, eax
push 1
push ebx
call fcn.1004defe
push edi
call fcn.1004dc27
add esp, 0x2c
xor ecx, ecx
test esi, esi
jle 0x1001b013
nop word [eax + eax]
mov eax, ecx
and eax, 0x1f
mov al, byte [eax + 0x1008a71c]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jl 0x1001b000
lea ecx, [ebp]
call fcn.100416e0
push 0
push 0x74
push esi
push ebx
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp]
call fcn.10042290
cmp dword [ebp - 0x74], 0
je 0x1001b056
push 0x10
push str.Error
push str.ServerListDisplay.bmd_file_corrupted
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp - 0x28]
mov ecx, ebx
call fcn.1001af20
push str.ServerListDisplay
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp]
call fcn.10041c60
push 1
push str.Enable
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.10041bf0
mov ecx, eax
call fcn.10041b20
mov byte [ebx + 4], al
lea ecx, [ebp - 0x24]
push str.Server
lea eax, [ebp - 0x10]
push eax
call fcn.10041c60
lea ecx, [ebp - 0x10]
call fcn.10041800
test eax, eax
je 0x1001b3f4
nop
push 0x30
call fcn.10046a4f
mov edi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test edi, edi
je 0x1001b0da
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
jmp 0x1001b0df
xor edi, edi
mov dword [ebp - 0x1c], edi
push 0
push str.Code
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], edi
push eax
lea ecx, [ebp - 0x10]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
push 0
mov dword [edi], eax
lea ecx, [ebp - 0x10]
push str.Type
lea eax, [ebp - 0x3c]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
push 0
mov byte [edi + 4], al
lea ecx, [ebp - 0x10]
push str.DisplayCode
lea eax, [ebp - 0x40]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041b20
push 0
mov byte [edi + 5], al
lea ecx, [ebp - 0x10]
push str.DisplayGroupName
lea eax, [ebp - 0x44]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041b20
push 0
mov byte [edi + 6], al
lea ecx, [ebp - 0x10]
push str.DisplayStatusText
lea eax, [ebp - 0x48]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041b20
push 0x1006a269
mov byte [edi + 7], al
lea ecx, [ebp - 0x10]
push str.Text
lea eax, [ebp - 0x4c]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041bd0
mov edx, eax
lea ebx, [edi + 8]
mov esi, edx
mov dword [ebp - 0x30], edx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1001b1a0
sub esi, ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x34], ecx
cmp esi, ecx
ja 0x1001b1dc
mov dword [ebp - 0x1c], ebx
mov eax, ebx
cmp ecx, 0x10
jb 0x1001b1c2
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
push esi
push edx
push eax
mov dword [ebx + 0x10], esi
call fcn.100496c0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x1001b2b2
cmp esi, 0x7fffffff
ja 0x1001b41f
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x1001b20a
mov eax, connect
mov edi, closesocket
push eax
call fcn.10001820
add esp, 4
jmp 0x1001b25c
mov edx, ecx
mov eax, closesocket
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x1001b22e
mov eax, connect
mov edi, closesocket
push eax
call fcn.10001820
add esp, 4
jmp 0x1001b25c
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x1001b24b
push eax
call fcn.10001820
add esp, 4
jmp 0x1001b25c
test eax, eax
je 0x1001b25a
push eax
call fcn.10046a4f
add esp, 4
jmp 0x1001b25c
xor eax, eax
push esi
push dword [ebp - 0x30]
mov dword [ebx + 0x14], edi
mov edi, eax
push edi
mov dword [ebp - 0x20], eax
mov dword [ebx + 0x10], esi
call fcn.100496c0
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov byte [edi + esi], 0
cmp eax, 0x10
jb 0x1001b2ad
lea ecx, [eax + 1]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x1001b2a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001b424
mov eax, edx
push ecx
push eax
call fcn.10046a7f
add esp, 8
mov dword [ebx], edi
mov edi, dword [ebp - 0x1c]
push str.Color
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.10041c60
lea ecx, [ebp - 0x14]
call fcn.10041800
test eax, eax
je 0x1001b3ac
push 0
push str.State
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
mov byte [ebp - 0x16], al
cmp al, 2
ja 0x1001b38b
push 0
push str.RGBA
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
push 0
mov byte [ebp - 0x15], al
lea ecx, [ebp - 0x14]
push 0x1006a378
lea eax, [ebp - 0x58]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
push 0
mov bh, al
lea ecx, [ebp - 0x14]
push 0x1006a37c
lea eax, [ebp - 0x5c]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
push 0
mov bl, al
lea ecx, [ebp - 0x14]
push 0x1006a380
lea eax, [ebp - 0x60]
push eax
call fcn.10041bf0
mov ecx, eax
call fcn.10041ba0
movzx ecx, al
shl ecx, 8
movzx eax, bl
or ecx, eax
movzx eax, bh
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0x16]
mov dword [edi + eax*4 + 0x20], ecx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.100425c0
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.10041800
test eax, eax
jne 0x1001b2d3
mov ecx, dword [ebp - 0x28]
add ecx, 8
mov dword [edi + 0x2c], 0
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x1001b3c9
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x1001b3d3
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.1001a8a0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x10]
call fcn.100425c0
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.10041800
test eax, eax
jne 0x1001b0b0
lea ecx, [ebp]
call fcn.100417c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.10046da7
lea esp, [ebp + 0xcc]
pop ebp
ret
call fcn.10002410
call fcn.1004b97f
int3