Function at 0x55d4a4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edi, [eax + 0x100]
test edi, edi
jns 0x55d4c6
add edi, 0x1f
sar edi, 5
add eax, 0xffffff80
test eax, eax
jns 0x55d4d3
add eax, 0x3f
sar eax, 6
lea edx, [ebp - 0x58]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov ecx, esi
xor eax, eax
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
add edx, edx
lea ecx, [edx*8 + 0x57bc2c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov cl, byte [edx]
mov edx, dword [ebp - 0xc]
xor cl, byte [edx]
and ecx, 0xff
mov edx, eax
and edx, reloc.WSOCK32.DLL_closesocket
jns 0x55d514
dec edx
or edx, 0xfffffffc
inc edx
shl edx, 8
add edx, str.cw
mov cl, byte [edx + ecx]
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
inc eax
inc dword [ebp - 0x10]
inc dword [ebp - 0xc]
inc dword [ebp - 8]
cmp eax, 0x10
jl 0x55d4f5
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0055d30c
add esp, 8
cmp edi, 0xe
jne 0x55d56f
xor eax, eax
lea edx, [ebp - 0x68]
mov dword [ebp - 0x18], edx
lea ecx, [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov cl, byte [edx]
mov edx, dword [ebp - 0x18]
xor byte [edx], cl
inc eax
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
cmp eax, 8
jl 0x55d557
jmp 0x55d598
cmp edi, 0x10
jne 0x55d598
xor eax, eax
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x20], ecx
lea edx, [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx]
mov ecx, dword [ebp - 0x20]
xor byte [ecx], dl
inc eax
inc dword [ebp - 0x20]
inc dword [ebp - 0x1c]
cmp eax, 0x10
jl 0x55d582
cmp dword [ebp - 4], 2
jne 0x55d5a2
xor eax, eax
jmp 0x55d5a6
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x58]
mov dword [ebp - 0x2c], edx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x28], ecx
xor eax, eax
mov edx, dword [ebp - 4]
add edx, edx
lea ecx, [edx*8 + 0x57bc2c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov cl, byte [edx]
mov edx, dword [ebp - 0x28]
xor cl, byte [edx]
and ecx, 0xff
lea edx, [eax + 2]
and edx, reloc.WSOCK32.DLL_closesocket
jns 0x55d5e6
dec edx
or edx, 0xfffffffc
inc edx
shl edx, 8
add edx, str.cw
mov cl, byte [edx + ecx]
mov edx, dword [ebp - 0x2c]
mov byte [edx], cl
inc eax
inc dword [ebp - 0x2c]
inc dword [ebp - 0x28]
inc dword [ebp - 0x24]
cmp eax, 0x10
jl 0x55d5c6
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0055d30c
lea edx, [ebp - 0x78]
add esp, 8
mov dword [ebp - 0x34], edx
mov ecx, esi
mov dword [ebp - 0x30], ecx
xor eax, eax
mov edx, dword [ebp - 0x30]
mov cl, byte [edx]
mov edx, dword [ebp - 0x34]
xor byte [edx], cl
inc eax
inc dword [ebp - 0x34]
inc dword [ebp - 0x30]
cmp eax, 0x10
jl 0x55d623
cmp dword [ebp - 4], 2
jne 0x55d643
xor eax, eax
jmp 0x55d647
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x58]
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x3c], ecx
xor eax, eax
mov edx, dword [ebp - 4]
add edx, edx
lea ecx, [edx*8 + 0x57bc2c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov cl, byte [edx]
mov edx, dword [ebp - 0x3c]
xor cl, byte [edx]
and ecx, 0xff
mov edx, eax
and edx, reloc.WSOCK32.DLL_closesocket
jns 0x55d686
dec edx
or edx, 0xfffffffc
inc edx
shl edx, 8
add edx, str.cw
mov cl, byte [edx + ecx]
mov edx, dword [ebp - 0x40]
mov byte [edx], cl
inc eax
inc dword [ebp - 0x40]
inc dword [ebp - 0x3c]
inc dword [ebp - 0x38]
cmp eax, 0x10
jl 0x55d667
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0055d30c
lea edx, [ebp - 0x88]
add esp, 8
mov dword [ebp - 0x48], edx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x44], ecx
xor eax, eax
mov edx, dword [ebp - 0x44]
mov cl, byte [edx]
mov edx, dword [ebp - 0x48]
xor byte [edx], cl
inc eax
inc dword [ebp - 0x48]
inc dword [ebp - 0x44]
cmp eax, 0x10
jl 0x55d6ca
xor eax, eax
mov edx, ebx
jmp 0x55d6eb
mov byte [edx], 0
inc eax
inc edx
mov ecx, edi
shl ecx, 4
add ecx, 0x10
cmp eax, ecx
jl 0x55d6e6
push ebx
push 0
push esi
call fcn.0055d424
add esp, 0xc
lea eax, [ebp - 0x68]
push ebx
push 0x13
push eax
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0x10]
push ecx
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0x10]
push edx
push 0x13
lea ecx, [ebp - 0x78]
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0x20]
push eax
push 0
lea edx, [ebp - 0x78]
push edx
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0x20]
push ecx
push 0x13
lea eax, [ebp - 0x88]
push eax
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0x30]
push edx
push 0
lea ecx, [ebp - 0x88]
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0x30]
push eax
push 0x13
push esi
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0x40]
push edx
push 0
push esi
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0x40]
push ecx
push 0x1f
lea eax, [ebp - 0x68]
push eax
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0x50]
push edx
push 0
lea ecx, [ebp - 0x68]
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0x50]
push eax
push 0x1f
lea edx, [ebp - 0x78]
push edx
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0x60]
push ecx
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0x60]
push edx
push 0x1f
lea ecx, [ebp - 0x88]
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0x70]
push eax
push 0
lea edx, [ebp - 0x88]
push edx
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0x70]
push ecx
push 0x1f
push esi
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0x80]
push eax
push 0
push esi
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0x80]
push edx
push 0x43
lea ecx, [ebp - 0x68]
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0x90]
push eax
push 0
lea edx, [ebp - 0x68]
push edx
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0x90]
push ecx
push 0x43
lea eax, [ebp - 0x78]
push eax
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0xa0]
push edx
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0xa0]
push eax
push 0x43
lea edx, [ebp - 0x88]
push edx
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0xb0]
push ecx
push 0
lea eax, [ebp - 0x88]
push eax
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0xb0]
push edx
push 0x43
push esi
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0xc0]
push ecx
push 0
push esi
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0xc0]
push eax
push 0x61
lea edx, [ebp - 0x68]
push edx
call fcn.0055d424
add esp, 0xc
cmp edi, 0xc
jle 0x55d93c
lea ecx, [ebx + 0xd0]
lea eax, [ebp - 0x68]
push ecx
push 0
push eax
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0xd0]
push edx
push 0x61
lea ecx, [ebp - 0x78]
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0xe0]
push eax
push 0
lea edx, [ebp - 0x78]
push edx
call fcn.0055d424
add esp, 0xc
lea ecx, [ebx + 0xe0]
push ecx
push 0x61
lea eax, [ebp - 0x88]
push eax
call fcn.0055d424
add esp, 0xc
cmp edi, 0xe
jle 0x55d992
lea edx, [ebx + 0xf0]
lea ecx, [ebp - 0x88]
push edx
push 0
push ecx
call fcn.0055d424
add esp, 0xc
lea eax, [ebx + 0xf0]
push eax
push 0x61
push esi
call fcn.0055d424
add esp, 0xc
lea edx, [ebx + 0x100]
push edx
push 0
push esi
call fcn.0055d424
add esp, 0xc
add ebx, 0x100
push ebx
push 0x6d
lea eax, [ebp - 0x68]
push eax
call fcn.0055d424
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret