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

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x1005ff0d
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10087700]
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 0x10065f0c
push str..DataLocalServerListDisplay.bmd
call fcn.10049454
mov edi, eax
add esp, 8
test edi, edi
jne 0x100179de
push 0x10
push 0x10065f34
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.10049a68
push edi
call fcn.1004a0c7
push edi
mov esi, eax
call fcn.1004a4c1
push esi
call fcn.10043701
push edi
push esi
mov ebx, eax
push 1
push ebx
call fcn.10049644
push edi
call fcn.1004936d
add esp, 0x2c
xor ecx, ecx
test esi, esi
jle 0x10017a33
nop word [eax + eax]
mov eax, ecx
and eax, 0x1f
mov al, byte [eax + 0x100875b0]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jl 0x10017a20
lea ecx, [ebp]
call fcn.1003ddc0
push 0
push 0x74
push esi
push ebx
lea eax, [ebp - 0x74]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp]
call fcn.1003e970
cmp dword [ebp - 0x74], 0
je 0x10017a76
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.10017940
push str.ServerListDisplay
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp]
call fcn.1003e340
push 1
push 0x10065fa8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x24]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e200
mov byte [ebx + 4], al
lea ecx, [ebp - 0x24]
push str.Server
lea eax, [ebp - 0x10]
push eax
call fcn.1003e340
lea ecx, [ebp - 0x10]
call fcn.1003dee0
test eax, eax
je 0x10017e14
nop
push 0x30
call fcn.100436d1
mov edi, eax
mov dword [ebp - 0x1c], eax
add esp, 4
test edi, edi
je 0x10017afa
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
jmp 0x10017aff
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.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov dword [edi], eax
lea ecx, [ebp - 0x10]
push str.Type
lea eax, [ebp - 0x3c]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [edi + 4], al
lea ecx, [ebp - 0x10]
push str.DisplayCode
lea eax, [ebp - 0x40]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e200
push 0
mov byte [edi + 5], al
lea ecx, [ebp - 0x10]
push str.DisplayGroupName
lea eax, [ebp - 0x44]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e200
push 0
mov byte [edi + 6], al
lea ecx, [ebp - 0x10]
push str.DisplayStatusText
lea eax, [ebp - 0x48]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e200
push 0x10065f09
mov byte [edi + 7], al
lea ecx, [ebp - 0x10]
push str.Text
lea eax, [ebp - 0x4c]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e2b0
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 0x10017bc0
sub esi, ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x34], ecx
cmp esi, ecx
ja 0x10017bfc
mov dword [ebp - 0x1c], ebx
mov eax, ebx
cmp ecx, 0x10
jb 0x10017be2
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
push esi
push edx
push eax
mov dword [ebx + 0x10], esi
call fcn.10044a80
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x10017cd2
cmp esi, 0x7fffffff
ja 0x10017e3f
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x10017c2a
mov eax, 0x80000000
mov edi, 0x7fffffff
push eax
call fcn.10003ae0
add esp, 4
jmp 0x10017c7c
mov edx, ecx
mov eax, 0x7fffffff
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10017c4e
mov eax, 0x80000000
mov edi, 0x7fffffff
push eax
call fcn.10003ae0
add esp, 4
jmp 0x10017c7c
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x10017c6b
push eax
call fcn.10003ae0
add esp, 4
jmp 0x10017c7c
test eax, eax
je 0x10017c7a
push eax
call fcn.100436d1
add esp, 4
jmp 0x10017c7c
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.10044a80
mov eax, dword [ebp - 0x34]
add esp, 0xc
mov byte [edi + esi], 0
cmp eax, 0x10
jb 0x10017ccd
lea ecx, [eax + 1]
mov eax, dword [ebx]
cmp ecx, 0x1000
jb 0x10017cc3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10017e44
mov eax, edx
push ecx
push eax
call fcn.10043123
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.1003e340
lea ecx, [ebp - 0x14]
call fcn.1003dee0
test eax, eax
je 0x10017dcc
push 0
push str.State
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
mov byte [ebp - 0x16], al
cmp al, 2
ja 0x10017dab
push 0
push str.RGBA
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov byte [ebp - 0x15], al
lea ecx, [ebp - 0x14]
push 0x10066018
lea eax, [ebp - 0x58]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov bh, al
lea ecx, [ebp - 0x14]
push 0x1006601c
lea eax, [ebp - 0x5c]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
push 0
mov bl, al
lea ecx, [ebp - 0x14]
push 0x10066020
lea eax, [ebp - 0x60]
push eax
call fcn.1003e2d0
mov ecx, eax
call fcn.1003e280
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.1003eca0
lea ecx, [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
call fcn.1003dee0
test eax, eax
jne 0x10017cf3
mov ecx, dword [ebp - 0x28]
add ecx, 8
mov dword [edi + 0x2c], 0
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x10017de9
mov dword [eax], edi
add dword [ecx + 4], 4
jmp 0x10017df3
lea edx, [ebp - 0x2c]
push edx
push eax
call fcn.100172c0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x10]
call fcn.1003eca0
lea ecx, [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.1003dee0
test eax, eax
jne 0x10017ad0
lea ecx, [ebp]
call fcn.1003dea0
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.1004344b
lea esp, [ebp + 0xcc]
pop ebp
ret
call fcn.10003e60
call fcn.10049147
int3