Function at 0x10002570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x10022490]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10002afc
push esi
call fcn.100018d0
add esp, 4
mov ecx, 0x1f24738f
lea eax, [esp + 0x14]
mov byte [0x10025714], 1
call fcn.10004d90
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
mov ecx, 0x397a8b4a
lea eax, [esp + 0x4c]
call fcn.10004e20
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
test eax, eax
je 0x10002622
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x74696e49
mov byte [esp + 0x18], cl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov byte [esp + 0x10], cl
jmp 0x10002647
mov ecx, 0x5cc775ab
lea eax, [esp + 0x40]
call fcn.10004e80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov word [esp + 0x48], cx
call eax
lea ecx, [esp + 0x5c]
mov bl, 0xff
push ecx
mov edi, 0x1b
mov dword [esp + 0x60], 0xffffffa1
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], 0xffff8b32
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x70], 0x78ffffff
mov dword [esp + 0x74], 0x8bffff89
mov word [esp + 0x78], 0x8ff
mov byte [esp + 0x7a], 0x51
call fcn.10001970
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x10002aa4
mov edx, dword [eax + 1]
mov al, 0xff
lea ecx, [esp + 0x5c]
mov byte [esp + 0x7c], bl
push ecx
mov bl, al
mov edi, 0x21
mov dword [0x100256f4], edx
mov dword [esp + 0x60], 0xffffffa1
mov dword [esp + 0x64], 0xffff89ff
mov dword [esp + 0x68], 0x83ffffff
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x70], 0xffff02ff
mov dword [esp + 0x74], 0xffffff83
mov dword [esp + 0x78], 0x7404ffff
mov dword [esp + 0x7c], 0x6affebff
call fcn.10001970
add esp, 4
mov dword [0x100256f8], eax
test eax, eax
je 0x1000271a
mov edx, dword [eax + 1]
mov dword [0x100256f8], edx
jmp 0x1000276a
mov ecx, 0xba
xor eax, eax
mov dl, byte [eax + 0x1001f0e8]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x30], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x10002721
lea eax, [esp + 0x30]
push eax
push 0
mov ecx, 0x10023618
mov byte [esp + 0x47], 0
call fcn.10001aa0
xor eax, eax
add esp, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.10001cb0
lea ecx, [esp + 0x5c]
push ecx
mov edi, 0x11
mov dword [esp + 0x60], 0xffffff66
mov dword [esp + 0x64], 0xff66ffff
mov dword [esp + 0x68], 0xff8b24ff
mov dword [esp + 0x6c], 0xffffffff
mov byte [esp + 0x70], 0x51
call fcn.10001970
xor ebx, ebx
add esp, 4
mov dword [0x1002571c], eax
cmp eax, ebx
je 0x100027b7
mov edx, dword [eax + 2]
mov dword [0x1002571c], edx
jmp 0x100027e9
mov ecx, 0x1001f0f8
sub ecx, 0x575d72e6
lea eax, [esp + 0x54]
call fcn.10004f00
push eax
push ebx
mov ecx, 0x10023618
call fcn.10001aa0
xor eax, eax
add esp, 8
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.10001cb0
mov al, 0xff
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], bl
push ecx
mov bl, al
mov edi, 0x19
mov dword [esp + 0x60], 0xffff85dd
mov dword [esp + 0x64], 0x58d9ffff
mov dword [esp + 0x68], 0xd9c4eb04
mov dword [esp + 0x6c], 0xffdcffff
mov dword [esp + 0x70], 0xffffffff
mov dword [esp + 0x74], 0x9768
call fcn.10001970
add esp, 4
mov dword [0x100253fc], eax
test eax, eax
je 0x1000284a
lea edx, [eax + 9]
mov dword [0x10025428], edx
cmp byte [eax], 0xe9
jne 0x1000284f
call fcn.10001cb0
lea eax, [esp + 0x80]
mov cl, 0xc8
push eax
mov edi, 0x47
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x88], 0xffffe8ff
mov dword [esp + 0x8c], 0xffe8ffff
mov dword [esp + 0x90], 0x8bffffff
mov dword [esp + 0x94], 0xffffe8c8
mov dword [esp + 0x98], 0xffe8ffff
mov dword [esp + 0x9c], 0xe8ffffff
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0xa4], 0xffffffe8
mov dword [esp + 0xa8], 0xffffe8ff
mov dword [esp + 0xac], 0xffe8ffff
mov dword [esp + 0xb0], 0xe8ffffff
mov dword [esp + 0xb4], 0xffffffff
mov dword [esp + 0xb8], 0xffffffe8
mov dword [esp + 0xbc], 0xe8c88bff
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0xc4], 0xffffffe8
mov word [esp + 0xc8], 0x8bff
mov byte [esp + 0xca], cl
call fcn.10001970
add esp, 4
mov dword [0x10025424], eax
test eax, eax
je 0x10002971
mov dword [0x1002540c], eax
mov ecx, dword [eax + 1]
lea edx, [ecx + eax + 5]
mov dword [0x1002540c], edx
mov ecx, dword [eax + 0x17]
lea edx, [eax + ecx + 0x1b]
mov ecx, dword [eax + 6]
add eax, 5
mov dword [0x10025404], edx
lea edx, [eax + ecx + 5]
mov dword [0x10025414], edx
mov dword [0x1002541c], eax
jmp 0x1000297b
mov ecx, str.SS6_Attack_Speed
call fcn.10001d60
lea eax, [esp + 0x5c]
mov bl, 0xfe
push eax
mov edi, 0xb
mov dword [esp + 0x60], 0xfefefe83
mov dword [esp + 0x64], 0x74fffefe
mov word [esp + 0x68], 0x6afe
mov byte [esp + 0x6a], 0x1a
call fcn.10001970
xor ebx, ebx
add esp, 4
mov dword [0x100256fc], eax
cmp eax, ebx
je 0x100029c1
mov ecx, dword [eax + 2]
mov dword [0x100256fc], ecx
jmp 0x100029cb
mov ecx, str.SS6_InDex_PLayer_Monster
call fcn.10001d60
lea edx, [esp + 0x5c]
mov word [esp + 0x64], bx
mov bl, 0xff
push edx
mov edi, 0x17
mov dword [esp + 0x60], 0x8e68
mov dword [esp + 0x64], 0xc16800
mov dword [esp + 0x6a], 0xffffff8d
mov dword [esp + 0x6e], 0xffe8ffff
mov dword [esp + 0x72], 0x6affffff
mov byte [esp + 0x76], 2
call fcn.10001970
add esp, 4
test eax, eax
je 0x10002af2
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + ecx + 0x57]
lea eax, [eax + ecx + 0x4c]
lea edx, [eax + edx + 0xf]
lea ecx, [edx + 0x2d]
mov dword [0x10025418], ecx
mov esi, dword [ecx + 1]
lea ecx, [ecx + esi + 5]
mov dword [0x10025418], ecx
mov ecx, dword [eax + 0x26]
lea ecx, [eax + ecx + 0x2a]
mov dword [0x10025408], ecx
add ecx, 8
cmp byte [eax], 0x55
mov dword [0x10025400], eax
mov dword [0x1002542c], edx
mov dword [0x10025420], ecx
mov dword [0x1002543c], 0x100023c0
je 0x10002a79
call fcn.10001cb0
mov edx, dword [0x1002542c]
cmp byte [edx], 0x55
je 0x10002a83
call fcn.10001cb0
mov edx, dword [0x10025408]
cmp byte [edx], 0x55
je 0x10002a93
call fcn.10001cb0
call fcn.10005f70
call fcn.10005fc0
call fcn.10006160
jmp 0x10002af7
mov ecx, 0x82
xor eax, eax
jmp 0x10002ab0
mov dl, byte [eax + 0x1001f130]
xor dl, cl
inc ecx
mov byte [esp + eax + 0x20], dl
inc eax
and ecx, 0xff
cmp eax, 0xf
jb 0x10002ab0
lea eax, [esp + 0x20]
push eax
push ebx
mov ecx, 0x10023618
mov byte [esp + 0x37], bl
call fcn.10001aa0
add esp, 8
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.10001cb0
call fcn.100017c0
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1000717e
mov esp, ebp
pop ebp
ret 0xc